|
| 02 Mar 2016 07:21 PM |
I have no idea how to script. Send help, ie tips |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 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 |
|
|