So I have an edge case I’m trying to deal with. I create a model with a primary part on the server, fire a client with a remote event passing the model, then destroying the model right after firing. However, the client only receives the model, while the primary part being nil. For example:
Server:
local model = Instance.new("Model", workspace)
model.PrimaryPart = somePart
remoteEvent:FireClient(player, model)
model:Destroy()
Client:
remoteEvent.OnClientEvent:Connect(function(model)
print(model.PrimaryPart) -- will print 'nil'
end)
As you can see, the primary part never gets replicated to the client. Can someone please explain this behavior?