Player.Character.Humanoid.Died:connect(function()
if(Player:FindFirstChild("PlayerGui"):FindFirstChild("Check")~=nil)then
game.Workspace.SpawnLocation.Enabled = false
local FakeSpawn = game.Workspace.SpawnLocation:Clone()
FakeSpawn.Name = "FakeSpawn"..Player.Name
FakeSpawn.Size = Vector3.new(6,1,1)
FakeSpawn.Enabled = true
FakeSpawn.CanCollide = false
FakeSpawn.Anchored = true
FakeSpawn.Transparency = 1
FakeSpawn.Parent = game.Workspace
FakeSpawn.Position = Player.Character:FindFirstChild("Torso").Position
end
end)``
i am trying to spawn the player by name lets say player1 died we creat a FakeSpawnPlayer1 but if 2 players died only they BOTH spawn in random spawn between FakeSpawnPlayer1 and FakeSpawnPlayer2 .
how can i spawn each player in his own private spawn ? should i make a team color ? although i dont like it .

4 comments
i can give you the code, but im busy so, make a table with the spawn names and when a player spawns on that specific spawn, remove it from the table
how do i know which spawn he spawned on , also removing it from the table wont cause anything since the player spawn automatically to some random spawn unless theres some function that control the player's spawn or something
Is this the full script? If so then where are you getting the Player from?
local script