I tried making a text button that changed the humanoid root part name but that made it so u cant jump and animations are weird
If anyone knows a way to do this it will greatly be appreciated
Id just like a button that can remove a player from the teleport list
local ServerStorage = game:GetService("ServerStorage")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Players = game:GetService("Players")
local Maps = ServerStorage:WaitForChild('Maps'):GetChildren()
local Status = ReplicatedStorage:WaitForChild('Status')
while true do
--Intermission
local Countdown = 15 -- ten second intermission,
repeat wait(1)
Countdown = Countdown - 1
Status.Value = 'Intermission : '..Countdown
until Countdown <= 0
--Choose the map.
Status.Value = 'Choosing Map.'
local ChosenMap = Maps[math.random(1, #Maps)]:Clone()
local Spawns = ChosenMap:FindFirstChild('Spawns'):GetChildren()
local RandomSpawn = Spawns[math.random(1, #Spawns)]
wait(5) -- little pause,
ChosenMap.Parent = workspace
Status.Value = 'Chosen Map - '..ChosenMap.Name
wait(2) -- little pause
Status.Value = "Get Ready!"
wait(2)
Status.Value = "Teleporting Players"
wait (1.5)
--teleport the players
for _, Player in pairs(Players:GetChildren())do
if Player.Character and Player.Character:FindFirstChild('Humanoid') then
Player.Character.HumanoidRootPart.CFrame = RandomSpawn.CFrame
end
end
Countdown = 2 -- Starting Round In, make this as long as you want
repeat wait(1)
Countdown = Countdown - 1
Status.Value = "Round Started!"
until Countdown <= 0
Countdown = 58 -- Game Time
repeat wait(1)
Countdown = Countdown - 1
Status.Value = 'Time: '..Countdown
until Countdown <= 0
--Kill the players
for _, Player in pairs(Players:GetChildren())do
if Player.Character and Player.Character:FindFirstChild('Humanoid') then
Player.Character.Humanoid:TakeDamage(0)
end
end
ChosenMap:Destroy()
Status.Value = 'Round Ended! Waiting For New Game'
wait(4) -- little pause
end

2 comments
I would create a bool value inside the character, if its set to true, don't teleport player
thanks @Leamir