A collection of useful scripts and macros for Roblox games. For educational purposes only.
Browse and use a collection of scripts for various Roblox games and utilities.
Important: Use these scripts responsibly. Using scripts may violate game terms of service.
Modify your character's walk speed in game
Modify your character's jump height in game
Pass through objects by toggling noclip on/off with a key
Jump multiple times without touching the ground
Apply highlight effect to your character
Our Roblox Script Hub provides a comprehensive collection of scripts for popular Roblox games. Whether you're looking for Blox Fruits auto farm scripts, Da Hood cash aura scripts, or Pet Simulator X auto hatch scripts, our hub has you covered with a variety of game-specific macros and utilities.
We offer specialized scripts for many popular Roblox games including:
Beyond game-specific scripts, we also provide universal Roblox scripts that work across most games:
Note: All scripts are provided for educational purposes only. Use at your own risk. Using scripts in Roblox games may violate Roblox's Terms of Service and could result in account suspension.
Below are short, copyable Lua examples commonly used when building Roblox gamemodes. They are simplified for learning—adapt and expand them in Roblox Studio.
-- Leaderstats: adds a Score IntValue for each player
local Players = game:GetService("Players")
Players.PlayerAdded:Connect(function(player)
local leaderstats = Instance.new("Folder")
leaderstats.Name = "leaderstats"
leaderstats.Parent = player
local score = Instance.new("IntValue")
score.Name = "Score"
score.Value = 0
score.Parent = leaderstats
end)-- Simple balanced team assigner
local Teams = game:GetService("Teams")
local Players = game:GetService("Players")
local function getSmallestTeam()
local best, bestCount
for _,t in pairs(Teams:GetChildren()) do
if t:IsA("Team") then
local count = #t:GetPlayers()
if not bestCount or count < bestCount then
best = t
bestCount = count
end
end
end
return best
end
Players.PlayerAdded:Connect(function(player)
local team = getSmallestTeam()
if team then
player.Team = team
end
end)-- Very simple round manager: pregame -> play -> postgame
local state = "pregame"
local function startRound()
state = "play"
print("Round started")
-- spawn players, enable gameplay, start timers
wait(60) -- round duration
state = "postgame"
print("Round ended")
-- award points, cleanup
wait(10)
state = "pregame"
end
-- Example trigger
startRound()-- Teleport player to a random SpawnLocation when they join
local Players = game:GetService("Players")
local spawns = workspace:WaitForChild("Spawns"):GetChildren()
Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
local humanoidRoot = character:WaitForChild("HumanoidRootPart")
local spawn = spawns[math.random(1, #spawns)]
humanoidRoot.CFrame = spawn.CFrame + Vector3.new(0, 3, 0)
end)
end)-- Give a starter sword when player touches a pickup part
local Players = game:GetService("Players")
local pickup = workspace:WaitForChild("SwordPickup")
local swordTemplate = game.ServerStorage:WaitForChild("StarterSword")
pickup.Touched:Connect(function(hit)
local player = Players:GetPlayerFromCharacter(hit.Parent)
if player then
if not player.Backpack:FindFirstChild(swordTemplate.Name) and not player.Character:FindFirstChild(swordTemplate.Name) then
local sword = swordTemplate:Clone()
sword.Parent = player.Backpack
end
end
end)-- Speed powerup that lasts for 8 seconds
local POWERUP_DURATION = 8
local function applySpeedBoost(player, amount)
local humanoid = player.Character and player.Character:FindFirstChildOfClass("Humanoid")
if humanoid then
local original = humanoid.WalkSpeed
humanoid.WalkSpeed = original + amount
delay(POWERUP_DURATION, function()
if humanoid then
humanoid.WalkSpeed = original
end
end)
end
end
-- Example usage: call applySpeedBoost(player, 20) when picked up