Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Pack = game.StarterPack
- local Tool = Pack:WaitForChild("Flashlight")
- local LightPart = Tool:WaitForChild("Light")
- local Light = LightPart:WaitForChild("PointLight")
- local plr = game.Players.LocalPlayer
- local Mouse = plr:GetMouse()
- Mouse.Button1Down:connect(function()
- if Light.Enabled == false then
- LightPart.Material = ("Neon")
- Light.Enabled = true
- else
- LightPart.Material = ("Smooth Plastic")
- Light.Enabled = false
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement