anti fall · RobloxExploits.lolanti fall
wie_134 4 months ago 2.1K views 1Run it
Copy the script and paste it into your executor.
anti fall.lua · 201 lines Players = :()
RunService = :()
player = Players.LocalPlayer
FALL_DISTANCE =
LOCK_TIME =
character
humanoid
rootPart
enabled =
teleporting =
lastSafeCFrame =
highestY =
gui = .()
gui.Name =
gui.ResetOnSpawn =
gui.Parent = player:()
frame = .()
frame.Size = .(, , , )
frame.Position = .(, , , )
frame.BackgroundColor3 = .(, , )
frame.BorderSizePixel =
frame.Parent = gui
.(, frame).CornerRadius = .(, )
button = .()
button.Size = .(, -, , -)
button.Position = .(, , , )
button.BackgroundColor3 = .(, , )
button.TextColor3 = .(,,)
button.Font = .Font.GothamBold
button.TextSize =
button.BorderSizePixel =
button.Parent = frame
.(, button).CornerRadius = .(, )
()
button.Text = enabled
()
button.MouseButton1Click:(()
enabled = enabled
()
)
(char)
character = char
humanoid = char:()
rootPart = char:()
lastSafeCFrame = rootPart.CFrame
highestY = rootPart.Position.Y
teleporting =
player.Character (player.Character)
player.CharacterAdded:(setupCharacter)
()
rayOrigin = rootPart.Position
rayDirection = .(, -, )
params = RaycastParams.()
params.FilterDescendantsInstances = {character}
params.FilterType = .RaycastFilterType.Blacklist
:(rayOrigin, rayDirection, params)
RunService.RenderStepped:(()
enabled
character humanoid rootPart
humanoid.Health <=
teleporting =
teleporting
currentY = rootPart.Position.Y
state = humanoid:()
groundHit = ()
groundHit state ~= .HumanoidStateType.Freefall
highestY = currentY
lastSafeCFrame = .(
groundHit.Position + .(, , )
) * .(
,
.(rootPart.Orientation.Y),
)
state == .HumanoidStateType.Freefall
fallenDistance = highestY - currentY
fallenDistance >= FALL_DISTANCE
teleporting =
oldWalkSpeed = humanoid.WalkSpeed
oldJumpPower = humanoid.JumpPower
oldAutoRotate = humanoid.AutoRotate
humanoid.WalkSpeed =
humanoid.JumpPower =
humanoid.AutoRotate =
rootPart.Anchored =
rootPart.CFrame = lastSafeCFrame
.(LOCK_TIME)
rootPart.Anchored =
humanoid.WalkSpeed = oldWalkSpeed
humanoid.JumpPower = oldJumpPower
humanoid.AutoRotate = oldAutoRotate
highestY = rootPart.Position.Y
.()
teleporting =
)
About this script
teleports back to the position u fell from
yes i did it with ai
local
game
GetService
"Players"
local
game
GetService
"RunService"
local
---------------------------------------------------
-- SETTINGS
---------------------------------------------------
local
25
local
0.75
---------------------------------------------------
-- VARIABLES
---------------------------------------------------
local
local
local
local
true
local
false
local
nil
local
nil
---------------------------------------------------
-- UI (UNCHANGED)
---------------------------------------------------
local
Instance
new
"ScreenGui"
"FallReturnUI"
false
WaitForChild
"PlayerGui"
local
Instance
new
"Frame"
UDim2
new
0
145
0
38
UDim2
new
0
15
0
15
Color3
fromRGB
38
38
38
0
Instance
new
"UICorner"
UDim
new
0
7
local
Instance
new
"TextButton"
UDim2
new
1
8
1
8
UDim2
new
0
4
0
4
Color3
fromRGB
58
58
58
Color3
new
1
1
1
Enum
13
0
Instance
new
"UICorner"
UDim
new
0
6
local
function
updateButton
and
"Fall Return : ON"
or
"Fall Return : OFF"
end
updateButton
Connect
function
not
updateButton
end
---------------------------------------------------
-- CHARACTER
---------------------------------------------------
local
function
setupCharacter
WaitForChild
"Humanoid"
WaitForChild
"HumanoidRootPart"
---------------------------------------------------
-- 🔥 HARD RESET (FIX PERMA LOCK BUG)
---------------------------------------------------
false
end
if
then
setupCharacter
end
Connect
---------------------------------------------------
-- GROUND CHECK (UNCHANGED)
---------------------------------------------------
local
function
isGrounded
local
local
Vector3
new
0
6
0
local
new
Enum
return
workspace
Raycast
end
---------------------------------------------------
-- MAIN
---------------------------------------------------
Connect
function
if
not
then
return
end
if
not
or
not
or
not
then
return
end
---------------------------------------------------
-- 🔥 SAFETY: IF HUMANOID BROKE, FORCE UNLOCK STATE
---------------------------------------------------
if
0
then
false
return
end
---------------------------------------------------
-- PREVENT DOUBLE TRIGGERS
---------------------------------------------------
if
then
return
end
local
local
GetState
---------------------------------------------------
-- SAVE SAFE POSITION
---------------------------------------------------
local
isGrounded
if
and
Enum
then
CFrame
new
Vector3
new
0
3
0
CFrame
Angles
0
math
rad
0
end
---------------------------------------------------
-- FALL DETECT
---------------------------------------------------
if
Enum
then
local
if
then
true
---------------------------------------------------
-- LOCK
---------------------------------------------------
local
local
local
0
0
false
true
---------------------------------------------------
-- TELEPORT
---------------------------------------------------
task
wait
---------------------------------------------------
-- UNLOCK (GUARANTEED)
---------------------------------------------------
false
task
wait
0.15
---------------------------------------------------
-- 🔥 CRITICAL RESET (PREVENT STUCK LOOP)
---------------------------------------------------
false
end
end
end
Snowy Hub 500+ Games & 25600+ Features
Universal