<?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=How_To_Make_Glow_Scripts</id>
	<title>How To Make Glow Scripts - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.starfall.wtf/index.php?action=history&amp;feed=atom&amp;title=How_To_Make_Glow_Scripts"/>
	<link rel="alternate" type="text/html" href="https://wiki.starfall.wtf/index.php?title=How_To_Make_Glow_Scripts&amp;action=history"/>
	<updated>2026-07-28T16:13:44Z</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=How_To_Make_Glow_Scripts&amp;diff=348&amp;oldid=prev</id>
		<title>PRG: Created page with &quot;{{CatUp|Tutorials}} __TOC__  ==Introduction== There are many ways to make a brick glow. This tutorial will explain the concept of making things glow  using scripts.  ==The Reflectance Glow==  First, insert a brick, in Roblox Studio, then Insert a script inside this brick.  Open up the script, then delete the text that says &quot;Hello World!&quot;.  Then, add the following text:   &lt;pre&gt; while true do 	for i=1, 9, 1 do 		-- Go...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.starfall.wtf/index.php?title=How_To_Make_Glow_Scripts&amp;diff=348&amp;oldid=prev"/>
		<updated>2024-12-10T06:05:04Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{CatUp|Tutorials}} __TOC__  ==Introduction== There are many ways to make a brick glow. This tutorial will explain the concept of making things glow  using scripts.  ==The Reflectance Glow==  First, insert a &lt;a href=&quot;/index.php?title=Brick&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Brick (page does not exist)&quot;&gt;brick&lt;/a&gt;, in &lt;a href=&quot;/index.php/Roblox_Studio&quot; class=&quot;mw-redirect&quot; title=&quot;Roblox Studio&quot;&gt;Roblox Studio&lt;/a&gt;, then &lt;a href=&quot;/index.php/Intro_to_Scripting:_Make_a_Dance_Floor&quot; title=&quot;Intro to Scripting: Make a Dance Floor&quot;&gt;Insert a script&lt;/a&gt; inside this brick.  Open up the &lt;a href=&quot;/index.php/Script&quot; class=&quot;mw-redirect&quot; title=&quot;Script&quot;&gt;script&lt;/a&gt;, then delete the text that says &amp;quot;Hello World!&amp;quot;.  Then, add the following text:   &amp;lt;pre&amp;gt; while true do 	for i=1, 9, 1 do 		-- Go...&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;
There are many ways to make a brick glow. This tutorial will explain the concept of making things glow &lt;br /&gt;
using scripts.&lt;br /&gt;
&lt;br /&gt;
==The Reflectance Glow==&lt;br /&gt;
&lt;br /&gt;
First, insert a [[brick]], in [[Roblox Studio]], then [[Intro_to_Scripting:_Make_a_Dance_Floor|Insert a script]] inside this brick.  Open up the [[script]], then delete the text that says &amp;quot;Hello World!&amp;quot;.  Then, add the following text: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
while true do&lt;br /&gt;
	for i=1, 9, 1 do&lt;br /&gt;
		-- Go up&lt;br /&gt;
		script.Parent.Reflectance = i * .1&lt;br /&gt;
		wait(.1)&lt;br /&gt;
	end&lt;br /&gt;
	for i=9, 1, -1 do&lt;br /&gt;
		-- Go down&lt;br /&gt;
		script.Parent.Reflectance = i * .1&lt;br /&gt;
		wait(.1)&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Comments==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;--&amp;lt;/b&amp;gt; Go up and &amp;lt;b&amp;gt;--&amp;lt;/b&amp;gt; Go down are both preceded by double hyphens.  Anything preceded by double hypens are ignored by the computer.  [http://www.lua.org/pil/1.3.html Comments] can help people by describing the purpose of a section of code, but the script will work just as fine with or without the comments.&lt;br /&gt;
&lt;br /&gt;
==Loops==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
for i=1, 9, 1 do&lt;br /&gt;
     script.Parent.Reflectance = i * .1&lt;br /&gt;
     wait(.1)&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;&amp;quot;i=1&amp;quot;&amp;lt;/b&amp;gt; means that the script is making a &amp;#039;&amp;#039;variable&amp;#039;&amp;#039;, which is, a value that can change as the script progresses.  In this case, &amp;quot;i&amp;quot; will start at 1, and will increase everytime the &amp;quot;for loop&amp;quot; loops.  It will go to 9 (notice the next statement, &amp;quot;, 9&amp;quot;), increasing in units of 1 (or, as in the second loop, decreasing by 1) and then stop the loop. &lt;br /&gt;
&amp;lt;pre&amp;gt;script.Parent.Reflectance = i * .1&amp;lt;/pre&amp;gt;&lt;br /&gt;
This is just setting a value, but with a catch: we&amp;#039;re setting it to a &amp;#039;&amp;#039;variable&amp;#039;&amp;#039;.  Variables are assigned numerical values.  (Note the &amp;quot;* .1&amp;quot;.  That&amp;#039;s to make it &amp;quot;.1&amp;quot; when i is 1, and &amp;quot;.4&amp;quot; when i is 4, for example.  A decimal is just another way to write a fraction.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is how the loop can be reversed:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
	for i=9, 1, -1 do&lt;br /&gt;
		-- Go down&lt;br /&gt;
		script.Parent.Reflectance = i * .1&lt;br /&gt;
		wait(.1)&lt;br /&gt;
	end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The loop goes from the value of 9 to the value of 1, decreasing in units of 1 each time.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
[[How To Make A Shiny Brick]]&lt;br /&gt;
&lt;br /&gt;
[[Intro_to_Scripting:_Make_a_Dance_Floor|Make a Dance Floor (Helpful for inserting scripts)]]&lt;br /&gt;
&lt;br /&gt;
[http://www.lua.org/pil/4.3.2.html Programming in Lua: the While loop]&lt;br /&gt;
&lt;br /&gt;
[http://www.lua.org/pil/4.3.4.html Programming in Lua: the For loop]&lt;br /&gt;
&lt;br /&gt;
[[Category:Scripting Tutorials]]&lt;/div&gt;</summary>
		<author><name>PRG</name></author>
	</entry>
</feed>