Hi, I need to make a Lantern with Battery. When you use the flashlight for 60 seconds turn off.
and to recharge when 10 seconds pass
1] I created a tool and renamed "Lantern"
2] Into "Lantern" I created a block called "Handle"
3] Into "Handle" (Block) I created a SpotLight called "Lightning"
4] Into "Handle" (Block) I created a LocalScript
MY QUESTION How I can make this script?
NOTE: I also need to do that when I clicked Turn on and off.
local location = script.Parent.Parent.Parent.Lantern
local Light = location.Handle.Lightning
local V = 60
-- Function On()
-- for i = V, 0, -1 do
-- ???
-- end
-- Light.Enabled = true
--
-- end
-- Function Off()
-- ???
-- Light.Enabled = false
-- end
