How do I make a npc ride a ball?

Heyo Devforum!

  1. What do you want to achieve?
    I want to make a npc in a ball that is able to ride it, for example if the npc chases a player, then it rolls towards the player.

  2. What is the issue?

Capture

Im going to make a horror game where the killer is a ball, I already have the npc AI, but I need the npc to sit in a ball and ride it.

2 Likes

You could fake it by making the NPC be part of the ball and making a spin animation it’s walking animation with the AnimationEditor, or if you want it realistic then make a path to the player and apply force to the ball towards the closest point in the path?

1 Like

Its a good idea but idk if I can do that the npc rolls instead of walking. And I need the npc to be a humanoid so I could not to the second idea you suggested at all.

2 Likes

Why wouldn’t the second idea work? Put the NPC inside the ball, Weld it to the ball, enable PlatformStand in his humanoid, and just push the ball

1 Like

Oh I get your point, I will try it.

2 Likes

How would I weld the ball to the npc in a way that the ball wouldnt become a part of the npc?

1 Like

Why not? use a WeldConstraint and weld the HRP of the NPC to the ball

1 Like

Create a “WeldConstraint” inside the ball or wherever you want it, Set the Part0 to the ball and the Part1 to the NPC’s HumanoidRootPart, keep in my you should place the NPC in the position you want BEFORE welding it

1 Like

You could put a ball socket constraint inside the root part of the humanoid. Make attachment inside the root part, then attachment in ball. Connect the ball with the root part with the ball socket constraint.

2 Likes

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