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

How do I make an animated door?

Asked by 9 years ago

I've always been curious about how to animate parts in roblox, but I never found out anything... Can I have some pointers and tips please? At least how to make something simple like a door! :)

0
Why am I being down voted... Am I supposed to ask it a specific way that I don't know about, or what... Seeker5123 15 — 9y

1 answer

Log in to vote
3
Answered by 9 years ago

In order to accomplish something like this, we need to use CFrame, and rotating.

Here is a basic cframing script that would move an object 10 times:

part = game.Workspace["'Brick"]
for i = 1, 10 do
part.CFrame = CFrame.new(part.CFrame.X, part.CFrame.Y + 1, part.CFrame.Z)
end
Note: I am on my school computer and unable to go to wiki.roblox.com to confirm this, I am just going off of what I believe to be true. I recommend going to the wiki and searching for examples of CFraming.

Using CFrames and updating it's position and rotation you can give a brick, or a model, the imitation of an "animation."

All it will take is practice.

0
Thanks :) Seeker5123 15 — 9y
0
Appreciate the help Seeker5123 15 — 9y
0
Im on a school computer too lol yoshiegg6 176 — 9y
0
How are you changing the size of the text? Perci1 4988 — 9y
Ad

Answer this question