AntiVoid
Key RequiredUniversal

AntiVoid

Universal Scriptxurhub1999xurhub1999 2.4K views 134 executesUpdated Jul 7, 2025
Unrated
00
Lua Script•46 lines (1662 chars)
local Players = game:GetService("Players")
local player = Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local humanoidRootPart = character:WaitForChild("HumanoidRootPart")

-- Create ScreenGui and Button
local screenGui = Instance.new("ScreenGui", player:WaitForChild("PlayerGui"))
screenGui.Name = "AntiVoidGui"

local button = Instance.new("TextButton", screenGui)
button.Size = UDim2.new(0, 150, 0, 50)
button.Position = UDim2.new(0.5, -75, 0, 50)
button.Text = "Enable Anti-VoidKill"
button.BackgroundColor3 = Color3.fromRGB(0, 170, 0)
button.TextColor3 = Color3.new(1, 1, 1)
button.Font = Enum.Font.SourceSansBold
button.TextScaled = true

local antiVoidEnabled = false
local voidYLevel = -50 -- Y position considered as void

local safePosition = Vector3.new(0, 50, 0) -- Position to teleport player to if they fall

button.MouseButton1Click:Connect(function()
    antiVoidEnabled = not antiVoidEnabled
    if antiVoidEnabled then
        button.Text = "Disable Anti-VoidKill"
        button.BackgroundColor3 = Color3.fromRGB(170, 0, 0)
    else
        button.Text = "Enable Anti-VoidKill"
        button.BackgroundColor3 = Color3.fromRGB(0, 170, 0)
    end
end)

-- Monitor player's position
game:GetService("RunService").Heartbeat:Connect(function()
    if antiVoidEnabled and humanoidRootPart and humanoidRootPart.Position.Y < voidYLevel then
        humanoidRootPart.CFrame = CFrame.new(safePosition)
    end
end)

-- Update humanoidRootPart reference if character respawns
player.CharacterAdded:Connect(function(char)
    character = char
    humanoidRootPart = character:WaitForChild("HumanoidRootPart")
end)

Features & Information

You can't (basically) die

Community Comments (3)

xurhub1999xurhub1999Jul 7, 2025

Alr, it's simple but pretty good

Proman127fhhfjdProman127fhhfjdJan 18, 2026

So this is basically like god mode scirpt right?

09uu09uuMay 25, 2026

K

More Scripts for Universal Scripts