game.Players.PlayerAdded:Connect(function(player)
local leaderstats = Instance.new("Folder")
leaderstats.Name = "leaderstats"
leaderstats.Parent = player
local stages = Instance.new("IntValue")
stages.Name = "Stages"
stages.Parent = leaderstats
local rebirths = Instance.new("IntValue")
rebirths.Name = "Rebirths"
rebirths.Parent = leaderstats
end)
This code will work in Roblox Studio but it doesn't work outside Roblox Studio. Please help. Thank you!

1 comment
help