|
| 24 Jul 2012 04:09 PM |
| What I Basically Want to do is have a the model move in ini ts lookvector value :o |
|
|
| Report Abuse |
|
|
|
| 24 Jul 2012 04:11 PM |
| and sry i have no clue how to do that :/ its probably not normal to do haha any help would be great guys thx |
|
|
| Report Abuse |
|
|
| |
|
bourlo
|
  |
| Joined: 11 Aug 2009 |
| Total Posts: 399 |
|
|
| 24 Jul 2012 04:31 PM |
something like that?
parts = script.Parent:GetChildren() for i,v in pairs(parts) do pcall(function() v.CFrame = v.CFrame + Vector3.new(5,0,0) end) end |
|
|
| Report Abuse |
|
|
| |
|
|
| 24 Jul 2012 04:42 PM |
| didnt work D: No errors either :/ |
|
|
| Report Abuse |
|
|
bourlo
|
  |
| Joined: 11 Aug 2009 |
| Total Posts: 399 |
|
|
| 24 Jul 2012 04:46 PM |
| have the script inside the model,o wait,does the model have submodels as well? |
|
|
| Report Abuse |
|
|
|
| 24 Jul 2012 04:48 PM |
no i did that i know how to script its just this is stumping me D:
function CFrameModel(model,centerofmodel,goalcframe) for _,p in ipairs(model:GetChildren()) do p.CFrame=goalcframe:toWorldSpace(centerofmodel:toObjectSpace(p.CFrame)) end end
CframeModel(script.Parent,P6,)
what would i need for the third parameter in there? |
|
|
| Report Abuse |
|
|
| |
|
|
| 24 Jul 2012 05:22 PM |
| No you got to put it in Command Bar. derrr. |
|
|
| Report Abuse |
|
|
|
| 24 Jul 2012 05:24 PM |
Repeat "Whats the third parameter"
i know that i can use it in the script also -.- |
|
|
| Report Abuse |
|
|