i’m trying to tween my tape model relative to it’s primary part so that it’ll slide in and out of the measuring tape. unfortunately at the moment the tape spins around.
local TweenService = game:GetService("TweenService")
local tapeGroup = script.Parent
local tape = tapeGroup.PrimaryPart
local Weld : Weld = tape.metal
local startCF = tape.CFrame
local endCF = CFrame.new(133.851, 3.148, 208.789)
local tweenInfo = TweenInfo.new(1.5, Enum.EasingStyle.Back, Enum.EasingDirection.InOut, -1, true, 0)
local tapeTween = TweenService:Create(tape, tweenInfo, {CFrame = endCF})
tapeTween:Play()
endCF doesn’t have any angles attached in it, you could could get the correct angles but it’ll be easier to just use the current CFrame of the tape and adjust the position that way.
{CFrame = tape.CFrame*CFrame.new(0,0,-3)} -- I believe negative numbers on the z axis makes it go forwards