yobo89
|
  |
| Joined: 05 Jun 2010 |
| Total Posts: 2341 |
|
|
| 03 Apr 2015 11:13 AM |
| Say i have 3400 ish parts in a mopdel called fan, how can i make them spin like afan |
|
|
| Report Abuse |
|
|
|
| 03 Apr 2015 11:14 AM |
CSG, weld, rotate. 3400 is unacceptable, like holy. |
|
|
| Report Abuse |
|
|
rayk999
|
  |
| Joined: 18 Feb 2011 |
| Total Posts: 4705 |
|
| |
|
yobo89
|
  |
| Joined: 05 Jun 2010 |
| Total Posts: 2341 |
|
|
| 03 Apr 2015 11:15 AM |
How? i have this
while true do for i = 1,360 do script.Parent.CFrame = script.Parent.CFrame * CFrame.Angles(0,0.5,0) wait(0.05) end
end
but this only spins center blocki p ut it in |
|
|
| Report Abuse |
|
|
rayk999
|
  |
| Joined: 18 Feb 2011 |
| Total Posts: 4705 |
|
|
| 03 Apr 2015 11:16 AM |
| If you set the center block as primarypart, and then use SetPrimaryPartCFrame, that should move all parts in relation with the center block. |
|
|
| Report Abuse |
|
|
yobo89
|
  |
| Joined: 05 Jun 2010 |
| Total Posts: 2341 |
|
| |
|
rayk999
|
  |
| Joined: 18 Feb 2011 |
| Total Posts: 4705 |
|
|
| 03 Apr 2015 11:18 AM |
In the command bar
workspace.Model.CenterPart = workspace.Model.PrimaryPart
workspace.Model:SetPrimaryPartCFrame(cframe thing here) |
|
|
| Report Abuse |
|
|
rayk999
|
  |
| Joined: 18 Feb 2011 |
| Total Posts: 4705 |
|
|
| 03 Apr 2015 11:18 AM |
| nvm about that last line, use that in your script |
|
|
| Report Abuse |
|
|
|
| 03 Apr 2015 11:24 AM |
In a script, you can set a single part inside of your fan to be considered your model's PrimaryPart (you should pick a part in the very middle of the fan). Then, use SetPrimaryPartCFrame(CFrame value) on your model, which will move the whole thing according to your PrimaryPart. You can use CFrame.fromAxisAngle to rotate a part on its axis. So, the whole thing would look something like this:
local fan = script.Parent local axis = fan:FindFirstChild('Middle') fan.PrimaryPart = axis fan:SetPrimaryPartCFrame(--You'll have to research the math on fromAxisAngle, I'm not good at that stuff xD--)
http://wiki.roblox.com/index.php?title=PrimaryPart http://wiki.roblox.com/index.php?title=API:Class/Model/SetPrimaryPartCFrame http://wiki.roblox.com/index.php?title=Cframe#Constructors |
|
|
| Report Abuse |
|
|
rayk999
|
  |
| Joined: 18 Feb 2011 |
| Total Posts: 4705 |
|
| |
|