Advertisement
HowToRoblox

FlashlightHandler

Mar 16th, 2021
1,793
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.18 KB | None | 0 0
  1. local tool = script.Parent
  2.  
  3. local lightSource = tool.LightSource:WaitForChild("SpotLight")
  4.  
  5.  
  6. tool.Activated:Connect(function()
  7.    
  8.     lightSource.Enabled = not lightSource.Enabled
  9. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement