Advertisement
Guest User

L

a guest
Mar 25th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.43 KB | None | 0 0
  1. -- Setup
  2.  
  3. pcall(function()
  4. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 64
  5. game.Players.LocalPlayer.Character.Humanoid.JumpPower = 100
  6. end)
  7.  
  8. if game.Players.LocalPlayer.PlayerGui:FindFirstChild("MinerLux") then
  9. game.Players.LocalPlayer.PlayerGui.MinerLux:Destroy()
  10. end
  11.  
  12. -- Variables
  13.  
  14. local Toggled = false
  15. local MinerLux = Instance.new("ScreenGui")
  16. local MinerLuxMain = Instance.new("TextButton")
  17. local LastCalledDisplay = Instance.new("TextLabel")
  18. local Main = Instance.new("Frame")
  19. local CrateToYou = Instance.new("TextButton")
  20. local ToggleCrateToYou = Instance.new("TextButton")
  21.  
  22. -- Properties
  23.  
  24. MinerLux.Name = "MinerLux"
  25. MinerLux.ResetOnSpawn = false
  26.  
  27. MinerLuxMain.Name = "MinerLuxMain"
  28. MinerLuxMain.Parent = MinerLux
  29. MinerLuxMain.BackgroundColor3 = Color3.new(1,1,1)
  30. MinerLuxMain.BorderColor3 = Color3.new(0,0,0)
  31. MinerLuxMain.Position = UDim2.new(0,5,0.75,-20)
  32. MinerLuxMain.Size = UDim2.new(0,180,0,40)
  33. MinerLuxMain.Style = Enum.ButtonStyle.RobloxRoundDropdownButton
  34. MinerLuxMain.Font = Enum.Font.SciFi
  35. MinerLuxMain.FontSize = Enum.FontSize.Size36
  36. MinerLuxMain.Text = "MinerLux"
  37. MinerLuxMain.TextColor3 = Color3.new(1,1,1)
  38. MinerLuxMain.TextSize = 36
  39. MinerLuxMain.TextStrokeTransparency = 0
  40. MinerLuxMain.TextWrapped = true
  41.  
  42. Main.Name = "Main"
  43. Main.Parent = MinerLux
  44. Main.BackgroundColor3 = Color3.new(1,1,1)
  45. Main.Position = UDim2.new(0,190,0.75,-49)
  46. Main.Size = UDim2.new(0,198,0,98)
  47. Main.Visible = false
  48. Main.Style = Enum.FrameStyle.DropShadow
  49. MinerLuxMain.MouseButton1Click:connect(function()
  50. Main.Visible = not Main.Visible
  51. end)
  52.  
  53. CrateToYou.Name = "CrateToYou"
  54. CrateToYou.Parent = Main
  55. CrateToYou.BackgroundColor3 = Color3.new(1,1,1)
  56. CrateToYou.BorderColor3 = Color3.new(0,0,0)
  57. CrateToYou.Position = UDim2.new(0,1,0,0)
  58. CrateToYou.Size = UDim2.new(0,180,0,40)
  59. CrateToYou.Style = Enum.ButtonStyle.RobloxRoundDropdownButton
  60. CrateToYou.Font = Enum.Font.SciFi
  61. CrateToYou.FontSize = Enum.FontSize.Size18
  62. CrateToYou.Text = "Bring Crates"
  63. CrateToYou.TextColor3 = Color3.new(1,1,1)
  64. CrateToYou.TextSize = 18
  65. CrateToYou.TextStrokeTransparency = 0
  66. CrateToYou.TextWrapped = true
  67. CrateToYou.MouseButton1Click:connect(function()
  68. for _,obj in pairs(game.Workspace:GetChildren()) do
  69. if string.match(obj.Name,"%s*Crate") then
  70. obj.Anchored = true
  71. obj.CanCollide = false
  72. obj.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  73. end
  74. end
  75. for _,obj in pairs(game.Workspace.Shadows:GetChildren()) do
  76. if string.match(obj.Name,"%s*Crate") then
  77. obj.Anchored = true
  78. obj.CanCollide = false
  79. obj.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  80. end
  81. end
  82. end)
  83.  
  84. ToggleCrateToYou.Name = "ToggleCrateToYou"
  85. ToggleCrateToYou.Parent = Main
  86. ToggleCrateToYou.BackgroundColor3 = Color3.new(1,1,1)
  87. ToggleCrateToYou.BorderColor3 = Color3.new(0,0,0)
  88. ToggleCrateToYou.Position = UDim2.new(0,1,0,40)
  89. ToggleCrateToYou.Size = UDim2.new(0,180,0,40)
  90. ToggleCrateToYou.Style = Enum.ButtonStyle.RobloxRoundDropdownButton
  91. ToggleCrateToYou.Font = Enum.Font.SciFi
  92. ToggleCrateToYou.FontSize = Enum.FontSize.Size36
  93. ToggleCrateToYou.Text = "Auto Bring Crates: "..(Toggled and "ON" or "OFF")
  94. ToggleCrateToYou.TextColor3 = Color3.new(1,1,1)
  95. ToggleCrateToYou.TextScaled = true
  96. ToggleCrateToYou.TextSize = 36
  97. ToggleCrateToYou.TextStrokeTransparency = 0
  98. ToggleCrateToYou.TextWrapped = true
  99. ToggleCrateToYou.MouseButton1Click:connect(function()
  100. Toggled = not Toggled
  101. ToggleCrateToYou.Text = "Auto Bring Crates: "..(Toggled and "ON" or "OFF")
  102. if Toggled then
  103. for _,obj in pairs(game.Workspace:GetChildren()) do
  104. if string.match(obj.Name,"%s*Crate") then
  105. obj.Anchored = true
  106. obj.CanCollide = false
  107. obj.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  108. end
  109. end
  110. for _,obj in pairs(game.Workspace.Shadows:GetChildren()) do
  111. if string.match(obj.Name,"%s*Crate") then
  112. obj.Anchored = true
  113. obj.CanCollide = false
  114. obj.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  115. end
  116. end
  117. end
  118. end)
  119.  
  120. game.Workspace.ChildAdded:connect(function(obj)
  121. if MinerLux ~= nil and Toggled and string.match(obj.Name,"%s*Crate") then
  122. obj.Anchored = true
  123. obj.CanCollide = false
  124. obj.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  125. end
  126. end)
  127.  
  128. game.Workspace.Shadows.ChildAdded:connect(function(obj)
  129. if MinerLux ~= nil and Toggled and string.match(obj.Name,"%s*Crate") then
  130. obj.Anchored = true
  131. obj.CanCollide = false
  132. obj.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  133. end
  134. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement