I am trying to create a model that has a server and client copy. I need the server and client to communicate.
Server Part X → ToID(ServerPartX) → Universal ID → ToPart(UniversalID) → Client Equivalent.
In Game this works, in Studio it errors, because the Client and Server clone of the model in ReplicatedStorage get different orders for absolutely no reason.
for index, descendant in pairs(model:GetDescendants()) do if descendant:IsA("BasePart") then associationArray[index] = descendant associationArray[descendant] = index end end function IronRIS:getAssociation(partOrId) return associationArray[partOrId] end
Here is the source code