Advertisement
Vertitech

[LUA] ROBLOX Beginning Scripts

May 24th, 2018
686
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.56 KB | None | 0 0
  1. -- Hello and thank you for reading this Vertitech (Now Dev_Much)'s beginner guide for scripting! --
  2. -- If you paste this into a ROBLOX script inserted either in the Workspace, or ServerScriptService, these sentences will be ignored by the reading of the script, considering they're "comments". --
  3. -- To make a comment, simply just put two dashes, then write whatever you want. Just like what I'm doing. --
  4.  
  5. -- Let's start with the first basic script. --
  6.  
  7. print("Hello world!")
  8.  
  9. -- Above is a print script or just the code you see when you open a script in the Studio. --
  10. -- The computer reads a script from top to bottom, so if you put this: --
  11.  
  12. print("Hello world!")
  13. print("Hello universe!")
  14.  
  15. -- The computer will simply read the print("Hello world!") first, then the other. --
  16.  
  17. -- On to the next script, which is the basic audio script, which is also on another paste of mine. --
  18. -- The whole Studio runs on this platform called "Game" which is basically a file everything is under. --
  19. -- Think of it as the Downloads window in your File Explorer. A bunch of things are under it. --
  20. -- Here is the script: --
  21.  
  22. game.Workspace.Sound:Play()
  23.  
  24. -- If you really think about it, scripting is basically telling a computer what to do. --
  25. -- If you also have no idea how to see if you did a script incorrectly or not, open the Output window listed under the View tab in ROBLOX Studio. --
  26.  
  27. -- Thanks for reading this quick and short little guide to beginner scripting. I also recommend looking up this on YouTube, Google, or any other search engine: --
  28.  
  29. "How to script in ROBLOX"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement