local Lighting = game:GetService('Lighting") local Player = game.Players.LocalPlayer if Lighting.TimeOfDay == "06:20:20" then script.Parent.TextButton.Visible = true wait(1) script.Parent.TextButton.Visible = false end
This is my script but it doesn't seem to work. Help, please?
This is what you used for getting the service of lighting: 'Lighting". You didn't use " for an opening quotation.
local Lighting = game:GetService("Lighting") local Player = game.Players.LocalPlayer if Lighting.TimeOfDay == "06:20:20" then script.Parent.TextButton.Visible = true wait(1) script.Parent.TextButton.Visible = false end
try putting it in a while loop and setting the condition as lighting.timeofday == "6:20:20" then