hecknes

button Press laser

Dec 10th, 2018
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. wait(1)
  2.  
  3. local button = script.Parent
  4.  
  5. local CD = Instance.new("ClickDetector",button)
  6.  
  7. local sound = Instance.new("Sound",workspace)
  8. sound.SoundId = ("rbxassetid://452267918")
  9. sound.Volume = 10
  10.  
  11. local sound2 = Instance.new("Sound",workspace)
  12. sound2.SoundId = ("rbxassetid://1846550529")
  13. sound2.Volume = 10
  14.  
  15. en = true
  16. CD.MouseClick:connect(function()
  17. if en == false then return end
  18. en = false
  19. button.Position = Vector3.new(6, 0, 18)
  20. button.Material = ("Neon")
  21. sound:Play()
  22. wait(1)
  23. button.Position = Vector3.new(6, 0.5, 18)
  24. wait(1)
  25. local TweenService = game:GetService("TweenService")
  26.  
  27. local tweeninfo = TweenInfo.new(1,Enum.EasingStyle.Elastic,Enum.EasingDirection.InOut,0,true,1)
  28.  
  29. local properties = {Color = Color3.fromRGB(9,137,207), Size = Vector3.new(4,50,4)}
  30.  
  31. local Tween = TweenService:Create(button,tweeninfo,properties)
  32. sound2:Play()
  33. Tween:Play()
  34. wait(4)
  35. button.Material = ("Plastic")
  36.  
  37. wait(5)
  38. en = true
  39. end)
Advertisement
Add Comment
Please, Sign In to add comment