|
| 10 May 2014 11:09 PM |
I need to rotate a model, and it doesn't matter if it's CFrame or Vector3.
function Rotate(model) --Code here end
mouse.KeyDown:connect(function(key) if key=="r" then Rotate(workspace.Model) end end) |
|
|
| Report Abuse |
|
|
transIate
|
  |
| Joined: 20 Jun 2013 |
| Total Posts: 2699 |
|
|
| 10 May 2014 11:13 PM |
you should quit that account before you really think are a programming 'master' for learning Lua
1. There is no set value for your function it to rotate (assuming 90 degrees)-> obviously 2. mouse not defined 3. use both cframe nd vector3
|
|
|
| Report Abuse |
|
|
|
| 11 May 2014 10:08 AM |
1. My name is a more of a joke. 2. I'm not an idiot, this is only a small part of the script, Everything is defined. 3. I wanted to know how to rotate a model,I could easily edit how it's rotated. 4. Stop acting like people actually care about you, I just wanted help, not some arrogant moron posting crap that doesn't even matter. |
|
|
| Report Abuse |
|
|
|
| 11 May 2014 10:09 AM |
seriously change your name, its not even funny.
|
|
|
| Report Abuse |
|
|
|
| 11 May 2014 10:10 AM |
| Why are you even taking my name seriously? |
|
|
| Report Abuse |
|
|
| |
|
|
| 11 May 2014 10:11 AM |
It's just a name, and it's roblox. But seriously, I just need some help. |
|
|
| Report Abuse |
|
|
|
| 11 May 2014 10:13 AM |
function Rotate(model) local center=model:GetModelCFrame() for v,i in pairs(model:GetChildren()) do --What goes here. end end |
|
|
| Report Abuse |
|
|
transIate
|
  |
| Joined: 20 Jun 2013 |
| Total Posts: 2699 |
|
|
| 11 May 2014 08:22 PM |
| can you post the full script because I don't know whats goin on k |
|
|
| Report Abuse |
|
|
|
| 11 May 2014 08:29 PM |
| Already figured it would with ananamis's |
|
|
| Report Abuse |
|
|
zakarq
|
  |
| Joined: 10 Oct 2010 |
| Total Posts: 883 |
|
|
| 11 May 2014 08:29 PM |
Rotating models is do-able, I do it all the time! Via the rotate tool in studios.
-- Geese are the dominant species, not humanoid creatures! |
|
|
| Report Abuse |
|
|