Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Diffrent animation playing on a button click. How can I fix it?

Asked by 4 years ago

Hey! I just exported an animation, I put the id in the script, but it's playing diffrent animation, I tried few times. How can I fix it?

Script:

script.Parent.MouseButton1Click:connect(function() local Player = game.Players.LocalPlayer local Character = Player.Character local Humanoid = Character:WaitForChild("Humanoid")

local Animation = Instance.new("Animation") Animation.AnimationId = "rbxassetid://4527406924"

local Track = Humanoid:LoadAnimation(Animation) Track:Play() Track:Stop() print("Animation") end)

Answer this question