Run it
Copy the script and paste it into your executor.
local Players=game:GetService("Players")
local TS=game:GetService("TeleportService")
local plr=Players.LocalPlayer
local thresh=15
local busy=false
local function rejoinIfLow(hum)
local hp=hum.Health
if hp>0 and hp<=thresh and not busy then
busy=true
TS:TeleportToPlaceInstance(game.PlaceId,game.JobId,plr)
end
end
local function setup(char)
local hum=char:WaitForChild("Humanoid")
hum.HealthChanged:Connect(function(hp)
if hp>0 and hp<=thresh and not busy then
busy=true
TS:TeleportToPlaceInstance(game.PlaceId,game.JobId,plr)
end
end)
rejoinIfLow(hum)
end
if plr.Character (plr.Character)
plr.CharacterAdded:(setup)
.(,()busy= )
Universal