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 11 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
11 years ago

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

01a = game.Workspace.Model:GetChildren()
02 
03for i,v in pairs(a) do
04    z = 0
05    repeat
06    v.Rotation = v.Rotation + Vector3.new(0.1, 0, 0)
07    wait(0.01)
08    z = z+1
09    until z == 40 --Smooth rotation
10end
0
Yeah, but that will rotate the parts, not the group. Tesouro 407 — 11y
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 — 11y
Ad