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.
Well, it's not exactly the same as a brick.
01 | a = game.Workspace.Model:GetChildren() |
02 |
03 | for i,v in pairs (a) do |
04 | z = 0 |
05 | repeat |
06 | v.Rotation = v.Rotation + Vector 3. new( 0.1 , 0 , 0 ) |
07 | wait( 0.01 ) |
08 | z = z+ 1 |
09 | until z = = 40 --Smooth rotation |
10 | end |
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?