Egor script made by ai · RobloxExploits.lolEgor script made by ai
areeshiqi 1 year ago 14K views 3Run it
Copy the script and paste it into your executor.
Egor script made by ai.lua · 185 lines
Players = :()
RunService = :()
TweenService = :()
player = Players.LocalPlayer
playerGui = player:()
gui = .()
gui.Name =
gui.ResetOnSpawn =
gui.Parent = playerGui
backgroundFrame = .()
backgroundFrame.Name =
backgroundFrame.Size = .(, , , )
backgroundFrame.Position = .(, , , -)
backgroundFrame.BackgroundColor3 = .(, , )
backgroundFrame.BorderSizePixel =
backgroundFrame.Parent = gui
frameCorner = .()
frameCorner.CornerRadius = .(, )
frameCorner.Parent = backgroundFrame
frameStroke = .()
frameStroke.Color = .(, , )
frameStroke.Thickness =
frameStroke.Transparency =
frameStroke.Parent = backgroundFrame
button = .()
button.Name =
button.Size = .(, -, , -)
button.Position = .(, , , )
button.BackgroundColor3 = .(, , )
button.BorderSizePixel =
button.TextColor3 = .(, , )
button.TextSize =
button.Font = .Font.SourceSansBold
button.Text =
button.Parent = backgroundFrame
buttonCorner = .()
buttonCorner.CornerRadius = .(, )
buttonCorner.Parent = button
egorEnabled =
runAnimId =
runTrack =
runConnection =
tweenInfo = TweenInfo.(, .EasingStyle.Quad, .EasingDirection.Out)
offColor = .(, , )
onColor = .(, , )
(humanoid)
animator = humanoid:()
animator
animator = .(, humanoid)
runTrack
runTrack:()
runTrack:()
runTrack =
runConnection
runConnection:()
runConnection =
runAnim = .()
runAnim.AnimationId = runAnimId
runTrack = animator:(runAnim)
runTrack.Priority = .AnimationPriority.Movement
runTrack:()
runConnection = RunService.RenderStepped:(()
humanoid.MoveDirection.Magnitude ==
runTrack.IsPlaying
runTrack:()
runTrack.IsPlaying
runTrack:()
runTrack:()
)
()
runTrack
runTrack:()
runTrack:()
runTrack =
runConnection
runConnection:()
runConnection =
()
char = player.Character
char
humanoid = char:()
humanoid
humanoid.WalkSpeed =
(humanoid)
button.Text =
TweenService:(button, tweenInfo, {BackgroundColor3 = onColor}):()
()
char = player.Character
char
humanoid = char:()
humanoid
humanoid.WalkSpeed =
()
button.Text =
TweenService:(button, tweenInfo, {BackgroundColor3 = offColor}):()
button.MouseButton1Click:(()
egorEnabled = egorEnabled
egorEnabled
()
()
)
(char)
humanoid = char:()
char:()
.()
egorEnabled
()
humanoid.WalkSpeed =
player.Character
(player.Character)
player.CharacterAdded:(onCharacterAdded)
About this script
Run like egor
More for Natural Disaster Survival
-- LocalScript (StarterPlayerScripts)
-- === Services ===
local
game
GetService
"Players"
local
game
GetService
"RunService"
local
game
GetService
"TweenService"
-- === Player and GUI Setup ===
local
local
WaitForChild
"PlayerGui"
local
Instance
new
"ScreenGui"
"EgorToggle"
false
-- Create a frame to hold the button
local
Instance
new
"Frame"
"ButtonFrame"
UDim2
new
0
160
0
70
UDim2
new
0
10
1
80
Color3
fromRGB
30
30
30
0
-- Add a rounded corner to the frame
local
Instance
new
"UICorner"
UDim
new
0
10
-- Add a subtle border effect
local
Instance
new
"UIStroke"
Color3
fromRGB
200
200
200
1
0.5
-- Create the button inside the frame
local
Instance
new
"TextButton"
"Toggle"
UDim2
new
1
20
1
20
UDim2
new
0
10
0
10
Color3
fromRGB
50
50
50
0
Color3
new
1
1
1
20
Enum
"Egor: OFF"
-- Add a rounded corner to the button
local
Instance
new
"UICorner"
UDim
new
0
8
-- === State Variables ===
local
false
local
"rbxassetid://913376220"
-- Roblox default run
local
nil
local
nil
-- Tweening variables for visual feedback
local
new
0.2
Enum
Enum
local
Color3
fromRGB
50
50
50
local
Color3
fromRGB
80
200
80
-- A bright green for "ON"
-- === Setup Run Animation ===
local
function
playRunAnimation
local
FindFirstChildWhichIsA
"Animator"
if
not
then
Instance
new
"Animator"
end
-- Stop any previous animation tracks
if
then
Stop
Destroy
nil
end
if
then
Disconnect
nil
end
-- Load run animation manually
local
Instance
new
"Animation"
LoadAnimation
Enum
-- The corrected logic: Play the animation and then handle speed in the loop
Play
-- Monitor player movement every frame
Connect
function
if
0
then
-- Stop when not moving
if
then
Stop
end
else
-- Play and adjust speed when moving
if
not
then
Play
end
-- CRUCIAL FIX: Always adjust the speed when the player is moving.
-- This ensures the fast visual effect is consistently applied
-- and doesn't get overwritten by the default walkspeed.
AdjustSpeed
6
end
end
end
local
function
stopRunAnimation
if
then
Stop
Destroy
-- Clean up the animation track
nil
end
if
then
Disconnect
nil
end
end
-- === Toggle Egor Mode ===
local
function
enableEgor
local
if
not
then
return
end
local
FindFirstChild
"Humanoid"
if
not
then
return
end
3
playRunAnimation
"Egor: ON"
-- Tween button color to green
Create
Play
end
local
function
disableEgor
local
if
not
then
return
end
local
FindFirstChild
"Humanoid"
if
not
then
return
end
16
stopRunAnimation
"Egor: OFF"
-- Tween button color back to gray
Create
Play
end
-- === Button Toggle ===
Connect
function
not
if
then
enableEgor
else
disableEgor
end
end
-- === On Character Spawn ===
local
function
onCharacterAdded
local
WaitForChild
"Humanoid"
WaitForChild
"Animate"
-- Wait for the default animation script
task
wait
0.5
if
then
enableEgor
else
-- Ensure the character starts with the default speed if not enabled
16
end
end
-- Initial setup if the player's character already exists
if
then
onCharacterAdded
end
-- Connect to the CharacterAdded event to handle respawns
Connect
Snowy Hub 500+ Games & 25600+ Features
Universal