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:
-
Check Collision: Ensure
CanCollide
istrue
and the part is anchored if needed. - Position: Ensure the checkpoint is not too close to the ground.
- 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)