Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Best way to animate a door close/open?

So I have a door model, and the problem is the PrimaryPart is a union, which I'm not sure if that works with tweening, do you have any suggestions for how I can animate this?

1 answer

Every Instance can have it's properties tweened. All you have to do is specify that property in the Tween's TweenInfo.

By specifying properties in the TweenInfo, I mean it would look something like this:

local startTween = {
	Position = Vector3.new(0,0,0) -- Position is a PROPERTY of a base part.
}
local endTween= {
	Position = Vector3.new(0,10,0) -- Position is a PROPERTY of a base part.
}

2 comments

0

Thanks for the response, can you specify what you mean by "specify" in the TweenInfo?

0

Yes, edited.

This discussion is preserved as it was. New answers, comments, and votes are closed.