Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Which method would be the best?

Asked by 6 years ago

So I need a quick opinion about which method of loading another player's house

here are the current methods I've been able to come up with if you have another method you can share it.

1- Loading it via data store (I'm not sure if this is possible) loading the data of another player by using data store and for the key we just use the other player's user id.

2- Loading it by firing a server event which fires a client event that affects all the players in the house, that makes it so it clones the furniture and deletes the old ones and the new ones are visible to the other players.

3- making everything server side (I think this is a bad idea)

1 answer

Log in to vote
0
Answered by
thesit123 509 Moderation Voter
6 years ago

Hey Unbunn_makes,

In my opinion, I would not recommend using everything Server-Sided, since those tends to cause more lag for lower specs users. So try to minimize the amount of Client to Server or vise-versa. One of my solutions would be Client to All Clients.

Method 2 seems a bit like a lag spike generator, It is deleting and cloning furniture (or other stuff) at a period of time. I would suggest like I did ("Client to All Clients"), I suggest make a Client to Client event, which would trigger a LocalScript that would update that specific furniture.

Lastly, Method 1 might cause lag because it Client to Server and back. Then I would just recommend using Data Store, or other data storage service, to load the data when they join or click the load button of some sort.

Ad

Answer this question