Roblox Scripting

Roblox scripting means writing Luau: a fast, gradually-typed Lua dialect that runs on Roblox's servers and clients. This page covers the mental model; and shows you how to get complete, correct scripts generated for any system you need.

Try it free in beta

The three places code lives

ServerScriptService runs authoritative logic only the server sees. StarterPlayerScripts runs client code for input, UI and feel. ReplicatedStorage holds what both machines read: RemoteEvents and shared config modules. Most beginner bugs are code living in the wrong place.

The rule that matters most

The client is never trustworthy. Anything a player can gain, spend or die from must be decided by the server after validating what the client asked for. Exploiters can fire every remote with arbitrary arguments; your server script is the only thing that stands between them and your economy.

Modern Luau in one minute

Use task.wait() not wait(). Store per-instance data with attributes, not Value objects. Group shared behavior with CollectionService tags. Type your shared modules with --!strict. Wrap DataStore calls in pcall with retries, and save on game:BindToClose. These five habits put your code ahead of most tutorials on YouTube.

Skip the typing, keep the quality

Once you understand those patterns, you don't need to hand-write them forever. Describe the system; checkpoints, droppers, pets, shop GUI; and the engine produces complete files following every pattern above, with setup instructions. You review, tune values, press Play.

Questions

What language does Roblox scripting use?

Luau; Roblox's own evolution of Lua 5.1 with gradual typing and major performance work. Scripts use .server (server), .client (client) and plain ModuleScripts (.shared) naming to signal where they run.

Is Roblox scripting hard to learn?

Basic scripts are approachable in days; production architecture takes months. The fastest path is reading well-structured complete projects; which is exactly what generated builds give you.

Is there free help with Roblox scripting?

Yes; our tutorials library is free, no account needed, and the generator has a permanent free tier after beta. Start with the checkpoint system tutorial if you're new.