I've been trying to animate a custom model , i've connected it with motor 6d and all that stuff , i'm able to make it play if it's not welded to the character , i think the problem is the weld script i use , since first i unanchor all the parts before welding them to the torso , and then i weld them , any idea of what i'm doing wrong?
Animation script: Player = game.Players.LocalPlayer mouse = Player:GetMouse() function onKeyDown(key)
if key == "e" then local animController = Instance.new("AnimationController") animController.Parent = Player.Character.Owl local Animation = script.Animation
local Current = animController:LoadAnimation(Animation) Current:Play()
end
end mouse.KeyDown:connect(onKeyDown)
Weld script : local prev local parts = script.Parent:GetChildren()
for i = 1,#parts do if (parts[i].className == "Part") or (parts[i].className == "WedgePart") or (parts[i].className == "UnionOperation") then if (prev ~= nil)then local weld = Instance.new("Weld") weld.Part0 = prev weld.Part1 = parts[i] weld.C0 = prev.CFrame:inverse() weld.C1 = parts[i].CFrame:inverse() weld.Parent = prev end prev = parts[i] end end
I've fixed it , the problem was the weld script , i tried animating something that was welded , i just connected with with Motor6D , and everything worked , TY everyone anyway.