local Players = game:GetService("Players") local folder = workspace:WaitForChild("CheckpointPads") local function bind(player) player:SetAttribute("CheckpointStage", 0) player.CharacterAdded:Connect(function(character) character:WaitForChild("HumanoidRootPart") local pad = folder:FindFirstChild(tostring(player:GetAttribute("CheckpointStage"))) if pad and pad:IsA("BasePart") then character:PivotTo(pad.CFrame + Vector3.new(0, 3, 0)) end end) end Players.PlayerAdded:Connect(bind) for _, player in Players:GetPlayers() do bind(player) end for _, pad in folder:GetChildren() do local stage = tonumber(pad.Name) if stage and pad:IsA("BasePart") then pad.Touched:Connect(function(hit) local character = hit:FindFirstAncestorOfClass("Model") local player = character and Players:GetPlayerFromCharacter(character) if player and stage > (player:GetAttribute("CheckpointStage") or 0) then player:SetAttribute("CheckpointStage", stage) end end) end end