Upscalefanatic3

Miners Haven Crate GUI Remastered

Jan 31st, 2018
302
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.15 KB | None | 0 0
  1. local MinersHavenCratesTpRemastered = Instance.new("ScreenGui")
  2. local DecoFrame = Instance.new("Frame")
  3. local MainFrame = Instance.new("Frame")
  4. local Deco = Instance.new("ImageLabel")
  5. local NumberOfBoxes = Instance.new("TextLabel")
  6. local TPCrates = Instance.new("TextButton")
  7. local LoopTPCrates = Instance.new("TextButton")
  8. local Deco_2 = Instance.new("ImageLabel")
  9. local Deco_3 = Instance.new("ImageLabel")
  10. local Deco_4 = Instance.new("ImageLabel")
  11. local Loop = Instance.new("ImageLabel")
  12.  
  13. MinersHavenCratesTpRemastered.Name = "MinersHavenCratesTpRemastered"
  14. MinersHavenCratesTpRemastered.Parent = game.CoreGui
  15.  
  16. DecoFrame.Name = "DecoFrame"
  17. DecoFrame.Parent = MinersHavenCratesTpRemastered
  18. DecoFrame.Active = true
  19. DecoFrame.BackgroundColor3 = Color3.new(1, 1, 1)
  20. DecoFrame.BorderSizePixel = 0
  21. DecoFrame.Draggable = true
  22. DecoFrame.Position = UDim2.new(0.25, 0, 0.25, 0)
  23. DecoFrame.Size = UDim2.new(0.200000003, 0, 0.100000001, 0)
  24.  
  25. MainFrame.Name = "MainFrame"
  26. MainFrame.Parent = DecoFrame
  27. MainFrame.BackgroundColor3 = Color3.new(0.454902, 0.454902, 0.454902)
  28. MainFrame.BorderSizePixel = 0
  29. MainFrame.Position = UDim2.new(0.0500000007, 0, 0.100000001, 0)
  30. MainFrame.Size = UDim2.new(0.899999976, 0, 0.800000012, 0)
  31.  
  32. Deco.Name = "Deco"
  33. Deco.Parent = MainFrame
  34. Deco.BackgroundColor3 = Color3.new(1, 1, 1)
  35. Deco.BackgroundTransparency = 1
  36. Deco.Size = UDim2.new(0.300000012, 0, 1, 0)
  37. Deco.Image = "rbxassetid://853410753"
  38.  
  39. NumberOfBoxes.Name = "NumberOfBoxes"
  40. NumberOfBoxes.Parent = Deco
  41. NumberOfBoxes.BackgroundColor3 = Color3.new(1, 1, 1)
  42. NumberOfBoxes.BackgroundTransparency = 1
  43. NumberOfBoxes.Size = UDim2.new(1, 0, 1, 0)
  44. NumberOfBoxes.Font = Enum.Font.SciFi
  45. NumberOfBoxes.FontSize = Enum.FontSize.Size24
  46. NumberOfBoxes.Text = ""
  47. NumberOfBoxes.TextColor3 = Color3.new(1, 1, 1)
  48. NumberOfBoxes.TextSize = 24
  49. NumberOfBoxes.TextStrokeTransparency = 0
  50. NumberOfBoxes.TextWrapped = true
  51.  
  52. TPCrates.Name = "TPCrates"
  53. TPCrates.Parent = MainFrame
  54. TPCrates.BackgroundColor3 = Color3.new(0.196078, 0.196078, 0.196078)
  55. TPCrates.BackgroundTransparency = 1
  56. TPCrates.Position = UDim2.new(0.349999994, 0, 0, 0)
  57. TPCrates.Size = UDim2.new(0.300000012, 0, 1, 0)
  58. TPCrates.ZIndex = 2
  59. TPCrates.Font = Enum.Font.SourceSans
  60. TPCrates.FontSize = Enum.FontSize.Size14
  61. TPCrates.Text = "TP Crates"
  62. TPCrates.TextColor3 = Color3.new(1, 1, 1)
  63. TPCrates.TextSize = 14
  64. TPCrates.TextStrokeColor3 = Color3.new(1, 0.976471, 0.976471)
  65. TPCrates.TextWrapped = true
  66. TPCrates.TextYAlignment = Enum.TextYAlignment.Top
  67.  
  68. LoopTPCrates.Name = "LoopTPCrates"
  69. LoopTPCrates.Parent = MainFrame
  70. LoopTPCrates.BackgroundColor3 = Color3.new(0.196078, 0.196078, 0.196078)
  71. LoopTPCrates.BackgroundTransparency = 1
  72. LoopTPCrates.Position = UDim2.new(0.699999988, 0, 0, 0)
  73. LoopTPCrates.Size = UDim2.new(0.300000012, 0, 1, 0)
  74. LoopTPCrates.ZIndex = 2
  75. LoopTPCrates.Font = Enum.Font.SourceSans
  76. LoopTPCrates.FontSize = Enum.FontSize.Size14
  77. LoopTPCrates.Text = "Loop TP Crates: OFF"
  78. LoopTPCrates.TextColor3 = Color3.new(1, 1, 1)
  79. LoopTPCrates.TextSize = 14
  80. LoopTPCrates.TextWrapped = true
  81. LoopTPCrates.TextYAlignment = Enum.TextYAlignment.Top
  82.  
  83. Deco_2.Name = "Deco"
  84. Deco_2.Parent = MainFrame
  85. Deco_2.BackgroundColor3 = Color3.new(1, 1, 1)
  86. Deco_2.BackgroundTransparency = 1
  87. Deco_2.Position = UDim2.new(0.349999994, 0, 0, 0)
  88. Deco_2.Size = UDim2.new(0.300000012, 0, 1, 0)
  89. Deco_2.Image = "rbxassetid://853410753"
  90.  
  91. Deco_3.Name = "Deco"
  92. Deco_3.Parent = Deco_2
  93. Deco_3.BackgroundColor3 = Color3.new(1, 1, 1)
  94. Deco_3.BackgroundTransparency = 1
  95. Deco_3.Size = UDim2.new(1, 0, 1, 0)
  96. Deco_3.Image = "rbxassetid://29563831"
  97.  
  98. Deco_4.Name = "Deco"
  99. Deco_4.Parent = MainFrame
  100. Deco_4.BackgroundColor3 = Color3.new(1, 1, 1)
  101. Deco_4.BackgroundTransparency = 1
  102. Deco_4.Position = UDim2.new(0.699999988, 0, 0, 0)
  103. Deco_4.Size = UDim2.new(0.300000012, 0, 1, 0)
  104. Deco_4.Image = "rbxassetid://853410753"
  105.  
  106. Loop.Name = "Loop"
  107. Loop.Parent = Deco_4
  108. Loop.BackgroundColor3 = Color3.new(1, 1, 1)
  109. Loop.BackgroundTransparency = 1
  110. Loop.Size = UDim2.new(1, 0, 1, 0)
  111. Loop.Image = "rbxassetid://169611736"
  112. Loop.ImageColor3 = Color3.new(1, 0, 0)
  113. Loop.ImageTransparency = 0.5
  114.  
  115.  
  116. function CountBricks()
  117. local c = 0
  118. for i,v in pairs(workspace:GetChildren()) do
  119. for x in string.gmatch(v.Name, "Crate") do
  120. wait(0.2)
  121. c = c + 1
  122. end
  123. end
  124. return c
  125. end
  126.  
  127. tpcratez = false
  128.  
  129. spawn (function()
  130. while true do
  131. NumberOfBoxes.Text = CountBricks()
  132. if tpcratez == true then
  133. local children = game.Workspace:GetChildren()
  134. for i =1, #children do
  135. wait(0.1)
  136. if children[i] ~= nil then
  137. for x in string.gmatch(children[i].Name, "Crate") do
  138. if children[i].ClassName == "Part" then
  139. children[i].Anchored = true
  140. children[i].CanCollide = false
  141. children[i].CFrame = CFrame.new(game.Players.LocalPlayer.Character.Head.Position)
  142. wait(0.3)
  143. end
  144. end
  145. end
  146. end
  147. end
  148. end
  149. end)
  150.  
  151. TPCrates.MouseButton1Down:connect(function()
  152. tpcratez = true
  153. wait(0.1)
  154. tpcratez = false
  155. end)
  156.  
  157. LoopTPCrates.MouseButton1Down:connect(function()
  158. if tpcratez == true then
  159. LoopTPCrates.Text = "Loop TP Crates: OFF"
  160. Loop.ImageColor3 = Color3.fromRGB(255,0,0)
  161. tpcratez = false else
  162. LoopTPCrates.Text = "Loop TP Crates: ON"
  163. Loop.ImageColor3 = Color3.fromRGB(0,255,0)
  164. tpcratez = true
  165. end
  166. end)
Add Comment
Please, Sign In to add comment