How do I save leaderstats

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    A way to save my leaderstats
  2. What is the issue? Include screenshots / videos if possible!
    I don’t know how
  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    I have watched so many tutorials and read so many topics but cant find my answer
    After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!

game.Players.PlayerAdded:Connect(function(player)

	local leaderstats = Instance.new("Folder") --making leaderstats
	leaderstats.Name = "leaderstats"
	leaderstats.Parent = player

	local Size = Instance.new("IntValue") --making coins
	Size.Name = "Size"
	Size.Parent = leaderstats
	
	local Rebirth = Instance.new("IntValue") --making coins
	Rebirth.Name = "Rebirths"
	Rebirth.Parent = leaderstats
	
end)

this is my code, how would I save rebirths? Where do I start and what do I do?

1 Like

well to can save your Leaderstats you will need to make a DataStore Script

bet “IntValues” has a cap of 9.22e18

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.