Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

What Exactly Do You Need In A Model For The Humanoid To Work Properly?

I am trying to make a mob for a game I am making. I am trying to just create a basic script, that moves it to a location, using Humanoid:MoveTo(). So the script is valid, and works, for a normal roblox character. How ever it wont work for this mob i am trying to make.

What exactly do i need to add into the mob model for it to work? I have a humanoid in the mode;. I have a torso in it, i have a "HumanoidRootPart" in it, what else do i need for my script to move the model to a location using Humanoid:MoveTo()?? I cant find this out anywhere online.

Here is my code just in case, but i know its valid, it worked with a normal roblox r6 character.

script.Parent.Humanoid:MoveTo(game.Workspace.Part123.Position, game.Workspace.Part123)

1 comment

0

do you have a neck weld?

1 answer

✓ Accepted answer
script.Parent.HumanoidRootpart.CFrame = CFrame.new(game.Workspace.Part123.Position)

make sure humanoidrootpart is the main part of the mob, this will then set a new cframe to the mod aka new position

This discussion is preserved as it was. New answers, comments, and votes are closed.