Game Timer Help

Hello, I’m wondering what the best way to implement a timer in a game is. Essentially, the timer should start when a player clicks on a part and stop when they reach a certain point (I know how to do that). However, I need the timer to show the actual time, not a simulated one, since I have a leaderboard that will display the fastest times of players. I thought that if I’m going to count the time for each player on the server, it might not be the best approach

So you want the timer to run on the client and then send it to the server?

What do you mean by this???

I’m pretty sure that if I use a timer inside a local script and then send the info to the server, hackers could modify the time. Let me know If I’m wrong !

Get the start time and get total time passed since by calculating current time - start time, for your case, get the time when they press the button and the time when they reach the end point

yep, so instead just send a remote event when the player touches the part, then the server calculates the time taken.

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