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

May you help me fix the animation script?

Asked by 10 years ago

Here is the script :

01player = game.Players.LocalPlayer
02mouse = player:GetMouse()
03wait()
04anim={}
05anim.a =player.Character.Humanoid:LoadAnimation(script.Dance)
06 
07mouse.KeyDown:connect(function(key)
08    if key == "c" then
09 
10        anim.a:Play()
11        wait(5)
12        anim.a:Stop()
13 
14   elseif key == "v" then
15x = player.Character.Humanoid:LoadAnimation(script.Dub)
View all 33 lines...

the first problem is when player dies the script is not active and he needs to reset several times to get it work.

the second problem is that when people spam with some button the animation don't stop and he needs to reset what making again the first problem.

Thanks for all the helpers

Answer this question