Server script question!

I’m trying to make a SERVER SCRIPT that, lets say gives the player money every second, but I want that to happend to every player diffrendly, like one player gets every 5 seconds and one very 2 seconds.

The problem is that I could make it on a local script and then send it to the server, but then players will be able to exploit so I have to make it a server script.

So if you know what I mean please help me

Try to save it in a datastore, so for every player it saves how much seconds.

I mean a server script has to be running for all players in the game and will give each player money at a diffren amount of time like 0.05 for one and the time changes to. Idk how to

Hoe does the time change? Like for every second it gets longer?

Like when the player upgrades his time stat that is saved in the player the server will give the player money depending on that stat

but the most important thing is how I get it running for all players diffrently

This category is not for whole scripts. I want to give you it, but then my post will get deleted. Do you have any experience in coding?

Just use a task.spawn() for each player so they get their own loop where you can customize the delay.

yes, sorry for the late response

thanks, this looks exactly like what I want, but can you show me a little bit more!