Viewmodel Behaves Weirdly When Grabbing NPC In First Person

I was currently remaking engine from scratch for my friend’s project. But when I made and tested grab system, thing went wrong and the Viewmodel pushed grabbed NPC and my character towards.

However, when I deleted humanoid from Viewmodel and set torso collision to false, it was no longer behaving weirdly. Still, I could not consider this as a solution as it would ruin Viewmodel appearance.

And even I implemented collision groups with server code below, the result remained the same

PhysService:CreateCollisionGroup("Viewmodel")
PhysService:CollisionGroupSetCollidable("Viewmodel", "Viewmodel", false)
PhysService:CollisionGroupSetCollidable("Viewmodel", "Default", false)

PhysService:CreateCollisionGroup("Players")
PhysService:CreateCollisionGroup("GrabbedPlayers")
PhysService:CollisionGroupSetCollidable("Viewmodel", "GrabbedPlayers", false)
PhysService:CollisionGroupSetCollidable("Players", "GrabbedPlayers", false)
PhysService:CollisionGroupSetCollidable("GrabbedPlayers", "GrabbedPlayers", false)
PhysService:CollisionGroupSetCollidable("GrabbedPlayers", "Default", false)

I decided to post this whether anyone has ideas what had caused this mess. And thank you

1 Like