I am trying to make an obby that uses checkpoints and saves the data, i have tested it with my friends but it only teleports me to the stage i left. Help please.
Server Script:
game.Players.PlayerAdded:Connect(function(Player)
Player.CharacterAdded:Connect(function(char)
repeat wait() until Player.Character ~= nil
if Stage.Value == 0 then return end
local Checkpoint = game.Workspace:FindFirstChild(Stage.Value)
if Checkpoint then
char:MoveTo(game.Workspace[tostring(Stage.Value)].Position)
end
end)
end)
The checkpoints name are the same as of its stage. No errors.
Thanks. If you want more information ask.

4 comments
i think uhhh u have to use saving on user id idk
I already did that. However, thats not the problem.
What do you mean by 'but it only teleports me to the stage i left'?
Well, i am the only one who the script teleports to the stage i left, while others players don't