Universal Script πŸ“Œ
862 Views
32.4k Executions

Simple Anti Afk

10K executions
Universal Script πŸ“Œ
H7O_
H7O_10K executions
9 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_Uploader9 months ago

who disliked :(

2
kouisanz's profile picture
kouisanz9 months ago

w

1
H7O_'s profile picture
H7O_Uploader9 months ago

@kouisanz glad u like it!

2

Tags

More universal scripts

See all
Script hub
141
986
Bumped 27 minutes ago

Script hub

Lunyx Hub

Script hub
120.8k
221.2k
Bumped 45 minutes ago
Key System
Script hub
10.5k
200.6k
Bumped 1 hour ago

Script hub

KeylessVerified script badgeIRIDIUM HUB | #1

Script hub
33.3k
299.2k
Bumped 4 hours ago
Script hub
23.7k
5.3k
Bumped 4 hours ago
Key System
Paid
High QualityΒ Offering
Universal Script πŸ“Œ
305
977
Bumped 4 hours ago