Is there a way to make client sided touching script without remote events?

You can write your topic however you want, but you need to answer these questions:

  1. I am making a planet physics game in wich you can collide planets

  2. 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

  3. 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!!

1 Like

The Touched signal does get fired with client-created BaseParts? Are you sure you are setting up your client properly?

1 Like

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

1 Like

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)

1 Like

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.

1 Like

ON GOD BRO THANK YOU SO MUCH, you literally saved my game from dying i swear thank you so much i was so dumb

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