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

How do I Rotate Models? [closed]

Asked by 10 years ago

This question already has an answer here:

How to rotate a model?

I have no idea how to rotate a model with a script? Is it done the same way as a brick or not? I have little time let until I ave to release a game, and need to finish. All help appreciated.

Marked as Duplicate by User#2

This question has been asked before, and already has an answer. If those answers do not fully address your question, then please ask a new question here.

Why was this question closed?

1 answer

Log in to vote
0
Answered by
Shawnyg 4330 Trusted Badge of Merit Snack Break Moderation Voter Community Moderator
10 years ago

Well, it's not exactly the same as a brick.

a = game.Workspace.Model:GetChildren()

for i,v in pairs(a) do
    z = 0
    repeat
    v.Rotation = v.Rotation + Vector3.new(0.1, 0, 0)
    wait(0.01)
    z = z+1
    until z == 40 --Smooth rotation
end

0
Yeah, but that will rotate the parts, not the group. Tesouro 407 — 10y
0
Rotating the model is the same thing as rotating each part the same amount each time. This will rotate everything at once Shawnyg 4330 — 10y
Ad