Advertisement
probanana

MAge tycoon crate grabber

Mar 19th, 2023
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.55 KB | None | 0 0
  1. local CrateStealer = Instance.new("ScreenGui")
  2. local Frame = Instance.new("Frame")
  3. local Crates = Instance.new("Frame")
  4. local _1 = Instance.new("TextButton")
  5. local _2 = Instance.new("TextButton")
  6. local _3 = Instance.new("TextButton")
  7. local _4 = Instance.new("TextButton")
  8. local _5 = Instance.new("TextButton")
  9. local CrateChooser = Instance.new("TextButton")
  10. local Grab = Instance.new("TextButton")
  11. local Choice = nil
  12. local function CCrate()
  13. local Crate = game.Workspace:GetChildren()
  14. local Plr = game.Players.LocalPlayer.Character.HumanoidRootPart
  15. if Choice == 1 then
  16. for i,v in pairs(Crate) do
  17. if v.Name == "Clover" then
  18. v.CFrame = Plr.CFrame
  19. elseif v.Name == "XP" then
  20. v.CFrame = Plr.CFrame
  21. elseif v.Name == "Gem" then
  22. v.CFrame = Plr.CFrame
  23. elseif v.Name == "Basic" then
  24. v.CFrame = Plr.CFrame
  25. end
  26. end
  27. elseif Choice == 2 then
  28. for i,v in pairs(Crate) do
  29. if v.Name == "XP" then
  30. v.CFrame = Plr.CFrame
  31. end
  32. end
  33. elseif Choice == 3 then
  34. for i,v in pairs(Crate) do
  35. if v.Name == "Gem" then
  36. v.CFrame = Plr.CFrame
  37. end
  38. end
  39. elseif Choice == 4 then
  40. for i,v in pairs(Crate) do
  41. if v.Name == "Money" then
  42. v.CFrame = Plr.CFrame
  43. end
  44. end
  45. elseif Choice == 5 then
  46. for i,v in pairs(Crate) do
  47. if v.Name == "Clover" then
  48. v.CFrame = Plr.CFrame
  49. end
  50. end
  51. end
  52. end
  53.  
  54. --Properties:
  55.  
  56. CrateStealer.Name = "Crates"
  57. CrateStealer.Parent = game.CoreGui
  58. CrateStealer.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  59.  
  60. Frame.Parent = CrateStealer
  61. Frame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  62. Frame.Position = UDim2.new(0.01, 0, .8, 0)
  63. Frame.Size = UDim2.new(0, 210, 0, 40)
  64.  
  65. Crates.Name = "Crates"
  66. Crates.Parent = Frame
  67. Crates.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  68. Crates.BorderSizePixel = 0
  69. Crates.Size = UDim2.new(0, 144, 0, 110)
  70. Crates.Visible = false
  71.  
  72. CrateChooser.Name = "CrateChooser"
  73. CrateChooser.Parent = Frame
  74. CrateChooser.BackgroundColor3 = Color3.fromRGB(216, 230, 255)
  75. CrateChooser.BorderColor3 = Color3.fromRGB(81, 116, 162)
  76. CrateChooser.Position = UDim2.new(0.0202380959, 0, 0.16785714, 0)
  77. CrateChooser.Size = UDim2.new(0, 140, 0, 25)
  78. CrateChooser.Font = Enum.Font.FredokaOne
  79. CrateChooser.Text = "Crate Chosen: nil"
  80. CrateChooser.TextColor3 = Color3.fromRGB(35, 186, 216)
  81. CrateChooser.TextSize = 14.000
  82. CrateChooser.TextWrapped = true
  83. CrateChooser.MouseButton1Up:Connect(function()
  84. Crates.Visible = true
  85. CrateChooser.Visible = false
  86. end)
  87.  
  88. _1.Name = "1"
  89. _1.Parent = Crates
  90. _1.BackgroundColor3 = Color3.fromRGB(216, 230, 255)
  91. _1.BorderColor3 = Color3.fromRGB(81, 116, 162)
  92. _1.Position = UDim2.new(0.0322222188, 0, 0.0484848581, 0)
  93. _1.Size = UDim2.new(0, 134, 0, 20)
  94. _1.Font = Enum.Font.FredokaOne
  95. _1.Text = "All Crates"
  96. _1.TextColor3 = Color3.fromRGB(35, 186, 216)
  97. _1.TextSize = 14.000
  98. _1.MouseButton1Up:Connect(function()
  99. CrateChooser.Text = "Crate Chosen: All"
  100. Choice = 1
  101. Crates.Visible = false
  102. CrateChooser.Visible = true
  103. end)
  104.  
  105. _2.Name = "2"
  106. _2.Parent = Crates
  107. _2.BackgroundColor3 = Color3.fromRGB(216, 230, 255)
  108. _2.BorderColor3 = Color3.fromRGB(81, 116, 162)
  109. _2.Position = UDim2.new(0.0322221667, 0, 0.227272645, 0)
  110. _2.Size = UDim2.new(0, 134, 0, 20)
  111. _2.Font = Enum.Font.FredokaOne
  112. _2.Text = "XP Crates"
  113. _2.TextColor3 = Color3.fromRGB(35, 186, 216)
  114. _2.TextSize = 14.000
  115. _2.MouseButton1Up:Connect(function()
  116. CrateChooser.Text = "Crate Chosen: XP"
  117. Choice = 2
  118. Crates.Visible = false
  119. CrateChooser.Visible = true
  120. end)
  121.  
  122. _3.Name = "3"
  123. _3.Parent = Crates
  124. _3.BackgroundColor3 = Color3.fromRGB(216, 230, 255)
  125. _3.BorderColor3 = Color3.fromRGB(81, 116, 162)
  126. _3.Position = UDim2.new(0.0322222188, 0, 0.400797486, 0)
  127. _3.Size = UDim2.new(0, 134, 0, 20)
  128. _3.Font = Enum.Font.FredokaOne
  129. _3.Text = "Gem Crate"
  130. _3.TextColor3 = Color3.fromRGB(35, 186, 216)
  131. _3.TextSize = 14.000
  132. _3.MouseButton1Up:Connect(function()
  133. CrateChooser.Text = "Crate Chosen: Gem"
  134. Choice = 3
  135. Crates.Visible = false
  136. CrateChooser.Visible = true
  137. end)
  138.  
  139. _4.Name = "4"
  140. _4.Parent = Crates
  141. _4.BackgroundColor3 = Color3.fromRGB(216, 230, 255)
  142. _4.BorderColor3 = Color3.fromRGB(81, 116, 162)
  143. _4.Position = UDim2.new(0.0322224051, 0, 0.578883588, 0)
  144. _4.Size = UDim2.new(0, 134, 0, 20)
  145. _4.Font = Enum.Font.FredokaOne
  146. _4.Text = "Money Crate"
  147. _4.TextColor3 = Color3.fromRGB(35, 186, 216)
  148. _4.TextSize = 14.000
  149. _4.MouseButton1Up:Connect(function()
  150. CrateChooser.Text = "Crate Chosen: Money"
  151. Choice = 4
  152. Crates.Visible = false
  153. CrateChooser.Visible = true
  154. end)
  155.  
  156. _5.Name = "5"
  157. _5.Parent = Crates
  158. _5.BackgroundColor3 = Color3.fromRGB(216, 230, 255)
  159. _5.BorderColor3 = Color3.fromRGB(81, 116, 162)
  160. _5.Position = UDim2.new(0.0322222263, 0, 0.75363636, 0)
  161. _5.Size = UDim2.new(0, 134, 0, 20)
  162. _5.Font = Enum.Font.FredokaOne
  163. _5.Text = "Clover Crate"
  164. _5.TextColor3 = Color3.fromRGB(35, 186, 216)
  165. _5.TextSize = 14.000
  166. _5.MouseButton1Up:Connect(function()
  167. CrateChooser.Text = "Crate Chosen: Clover"
  168. Choice = 5
  169. Crates.Visible = false
  170. CrateChooser.Visible = true
  171. end)
  172.  
  173. Grab.Name = "Grab"
  174. Grab.Parent = Frame
  175. Grab.BackgroundColor3 = Color3.fromRGB(216, 230, 255)
  176. Grab.BorderColor3 = Color3.fromRGB(81, 116, 162)
  177. Grab.Position = UDim2.new(0.685168922, 0, 0.16785714, 0)
  178. Grab.Size = UDim2.new(0, 60, 0, 25)
  179. Grab.Font = Enum.Font.FredokaOne
  180. Grab.Text = "Grab"
  181. Grab.TextColor3 = Color3.fromRGB(35, 186, 216)
  182. Grab.TextSize = 14.000
  183. Grab.MouseButton1Up:Connect(function()
  184. CCrate()
  185. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement