Roblox Studio script library
Copy-paste Luau scripts for your own game. Each page tells you what type of script it is, where it goes, and how to change it.
These are normal scripts for Roblox Studio. You put them in a game that you are making. They do not work in other people's games, and they are not meant to. If you are new, start with "Kill brick" and "Leaderstats (coins)".
No script matches that. Try a shorter word.
Hazards and pads
| Name | Type | What it does |
|---|---|---|
| Kill brick | Script | A part that hurts or kills any character that touches it. |
| Heal pad | Script | A part that gives health back to players who stand on it. |
| Speed boost pad | Script | A pad that makes a player run faster for a few seconds. |
| Jump boost pad | Script | A pad that lets a player jump much higher for a few seconds. |
| Teleport pad | Script | Two pads: stand on one and you appear on the other. |
| Rising lava | Script | Lava that slowly climbs, kills on touch, then drops back down to start again. |
Doors and interaction
| Name | Type | What it does |
|---|---|---|
| Click door | Script | A door that opens when a player clicks it and closes again by itself. |
| Proximity prompt door | Script | A door that opens when a player walks up and presses the prompt key. |
| Team-only door | Script | A door that only opens for players on one team. |
| Give tool on touch | Script | A part that gives the player a tool from ServerStorage when they touch it. |
Movement
| Name | Type | What it does |
|---|---|---|
| Sprint with Shift | LocalScript | Hold Left Shift to run faster. Let go to walk again. |
| Double jump | LocalScript | Press jump again in mid-air for a second jump. |
World and effects
| Name | Type | What it does |
|---|---|---|
| Moving platform | Script | A platform that slides back and forth between two points using TweenService. |
| Spinning part | Script | A part that turns around steadily, like a fan blade or a spinning bar. |
| Disappearing platform | Script | A platform that fades away after someone steps on it, then comes back. |
| Day and night cycle | Script | Moves the sun and moon so the game goes through a full day over a set time. |
| Random colour changer | Script | Changes the colour of every part in a folder to a new random colour every few seconds. |
| NPC follows player | Script | An NPC that finds the nearest player and walks to them around obstacles. |
Player data and money
| Name | Type | What it does |
|---|---|---|
| Leaderstats (coins) | Script | Adds a Coins number to the player list at the top right of the screen. |
| Coin pickup | Script | A coin that adds to the player's leaderstats when touched, then comes back after a while. |
| Save data with DataStore | Script | Loads and saves each player's Coins between visits, with retries and safe error handling. |
| Shop button (RemoteEvent) | Script | A buy button where the server checks the price and coins, so players cannot cheat. |
| Game pass check | Script | Checks if a player owns a game pass and gives them a perk, even right after buying it. |
| Developer product handler | Script | Gives players coins when they buy a developer product, using ProcessReceipt the safe way. |
Game flow
| Name | Type | What it does |
|---|---|---|
| Checkpoint system | Script | Players respawn at the last checkpoint part they touched, with a Stage counter. |
| Round timer | Script | A loop of waiting, intermission and round, with the time left shared in a StringValue. |
GUI
| Name | Type | What it does |
|---|---|---|
| Countdown GUI | LocalScript | Draws a big countdown on the screen, then shows GO! and hides it. |
| Chat welcome message | LocalScript | Shows a welcome line in the chat window when a player joins. |
Admin and safety
| Name | Type | What it does |
|---|---|---|
| Admin commands by UserId | Script | Chat commands like !kill and !speed that only you and the people you list can use. |
| Anti-fall void reset | Script | Respawns players who fall below the map so they do not fall forever. |
Script types
- Script runs on the server. Use it for anything that must be fair: coins, damage, saving.
- LocalScript runs on one player's device. Use it for keys, buttons and what the player sees.
- ModuleScript holds code that other scripts load. None of the beginner scripts here need one.
More Roblox tools
- Shirt and pants templatesFree Roblox clothing templates to download: hoodies, jerseys, jeans, joggers and more.
- Robux tax calculatorWork out what you receive after the marketplace fee, or what to charge.
- Robux to USD calculatorConvert earned Robux to dollars at a DevEx rate you can edit.
- Shirt and pants template makerColour each panel of the 585×559 clothing template and download it.
- Username generatorGenerate usernames that fit the 3–20 character rule.