So here's what I had for my flashlight.
light = Script.Parent.Handle.SpotLight
num = 1
Mouse = game.Players.LocalPlayer:GetMouse()
function onClick()
if num == 1 then
light.Enabled = true
num = 2
else
light.Enabled = false
num = 1
end
end
Script.Parent.Equipped:connect(function()
Mouse.Button1Down:connect(onClick)
end)
I don't know how to fix this since it isn't working. Any ideas?

1 comment
Roblox has a flashlight? I didn't know that. Thanks!