I’m having a bit of trouble moving explosion logic for my game to the client side. This has been a very laggy part of my game fro a while, and moving the physics part of this to the client seems like a good idea.
When I first tried just moving this physics logic to the client, parts wouldn’t be affected until the player got close to them, then I thought this was a NetworkOwnership issue, and I moved all the destructible buildings in the game to ReplicatedStorage and had the client “unpack” them into Workspace when they joined, but now as far as the server is concerned these buildings don’t exist and if the client doesn’t take ownership of the bombs for some reason, they just go through the building.
Moving physics to the client for THIS is a good idea.
How do you handle bombs? Does the server decide when and where they spawn? If a bomb is created on the server but buildings aren’t there, it will pass through them until the client takes over. Once the client has control, it handles physics, and since buildings exist on the client’s side, the bomb won’t go through them.
the server decides when they spawn, is there a way to allow the client to take control of them permanently? they’re also unanchored so it won’t let me set networkownership to the client
after replacing the :ApplyImpulse calls on the server with a call to a remoteevent to get the client to apply velocity to the bombs, this works perfect! thank you so much