I made a Script for when you push Ctrl, it Inserts a PointLight into your Torso. The only problem is, you can spam Insert it, so you get a solid light, which isn't the best for my game. Can anyone make it so when you hold it, the PointLight stays on until then?
mouse = game.Players.LocalPlayer:GetMouse()
mouse.KeyDown:connect(function(key)
if string.byte(key) == 50 then
L = Instance.new("SpotLight")
L.Brightness = 8
L.Range = 25
wait()
L.Parent = game.Players.LocalPlayer.Character["Torso"]
wait(2)
L:remove()
script.Disabled = true
wait(5)
script.Disabled = false
end
end)
