Universal Script 📌
973 Views
19 Executions

Low HP auto Rejoin

Universal Script 📌
AzScripter
AzScripter1M views
11 months 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
Odetari11 months ago

tsb users will love this

2
WeakLess's profile picture
WeakLess11 months ago

nice for minecraft games

1

Tags

More universal scripts

See all
Universal Script 📌
3.8k
184.5k
Bumped 3 hours ago
Script hub
339
31
4 hours ago
Universal Script 📌
28.6k
663.4k
Bumped 6 hours ago
Script hub
13.7k
2.7k
Bumped 8 hours ago
Key System
Paid
Script hub
263.6k
88.1k
Bumped 8 hours ago
Key System
Universal Script 📌
2.9k
9.5k
Bumped 9 hours ago
Universal Script 📌
611
38
Approved 9 hours ago
Universal Script 📌
645
36
Approved 9 hours ago