Universal Script 📌
2.5k Views
309 Executions

AntiVoid

Universal Script 📌
xurhub1999
xurhub1999First script
1 year ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

You can't (basically) die

View Raw
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)


Comments

4
Log in to join the conversation. Login
garai's profile picture
garai2 days ago

it dont work no more

1
09uu's profile picture
09uu5 months ago

K

1
Proman127fhhfjd's profile picture
Proman127fhhfjd10 months ago

So this is basically like god mode scirpt right?

1
xurhub1999's profile picture
xurhub1999Uploader1 year ago

Alr, it's simple but pretty good

1