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
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: The basics of scripting

Previous Thread :: Next Thread 
Robotguy23333 is not online. Robotguy23333
Joined: 21 Apr 2011
Total Posts: 6
02 Mar 2016 07:21 PM
I have no idea how to script.
Send help, ie tips
Report Abuse
Altaccount133 is not online. Altaccount133
Joined: 19 Jun 2015
Total Posts: 127
02 Mar 2016 07:37 PM
never do "while" loops without putting a wait function somewhere, same goes for repeat.
You can always use the wiki or roblox Lua tutorials (i.e. Peaspod)



This siggy is copyrighted ©



Report Abuse
wonderful72pike is not online. wonderful72pike
Joined: 13 Jul 2010
Total Posts: 7009
02 Mar 2016 07:37 PM
local x = 1

Now whenever you use the term "x" in your script, the script reads it as 1.

local x = 1
x = 2

After that second line, the script will read it as 2.

local x = 2
local y = 3
local z = x + y

The script will now read "z" as being x + y, which it reads as 2 + 3. "z" is now 5. These can be named anything, and they can be set to equal anything.

local doritos = 5
local dank = 1337
local snoopdogg = doritos + dank

"snoopdogg" now equals 5 + 1337 which is 1342.

Congratulations you just learned how to use variables.
Report Abuse
j_0sh is not online. j_0sh
Joined: 05 Mar 2015
Total Posts: 512
02 Mar 2016 07:42 PM
There is so much to cover that it couldn't be put into one post.
Resources like StackOverflow, The Roblox Wiki, Programming in Lua, and even youtube are great places to start. If you have any problems or questions you can always ask here or PM one of us.
I would recommend reading Programming in Lua and starting some beginner Love2D or ROBLOX tutorials.
Report Abuse
DevelopmentStatus is not online. DevelopmentStatus
Joined: 22 Apr 2015
Total Posts: 235
02 Mar 2016 07:58 PM
--[[

this is a note

== -> Equal too
~= -> Is not Equal too
>= -> Greater than or equal too
<= -> Less than or equal too

]]

-- this is also a note

variable = 5
debounce = false

while debounce == false do -- while the debounce variable = false do (repeats)
debounce = true -- makes the debounce true which will make the while function stop repeating
print(variable) -- prints 5
wait() -- must have with a while function or else u will crash
end
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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