So, recently, I’ve been developing an obstacle course, titled “datas ep1c 0bby of d00mz!”.
Rather than using an older team-style system to save progress, I’ve opted to use a leaderstats “Stage” IntValue.
player.CharacterAdded:Connect(function(character)
--Calculate new spawn
local playerStage = player.leaderstats.Stage.Value
local stageName = "Spawn" .. playerStage
character:WaitForChild("HumanoidRootPart").CFrame = workspace.Spawns[stageName].CFrame + Vector3.new(0,1,0)
end)```
Would it be more optimal to instead save the CFrame of each spawn block in a table when the game is first launched, then access that table with the Stage value as the key, or is this method probably fine? I guess a little nit-picky, but I want the game to feel smooth.