local timer = script.Parent.Timer.Text
local battery = 60
while true do
wait()
if PointLight.Enabled == true then
battery = battery - 1
print(battery)
wait(1)
timer = battery
end
end
hep.
local timer = script.Parent.Timer.Text
local battery = 60
while true do
wait()
if PointLight.Enabled == true then
battery = battery - 1
print(battery)
wait(1)
timer = battery
end
end
hep.
This discussion is preserved as it was. New answers, comments, and votes are closed.
2 comments
try doing local timer = script.Parent.Timer then timer.Text = battery
Thanks, Works.