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