Randomly getting flinged on my game

Hello, I made a game where you shatter stuff with a hammer and in the new area I added when you hit stuff you sometimes randomly get flinged out of the map, it only happens randomly when you hit one of the objects in the house area none of the other areas have this, i tried removing collision on the hammers handle but it still does not work does anybody know why this is happening?

This is the game if you want to see the bug

1 Like

That’s bizarre…I’d guess it has something to do with too many moving parts. One thing you could try though, when ever the player destroys a structure, and when you go to physically break it so all the parts move, try setting each part’s network owner to the player that destroyed it. That could possibly smoothen things out a bit.

If not, you could possibly use CollisionGroups so players can walk through the structures. This might be less desirable, but it’s also a possible solution.

Another idea I have is to do all the physics processing client-sided, although this one is probably the trickiest and I wouldn’t necessarily recommend it with better options being available. When a player destroys a structure, utilize a RemoteEvent and fire their client with the structure that they destroyed passed in, then unanchor all the parts from that client. You could also fire another event for all the other clients to do the same action.

Hope this helps, chances are one of these will give you success. :slight_smile:

1 Like

I will try that thanks!

30char30

Just fixed it! , it ended up just being the wardrobe that was causing it, removed it and no more flings!

1 Like