Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Best way to animate a door close/open?

Asked by 6 years ago

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

Log in to vote
0
Answered by
Eqicness 255 Moderation Voter
6 years ago
Edited 6 years ago

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.
}
0
Thanks for the response, can you specify what you mean by "specify" in the TweenInfo? yhatayhatahoohoo 15 — 6y
0
Yes, edited. Eqicness 255 — 6y
Ad

Answer this question