Hi! i am modifying a script and i want to know what is wrong with it.. can someone help me?
The script (not mine, credit to: G2_funny)
01 | script.Parent.Activated:Connect( function () |
02 | if script.Parent.Text = = "Sprint" then |
03 | script.Parent.Text = "Walk" |
04 | game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 30 |
05 | game.Players.LocalPlayer.Character [ "Garbage Bin" ] .Handle.Transparency = 0 |
10 | script.Parent.Text = "Sprint" |
11 | game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 16 |
12 | game.Players.LocalPlayer.Character [ "Garbage Bin" ] .Handle.Transparency = 1 |
13 | game.Players.LocalPlayer.Character.Animate.idle.Animation 1. Character.Animate.walk.WalkAnim.AnimationId = ( 'rbxassetid://5516799190' ) |
The problem is its the animation is not unloading (Stopping).