Weird interaction when players hooks NPC

It’s hard to describe in words so here it is in action
https://i.gyazo.com/29294903ea36f0ed250a98d830ff88ca.mp4

basicly the character is able to move the Enemy weirdly around.
Is there a way or an idea on how to prevent this? I tried setting the enemys density very high, or make him massless , or turn cancollide for the player and the enemy but nothing really work. It keeps on bugging out.

Right now the enemy type is R15, would you maybe suggest making a custom enemy to prevent this? or would this even prevent this?
Thanks!
EDIT: Some more videos
https://i.gyazo.com/eb56cc6ed46043c993aedd2ce57a3347.mp4

1 Like

There are a number of ways you could fix this.
My advice would be to add some randomness to the equation.
You could also add a thing where if the titan detects something staying on his face for a specific amount of time, it grabs the player and eats them or something.

EDIT:
Just saw the second video.
That’s a little more difficult to fix but maybe mess around with the physics properties of the titan’s bodyparts?

1 Like

This will come in the future, but that’s not my “problem” right now.
I want the enemys to not be a flungy ball. I want them to be solid.

Extra: I already change the mass properties, I said it above.

My bad, I should have read the post more thoroughly.

Here are a few other solutions that might work:

It’s a little extra work, but you could try having a BodyPosition inside the titan’s HumanoidRootPart.

You could also try messing around with the physics properties on the player character’s bodyparts.

And what do I do with that bodyposition?

If you had a BodyPosition inside the titan’s HumanoidRootPart, it could keep him from going flying.

The only difficult part is that you would need to incorporate it with your Titan Ai

This is just an idea,

but what appears to be happening is that the hook is still trying to pull the player towards the NPC even though you’re already right on it. I’d suggest having the force stop as soon as you get close enough to where you need to go so you can just hang there.


If that fails, I’d suggest going with what Dispeller said by incorporating [color=yellow]BodyPosition[/color]. It may also be a good idea to make use of a BodyGyro too just in case so it won’t flip even though its held in place.

1 Like

I’ll try that :)) Thanks
U are right, it looks like its still pulling towards it.
but isnt there another way to make the enemy stop moving so weirdly even doe the player is still pulling towards it?

Well there’s BodyPosition + BodyGyro, though I still suggest at least attempting to fix the pulling issue. Who knows if it’ll ever cause more problems in the future. It’s better to be safe.

Alright :))

regardless, could you provide me with some code regarding the bodyposition and bodygyro?
I am not that familiar with bodymovers , I cant get them working usually.

You can reference these pages for help with that: BodyPosition & BodyGyro

Depending on how you’re attaching the endpoint for the hooks, you can just force the point to remain in a certain axis in world space (e.g. CFrame with all values as 0). Problem is that whatever the part or means of attaching your character to another entity (object or NPC) is, it’s working in relative space. This is why your NPC is able to fling the character around.

Could you explain it a bit further more?
I don’t fully understand your statement.

Also, my NPC isnt able to fling my character around, its the other way around. My character is able to fling the NPC, if that makes any diffrence

From my perspective, it may be (and probably is) because of two conflicting humanoid forces. Perhaps make the player use a different state when interacting with NPCs? (i.e. PlatformStand or Humanoid::ChangeState)

So you think changing the humanoid state will maybe fix that?

I haven’t tested it myself, but I would assume so, judging by what you’ve shown me in the GIFs.

So, I would change the humanoid State when he touches the enemy? hm.