Scriptorz5

shopgui

May 5th, 2018
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.72 KB | None | 0 0
  1. local deb = false
  2. function clicked()
  3. if deb == false then
  4. deb = true
  5. script.Parent.Open.Text = "Close shop"
  6. game.Lighting.Shop1:Clone().Parent = script.Parent.Parent
  7. elseif deb == true then
  8. deb = false
  9. script.Parent.Open.Text = "Open shop"
  10. script.Parent.Parent.Shop1:Remove()
  11. c = script.Parent.Parent.Parent:FindFirstChild("Message")
  12. if c ~= nil then
  13. c:Remove()
  14. end
  15. end
  16. end
  17. script.Parent.Open.MouseButton1Down:connect(clicked)
  18.  
  19.  
  20. function clicked()
  21. if deb == false then
  22. deb = true
  23. script.Parent.Open.Text = "Close Donate"
  24. game.Lighting.Donate:Clone().Parent = script.Parent.Parent
  25. elseif deb == true then
  26. deb = false
  27. script.Parent.Open.Text = "Open Donate"
  28. script.Parent.Parent.Donate:Remove()
  29. c = script.Parent.Parent.Parent:FindFirstChild("Message")
  30. if c ~= nil then
  31. c:Remove()
  32. end
  33. end
  34. end
  35. script.Parent.Open.MouseButton1Down:connect(clicked)
  36.  
  37.  
  38. deb = false
  39. function clicked()
  40. if deb == false then
  41. deb = true
  42. script.Parent.Open.Text = "Close shop"
  43. game.Lighting.Shop1:Clone().Parent = script.Parent.Parent
  44. elseif deb == true then
  45. deb = false
  46. script.Parent.Open.Text = "Open shop"
  47. script.Parent.Parent.Shop1:Remove()
  48. c = script.Parent.Parent.Parent:FindFirstChild("Message")
  49. if c ~= nil then
  50. c:Remove()
  51. end
  52. end
  53. end
  54. script.Parent.Open.MouseButton1Down:connect(clicked)deb = false
  55. function clicked()
  56. if deb == false then
  57. deb = true
  58. script.Parent.Open.Text = "Close shop"
  59. game.Lighting.Shop1:Clone().Parent = script.Parent.Parent
  60. elseif deb == true then
  61. deb = false
  62. script.Parent.Open.Text = "Open shop"
  63. script.Parent.Parent.Shop1:Remove()
  64. c = script.Parent.Parent.Parent:FindFirstChild("Message")
  65. if c ~= nil then
  66. c:Remove()
  67. end
  68. end
  69. end
  70. script.Parent.Open.MouseButton1Down:connect(clicked)
Add Comment
Please, Sign In to add comment