I want the players in my game to be godded & non-explodable.
✓ 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.

1 comment
You could use this to provide inmunity from damage & explosions. http://wiki.roblox.com/index.php?title=API:Class/ForceField