|
| 27 Jan 2014 02:10 PM |
Normally I would use a script that designates the coordinates I want a brick to go to:
p = script.Parent.Parent.MisterBrick function onClicked() p.CFrame = CFrame.new(0,0,0) end
script.Parent.ClickDetector.MouseClick:connect(onClicked)
But is there a simpler way, such as adding to or subtracting from coordinates? For example, something like this:
p.CFrame = CFrame.new(X-2, Y+5) --Z stays the same
Is anything like this possible? It would be nice to copy and paste CFramed doors without having to re-script them. |
|
|
| Report Abuse |
|
|
| |
|
| |
|
Hibobb
|
  |
| Joined: 18 Apr 2010 |
| Total Posts: 2146 |
|
|
| 27 Jan 2014 03:44 PM |
p.CFrame = p.CFrame * CFrame.new(-2,5,0) |
|
|
| Report Abuse |
|
|
| |
|