boshadog

Untitled

Sep 29th, 2015
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. plr = game.Players.LocalPlayer
  2. if not plr then
  3. return
  4. end
  5. mouse = plr:GetMouse()
  6. function epress(key)
  7. if key == "e" then
  8. sk = Instance.new("Sky", game.Lighting)
  9. sk.SkyboxBk = "rbxassetid://96705493"
  10. sk.SkyboxDn = "rbxassetid://96705493"
  11. sk.SkyboxFt = "rbxassetid://96705493"
  12. sk.SkyboxLf = "rbxassetid://96705493"
  13. sk.SkyboxRt = "rbxassetid://96705493"
  14. sk.SkyboxUp = "rbxassetid://96705493"
  15. s = Instance.new("Sound", game.Workspace)
  16. s.SoundId = "rbxassetid://130828985"
  17. s.Looped = true
  18. s.PlayOnRemove = true
  19. s:Play()
  20. end
  21. end
  22. function dpress(key)
  23. if key == "d" then
  24. sk:remove()
  25. s:remove()
  26. end
  27. end
  28. mouse.KeyDown:connect(epress)
  29. mouse.KeyDown:connect(dpress)
Add Comment
Please, Sign In to add comment