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
 

What's wrong with this gui?

Previous Thread :: Next Thread 
awesomeM3 is not online. awesomeM3
Joined: 23 Aug 2011
Total Posts: 1992
05 Dec 2012 10:07 AM
function onButtonClicked()
script.Parent.Parent.Parent.Parent.Character.Humanoid.WalkSpeed 25
end

script.Parent.MouseButton1Click:connect(onButtonClicked)


It's a gui to make you run when you click it (yes i put it in starter gui) That's the script :).

Help on this please???

Do i have to change the humanoid????

Please help

This isn't a free model.
Report Abuse
leolion113 is not online. leolion113
Joined: 11 Oct 2008
Total Posts: 3336
05 Dec 2012 10:13 AM
May I suggest you use replace the script you're using with a local script.


The fix to your script:
function onButtonClicked()
script.Parent.Parent.Parent.Parent.Character.Humanoid.WalkSpeed = 25
end
script.Parent.MouseButton1Click:connect(onButtonClicked)


LocalScript version:
function onButtonClicked()
game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 25
end
script.Parent.MouseButton1Click:connect(onButtonClicked)

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