How to Tween a Model containing only MeshParts

So. Been trying to tween the position of a rig whose Humanoid, Animate, and HRP I’ve deleted.
The goal is to basically do Humanoid:MoveTo(), but instead of using a Humanoid, I’d like to use TweenService and maybe a BodyGyro at most. Everything works I guess, but there’s no way to set the Position property of the Model.

Here is a minimum reproducible script that should illustrate the issue:
Basically, get a Rig from Rig Builder, delete everything except BodyColor and the MeshParts
Then:

if not game:IsLoaded() then
	game.Loaded:Wait()
end

local TweenService = game:GetService("TweenService")

local testRig = game.Workspace:WaitForChild("testRig")
local tweenInf = TweenInfo.new(2,1,2,0,false,3)
--test tweening
local temp = {}
temp.Position = Vector3.new(0,1,-40)

local testween = TweenService:Create(testRig,tweenInf,temp)

testween:Play()

I’m aware that Model doesnt have a .Position property, but am unsure what to tween to change position…

Edit: Nvm! Needed to WaitForChild() for the MeshParts, as the script was firing in ReplicatedFirst and not giving the Rig time to load

2 Likes
  • PrimaryPart: Use Model:SetPrimaryPartCFrame(CFrame) or tween the CFrame of the PrimaryPart to move the entire model.

  • WaitForChild: Ensure all parts of the model are loaded before accessing or assigning them. For parts like Head or others, use WaitForChild() if needed.

  • Target CFrame: Define the target position using CFrame.

1 Like

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