Issues regarding instance rendering and client-side location of instances

Long story short, using local scripts to create a GUI which displays names of parts when certain options are enabled. Works fine when all parts are rendered, problem arises when they aren’t. When the part isn’t rendered client side, it can’t be referenced.

I could use remoteevents, however I am really not keen on rewriting all my code and probably making many amendments to have it suit the global script. Any suggestions?

i mean even with remote events you would have to tell the client what the parent is, client won’t receive the part if it is not streamed in. You can use :RequestStreamAroundAsync() if you know where they are or use remote function, client to server. Client wants the parts, server sends position for stream, parent of the part and name of the part. Part then can be accessed by

player:RequestStreamAroundAsync(position)
part = parent:WaitForChild(id)

1 Like

Remote functions is likely what I’d need then. Thanks!

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