self._Angle = self._Angle:Lerp(CFrame.new(Vector3.new(), Root.CFrame.lookVector), 0.1)
self._Position = self._Position:Lerp(CFrame.new(Root.Position), 0.05)
self._ModelWrapper:SetCFrame(self._Position * self._Angle * self._Animation + self._Offset)
I want the pet to always be behind the character simulator with pet sim x. It moves with you.
It looks like the orientation is just changing instead of the position, if you always want something to be behind all the time maybe look at this topic:
I’m not too sure what you want, but I think you want this -
Part behind.wmv (1.2 MB)
So this is the script
-- put this serverScript into game.StarterPlayer.StarterCharacterScripts
local tweenService = game:GetService("TweenService")
local part = game.Workspace.Part
local character = script.Parent
local humanoidRootPart = character:WaitForChild("HumanoidRootPart")
local moveBehindTween
local prevHumanoidRootPartPos = humanoidRootPart.Position
local timeToReachDest
local easingStyle = Enum…
Qin2007
(Qin2007)
December 1, 2021, 3:04pm
3
try
pet.CFrame:ToWorldSpace(Owner.CFrame*CFrame.new(0,0,10))
or use -10
me7474
(74人の命゠ 74)
December 2, 2021, 1:02am
4
Try using springs, I have a script I will paste later. Currently using my phone lol.
Forummer
(Forummer)
December 2, 2021, 4:19pm
5
Is self a reference to the pet or some other instance?
I used ToWorldSpace and it seems to work fine now