Hello, I have been making a find the game (like find the marker) for several weeks. For this game I had to create a script which allows that when a player touches a parts then a screenGUI appears (“Yay yound find xx”), then a boolvalue is created in a folder in order to realize the datasave, then the player can never touch the part again. I realized 100 scripts (which correspond to 100 objects to find) in scripts server. I wonder if I did not make a mistake and that I would not have done better to create them in local scripts in order to anticipate potential lags to come. I would like to know if you think I should recreate them in local scripts or if it is not necessary and it will not change anything (or very little) to the lagg in game. I’m waiting for your opinion. I specify that I am still a beginner developer
Maybe use a local script to check if the player touch a certain part then fire it to the server with remote event.
1 Like
Thank you for your answer but in this case, why not recreate directly the scripts in local scripts (without events)
You can also do that, the remote event is just there if you want to change something on the player that needs to be server sided like increasing it’s money or something like that.
1 Like
Thank you. So you confirm that using local script for this type of action is better in terms of optimization and latency than using server scripts?
1 Like
Yes since all your doing is just for the client to see not the whole server including other clients.
1 Like