local function createLeaderstats(player: Player, profileData: Types.PlayerProfileData)
local leaderstats = Instance.new("Folder")
leaderstats.Name = "leaderstats"
local coinsValue = Instance.new("IntValue")
coinsValue.Name = "Coins"
coinsValue.Value = (profileData and profileData.Coins) or 0
coinsValue.Parent = leaderstats
local gemsValue = Instance.new("IntValue")
gemsValue.Name = "Gems"
gemsValue.Value = (profileData and profileData.Gems) or 0
gemsValue.Parent = leaderstats
local rebirthsValue = Instance.new("IntValue")
rebirthsValue.Name = "Rebirths"
rebirthsValue.Value = (profileData and profileData.Rebirths) or 0
rebirthsValue.Parent = leaderstats
leaderstats.Parent = player
end