I tried print statements, and 1. The checkpoint CFrame works 2. HumanoidRootPart Cframe works
The line somehow runs when I put it in a for loop running 100 times, I’m just guessing that something wasn’t loaded at the time this line ran.
local char = player.Character or player.CharacterAdded:Wait()
function stuff(char)
char:WaitForChild("HumanoidRootPart")
char:SetPrimaryPartCFrame(game.Workspace.Checkpoints["Checkpoint"..tostring(game.Players:GetPlayerFromCharacter(char).leaderstats.Stage.Value)]:GetPrimaryPartCFrame()+Vector3.new(0,5,0))
end
stuff(char)
player.CharacterAdded:Connect(stuff)
local char = player.Character or player.CharacterAdded:Wait()
function stuff(char)
char:WaitForChild("HumanoidRootPart")
char:SetPrimaryPartCFrame(game.Workspace.Checkpoints["Checkpoint"..tostring(game.Players:GetPlayerFromCharacter(char).leaderstats.Stage.Value)]:GetPrimaryPartCFrame()+Vector3.new(0,5,0))
end
player.CharacterAdded:Connect(stuff)(char)
The for loop works pretty well for me, it only runs twice, and since the checkpoints are absolutely from scratch, they aren’t spawnlocations. Thanks though