Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local mouse = game.Players.LocalPlayer:GetMouse()
- function Light()
- local player = game.Players.LocalPlayer
- local playerChar = player.Character
- local playerLight = playerChar.Torso:FindFirstChild("Light")
- local playerSound = playerChar.Torso:FindFirstChild("Sound")
- if playerLight then
- playerSound:Destroy()
- playerLight:Destroy()
- else
- light = Instance.new("SpotLight",playerChar:FindFirstChild("Torso"))
- light.Name = "Light"
- light.Range = 55 --- change to any
- light.Brightness = 20 --- change to any
- light.Shadows = true
- local play = Instance.new("Sound",playerChar:FindFirstChild("Torso"))
- play.SoundId = "http://www.roblox.com/asset/?id=276495837" --- Change to whatever sound you want.
- play:Play()
- end
- end
- mouse.KeyDown:connect(function(key)
- key = key:lower()
- if key == "f" then ---Change to any letter you want. ex:(a,s,d,f,g,h,j,y,q,e,r,y,u,i,o,z,c,v,b,n,n,m,)
- Light()
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement