I’m making a game called The Infinite Corridor and basically no matter where you go the corridor will never end, I tried to do
while true do
script.Parent.Model:PivotTo(game.Workspace[game.Players.LocalPlayer.Name].HumanoidRootPart.CFrame)
wait(0.01)
end
```I did this in a local script btw and it did not work any fixes?
Actually, @V33S, I also encountered many PVInstance currently about Cframes and Vector3 and all its usages.
But, to simplify everything. I’ll just put the conclusion to using :PivotTo() and :GetPivot() here
local destination = game.Workspace.destination
local object = game.Workspace.object --can be a part or model
local Destination = destination:GetPivot() -- gives you the CFrame of the destination part in workspace
object:PivotTo(Destination)
I hope this helps you with future PVInstance problems.