Here is what I tried
while true do script.Parent.TextBox.Text = game.Lighting.TimeOfDay wait(1) print("script true") end
note that it gives back no errors, but it still doesn't print the "script true" so it means the loop doesn't even go that far. Can anyone help me solve this?
It's possible that the script is trying to run before the TextBox loads, or that it can't find the Lighting service (less likely). Try this:
local textBox = script.Parent:WaitForChild("TextBox"); local lighting = game:GetService("Lighting"); while true do textBox.Text = lighting.TimeOfDay wait(1) print("script true") end