So, I’m developing a system where you click a button, it ungroups a model and moves all the children to a different model, and there is another model that also is CFramed up aswell, not the same model but the same script.
Imagine it like this:
LiftOperator (group)
Prop (group)
Props (group)
So there are 5 different groups inside of Props and when one gets ungrouped, it gets moved to prop.
The script then moves that prop into the correct position, and when another button is clicked, the Prop and the LiftOperator both go up, synchronised, perfectly.
However when it comes down, it is a different story as Prop moves faster and goes down further then the lift operator, and then going up again is also affected as it makes Prop go faster and higher then the LiftOperator.
I want to make it perfectly synchronised and in sync for going down, like it is when it is going up.
Here is a snippet of code, ‘items’ are both of the models children.
`
for i = 0,17,0.02 do
for _,v in pairs(_items) do
--v.CFrame = v.CFrame + Vector3.new((0.00*(-d)), 0.015*(d) ,0)
v.CFrame = v.CFrame + Vector3.new(0, 0.02*(d) ,0)
end
`
Sorry if that came badly formatted, I’m writing this post on mobile.
Here’s a gif of what’s happening when it’s going down:
https://gyazo.com/0a5aa545f1180ede10beb9a9a93f625f
I’m probably just being really dumb and not realising what is going on.