|
| 02 Jan 2013 05:26 PM |
| how do I teleport a model to their current vector 3 + (0, 0, 21) |
|
|
| Report Abuse |
|
|
| |
|
|
| 02 Jan 2013 05:30 PM |
you cant teleport a model...but you can with one brick... brick = script.Parent --where brick is-- brick.CFrame = brick.CFrame + Vector3.new(0,0,21) |
|
|
| Report Abuse |
|
|
|
| 02 Jan 2013 05:32 PM |
for a model:
model = script.Parent --where the model is
for i,v in pairs(model:GetChildren()) do v.CFrame = v.CFrame + Vector3.new(0,0,21) end |
|
|
| Report Abuse |
|
|
|
| 02 Jan 2013 06:18 PM |
How about using the MoveTo method?
model = workspace.Model
model:MoveTo(Vector3.new(0, 0, 21))
http://wiki.roblox.com/index.php/MoveTo
~ṡсɾïρτïṉģ hεlρεɾṡ ۩ lυαlεαɾṉεɾṡ ④ øƒвќṃṿј~ ღ ▂▃▅▆█ρεώḋïερïε☄сυτïερïε█▆▅▃▂ღ 【▬】 |
|
|
| Report Abuse |
|
|
|
| 02 Jan 2013 06:21 PM |
| @jonah that would move the model to Vector3.new(0, 0, 21) not its current location + Vector3.new(0, 0, 21) |
|
|
| Report Abuse |
|
|
|
| 02 Jan 2013 06:22 PM |
| Model:TranslateBy(Vector3.new(0,0,21)) |
|
|
| Report Abuse |
|
|
|
| 02 Jan 2013 06:24 PM |
| O-o there is a TranslateBy method/function... huh |
|
|
| Report Abuse |
|
|
|
| 02 Jan 2013 06:24 PM |
Then he can find it's primary part, find it's Vector3 position, then add Vector3.new(0, 0, 21)
~ṡсɾïρτïṉģ hεlρεɾṡ ۩ lυαlεαɾṉεɾṡ ④ øƒвќṃṿј~ ღ ▂▃▅▆█ρεώḋïερïε☄сυτïερïε█▆▅▃▂ღ 【▬】 |
|
|
| Report Abuse |
|
|
|
| 02 Jan 2013 06:24 PM |
| I guess...but i think king wins... |
|
|
| Report Abuse |
|
|
|
| 02 Jan 2013 06:25 PM |
:MoveTo() position, :TranslateBy() some Vector3.
> Penguin Power |
|
|
| Report Abuse |
|
|
|
| 02 Jan 2013 06:26 PM |
True, never knew that method.
~ṡсɾïρτïṉģ hεlρεɾṡ ۩ lυαlεαɾṉεɾṡ ④ øƒвќṃṿј~ ღ ▂▃▅▆█ρεώḋïερïε☄сυτïερïε█▆▅▃▂ღ 【▬】 |
|
|
| Report Abuse |
|
|