-
What is the issue?
i have an tool with 2 models (1 is base of it and 2 is the model i want to move)
if I try tweening 2nd model with tweenservice then it won’t work because of welds between model 1 and model 2 and if i dont do that welds then tool will fall apart (as i know)
-
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
i tried looking on developer hub but i couldn’t find the answer.
here is tablet:
default:
Extended:
if you need more information ask me
Script:
TS = game:GetService("TweenService")
script.Parent.Extend:GetPropertyChangedSignal("Value"):Connect(function()
local CF = Instance.new("CFrameValue", script)
CF.Value = script.Parent.ExtendedScreen:GetPrimaryPartCFrame()
local Info = TweenInfo.new(0.4, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut, 0, false, 0)
CF:GetPropertyChangedSignal("Value"):Connect(function()
script.Parent.ExtendedScreen:SetPrimaryPartCFrame(CF.Value)
end)
if script.Parent.Extend.Value == true then
Tween = TS:Create(CF, Info, {Value = script.Parent.Pos.To.CFrame})
script.Extend:Play()
else
Tween = TS:Create(CF, Info, {Value = script.Parent.Pos.Default.CFrame})
script.Extend:Play()
end
Tween:Play()
Tween.Completed:Connect(function()
CF:Destroy()
end)
end)