ADVERTISEMENTREMOVE ADS

FE roblox egor for mobile

Universal script
2 months ago
Script preview thumbnail
Script Preview

Description

a simplier version of my script for ppl who is on mobile and dont know how to script

ADVERTISEMENTREMOVE ADS
127 Lines • 3.89 KiB
Raw
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local LocalPlayer = Players.LocalPlayer
local DEFAULTS = {
WalkSpeed = 16,
JumpPower = 50,
Gravity = 196.2,
AnimSpeed = 1
}
local egorOn, freezeOn = false, false
if LocalPlayer.PlayerGui:FindFirstChild("EgorSimpleUI") then
LocalPlayer.PlayerGui.EgorSimpleUI:Destroy()
end
local gui = Instance.new("ScreenGui", LocalPlayer.PlayerGui)
gui.Name = "EgorSimpleUI"
gui.ResetOnSpawn = false
local frame = Instance.new("Frame", gui)
frame.Size = UDim2.new(0, 240, 0, 150)
frame.Position = UDim2.new(0.5, -120, 0.5, -75)
frame.BackgroundColor3 = Color3.fromRGB(28,28,30)
frame.Active = true
frame.Draggable = true
Instance.new("UICorner", frame).CornerRadius = UDim.new(0,12)
local sig = Instance.new("TextLabel", frame)
sig.Size = UDim2.new(1,0,0,18)
sig.Position = UDim2.new(0,0,0,4)
sig.BackgroundTransparency = 1
sig.Text = "created by jonhfoer"
sig.Font = Enum.Font.Gotham
sig.TextSize = 12
sig.TextColor3 = Color3.fromRGB(200,200,200)
local close = Instance.new("TextButton", frame)
close.Size = UDim2.new(0,24,0,24)
close.Position = UDim2.new(1,-30,0,6)
close.Text = "X"
close.Font = Enum.Font.GothamBold
close.TextSize = 14
close.TextColor3 = Color3.new(1,1,1)
close.BackgroundColor3 = frame.BackgroundColor3
Instance.new("UICorner", close).CornerRadius = UDim.new(0,6)
local function resetAll()
local char = LocalPlayer.Character
if char then
local hum = char:FindFirstChildOfClass("Humanoid")
if hum then
hum.WalkSpeed = DEFAULTS.WalkSpeed
hum.JumpPower = DEFAULTS.JumpPower
for _, t in ipairs(hum:GetPlayingAnimationTracks()) do
t:AdjustSpeed(DEFAULTS.AnimSpeed)
end
end
if char:FindFirstChild("HumanoidRootPart") then
char.HumanoidRootPart.Anchored = false
end
end
workspace.Gravity = DEFAULTS.Gravity
RunService:UnbindFromRenderStep("EgorForce")
end
close.MouseButton1Click:Connect(function()
resetAll()
gui:Destroy()
end)
local function makeButton(y)
local btn = Instance.new("TextButton", frame)
btn.Size = UDim2.new(0.8,0,0,34)
btn.Position = UDim2.new(0.1,0,0,y)
btn.BackgroundColor3 = Color3.fromRGB(45,45,48)
btn.Font = Enum.Font.GothamBold
btn.TextSize = 14
btn.TextColor3 = Color3.new(1,1,1)
Instance.new("UICorner", btn).CornerRadius = UDim.new(0,8)
btn.MouseEnter:Connect(function() btn:TweenSize(UDim2.new(0.85,0,0,38),"Out","Quad",.12,true) end)
btn.MouseLeave:Connect(function() btn:TweenSize(UDim2.new(0.8,0,0,34),"Out","Quad",.12,true) end)
return btn
end
local egorBtn = makeButton(30)
egorBtn.Text = "Egor Mode"
egorBtn.MouseButton1Click:Connect(function()
egorOn = not egorOn
egorBtn.Text = egorOn and "Egor: ON" or "Egor Mode"
if egorOn then
RunService:BindToRenderStep("EgorForce", Enum.RenderPriority.Character.Value+1, function()
local char = LocalPlayer.Character
if char then
local hum = char:FindFirstChildOfClass("Humanoid")
if hum then
for _, t in ipairs(hum:GetPlayingAnimationTracks()) do
t:AdjustSpeed(DEFAULTS.AnimSpeed * 5) --change animation speed if you want to
end
end
end
end)
else
RunService:UnbindFromRenderStep("EgorForce")
end
end)
-- Freeze Mode Button
local freezeBtn = makeButton(80)
freezeBtn.Text = "Freeze Mode"
freezeBtn.MouseButton1Click:Connect(function()
freezeOn = not freezeOn
freezeBtn.Text = freezeOn and "Freeze: ON" or "Freeze Mode"
local hrp = LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("HumanoidRootPart")
if hrp then hrp.Anchored = freezeOn end
end)
ADVERTISEMENTREMOVE ADS

Comments

1 comment
to add a comment
me

Omg it works tyyyy

0
0
ADVERTISEMENTREMOVE ADS