Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --This is my first time scripting something! :D
- --It's good for horror games too!
- local mouse = game.Players.LocalPlayer:GetMouse()
- function Light()
- player = game.Players.LocalPlayer
- playerChar = player.Character
- playerLight = playerChar.Torso:FindFirstChild("Light")
- if playerLight then
- playerLight:Destroy()
- else
- light = Instance.new("SurfaceLight",playerChar:FindFirstChild("Torso"))
- light.Name = "Light"
- light.Range = 30 -- Change to distance ofthe Light.
- light.Brightness = 35 -- Change to how much.
- light.Shadows = true -- Change it to True/False.
- local play = Instance.new("Sound",playerChar:FindFirstChild("Head"))
- play.SoundId = "http://www.roblox.com/asset/?id=198914875" --Change the "198914875" to any sound ID you want.
- play:Play()
- end
- end
- mouse.KeyDown:connect(function(key)
- key = key:lower()
- if key == "f" then -- Change this to any Keys but I reccomand leaving it as [F] key.
- Light()
- end
- end)
- -- Made by iKennyHuynh
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement