|
| 18 Aug 2012 03:40 PM |
Basicly i just want it to look like a basic rocket lift off, click a button, the engine lights and it flys up, im new the CFrame so im not so sure how it works
function onClicked(clicked) Fire = Instance.new("Fire") Fire.Parent = script.Parent.Parent.Rocket.Light Fire.Heat = 20 Fire.Size = 15
wait(2) Rocket = script.Parent.Parent.Rocket
for i = 1, 50 do Rocket.CFrame = Rocket.CFrame - Vector3.new(0, 1, 0) wait() end end
script.Parent.ClickDetector.MouseClick:connect(onClicked)
Output says "13:38:04 - CFrame is not a valid member of Model" |
|
|
| Report Abuse |
|
|
|
| 18 Aug 2012 03:56 PM |
| game.Workspace.Rocket.CFrame = CFrame.new(0,1,0) |
|
|
| Report Abuse |
|
|
|
| 18 Aug 2012 03:57 PM |
| A model does not have a CFrame OR Position value. |
|
|
| Report Abuse |
|
|
|
| 18 Aug 2012 04:00 PM |
| @18, then how would you move a model? |
|
|
| Report Abuse |
|
|
|
| 18 Aug 2012 04:01 PM |
| Taking all the parts in it and moving them. |
|
|
| Report Abuse |
|
|
| |
|
|
| 18 Aug 2012 04:03 PM |
| @Robot and he wanted it to go down one stud, not move all the way to CFrame.new(0, 1, 0) |
|
|
| Report Abuse |
|
|
|
| 18 Aug 2012 04:03 PM |
| You could put all the bricks in the model in a table, then move that entire table. |
|
|
| Report Abuse |
|
|
|
| 18 Aug 2012 04:05 PM |
| @Robot well that would be a for loop after using a function to get all the parts and return a table. |
|
|
| Report Abuse |
|
|