I’m a relatively new scripter and I’m trying to figure out how to tween a door opening animation with a model.
However what’s happening is in this script it waits 2 seconds or so then the primary part completely disappears and nothing moves
Any idea what’s wrong?
local door = workspace:WaitForChild("DoorModel").PrimaryPart
local ts = game:GetService("TweenService")
local goals = {
CFrame= door.CFrame * CFrame.Angles(0,math.rad(90),0)
}
local tween = ts:Create(door,TweenInfo.new(3,Enum.EasingStyle.Sine,Enum.EasingDirection.Out,0,false,0), goals )
tween:Play()