SoberPain
|
  |
| Joined: 25 Oct 2010 |
| Total Posts: 841 |
|
|
| 18 Nov 2015 02:02 PM |
way to move a model, in a script? Like an actual model, either to a set position *like a part* or to a vector3.new which i cant get to work. |
|
|
| Report Abuse |
|
|
62GB
|
  |
| Joined: 03 Oct 2011 |
| Total Posts: 4157 |
|
|
| 18 Nov 2015 02:21 PM |
Absolutely! I like to use SetPrimaryPartCFrame, GetPrimaryPartCFrame, and yeah.
Start off by setting the PrimaryPart of your model. You should know how to do this. This part will be the 'center' of your model. Then, use a while loop or something to experiment with SetPrimaryPartCFrame. Here's a little example:
--script.Parent refers to a model
script.Parent:SetPrimaryPartCFrame(script.Parent:GetPrimaryPartCFrame() * CFrame.new(0,0,0)) --you can use fromEulerAngles, Angles, or a regular CFrame.. |
|
|
| Report Abuse |
|
|
Qorm
|
  |
| Joined: 25 Jul 2010 |
| Total Posts: 1650 |
|
|
| 18 Nov 2015 02:32 PM |
Model:MoveTo(Vector3.new(6,6,6))
#code local onion=((tasty*math.ceil(math.huge))^128);print"onions are tasty" |
|
|
| Report Abuse |
|
|
|
| 18 Nov 2015 02:36 PM |
| Get out Moron only Inteligent discussion are allow here |
|
|
| Report Abuse |
|
|
Qorm
|
  |
| Joined: 25 Jul 2010 |
| Total Posts: 1650 |
|
|
| 18 Nov 2015 02:41 PM |
https://gyazo.com/805fb748066a39bb60daf2180c8989ab [2]
#code local onion=((tasty*math.ceil(math.huge))^128);print"onions are tasty" |
|
|
| Report Abuse |
|
|