Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Players = game:GetService("Players")
- local Workspace = game:GetService("Workspace")
- local RunService = game:GetService("RunService")
- local player = Players.LocalPlayer
- local gui = Instance.new("ScreenGui")
- gui.Parent = game.CoreGui
- gui.ResetOnSpawn = false
- local frame = Instance.new("Frame", gui)
- frame.Size = UDim2.new(0, 260, 0, 230)
- frame.Position = UDim2.new(0.5, -130, 0.5, -115)
- frame.BackgroundColor3 = Color3.fromRGB(10,10,10)
- frame.BorderSizePixel = 0
- frame.Active = true
- frame.Draggable = true
- Instance.new("UICorner", frame).CornerRadius = UDim.new(0, 16)
- local title = Instance.new("TextLabel", frame)
- title.Size = UDim2.new(1, 0, 0, 40)
- title.BackgroundTransparency = 1
- title.Text = "Don't press the button 4 script"
- title.TextColor3 = Color3.new(1,1,1)
- title.Font = Enum.Font.GothamBold
- title.TextScaled = true
- local function makeButton(text, y)
- local b = Instance.new("TextButton", frame)
- b.Size = UDim2.new(1, -30, 0, 45)
- b.Position = UDim2.new(0, 15, 0, y)
- b.Text = text
- b.Font = Enum.Font.GothamBold
- b.TextScaled = true
- b.BackgroundColor3 = Color3.fromRGB(0,170,0)
- b.TextColor3 = Color3.new(1,1,1)
- b.BorderSizePixel = 0
- Instance.new("UICorner", b).CornerRadius = UDim.new(0, 12)
- return b
- end
- local btnPress = makeButton("Auto Button Press : OFF", 50)
- local btnMap = makeButton("AutoPlay 40+ Game : OFF", 105)
- local btnCoin = makeButton("Auto Coin Farm : OFF", 160)
- local pressEnabled = false
- local cd = workspace.ButtonPresser.Button.ClickDetector
- task.spawn(function()
- while true do
- if pressEnabled then
- fireclickdetector(cd)
- end
- task.wait(0.05)
- end
- end)
- btnPress.MouseButton1Click:Connect(function()
- pressEnabled = not pressEnabled
- btnPress.Text = "Auto Button Press : " .. (pressEnabled and "ON" or "OFF")
- btnPress.BackgroundColor3 = pressEnabled and Color3.fromRGB(200,50,50) or Color3.fromRGB(0,170,0)
- end)
- local enabled = false
- local lastHRPPos = nil
- local mapSettings = {
- Map3 = {teleport = Vector3.new(339.85, 46.46, -247.20)},
- Map84 = {teleport = Vector3.new(437.44, 33.86, 3.76)},
- Map71 = {teleport = Vector3.new(-26.66, 88.00, -278.77)},
- Map147 = {teleport = Vector3.new(-4.64, 43.96, 692.34)},
- Map83 = {teleport = Vector3.new(-3.76, 70.77, 8.53)},
- Map162 = {teleport = Vector3.new(6.19, 106.88, -94.12)},
- Map78 = {teleport = Vector3.new(-1.27, 76.04, -344.36)},
- Map82 = {teleport = Vector3.new(-3.84, 94.81, -236.77)},
- Map32 = {teleport = Vector3.new(-131.50, 105.13, 176.07)},
- Map137 = {teleport = Vector3.new(-1.05, 134.25, -114.47)},
- Map100 = {teleport = Vector3.new(7.29, 72.65, -186.99)},
- Map80 = {teleport = Vector3.new(-21.35, 354.65, -256.92)},
- Map129 = {teleport = Vector3.new(-19.42, 85.93, -127.14)},
- Map127 = {teleport = Vector3.new(7.25, 79.41, -161.16)},
- Map128 = {teleport = Vector3.new(-275.70, 137.56, -106.87)},
- Map105 = {teleport = Vector3.new(1.68, 146.41, 17.13)},
- Map111 = {teleport = Vector3.new(-11.56, 146.41, 9.48)},
- Map152 = {teleport = Vector3.new(355.57, 188.19, -167.26)},
- Map167 = {teleport = Vector3.new(-8.03, 174.60, 277.55)},
- Map143 = {teleport = Vector3.new(-11.01, 188.34, 20.95)},
- Map125 = {teleport = Vector3.new(0.37, 263.67, -37.20)},
- Map135 = {teleport = Vector3.new(-3.84, 146.09, -557.43)},
- Map119 = {teleport = Vector3.new(1.23, -272.35, 234.22)},
- Map95 = {teleport = Vector3.new(3.32, 146.41, 9.13)},
- Map28 = {freeze = true},
- Map148 = {teleport = Vector3.new(-305.45, 453.01, -1.55)},
- Map58 = {teleport = Vector3.new(-6.01, 146.41, 10.75)},
- Map99 = {teleport = Vector3.new(3.92, 34.37, -144.56)},
- Map153 = {teleport = Vector3.new(137.19, 193.97, -38.58)},
- Map115 = {teleport = Vector3.new(-1.70, 150.65, 4.80)},
- Map126 = {teleport = Vector3.new(10.22, 76.77, 255.49)},
- Map142 = {teleport = Vector3.new(-3.73, 299.66, -17.49)},
- Map85 = {teleport = Vector3.new(-1.63, 146.41, 14.96)},
- Map98 = {},
- Map54 = {teleport = Vector3.new(11.17, 34.06, -1.55)},
- Map138 = {teleport = Vector3.new(-0.36, 146.11, 18.32)},
- Map75 = {teleport = Vector3.new(2.32, 76.08, -132.25)},
- Map140 = {teleport = Vector3.new(7.81, 62.29, 163.07)},
- Map12 = {teleport = Vector3.new(1.43, 153.30, -1.88)},
- Map19 = {teleport = Vector3.new(-19.86, 144.25, -87.17)},
- Map131 = {teleport = Vector3.new(-1.04, 146.41, 13.19)},
- Map91 = {teleport = {Vector3.new(2.20, -65.26, -113.42), Vector3.new(4.65, -55.72, 46.65)}},
- Map107 = {teleport = Vector3.new(-69.71, 180.15, -70.48)},
- Map81 = {teleport = Vector3.new(-9.74, 58.73, -301.90)},
- Map132 = {teleport = Vector3.new(1.86, 146.41, 18.27)}
- }
- local function teleport(cf)
- if player.Character and player.Character:FindFirstChild("HumanoidRootPart") then
- player.Character.HumanoidRootPart.CFrame = CFrame.new(cf)
- end
- end
- RunService.RenderStepped:Connect(function()
- if lastHRPPos and enabled then
- teleport(lastHRPPos.Position)
- end
- end)
- Workspace.ChildAdded:Connect(function(map)
- if not enabled then return end
- local data = mapSettings[map.Name]
- if not data then return end
- if data.teleport then
- if typeof(data.teleport) == "table" then
- for _,p in ipairs(data.teleport) do
- teleport(p)
- task.wait(0.2)
- end
- else
- teleport(data.teleport)
- end
- elseif data.freeze then
- lastHRPPos = player.Character.HumanoidRootPart.CFrame
- end
- if map.Name == "Map98" then
- for _,obj in ipairs(map:GetDescendants()) do
- if obj:IsA("BasePart") and obj.Name == "Block" then
- teleport(obj.Position + Vector3.new(0,3,0))
- task.wait(0.1)
- end
- end
- end
- end)
- btnMap.MouseButton1Click:Connect(function()
- enabled = not enabled
- lastHRPPos = nil
- btnMap.Text = "AutoPlay 40+ Game : " .. (enabled and "ON" or "OFF")
- btnMap.BackgroundColor3 = enabled and Color3.fromRGB(200,50,50) or Color3.fromRGB(0,170,0)
- end)
- local coinEnabled = false
- task.spawn(function()
- while true do
- if coinEnabled then
- local char = player.Character
- local hrp = char and char:FindFirstChild("HumanoidRootPart")
- if hrp then
- for _,c in ipairs(Workspace:GetDescendants()) do
- if c:IsA("BasePart") and c.Name == "Coin" and coinEnabled then
- hrp.CFrame = CFrame.new(c.Position + Vector3.new(0,3,0))
- task.wait(0.15)
- end
- end
- end
- end
- task.wait(0.15)
- end
- end)
- btnCoin.MouseButton1Click:Connect(function()
- coinEnabled = not coinEnabled
- btnCoin.Text = "Auto Coin Farm : " .. (coinEnabled and "ON" or "OFF")
- btnCoin.BackgroundColor3 = coinEnabled and Color3.fromRGB(200,50,50) or Color3.fromRGB(0,170,0)
- end)
Advertisement
Add Comment
Please, Sign In to add comment