generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Rotating a model

Previous Thread :: Next Thread 
TheProgrammingMaster is not online. TheProgrammingMaster
Joined: 20 Aug 2011
Total Posts: 7602
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 is not online. 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
TheProgrammingMaster is not online. TheProgrammingMaster
Joined: 20 Aug 2011
Total Posts: 7602
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
VerifiedName is not online. VerifiedName
Joined: 26 Jul 2009
Total Posts: 4534
11 May 2014 10:09 AM
seriously change your name, its not even funny.

Report Abuse
TheProgrammingMaster is not online. TheProgrammingMaster
Joined: 20 Aug 2011
Total Posts: 7602
11 May 2014 10:10 AM
Why are you even taking my name seriously?
Report Abuse
VerifiedName is not online. VerifiedName
Joined: 26 Jul 2009
Total Posts: 4534
11 May 2014 10:10 AM
why wouldnt i?
Report Abuse
TheProgrammingMaster is not online. TheProgrammingMaster
Joined: 20 Aug 2011
Total Posts: 7602
11 May 2014 10:11 AM
It's just a name, and it's roblox.
But seriously, I just need some help.
Report Abuse
TheProgrammingMaster is not online. TheProgrammingMaster
Joined: 20 Aug 2011
Total Posts: 7602
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 is not online. 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
TheProgrammingMaster is not online. TheProgrammingMaster
Joined: 20 Aug 2011
Total Posts: 7602
11 May 2014 08:29 PM
Already figured it would with ananamis's
Report Abuse
zakarq is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image