Universal Script 📌
858 Views
28.6k Executions

Simple Anti Afk

10K executions
Universal Script 📌
H7O_
H7O_10K executions
8 months ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

jumps every second so u don't disconnect.

View Raw
local Players = game:GetService("Players")
local player = Players.LocalPlayer

if player:WaitForChild("PlayerGui"):FindFirstChild("AntiAFKGui") then
	player.PlayerGui.AntiAFKGui:Destroy()
end

local ScreenGui = Instance.new("ScreenGui")
ScreenGui.Name = "AntiAFKGui"
ScreenGui.ResetOnSpawn = false
ScreenGui.Parent = player:WaitForChild("PlayerGui")

local Frame = Instance.new("Frame")
Frame.Size = UDim2.new(0, 200, 0, 100)
Frame.Position = UDim2.new(0.5, -100, 0.5, -50)
Frame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
Frame.Active = true
Frame.Draggable = true
Frame.Parent = ScreenGui

local ToggleButton = Instance.new("TextButton")
ToggleButton.Size = UDim2.new(1, -20, 0, 50)
ToggleButton.Position = UDim2.new(0, 10, 0, 25)
ToggleButton.Text = "Anti AFK: OFF"
ToggleButton.BackgroundColor3 = Color3.fromRGB(200, 50, 50)
ToggleButton.TextColor3 = Color3.new(1,1,1)
ToggleButton.Parent = Frame

local antiAFK = false

task.spawn(function()
	while true do
		if antiAFK then
			local character = player.Character
			if character and character:FindFirstChild("Humanoid") then
				character.Humanoid:ChangeState(Enum.HumanoidStateType.Jumping)
			end
		end
		task.wait(1)
	end


Comments

3
Log in to join the conversation. Login
H7O_'s profile picture
H7O_Uploader8 months ago

who disliked :(

2
kouisanz's profile picture
kouisanz8 months ago

w

1
H7O_'s profile picture
H7O_Uploader8 months ago

@kouisanz glad u like it!

2

Tags

More universal scripts

See all