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: I can't loop a script?!?

Previous Thread :: Next Thread 
Stiltonot is not online. Stiltonot
Joined: 18 Feb 2017
Total Posts: 40
10 Jul 2017 05:38 AM
When I test this loop on my studio,It Freeze the game and ask me to break my script or kill It.

I am making a Clock Gui so player can see the time.
Don't mind the capital letter,I was writing,Not pasting.

local clock = game.Lighting.TimeOfDay

While true do
script.Parent.Text = clock
end

(script.Parent Is The TextLabel)
Report Abuse
Stiltonot is not online. Stiltonot
Joined: 18 Feb 2017
Total Posts: 40
10 Jul 2017 05:41 AM
bump?
Report Abuse
Camper0008 is not online. Camper0008
Joined: 07 Apr 2013
Total Posts: 2504
10 Jul 2017 05:49 AM
add a wait()


➟ When life gives you lemons, make apple-juice to assert dominance.
Report Abuse
Stiltonot is not online. Stiltonot
Joined: 18 Feb 2017
Total Posts: 40
10 Jul 2017 05:53 AM
Thanks,It work!
Report Abuse
Godlydeathdragon is not online. Godlydeathdragon
Joined: 08 Jun 2012
Total Posts: 50
10 Jul 2017 05:53 AM
add a wait somewhere cause if you don't then the script could freeze your game due to the infinite loop
Report Abuse
Camper0008 is not online. Camper0008
Joined: 07 Apr 2013
Total Posts: 2504
10 Jul 2017 05:54 AM
already answered


➟ When life gives you lemons, make apple-juice to assert dominance.
Report Abuse
Stiltonot is not online. Stiltonot
Joined: 18 Feb 2017
Total Posts: 40
10 Jul 2017 05:57 AM
Btw I've been testing Roblox Studio.
Even :Destroy() can be bypassed by print :/

script:Destroy()
print("I passed the destroy script")
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