My idea is that a brick that you enter (invisible, noncollision) will give you, say, 1000 health. Then when you exit the brick it will bring you back to 100 health.
Here's what I have so far:
local Heal = game.Workspace.Healer
Heal.Touched:connect(function(hit)
local humanoid = script.Parent:FindFirstChild("Humanoid")
if (humanoid ~= nil) then
humanoid.Health = humanoid.MaxHealth ~= 1000
end
end)
Heal.TouchEnded:connect(function(leave)
local humanoid = script.Parent:FindFirstChild("Humanoid")
if (humanoid ~= nil) then
humanoid.Health = humanoid.MaxHealth ~= 100
end
end)

5 comments
humanoid.MaxHealth = NUMDo what TheeDeath said, on lines 06 and 14
I tried, but the '=' sign was underlined with red and it didn't give me any health
^ What did the error say?
It says there was something missing around '='