Script library

Roblox Utilities Scripts

Explore Roblox Utilities Scripts, including 𝖓𝖎𝖌𝖌𝖊𝖗 please like and subscribe and Checkpoint Return with Named Stages. Read the Luau source and installation details for each script.

Checkpoint Return with Named Stages

Create Workspace.CheckpointPads and put anchored parts named 1, 2 and so on inside it. Each player's latest greater stage is stored on the Player and used to place their next character three studs above the pad. Repeated limb contacts cannot move a player back to an earlier stage. Checkpoints reset when the player rejoins, which fits short obstacle courses and development tests.

Timed Obby Start and Finish Gates

Create two anchored parts called RaceStart and RaceFinish in Workspace. Touching the start records server time for that player, and touching the finish ends the run and updates the player's personal best when appropriate. Both times are attributes so a race UI can display them later. Resetting the avatar cancels the active run. Test two players finishing in different orders.

Moving Platform with Physics Constraints

Make an unanchored Part named ShuttlePlatform and place it over a flat test area. This server script uses AlignPosition and AlignOrientation to shuttle the platform smoothly between its original position and a point 24 studs away. It keeps authority on the server and uses a smooth target curve. Test with your intended rider weight and tune the force and settling time for larger platforms.

Disappearing Platform with a Warning

Create an anchored part called BlinkPlatform inside Workspace. When a character steps on it, the platform turns amber, then becomes invisible and non-collidable for two seconds. A shared busy flag stops repeated limb contacts from overlapping timers. Build a safe surrounding floor first and change the warning delay to suit how much reaction time your course needs.

Paired Teleport Pads for Two Rooms

Add anchored parts called PortalA and PortalB to Workspace. Approaching either reveals a prompt that moves only the interacting character to a clear position above the opposite pad. A cooldown checked on the server prevents repeated input from bouncing a player back immediately. Leave room above each pad and test the exit with the largest avatar shape allowed by your experience.

Proximity Sliding Door for a Lobby

Add two anchored parts to Workspace called LobbyDoor and DoorPanel. The prompt on the panel slides the door six studs along its local X axis, holds it for two seconds and returns it gently. The busy lock keeps multiple visitors from interrupting the movement. Leave enough clearance for the opened door, and tune the direction or travel distance to match the doorway.

Collectible Coins with Timed Return

Put anchored coin parts in a folder named Workspace.CoinPickups. The script awards one point to a player's Coins attribute per pickup, hides the collected coin, then restores it after six seconds for everyone. One availability flag per coin prevents double payouts from overlapping touches. Connect a UI to the Coins attribute if you want to show the session balance.

Coin Leaderstats from Player Attributes

Use this server Script to display your session Coins attribute on Roblox's player list. It creates or reuses the leaderstats folder, then updates its Coins IntValue whenever the attribute changes. Other systems can award points by writing the attribute, while this script handles display only. Test a new player and an existing coin pickup together to check that the display follows each award.

Server Round Clock with Intermissions

Add this server Script to start a 12-second intermission followed by a 60-second round. RoundState and RoundEndsAt appear as Workspace attributes for UI and spawn scripts to consume. A deadline from GetServerTimeNow lets clients calculate a consistent display without sending a remote event every second. Start a two-client test and confirm that a late arrival sees the same phase.

Balanced Team Spawn Assignment

Create Teams called Coral and Cyan, then add non-neutral SpawnLocations whose TeamColor values match those teams. The server assigns arriving players to the smaller team and sets the matching spawn as their return point. Players retain their assignment when their character resets. Run Studio with four players and check both team counts and spawn colors before adding round-specific team rules.

NPC Patrol Route with Timed Waypoints

Use a rig named PatrolBot with a Humanoid and a folder named PatrolMarkers containing anchored parts numbered in route order. The server sends the bot toward each marker, then pauses briefly. Humanoid MoveTo handles basic movement on clear ground, making this a good fit for a simple garden path or lobby. Test the first lap with obstacles removed before adding more advanced navigation.

NPC Look-at-Player with a Range Limit

Anchor a display rig named GreeterBot and put it where visitors will walk past. This server script checks for the nearest player within 22 studs about five checks each second and rotates the model on the horizontal plane. The character keeps its original position and ignores visitors outside the range. Leave a small dead zone around the pivot to avoid jitter when someone overlaps the rig.

Directional Conveyor for Sorting Crates

Create an anchored part named SortingBelt and put unanchored test crates directly on it. The script assigns a surface velocity along the belt's local forward direction, so rotating the part changes the travel direction. Keep the top surface reasonably grippy and adjust SPEED before building corners. Test different crate masses and check that each lands correctly at the far end.

Breakable Crate with a Reset Timer

Put an anchored box named TrainingCrate in Workspace. Its interaction prompt replaces it with six short-lived blocky pieces and restores the original crate four seconds later. Each fragment has collision disabled to keep the practice area clear. Update the reset delay or fragment colors for a reward animation, and test multiple people trying the prompt at the same time.

Quest Progress Counter for Crystal Hunts

Add anchored parts inside Workspace.QuestCrystals. Collecting one for the first time increments the player's QuestCrystals attribute. The tracked crystals are personal even though the parts remain visible to everyone. At three crystals, CrystalQuestComplete becomes true for your reward handler to read. Try having two players collect the same crystal and verify that each keeps their own progress.

Per-Player Interaction Cooldown Module

Create a ModuleScript named Cooldowns and call its Try method from interaction handlers. Give each action a key and a minimum interval. The module remembers deadlines separately for each caller and action, and returns remaining seconds to display feedback. Use a Player instance as the caller and call Clear when resetting that player's interactions. Start with a low-stakes use such as a shop greeting.

Smooth Day and Night Cycle for Maps

Add this server Script to cycle Lighting.ClockTime across a complete day every four minutes. It measures elapsed server time instead of adding a fixed amount each frame, so scheduler delays do not slow the cycle. Begin at morning, then test sunrise and sunset while your usual lighting effects are active. Tune realSecondsPerDay independently of your round length.

Color-Cycling Floor Tiles with Tweens

Put anchored tile parts in Workspace.DiscoveryTiles. Each tile fades between saturated cyan, violet and coral with a small phase offset, creating a wave across the room. Renaming tiles controls their sequence. The script changes visual color only, so it can sit on top of existing gameplay. Test with your lighting and pick colors with enough contrast for any nearby signs.

Surface Switch for a Bank of Lights

Put lights under Workspace.DisplayLights and add a part named LightSwitch. The script creates a prompt that toggles every light in the folder and updates the switch color to show its state. Each interaction changes the whole bank so individual lamps stay consistent. Try adding PointLights and SurfaceLights, then check whether the switch remains visible when the room goes dark.

Rotating Showcase Stand for Collectibles

Anchor a display model named ShowcaseObject and position its pivot directly above your stand. The server rotates the model at a steady 35 degrees each second, keeping its original position and rotation axis. The rotation comes from elapsed time so speed stays steady when frames are delayed. Offset the pivot intentionally if you want an orbit, and test that the rotating model never clips the display platform.

Live Top Three Scoreboard for a Lobby

Install this server Script and put a TextLabel named Scores inside the SurfaceGui on Workspace.Scoreboard. Every two seconds it ranks connected players by the numeric Score attribute and lists the first three with deterministic tie breaking. Update Score from your round or checkpoint system. Test equal scores and a player leaving the game before connecting it to prizes.

Timed Gate Sequence for Training Rooms

Put anchored gate parts inside Workspace.TrainingGates with names such as 01, 02 and 03, and add an anchored GateControl part. Pulling the prompt opens each gate in order. All gates close together after the course window, and the control ignores repeat input while the sequence runs. Test the timing with your actual travel distances, leaving plenty of room near the closing gates.

Tag-Based Lighting Switch for Large Builds

Tag individual Light instances with WorkshopLamp and add a part called MasterLightSwitch. The server toggles every tagged light and applies the current state when a new light receives the tag. This works across unrelated models, so you can move lamps without editing paths. Use Studio's tag tools to add a lamp during a playtest and confirm that it matches the switch.

Floating Pickup Display with Gentle Bobbing

Make an anchored model named HoverPickup and set its pivot at the center of the model. The script combines slow rotation with gentle bobbing to make the object easy to spot from far away. This controls appearance only, so attach your own collection prompt or use a separate pickup trigger. Increase its height slightly if the display passes too close to the plinth.

Finish Line Fireworks with Particle Bursts

Set an anchored CelebrationFinish part at the end of your course and attach one or more ParticleEmitters to it or its attachments. Turn off continuous emission on those emitters. The script triggers a short burst when a living character crosses the part and waits three seconds before another burst. Test several racers arriving together and adjust the particle count to fit low-end devices.