Mesh keeps despawning after being set to CanCollide = false

Hi. No idea if this is scripting or roblox physics, but when I set my ball mesh (for soccer) to CanCollide = false, It dissapears when I join the game.

Any help is appreciated, thanks!

This is most likely because it is not anchored. If you want the ball to not be able to hit a specific object then you would have to use collision groups.

But it’s a ball for a soccer game, I can’t anchor it. I want the player to be able to pass through it and shoot it

Bro then why are you setting cancolide to false?

you have to use collision groups bro. Read articles on collision groups I’m sure there are many.

Because it keeps flinging the player and it’s easier for me

It’s dropping through the baseplate since it’s CanCollide false.
As @ViridianDevil said, check the BasePart | Roblox Creator Documentation documentation.

I told you use collision groups.

Yeah and I don’t know what that is yet, I script but I don’t know that stuff

So let me explain. It’s basically picking what it can be colliding to you can make it so it can collide with every thing but players. Most games use collision groups so other players can’t run into eachother. But at the same time they don’t fall out of the map. I also told you. Go find a article on it.

I understand now, ty for the help

If you want the player to be able to hit it then you would just have to use Linear Assembly Velocity to push on one of the sides.

quite simply you need a collision physics service OR just simply set anchored as true if this dosent effect your gameplay

Hehe, that’s why I posted the link to the CollisionGroup page.

You need to set CanCollide on the MeshPart instance, not the Mesh.

It’s already solved, sorry. Appreciate the help though

3 Likes

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