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 » Scripters
Home Search
 

Re: How do you make a model rotate!?

Previous Thread :: Next Thread 
corncob567 is not online. corncob567
Joined: 18 Jan 2011
Total Posts: 795
02 Jan 2015 12:45 PM
I have been trying for hours. Does anyone know? I am trying to make the fan on a windmill spin, but it's a model and that makes it tougher.
Report Abuse
corncob567 is not online. corncob567
Joined: 18 Jan 2011
Total Posts: 795
02 Jan 2015 12:51 PM
Someone...
Report Abuse
Fedorakid is not online. Fedorakid
Joined: 17 Jul 2010
Total Posts: 7079
02 Jan 2015 12:54 PM
Yes because you just have to bump it after 6 minutes.

Or 6*60

360 seconds....
Report Abuse
corncob567 is not online. corncob567
Joined: 18 Jan 2011
Total Posts: 795
02 Jan 2015 04:31 PM
duh hello
Report Abuse
DeviousDeviation is not online. DeviousDeviation
Joined: 28 Dec 2010
Total Posts: 9306
02 Jan 2015 04:33 PM
SetPrimaryPartCFrame

logic is logical
Report Abuse
corncob567 is not online. corncob567
Joined: 18 Jan 2011
Total Posts: 795
02 Jan 2015 07:16 PM
Oh thanks. I have no idea how to apply that. o3o
Report Abuse
Tauritaar is not online. Tauritaar
Joined: 30 Dec 2012
Total Posts: 1785
02 Jan 2015 07:36 PM
--for the sake of argument.

windmill = workspace.Windmill:GetChildren()
while true do
wait()
for i = 1,#windmill do
windmill[i]--put rotation info after this--
end
end
Report Abuse
Accomplishable is not online. Accomplishable
Joined: 13 Aug 2009
Total Posts: 6207
02 Jan 2015 07:37 PM
@above lol, that would rotate every single part in place. gg nice try tho.
Report Abuse
iiEssence is not online. iiEssence
Joined: 18 Jun 2014
Total Posts: 3467
02 Jan 2015 07:41 PM
rekt
Report Abuse
corncob567 is not online. corncob567
Joined: 18 Jan 2011
Total Posts: 795
04 Jan 2015 12:00 PM
Oh my goodness please, can someone just help me out? I would be eternally greatful. (btw, the model is named FullFan) Thanks for trying to help up to this point though.
Report Abuse
DeviousDeviation is not online. DeviousDeviation
Joined: 28 Dec 2010
Total Posts: 9306
04 Jan 2015 12:01 PM
SetPrimaryPartCFrame()

logic is logical
Report Abuse
Dwarlon is not online. Dwarlon
Joined: 18 Jul 2013
Total Posts: 4604
04 Jan 2015 12:02 PM
OK SERISOULY JUST UNANCHOR IT WELD IT ALL USE A BODYPOSITION AND ROTATIONVELOCITY DONE
Report Abuse
corncob567 is not online. corncob567
Joined: 18 Jan 2011
Total Posts: 795
04 Jan 2015 12:33 PM
No such thing as rotation velocity. :)
Report Abuse
listcross is not online. listcross
Joined: 07 Mar 2009
Total Posts: 1247
04 Jan 2015 12:35 PM
RotVelocity exists though...
Anyways that's a clunky way to do things. Just make sure every part is joined in some way and then apply CFrame.Angles to any of the parts.
Report Abuse
corncob567 is not online. corncob567
Joined: 18 Jan 2011
Total Posts: 795
04 Jan 2015 12:36 PM
I am extremely glad that everyone is trying to help, but the thing is; I have hardly any idea how to actually put the stuff you're saying into a script. I can't script. I mean, I understand the very very basics, but none of this CFrame stuff.
Report Abuse
maxomega3 is not online. maxomega3
Joined: 11 Jun 2010
Total Posts: 10668
04 Jan 2015 01:44 PM
EgoMoose gave me this back when :GetModelCFrame () wasn't deprecated, so I made the conversion using, as everyone else has been saying, GetPrimaryPartCFrame:

Model = workspace.Model
function RotateModel(Model, Mid, Angles)
for i, v in pairs(Model:GetChildren()) do
if v:IsA("BasePart") then
v.CFrame = Angles:toWorldSpace(Mid:toObjectSpace(v.CFrame))
end
RotateModel(v, Mid, Angles)
end
end




local mid = workspace.Model:GetPrimaryPartCFrame()
RotateModel(Model, mid, mid * CFrame.Angles(0, 0, .01))


Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
04 Jan 2015 01:57 PM
"No such thing as rotation velocity"
Good troll 8/8
Report Abuse
Accomplishable is not online. Accomplishable
Joined: 13 Aug 2009
Total Posts: 6207
04 Jan 2015 05:36 PM
I don't use GetModelCFrame(), but I use GetModelSize(). Is GetModelSize() deprecated?
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
04 Jan 2015 08:24 PM
Yeah, it's deprecated IIRC.
Report Abuse
Accomplishable is not online. Accomplishable
Joined: 13 Aug 2009
Total Posts: 6207
04 Jan 2015 08:25 PM
so then what do I use instead of it?
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
04 Jan 2015 08:28 PM
Well IDK why you would want the size but get the center of the model and get the biggest size components and now you have a cube! :)
Report Abuse
Accomplishable is not online. Accomplishable
Joined: 13 Aug 2009
Total Posts: 6207
04 Jan 2015 08:38 PM
I needed to get the size because I need to have the model entirely under ground so I can slowly move it up
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
04 Jan 2015 08:50 PM
Don't you only need the height for that :)?
Report Abuse
LucasLua is not online. LucasLua
Joined: 18 Jun 2008
Total Posts: 7386
04 Jan 2015 08:50 PM
You can still use GetModelSize however because it is depreciated (not deprecated) Roblox is saying it is old code and they aren't going to make sure new objects work with it (such as Unions and all those other modelling part types). It should still work with regular parts wedge parts, and corner wedge parts.
Report Abuse
Accomplishable is not online. Accomplishable
Joined: 13 Aug 2009
Total Posts: 6207
04 Jan 2015 09:14 PM
@cnt


GetModelSize().Y



but it's deprecated

Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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