Can't clone objects. Always come out as nil

I’m pretty sure sending instances through remotes is a bad practice, because of the unpredictable behavior replication and lag creates. Instead, since the UI needs to be replicated to the client anyway, you can locate it there without using remotes.

Also you can send the bait instead of the UI and create the UI on the client, or locate the bait on the client once it replicates if it’s a part on the map.

1 Like

I can see that the bait exists on the client when in a play test but when i try to locate it in the local script it results in nil

image

You don’t take lag into account, that’s why I said it’s an unpredictable practice. Basically, you need to create the instance on the server(and store it in a variable there), wait for around a second, and pass it in the remote after that so it has replicated to the client and they can see it.

In short terms, a glorified mess.

2 Likes

That worked oh my god thank you for saving me from this suffering

2 Likes

Thanks for your help as well, you replied so fast it suprised me lol

2 Likes

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