So i want to make a code, it has error, which ill fix later but i dont want another error when the function gets destroyed
so heres the code i made:
newObstacle:SetPrimaryPartCFrame(newObstacle.PrimaryPart.CFrame.X, newObstacle.PrimaryPart.CFrame.Y, latestObstacle.PrimaryPart.CFrame.Z - 100)
idk what to replace the function with cuz its deprecated
Solved by pseudosc1ence in post #3
newObstacle:PivotTo(newObstacle.PrimaryPart.CFrame.X, newObstacle.PrimaryPart.CFrame.Y, latestObstacle.PrimaryPart.CFrame.Z - 100)
SetPrimaryPartCFrame is now deprecated