|
| 21 Apr 2014 11:50 AM |
localplayer = game.Players.LocalPlayer char = localplayer.Character game.Workspace.char.Humanoid.Running:connect(function(speed) if speed > 0 then print("Player is running") game.Workspace.char.WalkingAnimation.Disabled = false
else print("Player has stopped") game.Workspace.char.WalkingAnimation.Disabled = true end end)
I want it so if your moving (Walkspeed>0) then make the script disabled from your char to false, else true. |
|
|
| Report Abuse |
|
|
|
| 21 Apr 2014 11:51 AM |
If this is a local script, it looks fine at first glance.
Alt. of Jetta765214 |
|
|
| Report Abuse |
|
|
|
| 21 Apr 2014 11:53 AM |
| This is in a localscript, yet it's not working.. |
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 21 Apr 2014 12:00 PM |
char is not a valid child of Workspace
would be the output error. Now try it.
char.Humanoid.Running:connect(function(speed) if speed > 0 then print("Player is running") char.WalkingAnimation.Disabled = false
else print("Player has stopped") char.WalkingAnimation.Disabled = true end end)
Alt. of Jetta765214 |
|
|
| Report Abuse |
|
|
|
| 21 Apr 2014 12:04 PM |
| Also this is in StarterGui |
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
| |
|