After cloning an object, "CFrame" does not work correctly

  1. What do you want to achieve? Keep it simple and clear!

To move the lever one stud down, relative to its position.

  1. What is the issue? Include screenshots / videos if possible!

As long as I don’t clone the “a leverage” object from “ReplicatedStorage”, “CFrame” works correctly.

In Workspace, not cloned:
robloxapp-20230327-1719528.wmv (817.9 KB)

In Workspace, Cloned from ReplicatedStorage:
I also noticed that the lever returns to the place where the lever came from in the first video, only in the workspace.
robloxapp-20230327-1720285.wmv (763.2 KB)

  1. What solutions have you tried so far? Did you look for solutions on the Developer Hub?

With the help of “TweenService and CFrame” I change the location of the lever.

local newFrame = TS:Create(inMain, tweenInfo, {CFrame = inMain.CFrame * CFrame.new(0,-1,0)})

I solved this problem.

Since I used cloning and the method - PivotTo(), the script in which I changed the CFrame remembered the old location.

I just put a wait at the beginning of the script where I change the CFrame.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.