Make lerping for pet turning slower?
Pet:SetPrimaryPartCFrame(Pet.PrimaryPart:Lerp(CFrame.new(HumanoidRootPart.p) * (TweenVal.Value * PetInCircle + Rotation), 0.6))
Make lerping for pet turning slower?
Pet:SetPrimaryPartCFrame(Pet.PrimaryPart:Lerp(CFrame.new(HumanoidRootPart.p) * (TweenVal.Value * PetInCircle + Rotation), 0.6))
I don’ think it should be any slower than just updating the CFrame as a whole each time. Even if it’s a little slower, it’s most likely not going to be noticeable.
That is not the point. I want to know how to Lerp the rotation seperetaly.
This should error, shouldn’t it? PrimaryPart is not a CFrame.
What is this code supposed to do, and what’s its context?
Oh, I didn’t realize that. Thanks for letting me know! I’ve updated my post.
Sorry I changed my code and and it looks a bit weird because my variable names were bad. ![]()
The code is to update the pet’s position so it stays with it’s owning player.
But what is Pet? Is it a table or something, and not a Model like I assumed? Why are you able to call Lerp on it’s PrimaryPart? You shouldn’t be able to do that on a Model.
Or is that just some proposed code that doesn’t actually run (and in that case, can you share more about your setup and the existing code)?
Pet is a model. I won’t be able to show my code because it is compiled using Roblox-TS.