Advertisement
Guest User

Untitled

a guest
Nov 20th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. -----[SETTINGS]-----
  2. LightKey = "f" -- Set to whatever key you want the light to be.
  3. Light = game.StarterGui.InteractionMenu -- Set to your light object.
  4. --------------------
  5.  
  6. LocalPlayer = game.Players.LocalPlayer
  7. Mouse = LocalPlayer:GetMouse()
  8. On = false
  9. if Light.Enabled == true then
  10. On = true
  11. end
  12.  
  13. Mouse.KeyDown:connect(function (key)
  14. if key == LightKey then
  15. if On == true then
  16. Light.Enabled = false
  17. On = false
  18. elseif On == false then
  19. Light.Enabled = true
  20. On = true
  21. end
  22. end
  23. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement