If you would like to know my script, here it is.
1 | local tempLabel = game.Workspace.TempScreen.SurfaceGui.Temp |
2 | local tempVal = game.Workspace.TempScreen.SurfaceGui.TempVal |
3 | while game.Workspace.CoreOnline.Value = = true do |
4 | wait( 0.6 ) |
5 | tempLabel.Text = tempVal.Value |
6 | end |
Also, how do I make a click detector that also respond to mobile clicks?
Thanks!
Click detector:
1 | Click.MouseClick:Connect(Function() |
2 | —You don’t need to know what’s inside because that’s custom—- |
3 | end ) |
Okay so the script while statement will break once game.Workspace.CoreOnline.Value isnt true anymore, so what are you going is:
1 | local tempLabel = game.Workspace.TempScreen.SurfaceGui.Temp |
2 | local tempVal = game.Workspace.TempScreen.SurfaceGui.TempVal |
3 | while task.wait( 0.6 ) do |
4 | if game.Worksapce.CoreOnline.Value = = true then |
5 | tempLabel.Text = tempVal.Value |
6 | end |
7 | end |
This loops every 0.6 seconds and if CoreOnline is true then it updates the temp label text. Ok bye