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)
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