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
|
  |
| Joined: 18 Feb 2017 |
| Total Posts: 40 |
|
| |
|
|
| 10 Jul 2017 05:49 AM |
add a wait()
➟ When life gives you lemons, make apple-juice to assert dominance. |
|
|
| Report Abuse |
|
|
Stiltonot
|
  |
| Joined: 18 Feb 2017 |
| Total Posts: 40 |
|
| |
|
|
| 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 |
|
|
|
| 10 Jul 2017 05:54 AM |
already answered
➟ When life gives you lemons, make apple-juice to assert dominance. |
|
|
| Report Abuse |
|
|
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 |
|
|