<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.starfall.wtf/index.php?action=history&amp;feed=atom&amp;title=Teleportation</id>
	<title>Teleportation - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.starfall.wtf/index.php?action=history&amp;feed=atom&amp;title=Teleportation"/>
	<link rel="alternate" type="text/html" href="https://wiki.starfall.wtf/index.php?title=Teleportation&amp;action=history"/>
	<updated>2026-07-28T17:09:35Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://wiki.starfall.wtf/index.php?title=Teleportation&amp;diff=414&amp;oldid=prev</id>
		<title>PRG: Created page with &quot;{{CatUp|Tutorials}} __TOC__ == Introduction == Teleportation, a script commonly requested, is a script that moves a player or model, as a whole, to another location, instantly.  Teleportation is not high-level scripting -- just follow this simple tutorial to familiarize yourself.  == How Does It Work? ==   CFrame records where you are. The teleporters change your CFrame, so that you can popup in another area. So, why can&#039;t it teleport all things? It has to have a wel...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.starfall.wtf/index.php?title=Teleportation&amp;diff=414&amp;oldid=prev"/>
		<updated>2024-12-10T12:48:05Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{CatUp|Tutorials}} __TOC__ == Introduction == Teleportation, a script commonly requested, is a script that moves a player or model, as a whole, to another location, instantly.  Teleportation is not high-level scripting -- just follow this simple tutorial to familiarize yourself.  == How Does It Work? ==   CFrame records where you are. The teleporters change your &lt;a href=&quot;/index.php?title=CFrame&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;CFrame (page does not exist)&quot;&gt;CFrame&lt;/a&gt;, so that you can popup in another area. So, why can&amp;#039;t it teleport all things? It has to have a wel...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{CatUp|Tutorials}}&lt;br /&gt;
__TOC__&lt;br /&gt;
== Introduction ==&lt;br /&gt;
Teleportation, a script commonly requested, is a script that moves a player or model, as a whole, to another location, instantly.  Teleportation is not high-level scripting -- just follow this simple tutorial to familiarize yourself.&lt;br /&gt;
&lt;br /&gt;
== How Does It Work? == &lt;br /&gt;
&lt;br /&gt;
CFrame records where you are. The teleporters change your [[CFrame]], so that you can popup in another area. So, why can&amp;#039;t it teleport all things? It has to have a weld. All of the parts need to be connected for you to be teleported. If not, you&amp;#039;re not going to popup in one piece when you are teleported. Your [[character]] is all connected, so you teleport in one piece.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Note:&amp;lt;/b&amp;gt;If all [[RBX.lua.Part (Object)|parts]] are not connected, use :MoveTo(#,#,#) to move them, otherwise use CFrame.&lt;br /&gt;
&lt;br /&gt;
== How Do I Do It? ==&lt;br /&gt;
Just define a new CFrame for the object.  Let&amp;#039;s say we want to move a player.  Since the Torso is connected to all of a player&amp;#039;s parts, we will change its CFrame, as follows:&lt;br /&gt;
     game.Workspace.username.Torso.CFrame = CFrame.new(Vector3.new(0, 0, 0))&lt;br /&gt;
&lt;br /&gt;
Just substitute your name for &amp;#039;username&amp;#039; and fill in the coordinates.&lt;br /&gt;
&lt;br /&gt;
== Other Uses ==&lt;br /&gt;
There are other uses for CFrames, too.  You could send someone to a random location, by using the &amp;#039;math.random()&amp;#039; function, e.g.,:&lt;br /&gt;
     game.Workspace.username.Torso.CFrame = CFrame.new(Vector3.new(math.random(-200, 200), 30, math.random(-200, 200)))&lt;br /&gt;
You could even teleport someone relative to their current location, like 50 studs up, for example.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
torso = game.Workspace.username.Torso&lt;br /&gt;
torso.CFrame = torso.CFrame + Vector3.new(0,50,0) -- note that I used Vector3.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here is a script you can copy and paste, that will teleport everyone on the map:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
     p = game.Players:GetChildren()&lt;br /&gt;
     for i = 1, #p do&lt;br /&gt;
     p[i].Character.Torso.CFrame = CFrame.new(Vector3.new(0, 0, 0))&lt;br /&gt;
     wait(1) -- waits 1 second&lt;br /&gt;
     end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Adding Effects ==&lt;br /&gt;
When you have mastered basic teleportation, you can start to experiment, and add special effects.  For example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
local me = game.Players.N2KC&lt;br /&gt;
local c = me.Character:GetChildren()&lt;br /&gt;
for i = 1, #c do&lt;br /&gt;
if c[i].className == &amp;quot;Part&amp;quot; then&lt;br /&gt;
for i = 1, 10 do&lt;br /&gt;
c[i].Reflectance = i / 10&lt;br /&gt;
c[i].Transparency = i / 10&lt;br /&gt;
wait(.1)&lt;br /&gt;
end&lt;br /&gt;
end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
me.Character.Torso.CFrame = CFrame.new(Vector3.new(20, 10, 20))&lt;br /&gt;
&lt;br /&gt;
for i = 1, #c do&lt;br /&gt;
if c[i].className == &amp;quot;Part&amp;quot; then&lt;br /&gt;
for i = 9, 0, -1 do&lt;br /&gt;
c[i].Reflectance = i / 1&lt;br /&gt;
c[i].Transparency = i / 1&lt;br /&gt;
wait(.1)&lt;br /&gt;
end&lt;br /&gt;
end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Just change your the name in the first line to your name, and you will be teleported to the location noted in the middle of the script.&lt;br /&gt;
&lt;br /&gt;
[[Category:Scripting Tutorials]]&lt;/div&gt;</summary>
		<author><name>PRG</name></author>
	</entry>
</feed>