Advertisement
Guest User

Local Controller

a guest
Apr 30th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.53 KB | None | 0 0
  1. local a = 0
  2. script.Parent.Position = UDim2.new(-0.3, 0, 0, 0)
  3. script.Parent.Parent.OpenMenu.Position = UDim2.new(0.01, 0,0.495, 0)
  4. script.Parent.Parent.OpenMenu.Visible = true
  5. script.Parent.Visible = true
  6. script.Parent.List.Visible = false
  7. script.Parent.List.Size = UDim2.new(0,0,0.5,0)
  8. script.Parent.Parent.NewMusic.Position = UDim2.new(0.35, 0, -0.5, 0)
  9. script.Parent.Parent.NewMusic.Visible = true
  10. script.Parent.List.Job.Text = "To rank up in the group, you will need to attend trainings... If you pass the training you will be ranked up. Do not ask or beg staff or you will get demoted! If you are trying to rank up to a medium rank such as Staff Assistant, you will only achive it through hard work and commitment to the group! We only rank the most capable!"
  11.  
  12. for i,v in pairs (script.Parent.List:GetChildren()) do
  13. v.Visible = false
  14. end
  15.  
  16. if script.Parent.Parent.Parent.Name == "PlayerGui" then
  17. if game:GetService("GamePassService"):PlayerHasPass(game.Players.LocalPlayer ,715048120) then
  18. script.Parent.List.Shop.BuyPrem.Visible = false
  19. end
  20. end
  21.  
  22.  
  23. if script.Parent.Parent.Parent.Name == "PlayerGui" then
  24. if game.Players.LocalPlayer:GetRankInGroup(3140585) >= 200 or game.Players.LocalPlayer.Name == "Terasail" or game.Players.LocalPlayer.Name == "Player1" then
  25. script.Parent.Clean.Visible = true
  26. end
  27. end
  28.  
  29. function Format(item)
  30. if a == 0 then
  31. a = 1
  32. if script.Parent.List.Visible == false then
  33. script.Parent.List.Visible = true
  34. script.Parent.List:TweenSize(UDim2.new(0.15,0,0.5,0),"Out", "Quart", 0.75)
  35. wait(0.8)
  36. script.Parent.List[item].Visible = true
  37. else
  38. if script.Parent.List[item].Visible == false then
  39. for i,v in pairs (script.Parent.List:GetChildren()) do
  40. v.Visible = false
  41. end
  42. script.Parent.List:TweenSize(UDim2.new(0,0,0.5,0),"Out", "Quart", 0.75)
  43. wait(0.75)
  44. script.Parent.List:TweenSize(UDim2.new(0.15,0,0.5,0),"Out", "Quart", 0.75)
  45. wait(0.7)
  46. script.Parent.List[item].Visible = true
  47. end
  48. end
  49. wait()
  50. a = 0
  51. end
  52. end
  53.  
  54. script.Parent.Parent.OpenMenu.MouseButton1Down:connect(function()
  55. script.Parent.Parent.OpenMenu:TweenPosition(UDim2.new(-0.1, 0,0.495, 0), "Out", "Quad")
  56. wait(0.75)
  57. script.Parent:TweenPosition(UDim2.new(0, 0, 0, 0), "Out", "Quad")
  58. end)
  59.  
  60. script.Parent.CloseMenu.MouseButton1Down:connect(function()
  61. script.Parent:TweenPosition(UDim2.new(-0.5, 0, 0, 0), "Out", "Quad")
  62. wait(0.75)
  63. script.Parent.Parent.OpenMenu:TweenPosition(UDim2.new(0.01, 0,0.495, 0), "Out", "Quad")
  64. script.Parent.List.Size = UDim2.new(0,0,0.4,0)
  65. script.Parent.List.Visible = false
  66. for i,v in pairs (script.Parent.List:GetChildren()) do
  67. v.Visible = false
  68. end
  69. end)
  70.  
  71. game.ReplicatedStorage.NewMusic.OnClientEvent:connect(function()
  72. script.Parent.Parent.NewMusic:TweenPosition(UDim2.new(0.35, 0, 0.325, 0), "In", "Quad", 2)
  73. end)
  74.  
  75. script.Parent.Parent.NewMusic.Complete.MouseButton1Down:connect(function()
  76. script.Parent.Parent.NewMusic:TweenPosition(UDim2.new(0.35, 0, -0.5, 0), "Out", "Quad", 2)
  77. game.ReplicatedStorage.NewMusic:FireServer(script.Parent.Parent.NewMusic.MusicId.Text)
  78. end)
  79.  
  80. game.ReplicatedStorage.SoundTransmitter.OnClientEvent:connect(function(name)
  81. script.Parent.Select.SongName.Text = name
  82. end)
  83.  
  84. script.Parent.Clean.MouseButton1Down:connect(function()
  85. if script.Parent.Clean.Username.Text ~= "Username" then
  86. for i,v in pairs (game.ServerStorage["Gui + Songs"].Songs:GetChildren()) do
  87. if v.Name == script.Parent.Clean.Username.Text then
  88. v:Destroy()
  89. end
  90. end
  91. script.Parent.Clean.Username.Text = "Username"
  92. end
  93. end)
  94.  
  95. script.Parent.Select.Milkshakes.MouseButton1Down:connect(function()
  96. Format("Milkshakes")
  97. end)
  98.  
  99. script.Parent.Select.Cakepops.MouseButton1Down:connect(function()
  100. Format("Cakepops")
  101. end)
  102.  
  103. script.Parent.Select.IceCream.MouseButton1Down:connect(function()
  104. Format("IceCream")
  105. end)
  106.  
  107. script.Parent.Select.Gamepass.MouseButton1Down:connect(function()
  108. Format("Shop")
  109. end)
  110.  
  111. script.Parent.Select.Credits.MouseButton1Down:connect(function()
  112. Format("Credits")
  113. end)
  114.  
  115. script.Parent.Select.Job.MouseButton1Down:connect(function()
  116. Format("Job")
  117. end)
  118.  
  119. script.Parent.Select.Food.MouseButton1Down:connect(function()
  120. --Format("Food")
  121. end)
  122.  
  123. script.Parent.List.Shop.BuyPrem.MouseButton1Down:connect(function()
  124. game:GetService("MarketplaceService"):PromptPurchase(game.Players.LocalPlayer, 715048120)
  125. end)
  126.  
  127. script.Parent.List.Shop.BuySong.MouseButton1Down:connect(function()
  128. game:GetService("MarketplaceService"):PromptProductPurchase(game.Players.LocalPlayer, 55596433)
  129. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement