<?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=Instance</id>
	<title>Instance - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.starfall.wtf/index.php?action=history&amp;feed=atom&amp;title=Instance"/>
	<link rel="alternate" type="text/html" href="https://wiki.starfall.wtf/index.php?title=Instance&amp;action=history"/>
	<updated>2026-07-28T16:17:09Z</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=Instance&amp;diff=407&amp;oldid=prev</id>
		<title>PRG: Created page with &quot;{{CatUp|Tutorials}} __TOC__  == Introduction == An &quot;Instance&quot; refers to an Instance of an Object, hence the name.  Instance is a very useful piece of  script.  It can be used to create just about anything, and it is used often in Anaminus&#039; Script Builder, and adding Messages via scripts in many places.  It is different from:  &lt;pre&gt; local o = game.Workspace.Object:Clone() o.Parent = game.Workspace &lt;/pre&gt;  Instance actually creates an Object from scratch,...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.starfall.wtf/index.php?title=Instance&amp;diff=407&amp;oldid=prev"/>
		<updated>2024-12-10T12:43:51Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{CatUp|Tutorials}} __TOC__  == Introduction == An &amp;quot;Instance&amp;quot; refers to an Instance of an Object, hence the name.  Instance is a very useful piece of  script.  It can be used to create just about anything, and it is used often in &lt;a href=&quot;/index.php?title=User:Anaminus&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;User:Anaminus (page does not exist)&quot;&gt;Anaminus&lt;/a&gt;&amp;#039; Script Builder, and adding Messages via scripts in many places.  It is different from:  &amp;lt;pre&amp;gt; local o = game.Workspace.Object:Clone() o.Parent = game.Workspace &amp;lt;/pre&amp;gt;  Instance actually creates an Object from scratch,...&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;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
An &amp;quot;Instance&amp;quot; refers to an Instance of an Object, hence the name.  Instance is a very useful piece of  script.  It can be used to create just about anything, and it is used often in [[User:Anaminus|Anaminus]]&amp;#039; Script Builder, and adding Messages via scripts in many places.&lt;br /&gt;
&lt;br /&gt;
It is different from:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
local o = game.Workspace.Object:Clone()&lt;br /&gt;
o.Parent = game.Workspace&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Instance actually creates an Object from scratch, instead of copying from somewhere else.&lt;br /&gt;
In the next section, we will take a look at some examples.&lt;br /&gt;
&lt;br /&gt;
== Creating a Message ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
local msg = Instance.new(&amp;quot;Message&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
msg.Parent = game.Workspace&lt;br /&gt;
msg.Text = &amp;quot;Hello.&amp;quot;&lt;br /&gt;
wait(10)&lt;br /&gt;
msg:Remove()&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the above script, you see that &amp;quot;Instance.new&amp;quot; is creating a new object, a message, and making it&amp;#039;s variable name &amp;quot;msg&amp;quot;.  The rest of the script then tells &amp;quot;msg&amp;quot; what to do.&lt;br /&gt;
&lt;br /&gt;
== Creating a Part ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
local p = Instance.new(&amp;quot;Part&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
p.Parent = game.Workspace&lt;br /&gt;
p.Name = &amp;quot;Brick&amp;quot;&lt;br /&gt;
p.BrickColor = BrickColor.new(21)&lt;br /&gt;
&lt;br /&gt;
p.Anchored = true&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the above script, &amp;quot;Instance.new&amp;quot; is creating a Part Object, with a variable name of &amp;quot;p&amp;quot;, and again, the script tells it what it wants to do.  This script is very useful indeed.&lt;br /&gt;
&lt;br /&gt;
== Creating an Explosion ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
local e = Instance.new(&amp;quot;Explosion&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
e.Parent = game.Workspace&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
In the above script, &amp;quot;Instance.new&amp;quot; is creating a Explosion Object, with a variable name of &amp;quot;e&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==Creating Sparkles==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
local g = Instance.new(&amp;quot;Sparkles&amp;quot;) --This creates the Sparkles&lt;br /&gt;
&lt;br /&gt;
g.Parent = game.Workspace.Player.Torso --Change Player to your Character&amp;#039;s name and Torso to a part you want the sparkles to be in, so its basicly saying that the Sparkles will go in Player&amp;#039;s torso.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Scripting Tutorials]]&lt;/div&gt;</summary>
		<author><name>PRG</name></author>
	</entry>
</feed>