FreakyChest
9 months agoStart Member
Can we send an entity to local script?
If I have a default script that needs to send or set an entity on a local script, is there a simple way.
Entity can't be serialized, so that means transfer ownership and network commands likely can't send entity.
One work around I could think of is name the entity using a UUID, then we can use both transfer ownership and network commands to transfer UUID and then get component by name.
Other work around is using asset that has the default script and a local script that has reference to default script, so you change ownership to player and now you have local reference to default script entity.
Any other ways, or better ways. Like default script spawns asset and you want to send the entity or asset to a local script owned by player.