Hey, so I have a leader stats code like this:
game.Players.PlayerAdded:Connect(function(Player)
local leaderstats = Instance.new(“Folder”)
leaderstats.Name = “leaderstats”
leaderstats.Parent = Player
local Value = Instance.new("IntValue")
Value.Name = "Size"
Value.Parent = leaderstats
Value.Value = 0
local Value2 = Instance.new("IntValue")
Value2.Name = "Coins"
Value2.Parent = leaderstats
Value2.Value= 0
end)
I made it so that when the player clicks the size stat increase, and when the player touches a part the size value becomes 0, and the coin value increases.
I was wondering how I would autosave the stat value and make it load when a player joins, thanks,
I also would like to know how to make other players see your leaderstats