I am trying to get my animations to work!
I went to the Developer hub and it was helping me with scripting the animations I needed for the game. It was two ROBLOX animations and an animation a friend of mine made. When I get into the game to test the animations, the run and jump and fall animations (The run, jump and fall animations are the ones I was trying to script into the game) are all just stiff.
I tried everything I knew how to do, but nothing helped.
Video of problem:
robloxapp-20200410-1438380.wmv (2.0 MB)
The script:
local function onCharacterAdded(character)
local humanoid = character:WaitForChild("Humanoid")
for _, playingTracks in pairs(humanoid:GetPlayingAnimationTracks()) do
playingTracks:Stop(0)
end
local animateScript = character:WaitForChild("Animate")
animateScript.run.RunAnim.AnimationId = "rbxassetid://4879170299"
animateScript.jump.JumpAnim.AnimationId = "rbxassetid://658832070"
animateScript.fall.FallAnim.AnimationId = "rbxassetid://658831500"
end
local function onPlayerAdded(player)
player.CharacterAppearanceLoaded:Connect(onCharacterAdded)
end
Players.PlayerAdded:Connect(onPlayerAdded)```