I need help.
so a while back i made an module for tweening models and published it just now, but i got comments about the code being deprecated. i have no idea how to make it better with the new api stuff and all info i’ve searched up is old or does not answer my question.
So… is there any way i can tween models on the server side using cframes and so i dont need to weld all the models?
You can create a CFrame value, and do a .changed event on the CFrame value and then tween the value… Sorry if that is confusing, not sure how to explain it well, but here’s an example:
local model = workspace.Model
local cframeValue = Instance.new("CFrameValue", workspace)
cframeValue.Changed:connect(function()
model:PivotTo(cframeValue.Value)
end)
game:GetService("TweenService"):Create(cframeValue, TweenInfo.new(0.5), {Value = Your_CFrame_Here}):Play()
Depending on what you’re doing, you could anchor it and script so before the tween starts, the model unanchors and then anchors again when the tween ended