InYo22
|
  |
| Joined: 18 Jul 2010 |
| Total Posts: 444 |
|
|
| 06 Mar 2014 08:41 PM |
Alright, not very good at scripting, very limited knowledge to it. Best I can do is make a floor change colors randomly. But I thought I rotate a model of mine using a script.
I heard about the use of getmodel cframe but I am unsure of how to approach this. All I'm trying to do is make a model with roughly 3 parts inside of it rotate by 2 degrees every 12 seconds.
I have no idea how to approach this, any help? |
|
|
| Report Abuse |
|
|
GamingOwl
|
  |
| Joined: 18 Feb 2014 |
| Total Posts: 350 |
|
|
| 06 Mar 2014 08:43 PM |
| You know there is a thing built into studio for a cframing right? You also know it works with models too... right? |
|
|
| Report Abuse |
|
|
InYo22
|
  |
| Joined: 18 Jul 2010 |
| Total Posts: 444 |
|
|
| 06 Mar 2014 08:44 PM |
Let me clarify-
I know of the cframe tool in studio. but what I mean is by a script in game, make a model rotate on its own while during gameplay, rotate roughly 2 degrees every 12 seconds. |
|
|
| Report Abuse |
|
|
|
| 06 Mar 2014 08:53 PM |
Hmmmm, maybe this, Rotate = + 2 game.Players.PlayerAdded:connect(function() repeat wait() until game.Players(#players >= 2) wait(12) game.Workspace.PARTNAME.Position(POSITION,POSITION,Rotate) end) |
|
|
| Report Abuse |
|
|
InYo22
|
  |
| Joined: 18 Jul 2010 |
| Total Posts: 444 |
|
|
| 06 Mar 2014 09:13 PM |
| I should clarify again, I'm trying to rotate a GROUP of parts that are together as a model. And this rotation is to make a group (model of a missile or) rotate on an axis 2 degrees every 12 seconds. |
|
|
| Report Abuse |
|
|
|
| 07 Mar 2014 06:21 AM |
Ok, Rotation = + 2 game.Playesr.PlayerAdded:connect(function() H = game.Workspace.MODELNAME:GetChildren() H.Rotate.new(0,Rotation,0) wait(12) H.Rotate.new(0,Rotation,0) wait(12) H.Rotate.new(0,Rotation,0) end) |
|
|
| Report Abuse |
|
|