Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

The lights not working properly?

while true do
	wait(1)
	print("s")
	if game.Lighting.ClockTime > 18 or game.Lighting.ClockTime < 7.5 then
		script.Parent.SpotLight.Enabled = true
		print("b")
	elseif game.Lighting.ClockTime < 18 or game.Lighting.ClockTime > 7.5 then
		script.Parent.SpotLight.Enabled = false
		print("c")
	end
end

the output is s c the clock time 19 the spotlight not opened the script is in workspace ( in a part )

2 answers

hey you! have you ever heard of enes? if you are in trouble, better call enes!

1 comment

0

thats not an answer, kinda like an advertisement or something

Maybe try putting the script into ServerScriptService and it may work

This discussion is preserved as it was. New answers, comments, and votes are closed.