God Mode
Key RequiredUniversal

God Mode

Universal Scriptcjam1614cjam1614 1.2K views 32.1K executesUpdated Aug 31, 2026
Unrated
00
Lua Script•98 lines (2355 chars)
--// SAFE INVINCIBILITY TOGGLE
--// Put this LocalScript in StarterPlayer > StarterPlayerScripts

local Players = game:GetService("Players")
local player = Players.LocalPlayer

local invincible = false
local forceField

--==================================================
-- UI
--==================================================

local gui = Instance.new("ScreenGui")
gui.Name = "GodModeUI"
gui.ResetOnSpawn = false
gui.Parent = player:WaitForChild("PlayerGui")

local button = Instance.new("TextButton")
button.Size = UDim2.fromOffset(190, 50)
button.Position = UDim2.new(0, 20, 0.5, -25)
button.BackgroundColor3 = Color3.fromRGB(180, 45, 45)
button.TextColor3 = Color3.new(1, 1, 1)
button.Text = "INVINCIBLE: OFF"
button.TextSize = 18
button.Font = Enum.Font.GothamBold
button.AutoButtonColor = true
button.Parent = gui

local corner = Instance.new("UICorner")
corner.CornerRadius = UDim.new(0, 10)
corner.Parent = button

--==================================================
-- Invincibility
--==================================================

local function removeForceField()
	if forceField then
		forceField:Destroy()
		forceField = nil
	end
end

local function enableInvincibility(character)
	removeForceField()

	-- ForceField blocks normal Humanoid damage
	forceField = Instance.new("ForceField")
	forceField.Name = "InvincibilityForceField"
	forceField.Visible = false
	forceField.Parent = character
end

local function disableInvincibility()
	removeForceField()
end

local function update()
	local character = player.Character

	if not character then
		return
	end

	if invincible then
		enableInvincibility(character)

		button.Text = "INVINCIBLE: ON"
		button.BackgroundColor3 = Color3.fromRGB(45, 180, 80)
	else
		disableInvincibility()

		button.Text = "INVINCIBLE: OFF"
		button.BackgroundColor3 = Color3.fromRGB(180, 45, 45)
	end
end

--==================================================
-- Toggle
--==================================================

button.MouseButton1Click:Connect(function()
	invincible = not invincible
	update()
end)

--==================================================
-- Respawn support
--==================================================

player.CharacterAdded:Connect(function(character)
	if invincible then
		character:WaitForChild("Humanoid")
		task.wait(0.1)
		enableInvincibility(character)
	end
end)

Features & Information

God mode Invincible

Community Comments (0)

No comments yet for this script.

More Scripts for Universal Scripts