Overview
Roblox uses Luau. The hardest beginner concept is not syntax — it is authority: the server owns truth (money, inventory), while the client owns input and presentation.
Follow this pattern early and you avoid the classic mistake of storing currency in a LocalScript that exploiters can edit.
Related: UI basics · Playtesting · Studio setup
Steps
- 1
Know Script vs LocalScript homes
Scripts (server) belong in ServerScriptService or Workspace (with care). LocalScripts belong in StarterPlayerScripts, StarterCharacterScripts, or under player GUIs. A LocalScript in ServerScriptService will not run as you expect.
- 2
Write a hello-world server print
Insert a Script in ServerScriptService with print("Server ready"). Press Play and read the Output window. Confirm you understand server Output vs client Output tabs when debugging.
- 3
Create a RemoteEvent bridge
In ReplicatedStorage, insert a RemoteEvent named Ping. From a LocalScript, FireServer when a button is clicked. On the server, OnServerEvent should validate the player and then decide what happens — never assume the client’s numbers are honest.
- 4
Practice validation habits
If a client asks to buy an item, the server checks price, currency balance, and ownership. Reject bad requests silently or with a safe error message. This mindset matters more than memorizing every API.
Tips
- Use task.wait carefully; prefer events when something should react to a change.
- Name remotes clearly (PurchaseItem, EquipTool) so future you can audit them.
- Enable type checking gradually — even light annotations catch typos.
- Study official Creator Documentation examples rather than random free model scripts with obfuscated code.
FAQ
- Is Lua the same as Luau?
- Luau is Roblox’s evolved dialect with stricter defaults and extras. Most beginner Lua tutorials still apply, but prefer current Roblox docs for APIs.
- Are free models safe?
- Many are fine; some hide require() malware or backdoors. Read scripts before use, especially anything that touches HttpService or inserts unknown Modules.
Shop on Mystery Market
Full catalog →Pay with card or Robux — no Discord account required.