
2.5k Views
309 Executions
AntiVoid
Universal Script 📌
xurhub1999First script
1 year ago
Please login to perform these actions:Does it work?
No reports yetNo reports yet. Tried it? Be the first to say.
Also noticed:
Description
You can't (basically) die
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)








it dont work no more
K
So this is basically like god mode scirpt right?
Alr, it's simple but pretty good