Skinstashery
Roblox
Home / Roblox / Studio script library
RB-004

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)".

Hazards and pads

NameTypeWhat it does
Kill brickScriptA part that hurts or kills any character that touches it.
Heal padScriptA part that gives health back to players who stand on it.
Speed boost padScriptA pad that makes a player run faster for a few seconds.
Jump boost padScriptA pad that lets a player jump much higher for a few seconds.
Teleport padScriptTwo pads: stand on one and you appear on the other.
Rising lavaScriptLava that slowly climbs, kills on touch, then drops back down to start again.

Doors and interaction

NameTypeWhat it does
Click doorScriptA door that opens when a player clicks it and closes again by itself.
Proximity prompt doorScriptA door that opens when a player walks up and presses the prompt key.
Team-only doorScriptA door that only opens for players on one team.
Give tool on touchScriptA part that gives the player a tool from ServerStorage when they touch it.

Movement

NameTypeWhat it does
Sprint with ShiftLocalScriptHold Left Shift to run faster. Let go to walk again.
Double jumpLocalScriptPress jump again in mid-air for a second jump.

World and effects

NameTypeWhat it does
Moving platformScriptA platform that slides back and forth between two points using TweenService.
Spinning partScriptA part that turns around steadily, like a fan blade or a spinning bar.
Disappearing platformScriptA platform that fades away after someone steps on it, then comes back.
Day and night cycleScriptMoves the sun and moon so the game goes through a full day over a set time.
Random colour changerScriptChanges the colour of every part in a folder to a new random colour every few seconds.
NPC follows playerScriptAn NPC that finds the nearest player and walks to them around obstacles.

Player data and money

NameTypeWhat it does
Leaderstats (coins)ScriptAdds a Coins number to the player list at the top right of the screen.
Coin pickupScriptA coin that adds to the player's leaderstats when touched, then comes back after a while.
Save data with DataStoreScriptLoads and saves each player's Coins between visits, with retries and safe error handling.
Shop button (RemoteEvent)ScriptA buy button where the server checks the price and coins, so players cannot cheat.
Game pass checkScriptChecks if a player owns a game pass and gives them a perk, even right after buying it.
Developer product handlerScriptGives players coins when they buy a developer product, using ProcessReceipt the safe way.

Game flow

NameTypeWhat it does
Checkpoint systemScriptPlayers respawn at the last checkpoint part they touched, with a Stage counter.
Round timerScriptA loop of waiting, intermission and round, with the time left shared in a StringValue.

GUI

NameTypeWhat it does
Countdown GUILocalScriptDraws a big countdown on the screen, then shows GO! and hides it.
Chat welcome messageLocalScriptShows a welcome line in the chat window when a player joins.

Admin and safety

NameTypeWhat it does
Admin commands by UserIdScriptChat commands like !kill and !speed that only you and the people you list can use.
Anti-fall void resetScriptRespawns players who fall below the map so they do not fall forever.

Script types

More Roblox tools