7,927 views
Description
Sets respawn points as you go and you get teleported to last spawn point if you respawn.
Features
- + Teleport to last spawn point
repeat
wait()
until game:IsLoaded()
wait(0.3)
local ConsoleLogging = true
local function Log(Text)
if ConsoleLogging then
warn(Text)
end
end
if getgenv().SpawnPoints == true then
Log("|Already Executed|")
return
end
getgenv().SpawnPoints = true
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local TweenService = game:GetService("TweenService")
local LocalPlayer = Players.LocalPlayer
local PlaceId = {1962086868, 94971861814985, 3582763398, 5253186791}
local CurrentSpawnPart = nil
if table.find(PlaceId, game.PlaceId) then
Log("|Loading Spawn Points|")
else
return
end
local function AddSpawnPoint(Platform)
Platform.Touched:Connect(function(Part)
if Part.Parent.Name == LocalPlayer.Name and CurrentSpawnPart ~= Platform then
if CurrentSpawnPart ~= nil then
if CurrentSpawnPart:IsDescendantOf(game) == true then
if Platform.Position.Y > CurrentSpawnPart.Position.Y then
CurrentSpawnPart = Platform
Log("|New Spawn Point|")
end
else
CurrentSpawnPart = Platform
Log("|New Spawn Point|")
end
else
CurrentSpawnPart = Platform
Log("|New Spawn Point|")
end
end
end)
end
local function SetCanTouchProperty(Character, Boolean)
for i, v in ipairs(Character:GetChildren()) do
if v.Name == "Torso" or v.Name == "hitbox" then
v.CanTouch = Boolean
end
end
end
local function Teleport(Character)
if CurrentSpawnPart ~= nil then
if CurrentSpawnPart:IsDescendantOf(game) then
local HRP = Character:WaitForChild("HumanoidRootPart")
local Target = CurrentSpawnPart.Position + Vector3.new(0, 2, 0)
local Height = math.clamp(Target.Y, 1, 512)
SetCanTouchProperty(Character, false)
HRP.Anchored = true
local Time = 0.125*Height
TweenService:Create(HRP, TweenInfo.new(Time, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut), {CFrame = CFrame.new(Target)}):Play()
task.delay(Time+0.1, function()
HRP.Anchored = false
end)
end
end
end
for i, v in ipairs(workspace:GetDescendants()) do
if v.Name == "stop" or v.Name == "start" and v:IsA("Part") then
AddSpawnPoint(v)
end
end
workspace.DescendantAdded:Connect(function(Descendant)
RunService.Heartbeat:Wait()
if Descendant.Name == "stop" or Descendant.Name == "start" and Descendant:IsA("Part") then
AddSpawnPoint(Descendant)
end
end)
LocalPlayer.CharacterAdded:Connect(function(Character)
local Ping = LocalPlayer:GetNetworkPing()
RunService.Heartbeat:Wait()
wait(Ping)
Teleport(Character)
end)
Log("|Spawn Points Loaded|")
Script worked? 🚀 Boost it to #1 so others find it too.
Similar Scripts
1,619
20 days ago
Free
tower of hell
ToH script made by Nexus | inf jump, wallhop helper
7,279
3 months ago
Free
Tower of Hell
New SCRIPT! Auto Teleport to Final
4,114
4 months ago
Free
Tower of Hell
ESP NPC
7,030
5 months ago
Free
Tower of Hell
TOH Auto Tween to top OP Keyless
168,906
1 year ago
Free
Universal
XVC Script Hub [170+ GAMES]
334
5 hours ago
Free
+1 Assassin Leveling
+1 Assassin Leveling script by Tora isme | Auto stage, Anti damage
🚀
Log in to boost
Boosting rockets this script to #1 on the homepage. A free account takes 30 seconds.
Log in
🚀
Out of boosts!
Grab boosts and rocket your favorite scripts to the top — plus join the booster wall with the RGB ring.
⚡ Go Pro — 10 boosts/month + zero ads
🚀
Boost this script?
It jumps to #1 in Recent Scripts and your avatar joins the booster wall.
🚀
Boosted! You're awesome 💜
Comments (1)
Log in to add a comment.
PSHELOVOD0
2 months ago
не неработает