How to make a player spawn at a location like a obby when dead please help

Your read the question you know what to do help. Thx

Please do not ask for full scripts here!
This topic “Scripting Support” is for when you made a script and it dont works and need help!
Try search on youtube something like “Roblox studio checkpoint system obby”
=D

1 Like

I just want the basic idea of how to make it like a little example of what will i be using to do this?

There is already a “Checkpoint” spawn for obbys in the toolbox made by Roblox.

…

I want to learn how to make it not get it for no effort

He does not explain very good but I will look at it again.

Good luck!
But please do not ask for full scripts on dev forum! =D

VISIBLE CONFUSION

  • Step 1: Create a Value for every time the player joins
game.Players.PlayerAdded:Connect(function(Player)
    local Stage = Instance.new("IntValue")
    Stage.Name = "Stage"
    Stage.Value = 1 
end)
  • Step 2: Detect whenever a Player respawns, they’ll get teleported to the certain spawnpoint
workspace.ChildAdded:Connect(function(Child)
    if game.Players:GetPlayerFromCharacter(Child) then
        if Stage.Value == 1 then
            Child:MoveTo(workspace.Stage1.Position)
        end
    end
end)

This is just a sample code though, keep in mind that

1 Like

thank you but how do I know when a player respawns

Step 2 has that covered, the ChildAdded event fires whenever a Object gets added into the workspace

OH okay thanks have a great day

1 Like

player.CharacterAdded will fire once the player’s character is added. When the player dies their character is destroyed, replaced with the new character,

1 Like