Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -----[SETTINGS]-----
- LightKey = "f" -- Set to whatever key you want the light to be.
- Light = game.StarterGui.InteractionMenu -- Set to your light object.
- --------------------
- LocalPlayer = game.Players.LocalPlayer
- Mouse = LocalPlayer:GetMouse()
- On = false
- if Light.Enabled == true then
- On = true
- end
- Mouse.KeyDown:connect(function (key)
- if key == LightKey then
- if On == true then
- Light.Enabled = false
- On = false
- elseif On == false then
- Light.Enabled = true
- On = true
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement