switch = game.Workspace.Lamp.Union.PointLight
timer = 0
while switch.Enabled == true do
wait(1)
timer = timer + 1
print(timer)
if timer == 10 then
print("is ten")
end
end
Kinda new 2 scripting, sorry.
switch = game.Workspace.Lamp.Union.PointLight
timer = 0
while switch.Enabled == true do
wait(1)
timer = timer + 1
print(timer)
if timer == 10 then
print("is ten")
end
end
Kinda new 2 scripting, sorry.
this is a local script which is located in StarterGui
local PointLight = game.Workspace.Lamp.Union.PointLight
local battery = 60
local lamp = game.Workspace.Lamp.Union
while true do
wait()
if PointLight.Enabled == true then
battery = battery - 1
print(battery)
wait(1)
end
end
Simple solution.
This discussion is preserved as it was. New answers, comments, and votes are closed.
2 comments
what isn't working
it won't print anything