You can write your topic however you want, but you need to answer these questions:
I am making a planet physics game in wich you can collide planets
I am using remote events to spawn the part from client side to server but this causes a lot of delay and i am trying to see if i can make everything client sided
When i spawn the planet client sided it cannot collide with anything, i mean the scripts with .Touched dont work. I saw some people say you can use remote events but i am trying to escape from remote events since they cause me a lot of delay in my game
Any ideas anyone to make it work and without the delay??? Please answer if you do!!
Yes in the client it spawns a part that isnt visible to server, and in the same local script it inserts a normal script from replicated storage to that spawned part and it doesent work
Maybe because the part is only on the client and the script is a server script, so it won’t be able to detect the part being touched as the part doesn’t exist on a server
Try setting the RunContext of the server script when you clone it and see if that works (or make it a local script or something)
Are you trying to clone a server script from the client to make it execute? That script obviously would not run because it’s a client script cloning a server script.
If you’re referring to LocalScripts, that is because they do not run under the workspace (except for player characters). Instead, use a Script with it’s RunContext set to Client.