Advertisement
VoidScriptPlayer

Untitled

May 18th, 2019
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --This is my first time scripting something! :D
  2. --It's good for horror games too!
  3.  
  4. local mouse = game.Players.LocalPlayer:GetMouse()
  5. function Light()
  6. player = game.Players.LocalPlayer
  7. playerChar = player.Character
  8. playerLight = playerChar.Torso:FindFirstChild("Light")
  9. if playerLight then
  10. playerLight:Destroy()
  11. else
  12. light = Instance.new("SurfaceLight",playerChar:FindFirstChild("Torso"))
  13. light.Name = "Light"
  14. light.Range = 30 -- Change to distance ofthe Light.
  15. light.Brightness = 35 -- Change to how much.
  16. light.Shadows = true -- Change it to True/False.
  17.  
  18.  
  19. local play = Instance.new("Sound",playerChar:FindFirstChild("Head"))
  20. play.SoundId = "http://www.roblox.com/asset/?id=2491120681" --Change the "198914875" to any sound ID you want.
  21. play:Play()
  22.  
  23. end
  24. end
  25. mouse.KeyDown:connect(function(key)
  26. key = key:lower()
  27. if key == "f" then -- Change this to any Keys but I reccomand leaving it as [F] key.
  28. Light()
  29. end
  30. end)
  31.  
  32. -- Made by iKennyHuynh
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement