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
 

Only works after disabling and enabling

Previous Thread :: Next Thread 
StealthKing95 is online. StealthKing95
Joined: 13 Dec 2008
Total Posts: 4263
04 Nov 2012 02:09 PM
I have a localscript which doesnt output anything, but when I disable it, and then re-enable it, it works!

heres the code, its too long to read in black text, so heres the code with coloured syntax:

h t t p : / / p a s t e b i n . c o m / y n 9 E g v h w
Report Abuse
AgentFirefox is not online. AgentFirefox
Top 100 Poster
Joined: 20 Jun 2008
Total Posts: 22404
04 Nov 2012 02:20 PM
Try waiting a second or two at the beginning of the script.
Report Abuse
StealthKing95 is online. StealthKing95
Joined: 13 Dec 2008
Total Posts: 4263
04 Nov 2012 02:24 PM
doesnt the repeat wait() until game.Players.LocalPlayer.Character
do it?
Report Abuse
Woodstauk4 is not online. Woodstauk4
Joined: 27 Dec 2010
Total Posts: 3061
04 Nov 2012 02:26 PM
repeat wait(.03)until game.Players.LocalPlayer.Character:FindFirstChild("Humanoid")
Report Abuse
mamaguy is not online. mamaguy
Joined: 07 Oct 2010
Total Posts: 7073
04 Nov 2012 02:28 PM
>wait(.03)
wait is 0.03...
Report Abuse
Woodstauk4 is not online. Woodstauk4
Joined: 27 Dec 2010
Total Posts: 3061
04 Nov 2012 02:29 PM
wait() in a local script is determined by the local player, just do that so people don't glitch your game. Character is always a property of Player, so test to see if something is inside the character. Just try my line >_>
Report Abuse
StealthKing95 is online. StealthKing95
Joined: 13 Dec 2008
Total Posts: 4263
06 Nov 2012 01:43 PM
@Woodstauk4

No effect.
Report Abuse
StealthKing95 is online. StealthKing95
Joined: 13 Dec 2008
Total Posts: 4263
06 Nov 2012 01:48 PM
Waiting 2 seconds helped though.

Oh localscripts, why are you so odd.
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