daily pastebin goal
77%
SHARE
TWEET

Untitled

a guest Oct 12th, 2017 49 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local isOn = true
  2.  
  3. function on()
  4.  script.Parent.Parent.Parent.Signal.Symbol.Transparency = 0
  5.  script.Parent.Parent.Parent.Signal.Union.Transparency = 0.2
  6.  script.Parent.Parent.Parent.Spotlight.Light.PointLight.Enabled = true
  7.  script.Parent.Parent.Parent.Spotlight.Light.Material = "Neon"
  8.  script.Parent.Sound:Play()
  9.  wait(10)
  10.  isOn = true
  11. end
  12.  
  13. function off()
  14.  isOn = false
  15.  script.Parent.Parent.Parent.Signal.Symbol.Transparency = 1
  16.  script.Parent.Parent.Parent.Signal.Union.Transparency = 1
  17.  script.Parent.Parent.Parent.Spotlight.Light.PointLight.Enabled = false
  18.  script.Parent.Parent.Parent.Spotlight.Light.Material = "Ice"
  19. end
  20.  
  21. function onClicked()
  22.  
  23.  if isOn == true then off() else on() end
  24.  
  25. end
  26.  
  27. script.Parent.ClickDetector.MouseClick:connect(onClicked)
  28.  
  29. on()
RAW Paste Data
Top