local character: Model = owner.Character or owner.CharacterAdded:Wait()
local humanoid: Humanoid = character:WaitForChild("Humanoid")
local parts: {[string]: Part} = {}
local meshes: {[string]: SpecialMesh} = {}
local joints: {[string]: Motor6D} = {}
local tail = Instance.new("Part")
tail.Name = "Tail"
tail.Size = Vector3.new(0.75,1,0.75)
tail.Parent = character
for _,x in ipairs(character:GetChildren()) do
if x:IsA("Clothing") or x:IsA("Accessory") then
x:Destroy()
end
if x:IsA("Part") then
local mesh = Instance.new("SpecialMesh")
mesh.Parent = x
meshes[x.Name] = mesh
parts[x.Name] = x
end
end
for _,joint in ipairs(character:GetDescendants()) do
if joint:IsA("Motor6D") then
joints[joint.Name] = joint
end
end
meshes["Tail"].MeshId = "http://www.roblox.com/asset/?id=255485601"
meshes["Tail"].TextureId = "http://www.roblox.com/asset/?id=255486143"
local tailJoint = Instance.new("Motor6D")
tailJoint.Name = "Tail"
tailJoint.Parent = parts["Torso"]
tailJoint.Part0 = parts["Torso"]
tailJoint.Part1 = tail
tailJoint.C0 = CFrame.new(-0.052,-0.07,1.72) * CFrame.Angles(math.rad(90),0,0)
tailJoint.C1 = CFrame.new(0.144,-0.173,0.234) * CFrame.Angles(math.rad(63.239),math.rad(-7.752),math.rad(7.726))
joints["Left Shoulder"].C0 = CFrame.new(-0.265,-0.725,-0.655) * CFrame.Angles(0,math.rad(-90),0)
joints["Left Shoulder"].C1 = CFrame.new(0.125,0.775,0.025) * CFrame.Angles(0,math.rad(-90),0)
meshes["Left Arm"].MeshId = "http://www.roblox.com/asset/?id=257307555"
meshes["Left Arm"].TextureId = "http://www.roblox.com/asset/?id=255486143"
meshes["Left Arm"].Offset = Vector3.new(0.025,0.2,0.75)
parts["Left Arm"].Size = Vector3.new(0.5,1.9,0.5)
joints["Right Shoulder"].C0 = CFrame.new(0.525,-0.725,-0.655) * CFrame.Angles(0,math.rad(90),0)
joints["Right Shoulder"].C1 = CFrame.new(0.125,0.775,0.025) * CFrame.Angles(0,math.rad(90),0)
meshes["Right Arm"].MeshId = "http://www.roblox.com/asset/?id=255485626"
meshes["Right Arm"].TextureId = "http://www.roblox.com/asset/?id=255486143"
meshes["Right Arm"].Offset = Vector3.new(-0.05,-0.05,0)
parts["Right Arm"].Size = Vector3.new(0.5,1.9,0.5)
joints["Left Hip"].C0 = CFrame.new(-0.227,-1.012,1.204) * CFrame.Angles(0,math.rad(-90),0)
joints["Left Hip"].C1 = CFrame.new(0.125,0.375,-0.2) * CFrame.Angles(0,math.rad(-90),0)
meshes["Left Leg"].MeshId = "http://www.roblox.com/asset/?id=257316977"
meshes["Left Leg"].TextureId = "http://www.roblox.com/asset/?id=255486143"
meshes["Left Leg"].Offset = Vector3.new(-0.075,-0.1,0)
parts["Left Leg"].Size = Vector3.new(0.5,1.9,0.5)
joints["Right Hip"].C0 = CFrame.new(0.483,-1.012,1.204) * CFrame.Angles(0,math.rad(90),0)
joints["Right Hip"].C1 = CFrame.new(0.125,0.375,-0.2) * CFrame.Angles(0,math.rad(90),0)
meshes["Right Leg"].MeshId = "http://www.roblox.com/asset/?id=257317035"
meshes["Right Leg"].TextureId = "http://www.roblox.com/asset/?id=255486143"
meshes["Right Leg"].Offset = Vector3.new(0.075, -0.1, 0)
parts["Right Leg"].Size = Vector3.new(0.5,1.9,0.5)
meshes["Torso"].MeshId = "http://www.roblox.com/asset/?id=257307222"
meshes["Torso"].TextureId = "http://www.roblox.com/asset/?id=255486143"
parts["Torso"].Size = Vector3.new(1,1.5,3.75)
parts["Head"].Transparency = 1
parts["Head"]:ClearAllChildren()
parts["Head"].ChildAdded:Connect(function(x)
x:Destroy()
end)
character.ChildAdded:Connect(function(x)
if x:IsA("Clothing") or x:IsA("Accessory") then
x:Destroy()
end
end)
humanoid.HipHeight = -0.25