Tween not working

Got a tween script with rotation, it doesnt play. The script prints CHECK but the tween wont play, can you not use CFrames in tweens?

–The Script

local TweenService = game:GetService("TweenService")

local PROXPROMPT = script.Parent
local door = script.Parent.Parent

local targetCFrame = door.CFrame * CFrame.Angles(0, math.rad(100), 0)

local tweenOpen = TweenService:Create(door, TweenInfo.new(1.5, Enum.EasingStyle.Cubic), {
    CFrame = targetCFrame
})

PROXPROMPT.Triggered:Connect(function(plr)
    print("CHECK")
    tweenOpen:Play()
end)

simple script, didn’t think this would happen.

1 Like

I don’t really see an issue in your script, I tested your exact script in studio and it works just fine.

Do you get any errors, or is the part welded to something?

Is the part you are tweening anchored?
If there are other parts welded to it are they all unanchored?

1 Like

the part is anchored but it might be welded i’ll have to check

1 Like

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