Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How to make players god and can't be damaged/exploded?

2 answers

✓ Accepted answer

Here are some examples.

Forcefield:

plr = game.Players.LocalPlayer

local ff = Instance.new("ForceField")
ff.Parent = plr.Character

Renaming humanoid:

plrname = game.Players.LocalPlayer.Name
game.Players:WaitForChild(plrname)
game.Workspace:WaitForChild(plrname)
game.Workspace[plrname].Humanoid.Name = "GodMode"

Changing the health:

plrname  = game.Players.LocalPlayer.Name
game.Players:WaitForChild(plrname)
game.Workspace:WaitForChild(plrname)
game.Workspace[plrname].Humanoid.MaxHealth = 999999999  --or math.huge(makes it inf)
game.Workspace[plrname].Humanoid.Health = 999999999  --or math.huge(makes it inf)

1 comment

0

You can still explode if you use the last 2

a few ways to do this are:

rename the humanoid

set maxhealth to math.huge

add a forcefield

This discussion is preserved as it was. New answers, comments, and votes are closed.