Still have questions? Join our Discord server and get real time help.
Log in to vote

[Solved] Best way to send an object reference client-to-server vise-versa?

Asked by 3 months ago
Edited 3 months ago

My best idea would be to send the name of the object along with specific properties such as position or a humanoid's health in order to find the object on the client/server side by trying to match those properties.

Any better solutions?

As long as the object is visible by both sides (e.g. you're not sending an object from ServerStorage to a client) you should be fine. incapaxx 2628 — 3mo
how about (temporarily) cloning the object in ReplicatedStorage, where both the client and the server could see it ? proclet 22 — 3mo
you could make a dictionary as a argument, then insert the object as a dictionary value. then just index the dictionary to get the object User#23365 0 — 3mo

Answer this question