Advertisement
DenisPitu06_YT

Low battery Flashlight Script

Mar 30th, 2019
1,193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. --This is very Good For horror Games So You Can Use It [This is for Void Script Builder] So Thank You for reading This!
  2.  
  3. local mouse = game.Players.LocalPlayer:GetMouse()
  4. function Light()
  5. player = game.Players.LocalPlayer
  6. playerChar = player.Character
  7. playerLight = playerChar.Torso:FindFirstChild("Light")
  8. if playerLight then
  9. playerLight:Destroy()
  10. else
  11. light = Instance.new("SurfaceLight",playerChar:FindFirstChild("Torso"))
  12. light.Name = "Light"
  13. light.Range = 10 -- Change to distance ofthe Light.
  14. light.Brightness = 15 -- Change to how much.
  15. light.Shadows = true -- Change it to True/False.
  16.  
  17.  
  18. local play = Instance.new("Sound",playerChar:FindFirstChild("Head"))
  19. play.SoundId = "http://www.roblox.com/asset/?id=" --Change the "198914875" to any sound ID you want.
  20. play:Play()
  21.  
  22. end
  23. end
  24. mouse.KeyDown:connect(function(key)
  25. key = key:lower()
  26. if key == "z" then
  27. Light()
  28. end
  29. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement