Is there a way to give an amount of currency to specific player?

Well, as you probably saw in title, i wanna make a script that gives an amount of money to specific players (using either usernames or userids)

The issue is that i’m not that experienced in scripting yet, i’ve tried to make a small script, but it didn’t work :confused:

1 Like

I would consider checking out this roblox article as it can give you a very good idea and understanding of how to save and read data across games. You should also do this in a server-sided script, for security purposes.

1 Like

Can you show me the script so I can help you?

Sorry, i can’t access my pc anymore today, since it’s late at night. I’ll send it to you via dms tomorrow if that’s fine.

1 Like
game.Players.PlayerAdded:Connect(function(player)
    player.leaderstats.Coins = 10 000 -- You can set this number to whatever you want
end)

is there a way to add currency to their current money instead of just putting that to their new currency number?

player.leaderstats.Coins = player.leaderstats.Coins + 10 000
1 Like

This would not save if you leave and rejoin the server, so you can couple datastores with this method to save their coins. Dunno if that was your approach, though

It’s fine, i know a bit about datastores. Otherwise i could just check it up on yt…