Hey everyone, this is my first post here so forgive me if I don’t quite cover everything I need to. I’ve been trying to get into animation, and in doing so I’ve designed this weird little mech quadruped thing as a custom rig. The animation that I’ve made for it plays fine in the editor:
But in practice, when I run the following code:
local TripodRig = workspace:WaitForChild("TripodRig1")
local Animation = Instance.new("Animation")
Animation.AnimationId = "rbxassetid://82213767686978"
Animation.Parent = workspace
local Track = TripodRig.Torso.HumanoidRootPart.AnimationController.Animator:LoadAnimation(Animation)
Track.Priority = Enum.AnimationPriority.Movement
script.Parent.ProximityPrompt.Triggered:Connect(function()
Track:Play()
Track.Looped = false
Track.Ended:Connect(function()
local CurrentPosition = TripodRig:GetPivot().Position
local NewPosition = Vector3.new(CurrentPosition.X - 4, CurrentPosition.Y, CurrentPosition.Z)
TripodRig:MoveTo(NewPosition)
end)
end)
I get the following results:
I honestly feel like I’m going a bit crazy, I’ve tried looking through both Roblox documentation and trying solutions from people who have similar problems on the forums, but alas to no avail. Help would be greatly appreciated, and I’d be forever in your debt.
Additionally, since I figure it might help, the directory of the explorer model can be seen here aswell. Ignore the incorrect usage of the term “Tripod” I never bothered to change it from an initially tripedal design.