Leaderboard Help

Hello! So I have been making a game on Roblox, and I wanted there to be a leaderboard in it that counts up points every few seconds or so. I made the script with some help and it worked, but I really need the points to save. I am pretty new to the scripting community. I have the script in Workspace named PointScript. Any amount of help is appreciated!

Here is the script without the saving element in it, I need a modified one with the saving implemented into it.
image

Edit: Sorry! At the end of Timer. It continues to Value +1

"leaderstats" should be a folder, so change Instance.new("Model", player) to Instance.new("Folder", player)

You also have a period at the end of Timer.Value = Timer. Take that out.

To save the points, you need to use DataStoreService.

Thank you for the help! I would suggest looking at my edit, the screen shot must not have gotten that last bit of code!

Also, you can just do Timer.Value += 1 without having to get the value again.

Thank you! I’ll implement that, but I really just need to get it to save!

1 Like