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 » Scripters
Home Search
 

Re: this works in test but not in game

Previous Thread :: Next Thread 
Uzil is not online. Uzil
Joined: 02 Jun 2014
Total Posts: 366
06 Mar 2016 09:34 AM
this is in a localscript




player = game.Players.LocalPlayer
tool = script.Parent;

function onButton1Down()
wait(.5)
player.Character.Humanoid.WalkSpeed = 0
player.Character.Humanoid.JumpPower = 0
end

function onEquippedLocal(mouse)
mouse.Button1Down:connect(function() onButton1Down(mouse) end)
end

tool.Equipped:connect(onEquippedLocal)
Report Abuse
Uzil is not online. Uzil
Joined: 02 Jun 2014
Total Posts: 366
06 Mar 2016 10:09 AM
why won't this work?
Report Abuse
yung_one is not online. yung_one
Joined: 26 Feb 2016
Total Posts: 19
06 Mar 2016 10:24 AM
repeat wait() until game.Players.LocalPlayer
Report Abuse
Uzil is not online. Uzil
Joined: 02 Jun 2014
Total Posts: 366
06 Mar 2016 11:35 AM
thanks.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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