Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Setup
- pcall(function()
- game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 64
- game.Players.LocalPlayer.Character.Humanoid.JumpPower = 100
- end)
- if game.Players.LocalPlayer.PlayerGui:FindFirstChild("MinerLux") then
- game.Players.LocalPlayer.PlayerGui.MinerLux:Destroy()
- end
- -- Variables
- local Toggled = false
- local MinerLux = Instance.new("ScreenGui")
- local MinerLuxMain = Instance.new("TextButton")
- local LastCalledDisplay = Instance.new("TextLabel")
- local Main = Instance.new("Frame")
- local CrateToYou = Instance.new("TextButton")
- local ToggleCrateToYou = Instance.new("TextButton")
- -- Properties
- MinerLux.Name = "MinerLux"
- MinerLux.ResetOnSpawn = false
- MinerLuxMain.Name = "MinerLuxMain"
- MinerLuxMain.Parent = MinerLux
- MinerLuxMain.BackgroundColor3 = Color3.new(1,1,1)
- MinerLuxMain.BorderColor3 = Color3.new(0,0,0)
- MinerLuxMain.Position = UDim2.new(0,5,0.75,-20)
- MinerLuxMain.Size = UDim2.new(0,180,0,40)
- MinerLuxMain.Style = Enum.ButtonStyle.RobloxRoundDropdownButton
- MinerLuxMain.Font = Enum.Font.SciFi
- MinerLuxMain.FontSize = Enum.FontSize.Size36
- MinerLuxMain.Text = "MinerLux"
- MinerLuxMain.TextColor3 = Color3.new(1,1,1)
- MinerLuxMain.TextSize = 36
- MinerLuxMain.TextStrokeTransparency = 0
- MinerLuxMain.TextWrapped = true
- Main.Name = "Main"
- Main.Parent = MinerLux
- Main.BackgroundColor3 = Color3.new(1,1,1)
- Main.Position = UDim2.new(0,190,0.75,-49)
- Main.Size = UDim2.new(0,198,0,98)
- Main.Visible = false
- Main.Style = Enum.FrameStyle.DropShadow
- MinerLuxMain.MouseButton1Click:connect(function()
- Main.Visible = not Main.Visible
- end)
- CrateToYou.Name = "CrateToYou"
- CrateToYou.Parent = Main
- CrateToYou.BackgroundColor3 = Color3.new(1,1,1)
- CrateToYou.BorderColor3 = Color3.new(0,0,0)
- CrateToYou.Position = UDim2.new(0,1,0,0)
- CrateToYou.Size = UDim2.new(0,180,0,40)
- CrateToYou.Style = Enum.ButtonStyle.RobloxRoundDropdownButton
- CrateToYou.Font = Enum.Font.SciFi
- CrateToYou.FontSize = Enum.FontSize.Size18
- CrateToYou.Text = "Bring Crates"
- CrateToYou.TextColor3 = Color3.new(1,1,1)
- CrateToYou.TextSize = 18
- CrateToYou.TextStrokeTransparency = 0
- CrateToYou.TextWrapped = true
- CrateToYou.MouseButton1Click:connect(function()
- for _,obj in pairs(game.Workspace:GetChildren()) do
- if string.match(obj.Name,"%s*Crate") then
- obj.Anchored = true
- obj.CanCollide = false
- obj.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
- end
- end
- for _,obj in pairs(game.Workspace.Shadows:GetChildren()) do
- if string.match(obj.Name,"%s*Crate") then
- obj.Anchored = true
- obj.CanCollide = false
- obj.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
- end
- end
- end)
- ToggleCrateToYou.Name = "ToggleCrateToYou"
- ToggleCrateToYou.Parent = Main
- ToggleCrateToYou.BackgroundColor3 = Color3.new(1,1,1)
- ToggleCrateToYou.BorderColor3 = Color3.new(0,0,0)
- ToggleCrateToYou.Position = UDim2.new(0,1,0,40)
- ToggleCrateToYou.Size = UDim2.new(0,180,0,40)
- ToggleCrateToYou.Style = Enum.ButtonStyle.RobloxRoundDropdownButton
- ToggleCrateToYou.Font = Enum.Font.SciFi
- ToggleCrateToYou.FontSize = Enum.FontSize.Size36
- ToggleCrateToYou.Text = "Auto Bring Crates: "..(Toggled and "ON" or "OFF")
- ToggleCrateToYou.TextColor3 = Color3.new(1,1,1)
- ToggleCrateToYou.TextScaled = true
- ToggleCrateToYou.TextSize = 36
- ToggleCrateToYou.TextStrokeTransparency = 0
- ToggleCrateToYou.TextWrapped = true
- ToggleCrateToYou.MouseButton1Click:connect(function()
- Toggled = not Toggled
- ToggleCrateToYou.Text = "Auto Bring Crates: "..(Toggled and "ON" or "OFF")
- if Toggled then
- for _,obj in pairs(game.Workspace:GetChildren()) do
- if string.match(obj.Name,"%s*Crate") then
- obj.Anchored = true
- obj.CanCollide = false
- obj.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
- end
- end
- for _,obj in pairs(game.Workspace.Shadows:GetChildren()) do
- if string.match(obj.Name,"%s*Crate") then
- obj.Anchored = true
- obj.CanCollide = false
- obj.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
- end
- end
- end
- end)
- game.Workspace.ChildAdded:connect(function(obj)
- if MinerLux ~= nil and Toggled and string.match(obj.Name,"%s*Crate") then
- obj.Anchored = true
- obj.CanCollide = false
- obj.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
- end
- end)
- game.Workspace.Shadows.ChildAdded:connect(function(obj)
- if MinerLux ~= nil and Toggled and string.match(obj.Name,"%s*Crate") then
- obj.Anchored = true
- obj.CanCollide = false
- obj.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement