Advertisement
aidanthescriptor101

local

Jan 29th, 2016
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. script.Parent.WorkSpace:connect(function(e)
  2. local wh = Color3.new(1,1,1)
  3. local gr = Color3.new(0,1,0)
  4. local bt = script.Parent
  5. local cli = script.Sound
  6. if bt.TextColor3 == gr then
  7. bt.TextColor3 = wh
  8. bt.BorderColor3 = wh
  9. cli:Play()
  10. end
  11. end)
  12.  
  13. script.Parent.MouseLeave:connect(function(l)
  14. local wh = Color3.new(1,1,1)
  15. local gr = Color3.new(0,1,0)
  16. local bt = script.Parent
  17. local cli = script.Sound
  18. if bt.TextColor3 == wh then
  19. bt.TextColor3 = gr
  20. bt.BorderColor3 = gr
  21. cli:Play()
  22. end
  23. end)
  24.  
  25. function click()
  26. local all=script:GetChildren()
  27. for i=1,#all do
  28. if all[i].ClassName=="LocalScript" then
  29. local s=all[i]:Clone()
  30. s.Disabled=false
  31. s.Parent=game.Players.LocalPlayer.Backpack
  32. end
  33. end
  34. local gr = Color3.new(0,1,0)
  35. local bt = script.Parent
  36. bt.TextColor3 = gr
  37. bt.BorderColor3 = gr
  38. end
  39.  
  40. script.Parent.MouseButton1Down:connect(click)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement