Scripts
Roblox scripts
that actually run.
Complete Luau for the things every game needs — where to put each script, how it works, and the mistakes that break it. Server-side where it matters, so exploiters can't change the result.
ScriptKill brickA part that resets any player who touches it — the building block of every obby. Copy the script, then pick the variation you need.Get the scriptScriptLeaderboardPut any stat — Coins, Kills, Stage — on the player list in the top-right corner. One server script, plus a kill counter and saving.Get the scriptScriptData storeSave coins, levels and progress between sessions — a complete DataStoreService script that won't wipe a player's data when Roblox has a hiccup.Get the scriptScriptDoorA door that slides open when a player presses E and closes again after a few seconds — smooth, works on phones, and needs one script.Get the scriptScriptTeleportTwo kinds of teleport: a pad that moves players to another spot in the same map, and TeleportService to send them to another place in your game.Get the scriptLocalScriptSprintHold Shift to run, release to walk — with a sprint button on phones. One LocalScript, plus a stamina bar version.Get the scriptLocalScriptDouble jumpJump again in mid-air — on keyboard, controller and touch. One LocalScript that uses Roblox's own jump input, so it works on every device.Get the scriptScriptCheckpointNumbered checkpoints, a Stage counter on the leaderboard and respawning at the last one reached — saved between visits.Get the scriptScriptCoin pickupCoins players collect by touching them: +1 on the leaderboard, the coin disappears, then comes back. One script handles every coin in the map.Get the scriptScriptBadgeGive players a badge for joining, finishing a stage or finding a secret — a complete BadgeService script with the ownership check.Get the scriptScriptDay and night cycleA smooth day and night cycle where you choose how many real minutes a full day lasts — plus how to run events at night.Get the scriptLocalScriptLoading screenReplace Roblox's default loading screen with your own: it appears instantly, waits until the game has loaded, then fades out.Get the scriptScriptProximity promptThe “E Pick up” bubble you see in most Roblox games. One server script gives the player an item; the variations change the key, range and look.Get the scriptScriptClick detectorMake a part do something when a player clicks or taps it. The main script gives a coin per click with a cooldown; the variations add a light switch and hover effects.Get the script
Building a whole game?Step-by-step guides for obbies, simulators, tower defense, horror and more.