How to Move the rig R6 model

I want to move a normal “R6” rig will all parts inside of the model but this won’t work

local Model = game.Workspace.Scripts.Noobis.Guy
local moveModel = Model.PrimaryPart
Model:SetPrimaryPartCFrame(moveModel.Position == Vector3.new(152.928, 22.453, -379.104))

it teleports the rig to some random position, not the one that I put

Try :MoveTo()

30 сhаrасtеrѕ

You are setting the PrimaryPartCFrame. You should just use something like MoveTo, or PivotTo as shown in the solution here: When Teleporting HumanoidRootPart Teleports the other parts go somewhere else?
(And as mentioned by @DarkDev110 mentioned)

Does not work

local Model = game.Workspace.Scripts.Noobis.Guy
local moveModel = Model.PrimaryPart
Model:MoveTo(moveModel.Position == Vector3.new(152.928, 22.453, -379.104))

error

Unable to cast bool to Vector3

You just have to specify the position, for example: Player:MoveTo(Vector3.new(0,0,0))

1 Like

works but why does it teleport it higher?

MoveTo will move the Rig and place it based on its PrimaryPart which is the Head. If memory serves the head is 4.5 studs above the surface it is on so you’d need to take that into consideration when moving it to a position. Also if other physics objects are already there it would put it on top of them instead of inside them.

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