|
| 21 Sep 2013 06:15 AM |
function onClicked() Movement = CFrame.new(-0.25, 0, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0) Movementa = CFrame.new(0.25, 0, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0) game.Workspace.BigDoors.Left.Pillar:GetChildren().CFrame = game.Workspace.BigDoors.Left.Pillar:GetChildren().CFrame * Movement wait (0.01) end script.Parent.ClickDetector.MouseClick:connect(onClicked) |
|
|
| Report Abuse |
|
|
|
| 21 Sep 2013 06:15 AM |
| (line 3 and 4 are all one line, forum split it up) |
|
|
| Report Abuse |
|
|
|
| 21 Sep 2013 06:18 AM |
| :GetChildren().CFrame is invalid. |
|
|
| Report Abuse |
|
|
|
| 21 Sep 2013 06:25 AM |
Could you fix this?
function onClicked() Movement = CFrame.new(-0.25, 0, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0) Movementa = CFrame.new(0.25, 0, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0) local Pillar = game.Workspace.BigDoors.Left.Pillar:getChildren() Pillar.CFrame = Pillar.CFrame * Movement wait (0.01) end script.Parent.ClickDetector.MouseClick:connect(onClicked) |
|
|
| Report Abuse |
|
|
|
| 21 Sep 2013 06:28 AM |
| The CFrame of a model is not feasible. |
|
|
| Report Abuse |
|
|
|
| 21 Sep 2013 06:31 AM |
| What im trying to do is find the children of game.Workspace.BigDoors.Left.Pillar. I want to find the children in 'pillar' and then make the children move. |
|
|
| Report Abuse |
|
|
|
| 22 Sep 2013 05:46 AM |
children = model:GetChildren() for i = 1, #children do children[i].CFrame = children[i].CFrame + Vector3.new(0, 0, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0) end |
|
|
| Report Abuse |
|
|