simple afk script · RobloxExploits.lol
ScriptBlox / Universal simple afk script mateoszo 1 year ago 5.6K viewsRun it
Copy the script and paste it into your executor.
simple afk script.lua · 121 lines Download Copy-- ✅ Load Orion Library
OrionLib = ( : (( )))()
RunService = : ( )
UserInputService = : ( )
StarterGui = : ( )
Players = : ( )
player = Players.LocalPlayer
playerGui = player: ( )
uiVisibilityState = {}
afkMode =
fpsLimit =
playerGui
_, gui (playerGui: ())
gui: ( )
uiVisibilityState[gui] = gui.Enabled
(state)
RunService: (state)
(state )
(state)
StarterGui: ( , state)
playerGui
_, gui (playerGui: ())
gui: ( )
gui.Enabled = state (uiVisibilityState[gui] )
(state )
(fps)
setfpscap
(fps)
( .. fps)
( )
(state)
afkMode = state
( afkMode)
( afkMode)
( )
( )
UserInputService.InputBegan: ( (input, gameProcessed)
input.KeyCode == .KeyCode.L
( afkMode)
)
Window = OrionLib: ({
Name = ,
HidePremium = ,
SaveConfig = ,
ConfigFolder =
})
AFKTab = Window: ({
Name = ,
Icon = ,
PremiumOnly =
})
AFKTab: ( )
AFKTab: ({
Name = ,
Default = ,
Callback = (state)
(state)
})
FPSTab = Window: ({
Name = ,
Icon = ,
PremiumOnly =
})
FPSTab: ({
Name = ,
Default = ,
Callback = (input)
fps = (input)
fps fps >
(fps)
( )
})
OrionLib: ()
Show all 121 lines
Loads code from the internet. It downloads more code when it runs (loadstring + HttpGet), which can change after it was posted. From: raw.githubusercontent.com.
Features you can limit fps disable rending disable UI rendering Works in
Any game (universal)
From ScriptBlox
This script lives on scriptblox.com. We show it with our safety checks; likes and comments are over there.
Stay safe
Never paste your .ROBLOSECURITY cookie anywhere, and use an alt account with scripts.
local
loadstring
game
HttpGet
'https://raw.githubusercontent.com/jensonhirst/Orion/main/source'
-- Services
local
game
GetService
"RunService"
local
game
GetService
"UserInputService"
local
game
GetService
"StarterGui"
local
game
GetService
"Players"
local
local
FindFirstChild
"PlayerGui"
local
-- Default states (inverted logic)
local
false
-- Start with AFK mode OFF (Rendering & UI enabled)
local
60
-- Default FPS limit
-- Store UI states
if
then
for
in
pairs
GetChildren
do
if
IsA
"ScreenGui"
then
end
end
end
-- ✅ Toggle Rendering
local
function
toggleRendering
Set3dRenderingEnabled
print
and
"✅ 3D Rendering Enabled!"
or
"❌ 3D Rendering Disabled!"
end
-- ✅ Toggle UI
local
function
toggleUI
SetCore
"TopbarEnabled"
if
then
for
in
pairs
GetChildren
do
if
IsA
"ScreenGui"
then
and
or
false
end
end
end
print
and
"✅ UI Enabled!"
or
"❌ UI Disabled!"
end
-- ✅ Set FPS Cap
local
function
setFPSLimit
if
then
setfpscap
print
"✅ FPS Limit set to "
else
warn
"Executor does not support setfpscap!"
end
end
-- ✅ Toggle AFK Mode (Inverted Logic)
local
function
toggleAFKMode
-- Store AFK state
toggleRendering
not
-- If AFK mode is ON, disable rendering
toggleUI
not
-- If AFK mode is ON, disable UI
end
-- ✅ Ensure UI & Rendering Start in Enabled State
toggleUI
true
toggleRendering
true
-- ✅ Press "L" to Toggle AFK Mode
Connect
function
if
Enum
then
toggleAFKMode
not
end
end
-- ✅ Create Orion UI Window
local
MakeWindow
"Performance Control"
false
false
"OrionPerformanceControl"
local
MakeTab
"AFK Mode"
"rbxassetid://4483345998"
false
AddLabel
"Enable this when AFK to reduce GPU usage."
AddToggle
"AFK Mode (Disables Rendering & UI)"
false
function
toggleAFKMode
end
local
MakeTab
"FPS Limiter"
"rbxassetid://4483345998"
false
AddTextbox
"Set FPS Limit"
"60"
function
local
tonumber
if
and
0
then
setFPSLimit
else
print
"❌ Invalid FPS value!"
end
end
Init
Soggyware 60 PLUS Games Universal