Above ^
I'm not sure how to make it but I've got this script so far with help but it wont work
script.Parent.Touched:Connect(function(touched)
if touched.Parent:FindFirstChild("Humanoid") then
local InSafeZone = Instance.new("BoolValue")
InSafeZone.Name = "InSafeZone"
InSafeZone.Value = true
while true do
local character = touched.Parent
local humanoid = character:FindFirstChild("Humanoid")
humanoid.MaxHealth = math.huge
humanoid.Health = math.huge
end
end
end)
script.Parent.TouchEnded:Connect(function(touched)
if not touched.Parent:FindFirstChild("Humanoid") then return end
InSafeZone.Value = false
time.Value = time.Value + 1
end)
