Universal Script 📌
999 Views
43 Executions

Low HP auto Rejoin

Universal Script 📌
AzScripter
AzScripter1M views
1 year ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

Features: - Helpful Script - If your hp are low you will rejoin - Custom Script (change 15 from "local thresh=15" to set how many hp to rejoin) Tags: Low Health Auto Rejoin, Low Hp Auto Rejoin, Low Health Point Auto Rejoin

View Raw
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 then setup(plr.Character)end
plr.CharacterAdded:Connect(setup)
task.delay(10,function()busy=false end)


Comments

2
Log in to join the conversation. Login
Odetari's profile picture
Odetari1 year ago

tsb users will love this

2
WeakLess's profile picture
WeakLess1 year ago

nice for minecraft games

1

Tags

More universal scripts

See all
Universal Script 📌
48.4k
46.5k
Bumped 1 hour ago
Universal Script 📌
1.4k
1.3k
Bumped 4 hours ago
Universal Script 📌
4.2k
56.4k
Bumped 5 hours ago
Universal Script 📌
7.1k
71.4k
Bumped 5 hours ago
Script hub
3.5M
1.2M
Bumped 6 hours ago
Key System
Universal Script 📌
5.0k
92.0k
Bumped 11 hours ago