User contributions for PRG
From ROBLOX Wiki
Jump to navigationJump to search
10 December 2024
- 23:4323:43, 10 December 2024 diff hist +710 N Truly Random Numbers Created page with "{{CatUp|Tutorials}} __TOC__ == Introduction == This tutorial covers random numbers. == Random number generator == The random number generator in Roblox generates random numbers. * Start Roblox Studio. * Insert > Object > Script. * Copy and Paste the following script into the newly created Script Object: <pre> for i = 1, 10 do -- this will create a loop which will run 10 times print(math.random(1,100)) -- this will print random number from 1 to 100 wait(1) -- t..."
- 23:4223:42, 10 December 2024 diff hist +972 N Template:Event Created page with "<table style="border: dashed 2px red; width: 100%; font-size: 90%; text-align: left; align: center; padding: 4px;" cellspacing="0" cellpadding="4"> <tr> <th style="font-size: 1.5em; padding: 0;" colspan="2">Event</th> </tr> <tr style="background: #FFEFEF;"> <th style="width: 10%; border-top: solid 1px black; border-right: solid 1px black;">Syntax</th> <td style="border-top: solid 1px black;">{{{name}}}( {{{arguments}}} )</td> </tr> <..." current
- 23:4223:42, 10 December 2024 diff hist +364 N PlayerAdded (Event) Created page with "{| |<onlyinclude>{{Event|name=PlayerAdded |arguments=Instance ''Player'' |description= Fired after a player enters the game. |object= Players |}}</onlyinclude> |} {{Example| <pre>function onPlayerEntered(newPlayer) wait(10) newPlayer.Character.Torso.Transparency = 1 end game.Players.PlayerAdded:connect(onPlayerEntered)</pre>}}" current
- 23:4123:41, 10 December 2024 diff hist +33 N PlayerEntered Redirected page to PlayerAdded (Event) current Tag: New redirect
- 23:3823:38, 10 December 2024 diff hist +9,287 N Function Dump/Mathematical Functions Created page with "{{CatUp|Function Dump}} =Mathematical Functions= This library is an interface to the standard C math library. It provides all its functions inside the table math. ===math.abs (x)=== Returns the absolute value of x. {{Example|1=<!--why does it require this???--> <span style="color:blue">''Try me with Edit Mode!''</span> <pre> for i = -10, 10, .1 do local p = Instance.new("Part") p.Parent = game.Workspace p.Size = Vector3.new(1,1,1..." current
- 23:3723:37, 10 December 2024 diff hist +13,796 N Function Dump/String Manipulation Created page with "{{CatUp|Function Dump}} ==String Manipulation== This library provides generic functions for string manipulation, such as finding and extracting substrings, and pattern matching. When indexing a string in Lua, the first character is at position 1 (not at 0, as in C). Indices are allowed to be negative and are interpreted as indexing backwards, from the end of the string. Thus, the last character is at position -1, and so on. The string library provides all its function..." current
- 23:3323:33, 10 December 2024 diff hist +3,502 N Function Dump/Coroutine Manipulation Created page with "{{CatUp|Function Dump}} ==[http://www.lua.org/pil/9.1.html Coroutine] Manipulation== The operations related to coroutines comprise a sub-library of the basic library and come inside the table coroutine. See §2.11 for a general description of coroutines. '''coroutine.create (f)''' Creates a new coroutine, with body f. f must be a Lua function. Returns this new coroutine, an object with type "thread". {{Example| <pre> function f (a, b, c) print (a, b, c) end thr..." current
- 23:2423:24, 10 December 2024 diff hist +15,179 N Function Dump/Core Functions Created page with "{{CatUp|Function Dump}} ==Basic Functions== The basic library provides some core functions to Lua. If you do not include this library in your application, you should check carefully whether you need to provide implementations for some of its facilities. '''assert (v [, message])''' Issues an error when the value of its argument v is false (i.e., nil or false); otherwise, returns all its arguments. message is an error message; when absent, it defaults to "assertion..." current
- 23:2323:23, 10 December 2024 diff hist +14,738 N How to Script Anything/Chapter3 Created page with "{{CatUp|How to Script Anything}} ==Chapter 3: Functions, Data Types, and Coroutines== A closer look at making your own functions is necessary before any significant scripting can be done. Events, data types, coroutines all require functions, and very few scripts can do anything on Roblox unless they have at least one function. ===Custom Functions=== To make your own custom function, you must answer the question "What do I want it to do?", or "Why am I writing it?" This..." current
- 23:2323:23, 10 December 2024 diff hist +11,810 N How to Script Anything Created page with "==Introduction== Welcome to '''How to Script Anything'''! This miniature scripting "book" will teach you: <br>-Scripting in general (variables, syntax, etc.) <br>-The basic commands and details <br>-Advanced commands <br>-Logical thinking (and planning) <br>-How to script almost anything you want <br>Preliminary knowledge: How to navigate through Roblox; the basics of playing in Roblox. <br>You will need to do independent research on the links provided. <br>NOTE: Feel fr..." current
- 23:2323:23, 10 December 2024 diff hist +8,434 N How to Script Anything/Chapter5 Created page with "{{CatUp|How to Script Anything}} ==Chapter 5: How to Script Anything== In this chapter, an example will be used on how you might apply all of the above concepts in a variety of contexts. Two examples will be looked at simultaneously. The first is if you had ten doors and wanted them to open or close randomly every time someone touches the door. Instead of using ten separate scripts, one script will be used for all of them to save time if the script needs to be edited an..." current
- 23:2223:22, 10 December 2024 diff hist +8,528 N How to Script Anything/Chapter4 Created page with "{{CatUp|How to Script Anything}} ==Chapter 4: How to Interact with Roblox== Most of the basic features of Lua have been introduced by now. However, few of the scripts have done anything useful in Roblox. ===The script Variable=== There are very few properties of a script that are important to look at, and for the most part should be researched in the rest of the wiki. However, the basic ones are: <br>In a script, you can access the script object itself with the variabl..." current
- 23:2223:22, 10 December 2024 diff hist +1,833 N Function Dump Created page with "This is the location for the listing of all of the Lua based functions, ones that are built into the system. These are not to be confused with defined functions, ones that are made in your own code. These are changed/added to by the ROBLOX staff for the base Lua code, and cannot be overwritten or edited. These are broken up into 5 groups, where you can find more information about what you want to do on each page. ==Core Functions== The..." current
- 23:2223:22, 10 December 2024 diff hist +4,907 N Function Dump/Table Manipulation Created page with "{{CatUp|Function Dump}} =Table Manipulation= This library provides generic functions for table manipulation. It provides all its functions inside the table table. Most functions in the table library assume that the table represents an array or a list. For these functions, when we talk about the "length" of a table we mean the result of the length operator. ===table.concat (table [, sep [, i [, j]]])=== Given an array where all elements are strings or numbers, ret..." current
- 23:1923:19, 10 December 2024 diff hist +5,063 N How to Script Anything/Chapter2 Created page with "<!-- Recreation, source wasnt archived --> {{CatUp|How to Script Anything}} ==Chapter 2: Flow Control== Especially in Roblox, if there was no way of controlling what happens, there would be very little that could be done. One way of controlling the "flow", or what the script executes next, is by using events (in Chapter 3). ===While Loops=== A while loop uses the syntax <pre> while condition is true do [Statements] [break] end </pre> Using the "break" command is..." current
- 23:0923:09, 10 December 2024 diff hist +11,801 N How to Script Anything/Chapter1 Created page with "{{CatUp|How to Script Anything}} ==Chapter 1: Scripting Basics== On Roblox, scripting can help you make things happen. Without it, nothing would occur. Scripts allow your character to move and blox others, regen things, making things fly (potentially on their own), and much more. However, it takes many precise commands for it to all work. Without precise commands, Roblox may end up doing something you didn't want it to do. <br><br> However, the skill of choosing the cor..." current
- 23:0723:07, 10 December 2024 diff hist +12,281 N How To Build A Catapult Created page with "{{CatUp|Tutorials}} {{ScriptTutorial|Advanced|War Device}} 600px __TOC__ ==Who this Tutorial is for == This tutorial is for people who are interested in the inner workings of my Catapult model. If you just want to put a catapult in your level, you do not need to read this tutorial. Just do a free model search for "Catapult". I will be discussing OnTouch triggers, BodyForce objects, and the rather arcane but very powerful RunService...." current
- 23:0723:07, 10 December 2024 diff hist 0 N File:CatapultFire.png No edit summary current
- 23:0623:06, 10 December 2024 diff hist 0 N File:Catapult.png No edit summary current
- 23:0523:05, 10 December 2024 diff hist +6,731 N How To Increase and Decrease Vector3 Values Created page with "{{CatUp|Tutorials}} __TOC__ == Introduction == This tutorial will show you how to add or subtract Vector3 values. This will be quite a benefit to your scripts, and will make them more popular if you have them. ==Adding Vector3 Values== 1) Insert a Vector3Value.<br> 2) Change the value of Vector3Value to 15, 15, 15. 3) Click on Vector3Value. 4) Insert a script. Make sure the script's parent is the Vector3Value. == Scripting == Once those parts are done, open the..." current
- 15:4315:43, 10 December 2024 diff hist +2,945 N How To Use BodyPosition Created page with "==Introduction== In this tutorial, you should be in Roblox Studio. == Setup == First, make a small brick. I made mine 5x1x5. Next, select the brick you just made and click Insert->Object->Script. Now double-click the new script object. == Code == You should see the following: <pre> print("Hello World!") </pre> Delete that text, you won't need it. First, add this code. <pre> function onTouched(hit) </pre> This will detect when something touches it. <pre>local h..." current
- 15:3715:37, 10 December 2024 diff hist +16,833 N Building Trains Created page with "{{CatUp|Tutorials}} {{ImproperArchive}} __TOC__ ==Introduction== This is the tutorial on how to build and script a working train. This will show you how you can get your own rapid transit rail system going. == Auto Start Trains == This section deals with making trains that will automatically start, travel to a destination, wait one minute, and return to their starting location. ==Building== ===Map=== First of all, before we can script we need something for the train t..." current
- 15:3615:36, 10 December 2024 diff hist +19 N Sounds Redirected page to Music current Tag: New redirect
- 14:5214:52, 10 December 2024 diff hist +754 N Crossroads Created page with "{{CatUp|Roblox games}} {{ImproperArchive}} right '''Tagline:''' Battle your way through the secret hideout, storm the castle, invade the underground ruins, and capture the lookout tower. But be wary: there's always a showdown at The Crossroads. '''First Introduced:''' June 2006 '''Credits:''' <pre>Erik Cassel, Builderman, Telamon</pre> ==Summary== This map features some of the best fighting conditions around. For those that like open areas, the To..."
- 14:5114:51, 10 December 2024 diff hist +4,426 N How to Make a Model Regenerate Created page with "{{CatUp|Tutorials}} {{ScriptTutorial|Basic|Model}} __TOC__ == Introduction == Are you making a BrickBattle game and you want to have your scenery regenerate every once in a while? It is possible to do this with scripting. This tutorial will show you how to make a model regenerate every 5 minutes and display a message to this effect. == Make a model == The first step is to group the part of your level you want to regenerate into a model. Give your model a descri..." current
- 14:5014:50, 10 December 2024 diff hist +2,141 N One Way Shields Created page with "{{CatUp|Tutorials}} __TOC__ == Introduction == One-Way shields are a door or shield that only lets people through one way. This can fix spawnkilling problems, for example, by placing weapons/weapon givers outside the spawnroom, and spawns inside and having this shield in-between. This makes it only possible to exit to the weapons, but not to reenter with weapons. Therefore, NO Spawnkilling. == Building == First, open up Roblox Studio. Create a w..." current
- 14:5014:50, 10 December 2024 diff hist 0 N File:Rob5.jpg No edit summary current
- 14:5014:50, 10 December 2024 diff hist 0 N File:Rob4.jpg No edit summary current
- 14:5014:50, 10 December 2024 diff hist 0 N File:Rob3.jpg No edit summary current
- 14:5014:50, 10 December 2024 diff hist 0 N File:Rob2.jpg No edit summary current
- 14:5014:50, 10 December 2024 diff hist 0 N File:Rob1.gif No edit summary current
- 14:4914:49, 10 December 2024 diff hist +7,428 N Music Created page with "{{CatUp|Tutorials}} {{ImproperArchive}} __TOC__ '''''Due to a recent update it seems that the browse feature no longer works with the sound ID. Not only that, it seems that sounds don't work at all anymore unless uploaded by an mod/admin.''''' '''Note that any audio files, music sound effects or otherwise are not supported by the Roblox Content Distrobution System fully. If not uploaded correctly or using a file from your computer, people visiting the server may not..." current
- 14:4914:49, 10 December 2024 diff hist 0 N File:Wiki3.JPG No edit summary current
- 14:4914:49, 10 December 2024 diff hist 0 N File:Wiki2.JPG No edit summary current
- 14:4814:48, 10 December 2024 diff hist +2,643 N Teleportation Created page with "{{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't it teleport all things? It has to have a wel..." current
- 14:4714:47, 10 December 2024 diff hist +19,769 N Introduction to Weapons Created page with "{{CatUp|Tutorials}} {{CatUp|FAQ}} __TOC__ ==Introduction to Weapons== This tutorial explains to you the structure of weapons on Roblox and why they work. == How Tools Work == === Introduction === This section is a short description of how Tools work in the current version of Roblox. This may be handy to anyone who wants to write their own tools and doesn't care that any such tool may be short-lived due to the rapid development that is occurring in th..." current
- 14:4614:46, 10 December 2024 diff hist +4,378 N Making an onClicked script Created page with "{{CatUp|Tutorials}} __TOC__ ==Introduction== This is a FAQ that will teach you how to make a simple onClicked script. This FAQ will also explain how to put it to use. ==What is onClicked?== Not long ago, Roblox released a new feature known as a Click Detector. If you put it inside a brick it will detect when it is clicked. == Instructions == 1) Insert a brick onto your map.<br> 2) Insert -> Object -> ClickDetector inside that same brick.<br> 3) Insert a script in..." current
- 14:4614:46, 10 December 2024 diff hist +8,203 N Intro to Scripting: Make an Invisibility Tool Created page with "{{CatUp|Tutorials}} {{ScriptTutorial|Advanced|Lua}} __TOC__ ==Introduction== This tutorial is for people who wish to learn more about creation of tools, or who wish to add an invisibility tool to their map. It contains a basic invisibility script, without fading of characters. ==How the Tool Works== The invisibility tool is a HopperBin object so it will be able to be selected. It sets the ''Transparency'' values of all the player's RBX...." current
- 14:4514:45, 10 December 2024 diff hist +2,289 N How to add messages Created page with "{{CatUp|Tutorials}} {{ImproperArchive}} == Introduction == This article will explain different ways of adding messages and hints to your place. == How to Insert a Message == While in Roblox Studio, :1. In the Explorer panel, select Workspace :2. Go to '''Insert''', then '''Object...''' ::{{Studio|Menu$Insert}} ::{{Studio|Menu$Insert$Object}} :3. In the window that pops up,..." current
- 14:4514:45, 10 December 2024 diff hist 0 N File:P01F15.png No edit summary current
- 14:4414:44, 10 December 2024 diff hist +2,949 N Intro to Scripting: Make a Healing Potion Created page with "{{CatUp|Tutorials}} {{ScriptTutorial|Basic|Brick}} __TOC__ == Introduction == For now, this tutorial will show you how to make your brick heal your character when he touches it. #Go to the start from your desktop, and click on Roblox studio. #In Roblox Studio , go into "Edit mode". #Select the brick you want to modify. #Go to "Insert", then click object. Then type "Script" in the text box that comes up. #Double-click the script, then a window should pop up. #Remove all..." current
- 14:4314:43, 10 December 2024 diff hist +1,783 N Instance Created page with "{{CatUp|Tutorials}} __TOC__ == Introduction == An "Instance" 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' Script Builder, and adding Messages via scripts in many places. It is different from: <pre> local o = game.Workspace.Object:Clone() o.Parent = game.Workspace </pre> Instance actually creates an Object from scratch,..." current
- 14:4314:43, 10 December 2024 diff hist +1,998 N How do I create a brick? Created page with "{{CatUp|Tutorials}} __TOC__ == Object Creation via Script == It is time to learn how to create different objects via script. Instead of using "Insert > Object.. > Script", a script line can be used. Almost anything and everything can be created via scripts, even a whole new functioning script. === Adding New Objects (Instances) === Now, to add a new object, we need to use the term 'Instance.new'. This term creates a new instance. An instance is a longer..." current
- 14:3914:39, 10 December 2024 diff hist +2,288 N Script Creation Walkthrough Created page with "__TOC__ == Introduction == This tutorial is for complete beginners. The idea is to create an elementary script from which you can build scripting knowledge. It assumes you know nothing about scripting. == What this tutorial will teach you == * What the print() function does * How to run a script == Setup == You will need to open Roblox Studio. Once you have done that, you will need to click "My ROBLOX", select your map, and click "Edit". At this point, you..." current
- 14:3814:38, 10 December 2024 diff hist 0 N File:Play.JPG No edit summary current
- 14:3814:38, 10 December 2024 diff hist 0 N File:Rewind.JPG No edit summary current
- 14:3814:38, 10 December 2024 diff hist 0 N File:Commandtoolbar.JPG No edit summary current
- 14:3814:38, 10 December 2024 diff hist +9,798 N Basic Scripting Created page with "{{CatUp|Tutorials}} __TOC__ == Introduction == This article is an easy way to get started scripting. This will teach you how to script simple scripts that trigger when you touch them from the start. == Requirements == This tutorial is for people familiar with ROBLOX, and know Roblox Studio very well (a few weeks of experience). They should be familiar with [https://cirkl.wiki/index.php?title=Image:Explorerwindow.JPG Explorer], Properties, and..." current
- 14:3714:37, 10 December 2024 diff hist 0 N File:Outputwindow.JPG No edit summary current
- 14:3614:36, 10 December 2024 diff hist +8,026 N HopperBins Created page with "{{CatUp|Tutorials}} __TOC__ ==What is a HopperBin?== HopperBins are considered old now. They were the first ways to make a weapon, a utility tool, or anything you could really think of. They are mainly used for getting input from the player, and doing something with that input. ==Special Events== The special events of a HopperBin are as follows: #Selected #Deselected ==Important events and properties== The Selected and Deselected events have an argument, called a MOU..." current