Advertisement
Guest User

Flashlight Script [DOES IT EVEN WORK?]

a guest
Aug 18th, 2017
1,387
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.45 KB | None | 0 0
  1. local Pack = game.StarterPack
  2. local Tool = Pack:WaitForChild("Flashlight")
  3. local LightPart = Tool:WaitForChild("Light")
  4. local Light = LightPart:WaitForChild("PointLight")
  5. local plr = game.Players.LocalPlayer
  6. local Mouse = plr:GetMouse()
  7. Mouse.Button1Down:connect(function()
  8.     if Light.Enabled == false then
  9.      LightPart.Material = ("Neon")
  10.      Light.Enabled = true
  11.     else
  12.      LightPart.Material = ("Smooth Plastic")
  13.      Light.Enabled = false
  14. end
  15. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement