generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: This won't work.

Previous Thread :: Next Thread 
pio22raqr7 is not online. pio22raqr7
Joined: 11 Jul 2012
Total Posts: 420
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
Jetta765214 is not online. Jetta765214
Joined: 22 Oct 2008
Total Posts: 1855
21 Apr 2014 11:51 AM
If this is a local script, it looks fine at first glance.

Alt. of Jetta765214
Report Abuse
pio22raqr7 is not online. pio22raqr7
Joined: 11 Jul 2012
Total Posts: 420
21 Apr 2014 11:53 AM
This is in a localscript, yet it's not working..
Report Abuse
pio22raqr7 is not online. pio22raqr7
Joined: 11 Jul 2012
Total Posts: 420
21 Apr 2014 11:55 AM
Bump
Report Abuse
pio22raqr7 is not online. pio22raqr7
Joined: 11 Jul 2012
Total Posts: 420
21 Apr 2014 11:58 AM
I really need help.
Report Abuse
Jetta765214 is not online. Jetta765214
Joined: 22 Oct 2008
Total Posts: 1855
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
pio22raqr7 is not online. pio22raqr7
Joined: 11 Jul 2012
Total Posts: 420
21 Apr 2014 12:04 PM
Also this is in StarterGui
Report Abuse
pio22raqr7 is not online. pio22raqr7
Joined: 11 Jul 2012
Total Posts: 420
21 Apr 2014 12:10 PM
Bump
Report Abuse
pio22raqr7 is not online. pio22raqr7
Joined: 11 Jul 2012
Total Posts: 420
21 Apr 2014 12:11 PM
Help
Report Abuse
pio22raqr7 is not online. pio22raqr7
Joined: 11 Jul 2012
Total Posts: 420
21 Apr 2014 12:15 PM
Help :/
Report Abuse
pio22raqr7 is not online. pio22raqr7
Joined: 11 Jul 2012
Total Posts: 420
21 Apr 2014 12:17 PM
Help
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image