Checkpoint spawn bugged

so i got a checkpoint script and it was working good until now, when i spawn on the checkpoint it makes me go through it which makes me fall off the map ( its a 2d obby ), when i make the checkpoint much higher in the air then it stops bugging

1 Like

Solution:

  1. Check Collision: Ensure CanCollide is true and the part is anchored if needed.
  2. Position: Ensure the checkpoint is not too close to the ground.
  3. Script: Verify that the script correctly sets the player’s respawn position.

Example checkpoint script:

local checkpoint = script.Parent
checkpoint.Touched:Connect(function(hit)
    local character = hit.Parent
    local player = game.Players:GetPlayerFromCharacter(character)
    if player then
        player.RespawnLocation = checkpoint
    end
end)