Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 5 years ago

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)
0
do you have a neck weld? User#5423 17 — 5y

1 answer

Log in to vote
1
Answered by 5 years ago
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

Ad

Answer this question