RobloxGamesRBLXGames
Script Studio

Roblox Lua Script Library

1,050 free, original scripts for Roblox Studio. Copy production-ready code, learn how it works, and ship faster.

1,050
Scripts
8
Categories
3
Levels
100%
Free

1,050 scripts · Intermediate

1local PathfindingService = game:GetService("PathfindingService")
2local npc = script.Parent
3local hum: Humanoid = npc:WaitForChild("Humanoid")
4local points = workspace:WaitForChild("NPCWaypoints"):GetChildren()
5local current = 0

Aether Rush NPC Patrol v2

INTERMEDIATE

PathfindingService-driven patrol across waypoints for Aether Rush.

npc
180
1local CollectionService = game:GetService("CollectionService")
2local SoundService = game:GetService("SoundService")
3local Players = game:GetService("Players")
4local TAG = "MusicZone"
5local DEFAULT = "rbxassetid://185330"

Yield Frontier Zone Music Controller

INTERMEDIATE

Switches background music when players enter tagged zones in Yield Frontier.

audio
150
1local Players = game:GetService("Players")
2local RunService = game:GetService("RunService")
3local Debris = game:GetService("Debris")
4local Sounds = {
5 Grass = "rbxassetid://9127292583",

Xenon Drift Footsteps by Material

INTERMEDIATE

Material-aware footstep SFX for Xenon Drift.

audio
130
1local Players = game:GetService("Players")
2local DataStoreService = game:GetService("DataStoreService")
3local store = DataStoreService:GetDataStore("DailyStreakV3")
4
5local function todayUtc()

Umbra Trials Daily Reward Streak v1

INTERMEDIATE

UTC-safe daily streak tracker for Umbra Trials.

systems
130
1local tool = script.Parent
2local Players = game:GetService("Players")
3local Debris = game:GetService("Debris")
4local DAMAGE = 24
5local RANGE = 108

Starbound City Raycast Blaster 24dmg

INTERMEDIATE

Server-authoritative hitscan tool for Starbound City with 24 damage and 108 range.

combat
200
1local PathfindingService = game:GetService("PathfindingService")
2local npc = script.Parent
3local hum: Humanoid = npc:WaitForChild("Humanoid")
4local points = workspace:WaitForChild("NPCWaypoints"):GetChildren()
5local current = 0

Rune Quest NPC Patrol v3

INTERMEDIATE

PathfindingService-driven patrol across waypoints for Rune Quest.

npc
170
1local CollectionService = game:GetService("CollectionService")
2local SoundService = game:GetService("SoundService")
3local Players = game:GetService("Players")
4local TAG = "MusicZone"
5local DEFAULT = "rbxassetid://185321"

Pixel Forge Zone Music Controller

INTERMEDIATE

Switches background music when players enter tagged zones in Pixel Forge.

audio
150
1local Players = game:GetService("Players")
2local RunService = game:GetService("RunService")
3local Debris = game:GetService("Debris")
4local Sounds = {
5 Grass = "rbxassetid://9127292574",

Obsidian Keep Footsteps by Material

INTERMEDIATE

Material-aware footstep SFX for Obsidian Keep.

audio
170
1local Players = game:GetService("Players")
2local DataStoreService = game:GetService("DataStoreService")
3local store = DataStoreService:GetDataStore("DailyStreakV3")
4
5local function todayUtc()

Lunar Outpost Daily Reward Streak v4

INTERMEDIATE

UTC-safe daily streak tracker for Lunar Outpost.

systems
180
1local tool = script.Parent
2local Players = game:GetService("Players")
3local Debris = game:GetService("Debris")
4local DAMAGE = 27
5local RANGE = 99

Jungle Raid Raycast Blaster 27dmg

INTERMEDIATE

Server-authoritative hitscan tool for Jungle Raid with 27 damage and 99 range.

combat
160
1local PathfindingService = game:GetService("PathfindingService")
2local npc = script.Parent
3local hum: Humanoid = npc:WaitForChild("Humanoid")
4local points = workspace:WaitForChild("NPCWaypoints"):GetChildren()
5local current = 0

Inferno Siege NPC Patrol v4

INTERMEDIATE

PathfindingService-driven patrol across waypoints for Inferno Siege.

npc
180
1local CollectionService = game:GetService("CollectionService")
2local SoundService = game:GetService("SoundService")
3local Players = game:GetService("Players")
4local TAG = "MusicZone"
5local DEFAULT = "rbxassetid://185312"

Galaxy Run Zone Music Controller

INTERMEDIATE

Switches background music when players enter tagged zones in Galaxy Run.

audio
160
1local Players = game:GetService("Players")
2local RunService = game:GetService("RunService")
3local Debris = game:GetService("Debris")
4local Sounds = {
5 Grass = "rbxassetid://9127292565",

Frostfall Footsteps by Material

INTERMEDIATE

Material-aware footstep SFX for Frostfall.

audio
160
1local Players = game:GetService("Players")
2local DataStoreService = game:GetService("DataStoreService")
3local store = DataStoreService:GetDataStore("DailyStreakV3")
4
5local function todayUtc()

Crystal Valley Daily Reward Streak v3

INTERMEDIATE

UTC-safe daily streak tracker for Crystal Valley.

systems
160
1local tool = script.Parent
2local Players = game:GetService("Players")
3local Debris = game:GetService("Debris")
4local DAMAGE = 18
5local RANGE = 90

Aether Rush Raycast Blaster 18dmg

INTERMEDIATE

Server-authoritative hitscan tool for Aether Rush with 18 damage and 90 range.

combat
120
1local PathfindingService = game:GetService("PathfindingService")
2local npc = script.Parent
3local hum: Humanoid = npc:WaitForChild("Humanoid")
4local points = workspace:WaitForChild("NPCWaypoints"):GetChildren()
5local current = 0

Zephyr Skies NPC Patrol v5

INTERMEDIATE

PathfindingService-driven patrol across waypoints for Zephyr Skies.

npc
220
1local CollectionService = game:GetService("CollectionService")
2local SoundService = game:GetService("SoundService")
3local Players = game:GetService("Players")
4local TAG = "MusicZone"
5local DEFAULT = "rbxassetid://185303"

Xenon Drift Zone Music Controller

INTERMEDIATE

Switches background music when players enter tagged zones in Xenon Drift.

audio
410
1local Players = game:GetService("Players")
2local RunService = game:GetService("RunService")
3local Debris = game:GetService("Debris")
4local Sounds = {
5 Grass = "rbxassetid://9127292556",

Wildwood Footsteps by Material

INTERMEDIATE

Material-aware footstep SFX for Wildwood.

audio
140
1local Players = game:GetService("Players")
2local DataStoreService = game:GetService("DataStoreService")
3local store = DataStoreService:GetDataStore("DailyStreakV3")
4
5local function todayUtc()

Tower Clash Daily Reward Streak v2

INTERMEDIATE

UTC-safe daily streak tracker for Tower Clash.

systems
190
1local tool = script.Parent
2local Players = game:GetService("Players")
3local Debris = game:GetService("Debris")
4local DAMAGE = 21
5local RANGE = 121

Rune Quest Raycast Blaster 21dmg

INTERMEDIATE

Server-authoritative hitscan tool for Rune Quest with 21 damage and 121 range.

combat
170
1local PathfindingService = game:GetService("PathfindingService")
2local npc = script.Parent
3local hum: Humanoid = npc:WaitForChild("Humanoid")
4local points = workspace:WaitForChild("NPCWaypoints"):GetChildren()
5local current = 0

Quantum Dash NPC Patrol v1

INTERMEDIATE

PathfindingService-driven patrol across waypoints for Quantum Dash.

npc
190
1local CollectionService = game:GetService("CollectionService")
2local SoundService = game:GetService("SoundService")
3local Players = game:GetService("Players")
4local TAG = "MusicZone"
5local DEFAULT = "rbxassetid://185294"

Obsidian Keep Zone Music Controller

INTERMEDIATE

Switches background music when players enter tagged zones in Obsidian Keep.

audio
180
1local Players = game:GetService("Players")
2local RunService = game:GetService("RunService")
3local Debris = game:GetService("Debris")
4local Sounds = {
5 Grass = "rbxassetid://9127292547",

Neon Riders Footsteps by Material

INTERMEDIATE

Material-aware footstep SFX for Neon Riders.

audio
120
1local Players = game:GetService("Players")
2local DataStoreService = game:GetService("DataStoreService")
3local store = DataStoreService:GetDataStore("DailyStreakV3")
4
5local function todayUtc()

Kingsgate Daily Reward Streak v1

INTERMEDIATE

UTC-safe daily streak tracker for Kingsgate.

systems
130