game.Players.PlayerAdded:Connect(function(plr)
local stage = plr:WaitForChild("leaderstats").Stage
plr.CharacterAdded:Connect(function(char)
repeat wait() until plr.Character ~= nil
wait(0.01)
local checkpoint = game.Workspace.Stages:FindFirstChild(stage.Value)
char:FindFirstChild("HumanoidRootPart").CFrame = CFrame.new(checkpoint.Position + Vector3.new(0,5,0). checkpoint.Position)
char:FindFirstChild("HumanoidRootPart").Orientation = Vector3.new(0,0,0)
wait(0.1)
end)
end)
18:52:36.439 checkpoint is not a valid member of Vector3 - Server - Checkpoints:7
any fix suggestion on line 7?

1 comment
Why are you trying to index it from the Vector3?