Tweening Model Making it Completely Disappear

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()

I just tested this script with a door model that I made, and it seemed to work as intended. Within your door model, try making all of its descendants (except for the PrimaryPart) unachored and welded to an anchored PrimaryPart

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