Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Objects
- local AFKbotgui = Instance.new("ScreenGui")
- local OpenButton1 = Instance.new("TextButton")
- local MainFrame1 = Instance.new("Frame")
- local NameOfGUILabel1 = Instance.new("TextLabel")
- local CreditsLabel1 = Instance.new("TextLabel")
- local AFKBot1Button = Instance.new("TextButton")
- local AFKBot2Button = Instance.new("TextButton")
- local InfoLabel1 = Instance.new("TextLabel")
- local InfoLabel2 = Instance.new("TextLabel")
- local MainFrame2 = Instance.new("Frame")
- local NameOfGUILabel2 = Instance.new("TextLabel")
- local LaunchButton1 = Instance.new("TextButton")
- local LaunchButton2 = Instance.new("TextButton")
- local ExitButton1 = Instance.new("TextButton")
- local MainFrame3 = Instance.new("Frame")
- local NameOfGUILabel3 = Instance.new("TextLabel")
- local LaunchButton3 = Instance.new("TextButton")
- local LaunchButton4 = Instance.new("TextButton")
- local ExitButton2 = Instance.new("TextButton")
- -- Properties
- local activated2 = true
- local activated = true
- AFKbotgui.Name = "AFK bot gui"
- AFKbotgui.Parent = game.CoreGui
- OpenButton1.Name = "OpenButton1"
- OpenButton1.Parent = AFKbotgui
- OpenButton1.BackgroundColor3 = Color3.new(0.678431, 0.156863, 0.184314)
- OpenButton1.BorderColor3 = Color3.new(0.054902, 0, 0.470588)
- OpenButton1.Position = UDim2.new(0, 0, 0.452830195, 0)
- OpenButton1.Size = UDim2.new(0, 200, 0, 50)
- OpenButton1.Font = Enum.Font.SourceSans
- OpenButton1.Text = "Click to open!"
- OpenButton1.TextColor3 = Color3.new(0.219608, 0.0588235, 0.631373)
- OpenButton1.TextScaled = true
- OpenButton1.TextSize = 14
- OpenButton1.TextWrapped = true
- OpenButton1.MouseButton1Down:connect(function()
- if MainFrame1.Visible == false then
- MainFrame1.Visible = true
- OpenButton1.Text = "Click to close!"
- else
- MainFrame1.Visible = false
- OpenButton1.Text = "Click to open!"
- end
- end)
- MainFrame1.Name = "MainFrame1"
- MainFrame1.Parent = AFKbotgui
- MainFrame1.BackgroundColor3 = Color3.new(0.678431, 0.156863, 0.184314)
- MainFrame1.BorderColor3 = Color3.new(0.054902, 0, 0.470588)
- MainFrame1.Position = UDim2.new(0.160150379, 0, 0.332075477, 0)
- MainFrame1.Size = UDim2.new(0, 531, 0, 328)
- MainFrame1.Visible = false
- MainFrame1.Active = true
- MainFrame1.Draggable = true
- NameOfGUILabel1.Name = "NameOfGUILabel1"
- NameOfGUILabel1.Parent = MainFrame1
- NameOfGUILabel1.BackgroundColor3 = Color3.new(0.541176, 0.12549, 0.152941)
- NameOfGUILabel1.Size = UDim2.new(0, 531, 0, 63)
- NameOfGUILabel1.Font = Enum.Font.SourceSans
- NameOfGUILabel1.Text = "AFK bot GUI"
- NameOfGUILabel1.TextColor3 = Color3.new(0.219608, 0.0588235, 0.631373)
- NameOfGUILabel1.TextScaled = true
- NameOfGUILabel1.TextSize = 14
- NameOfGUILabel1.TextWrapped = true
- CreditsLabel1.Name = "CreditsLabel1"
- CreditsLabel1.Parent = MainFrame1
- CreditsLabel1.BackgroundColor3 = Color3.new(0.541176, 0.12549, 0.152941)
- CreditsLabel1.BorderColor3 = Color3.new(0.541176, 0.12549, 0.152941)
- CreditsLabel1.Position = UDim2.new(0.011299436, 0, 0.0198170729, 0)
- CreditsLabel1.Size = UDim2.new(0, 115, 0, 50)
- CreditsLabel1.Font = Enum.Font.SourceSans
- CreditsLabel1.Text = "made by superpugbot/testingrobux33/Guest_4406"
- CreditsLabel1.TextColor3 = Color3.new(0.219608, 0.0588235, 0.631373)
- CreditsLabel1.TextScaled = true
- CreditsLabel1.TextSize = 14
- CreditsLabel1.TextWrapped = true
- AFKBot1Button.Name = "AFKBot1Button"
- AFKBot1Button.Parent = MainFrame1
- AFKBot1Button.BackgroundColor3 = Color3.new(0.678431, 0.156863, 0.184314)
- AFKBot1Button.BorderColor3 = Color3.new(0.054902, 0, 0.470588)
- AFKBot1Button.Position = UDim2.new(0.627118647, 0, 0.268292665, 0)
- AFKBot1Button.Size = UDim2.new(0, 198, 0, 50)
- AFKBot1Button.Font = Enum.Font.SourceSans
- AFKBot1Button.Text = "AFK bot 1"
- AFKBot1Button.TextColor3 = Color3.new(0, 0, 0)
- AFKBot1Button.TextScaled = true
- AFKBot1Button.TextSize = 14
- AFKBot1Button.TextWrapped = true
- AFKBot1Button.MouseButton1Down:connect(function()
- MainFrame1.Visible = false
- MainFrame2.Visible = true
- end)
- AFKBot2Button.Name = "AFKBot2Button"
- AFKBot2Button.Parent = MainFrame1
- AFKBot2Button.BackgroundColor3 = Color3.new(0.678431, 0.156863, 0.184314)
- AFKBot2Button.BorderColor3 = Color3.new(0.054902, 0, 0.470588)
- AFKBot2Button.Position = UDim2.new(0.626177073, 0, 0.704268277, 0)
- AFKBot2Button.Size = UDim2.new(0, 198, 0, 50)
- AFKBot2Button.Font = Enum.Font.SourceSans
- AFKBot2Button.Text = "AFK bot 2"
- AFKBot2Button.TextColor3 = Color3.new(0, 0, 0)
- AFKBot2Button.TextScaled = true
- AFKBot2Button.TextSize = 14
- AFKBot2Button.TextWrapped = true
- AFKBot2Button.MouseButton1Down:connect(function()
- MainFrame1.Visible = false
- MainFrame3.Visible = true
- end)
- InfoLabel1.Name = "InfoLabel1"
- InfoLabel1.Parent = MainFrame1
- InfoLabel1.BackgroundColor3 = Color3.new(0.678431, 0.156863, 0.184314)
- InfoLabel1.BorderColor3 = Color3.new(0.678431, 0.156863, 0.184314)
- InfoLabel1.Position = UDim2.new(0.0263653491, 0, 0.268292695, 0)
- InfoLabel1.Size = UDim2.new(0, 287, 0, 50)
- InfoLabel1.Font = Enum.Font.SourceSans
- InfoLabel1.Text = "This option here will make your character walk around like a normal person in random directions."
- InfoLabel1.TextColor3 = Color3.new(0.219608, 0.0588235, 0.631373)
- InfoLabel1.TextScaled = true
- InfoLabel1.TextSize = 14
- InfoLabel1.TextWrapped = true
- InfoLabel2.Name = "InfoLabel2"
- InfoLabel2.Parent = MainFrame1
- InfoLabel2.BackgroundColor3 = Color3.new(0.678431, 0.156863, 0.184314)
- InfoLabel2.BorderColor3 = Color3.new(0.678431, 0.156863, 0.184314)
- InfoLabel2.Position = UDim2.new(0.0263653491, 0, 0.704268336, 0)
- InfoLabel2.Size = UDim2.new(0, 287, 0, 50)
- InfoLabel2.Font = Enum.Font.SourceSans
- InfoLabel2.Text = "This option here will make your character walk forwards then backwards over again."
- InfoLabel2.TextColor3 = Color3.new(0.219608, 0.0588235, 0.631373)
- InfoLabel2.TextScaled = true
- InfoLabel2.TextSize = 14
- InfoLabel2.TextWrapped = true
- MainFrame2.Name = "MainFrame2"
- MainFrame2.Parent = AFKbotgui
- MainFrame2.BackgroundColor3 = Color3.new(0.678431, 0.156863, 0.184314)
- MainFrame2.BorderColor3 = Color3.new(0.054902, 0, 0.470588)
- MainFrame2.Position = UDim2.new(0.162406012, 0, 0.452830195, 0)
- MainFrame2.Size = UDim2.new(0, 531, 0, 198)
- MainFrame2.Visible = false
- MainFrame2.Active = true
- MainFrame2.Draggable = true
- NameOfGUILabel2.Name = "NameOfGUILabel2"
- NameOfGUILabel2.Parent = MainFrame2
- NameOfGUILabel2.BackgroundColor3 = Color3.new(0.541176, 0.12549, 0.152941)
- NameOfGUILabel2.Position = UDim2.new(0, 0, 0.00304878037, 0)
- NameOfGUILabel2.Size = UDim2.new(0, 531, 0, 63)
- NameOfGUILabel2.Font = Enum.Font.SourceSans
- NameOfGUILabel2.Text = "AFK bot 1"
- NameOfGUILabel2.TextColor3 = Color3.new(0.219608, 0.0588235, 0.631373)
- NameOfGUILabel2.TextScaled = true
- NameOfGUILabel2.TextSize = 14
- NameOfGUILabel2.TextWrapped = true
- LaunchButton1.Name = "LaunchButton1"
- LaunchButton1.Parent = MainFrame2
- LaunchButton1.BackgroundColor3 = Color3.new(0.678431, 0.156863, 0.184314)
- LaunchButton1.Position = UDim2.new(0, 0, 0.439393908, 0)
- LaunchButton1.Size = UDim2.new(0, 200, 0, 50)
- LaunchButton1.Font = Enum.Font.SourceSans
- LaunchButton1.Text = "Launch bot"
- LaunchButton1.TextColor3 = Color3.new(0.219608, 0.0588235, 0.631373)
- LaunchButton1.TextScaled = true
- LaunchButton1.TextSize = 14
- LaunchButton1.TextWrapped = true
- LaunchButton1.MouseButton1Down:connect(function()
- activated = true
- while activated == true do
- wait(0.5)
- game.Players.LocalPlayer.Character.Humanoid:MoveTo(game.Players.LocalPlayer.Character.Torso.CFrame * Vector3.new(math.random(-10,10),0,math.random(-10,10)))
- end
- end)
- LaunchButton2.Name = "LaunchButton2"
- LaunchButton2.Parent = MainFrame2
- LaunchButton2.BackgroundColor3 = Color3.new(0.678431, 0.156863, 0.184314)
- LaunchButton2.Position = UDim2.new(0.62335217, 0, 0.439393878, 0)
- LaunchButton2.Size = UDim2.new(0, 200, 0, 50)
- LaunchButton2.Font = Enum.Font.SourceSans
- LaunchButton2.Text = "Stop bot"
- LaunchButton2.TextColor3 = Color3.new(0.219608, 0.0588235, 0.631373)
- LaunchButton2.TextScaled = true
- LaunchButton2.TextSize = 14
- LaunchButton2.TextWrapped = true
- LaunchButton2.MouseButton1Down:connect(function()
- activated = false
- end)
- ExitButton1.Name = "ExitButton1"
- ExitButton1.Parent = MainFrame2
- ExitButton1.BackgroundColor3 = Color3.new(1, 0, 0.0156863)
- ExitButton1.Position = UDim2.new(0.888888896, 0, 0.075757578, 0)
- ExitButton1.Size = UDim2.new(0, 51, 0, 35)
- ExitButton1.Font = Enum.Font.SourceSans
- ExitButton1.Text = "Exit"
- ExitButton1.TextColor3 = Color3.new(0, 0, 0)
- ExitButton1.TextScaled = true
- ExitButton1.TextSize = 14
- ExitButton1.TextWrapped = true
- ExitButton1.MouseButton1Down:connect(function()
- MainFrame2.Visible = false
- MainFrame1.Visible = true
- activated = false
- end)
- MainFrame3.Name = "MainFrame3"
- MainFrame3.Parent = AFKbotgui
- MainFrame3.BackgroundColor3 = Color3.new(0.678431, 0.156863, 0.184314)
- MainFrame3.BorderColor3 = Color3.new(0.054902, 0, 0.470588)
- MainFrame3.Position = UDim2.new(0.162406027, 0, 0.45471698, 0)
- MainFrame3.Size = UDim2.new(0, 531, 0, 198)
- MainFrame3.Visible = false
- MainFrame3.Active = true
- MainFrame3.Draggable = true
- NameOfGUILabel3.Name = "NameOfGUILabel3"
- NameOfGUILabel3.Parent = MainFrame3
- NameOfGUILabel3.BackgroundColor3 = Color3.new(0.541176, 0.12549, 0.152941)
- NameOfGUILabel3.Position = UDim2.new(0, 0, 0.00304878037, 0)
- NameOfGUILabel3.Size = UDim2.new(0, 531, 0, 63)
- NameOfGUILabel3.Font = Enum.Font.SourceSans
- NameOfGUILabel3.Text = "AFK bot 2"
- NameOfGUILabel3.TextColor3 = Color3.new(0.219608, 0.0588235, 0.631373)
- NameOfGUILabel3.TextScaled = true
- NameOfGUILabel3.TextSize = 14
- NameOfGUILabel3.TextWrapped = true
- LaunchButton3.Name = "LaunchButton3"
- LaunchButton3.Parent = MainFrame3
- LaunchButton3.BackgroundColor3 = Color3.new(0.678431, 0.156863, 0.184314)
- LaunchButton3.Position = UDim2.new(0, 0, 0.439393908, 0)
- LaunchButton3.Size = UDim2.new(0, 200, 0, 50)
- LaunchButton3.Font = Enum.Font.SourceSans
- LaunchButton3.Text = "Launch bot"
- LaunchButton3.TextColor3 = Color3.new(0.219608, 0.0588235, 0.631373)
- LaunchButton3.TextScaled = true
- LaunchButton3.TextSize = 14
- LaunchButton3.TextWrapped = true
- LaunchButton3.MouseButton1Down:connect(function()
- activated2 = true
- while activated2 == true do
- wait()
- local p = game.Players.LocalPlayer.Character.HumanoidRootPart
- local part1 = Instance.new("Part",game.Workspace)
- part1.Name = "Part1"
- part1.CFrame = CFrame.new(p.CFrame * Vector3.new(0,0,-10))
- part1.Transparency = 1
- part1.CanCollide = false
- wait()
- game.Players.LocalPlayer.Character.Humanoid:MoveTo(part1.Position)
- wait(1)
- part1:Destroy()
- wait()
- local p1 = game.Players.LocalPlayer.Character.HumanoidRootPart
- local part2 = Instance.new("Part",game.Workspace)
- part2.Name = "Part1"
- part2.CFrame = CFrame.new(p1.CFrame * Vector3.new(0,0,10))
- part2.Transparency = 1
- part2.CanCollide = false
- wait()
- game.Players.LocalPlayer.Character.Humanoid:MoveTo(part2.Position)
- wait(1)
- part2:Destroy()
- end
- end)
- LaunchButton4.Name = "LaunchButton4"
- LaunchButton4.Parent = MainFrame3
- LaunchButton4.BackgroundColor3 = Color3.new(0.678431, 0.156863, 0.184314)
- LaunchButton4.Position = UDim2.new(0.62335217, 0, 0.439393878, 0)
- LaunchButton4.Size = UDim2.new(0, 200, 0, 50)
- LaunchButton4.Font = Enum.Font.SourceSans
- LaunchButton4.Text = "Stop bot"
- LaunchButton4.TextColor3 = Color3.new(0.219608, 0.0588235, 0.631373)
- LaunchButton4.TextScaled = true
- LaunchButton4.TextSize = 14
- LaunchButton4.TextWrapped = true
- LaunchButton4.MouseButton1Down:connect(function()
- activated2 = false
- end)
- ExitButton2.Name = "ExitButton2"
- ExitButton2.Parent = MainFrame3
- ExitButton2.BackgroundColor3 = Color3.new(1, 0, 0.0156863)
- ExitButton2.Position = UDim2.new(0.888888896, 0, 0.075757578, 0)
- ExitButton2.Size = UDim2.new(0, 51, 0, 35)
- ExitButton2.Font = Enum.Font.SourceSans
- ExitButton2.Text = "Exit"
- ExitButton2.TextColor3 = Color3.new(0, 0, 0)
- ExitButton2.TextScaled = true
- ExitButton2.TextSize = 14
- ExitButton2.TextWrapped = true
- ExitButton2.MouseButton1Down:connect(function()
- MainFrame3.Visible = false
- MainFrame1.Visible = true
- activated2 = false
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement