generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
We use cookies to offer you a better experience. By using Roblox.com, you are agreeing to our Privacy and Cookie Policy.
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Teleporting models

Previous Thread :: Next Thread 
theuntimelydoctor is not online. theuntimelydoctor
Joined: 30 Jun 2011
Total Posts: 718
02 Jan 2013 05:26 PM
how do I teleport a model to their current vector 3 + (0, 0, 21)
Report Abuse
XxStarverxX is not online. XxStarverxX
Joined: 08 Oct 2010
Total Posts: 711
02 Jan 2013 05:30 PM
[ Content Deleted ]
Report Abuse
notsopwnedg is not online. notsopwnedg
Joined: 07 Nov 2010
Total Posts: 4182
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
notsopwnedg is not online. notsopwnedg
Joined: 07 Nov 2010
Total Posts: 4182
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
Jonah13249 is not online. Jonah13249
Joined: 09 Oct 2009
Total Posts: 2105
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
notsopwnedg is not online. notsopwnedg
Joined: 07 Nov 2010
Total Posts: 4182
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
kingkiller1000 is not online. kingkiller1000
Joined: 12 Dec 2008
Total Posts: 26415
02 Jan 2013 06:22 PM
Model:TranslateBy(Vector3.new(0,0,21))
Report Abuse
notsopwnedg is not online. notsopwnedg
Joined: 07 Nov 2010
Total Posts: 4182
02 Jan 2013 06:24 PM
O-o there is a TranslateBy method/function... huh
Report Abuse
Jonah13249 is not online. Jonah13249
Joined: 09 Oct 2009
Total Posts: 2105
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
notsopwnedg is not online. notsopwnedg
Joined: 07 Nov 2010
Total Posts: 4182
02 Jan 2013 06:24 PM
I guess...but i think king wins...
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
02 Jan 2013 06:25 PM
:MoveTo() position, :TranslateBy() some Vector3.

> Penguin Power
Report Abuse
Jonah13249 is not online. Jonah13249
Joined: 09 Oct 2009
Total Posts: 2105
02 Jan 2013 06:26 PM
True, never knew that method.

~ṡсɾïρτïṉģ hεlρεɾṡ ۩ lυαlεαɾṉεɾṡ ④ øƒвќṃṿј~ ღ ▂▃▅▆█ρεώḋïερïε☄сυτïερïε█▆▅▃▂ღ 【▬】
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image