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

How to force animation immediately?

Asked by 6 years ago

How can i force the animation immediately ? What i want is when i equip a tool to change the animations and play them immediately, i managed to change the animations but the issue is that in order for the animations to play i must move

this is the code that im using(note out that i made some changes to the 'animate' script) :

wait()
local tool = script.Parent

tool.Equipped:Connect(function()
    local idle = "rbxassetid://2639300146"
    local running = "rbxassetid://2640888470"
    local anim = script.Parent.Parent:WaitForChild("Animate")
    anim.idle.Animation1.AnimationId = idle
    anim.run.RunAnim.AnimationId = running
end)
0
is that the full script? DevSersponge 5 — 6y
0
@DevSersponge I can give show some changes i did to the 'animate' script but overall, yes that's the entire script for now richboifexekappa 89 — 6y

Answer this question