Lucky Block GUI
Key Required

Lucky Block GUI

❓ LUCKY BLOCKS BattlegroundsWafflerWaffler 1.1K views 1.8K executesUpdated Mar 11, 2026
5.0/ 5(3 votes)
30100% Positive
Lua Script•193 lines (5555 chars)
local screenGui = Instance.new("ScreenGui")
screenGui.Name = "BlockSpawnerGUI"
screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")

local player = game.Players.LocalPlayer

local frame = Instance.new("Frame")
frame.Size = UDim2.new(0, 250, 0, 420)
frame.Position = UDim2.new(0.5, -125, 0.5, -210)
frame.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
frame.BorderSizePixel = 0
frame.Active = true
frame.Draggable = true
frame.Parent = screenGui

local corner = Instance.new("UICorner", frame)
corner.CornerRadius = UDim.new(0, 12)

local title = Instance.new("TextLabel")
title.Size = UDim2.new(1, -50, 0, 45)
title.Position = UDim2.new(0, 15, 0, 0)
title.BackgroundTransparency = 1
title.Text = "Block Spawner"
title.TextColor3 = Color3.new(1,1,1)
title.TextScaled = true
title.Font = Enum.Font.GothamBlack
title.TextXAlignment = Enum.TextXAlignment.Left
title.Parent = frame

local closeButton = Instance.new("TextButton")
closeButton.Size = UDim2.new(0, 35, 0, 35)
closeButton.Position = UDim2.new(1, -40, 0, 5)
closeButton.Text = "X"
closeButton.TextScaled = true
closeButton.Font = Enum.Font.GothamBold
closeButton.BackgroundColor3 = Color3.fromRGB(170, 0, 0)
closeButton.TextColor3 = Color3.new(1,1,1)
closeButton.Parent = frame

local closeCorner = Instance.new("UICorner", closeButton)
closeCorner.CornerRadius = UDim.new(0, 8)

closeButton.MouseButton1Click:Connect(function()
	screenGui:Destroy()
end)

local remotes = {
	"SpawnLuckyBlock",
	"SpawnSuperBlock",
	"SpawnDiamondBlock",
	"SpawnRainbowBlock",
	"SpawnGalaxyBlock"
}

local function createButton(text, positionY, remoteName)
	local button = Instance.new("TextButton")
	button.Size = UDim2.new(0.9, 0, 0, 40)
	button.Position = UDim2.new(0.05, 0, 0, positionY)
	button.Text = text
	button.TextScaled = true
	button.Font = Enum.Font.Gotham
	button.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
	button.TextColor3 = Color3.new(1,1,1)
	button.Parent = frame
	
	local btnCorner = Instance.new("UICorner", button)
	btnCorner.CornerRadius = UDim.new(0, 8)

	button.MouseButton1Click:Connect(function()
		game:GetService("ReplicatedStorage"):WaitForChild(remoteName):FireServer()
	end)
end

createButton("Spawn Lucky Block", 60, remotes[1])
createButton("Spawn Super Block", 110, remotes[2])
createButton("Spawn Diamond Block", 160, remotes[3])
createButton("Spawn Rainbow Block", 210, remotes[4])
createButton("Spawn Galaxy Block", 260, remotes[5])

local spawnAllButton = Instance.new("TextButton")
spawnAllButton.Size = UDim2.new(0.9, 0, 0, 45)
spawnAllButton.Position = UDim2.new(0.05, 0, 0, 315)
spawnAllButton.Text = "Spawn All"
spawnAllButton.TextScaled = true
spawnAllButton.Font = Enum.Font.GothamBold
spawnAllButton.BackgroundColor3 = Color3.fromRGB(200, 0, 0)
spawnAllButton.TextColor3 = Color3.new(1,1,1)
spawnAllButton.Parent = frame

local spawnAllCorner = Instance.new("UICorner", spawnAllButton)
spawnAllCorner.CornerRadius = UDim.new(0, 10)

spawnAllButton.MouseButton1Click:Connect(function()
	for _, remoteName in ipairs(remotes) do
		game:GetService("ReplicatedStorage"):WaitForChild(remoteName):FireServer()
		task.wait(0.1)
	end
end)

local buttonNames = {"Equip\nAll\nTools", "Unequip\nAll\nTools", "Spam\nEQ/UE", "Stop\nSpam", "Reset"}
local buttonFunctions = {}

buttonFunctions[1] = function()
	local backpack = player:WaitForChild("Backpack")
	local character = player.Character or player.CharacterAdded:Wait()
	for _, tool in ipairs(backpack:GetChildren()) do
		if tool:IsA("Tool") then
			tool.Parent = character
		end
	end
end

buttonFunctions[2] = function()
	local backpack = player:WaitForChild("Backpack")
	local character = player.Character
	if character then
		for _, tool in ipairs(character:GetChildren()) do
			if tool:IsA("Tool") then
				tool.Parent = backpack
			end
		end
	end
end

local spamming = false
buttonFunctions[3] = function()
	if not spamming then
		spamming = true
		task.spawn(function()
			while spamming do
				local backpack = player:WaitForChild("Backpack")
				local character = player.Character
				if character then
					for _, tool in ipairs(backpack:GetChildren()) do
						if tool:IsA("Tool") then
							tool.Parent = character
						end
					end
					for _, tool in ipairs(character:GetChildren()) do
						if tool:IsA("Tool") then
							tool.Parent = backpack
						end
					end
				end
				task.wait(0.1)
			end
		end)
	end
end

buttonFunctions[4] = function()
	spamming = false
end

buttonFunctions[5] = function()
	local character = player.Character
	if character then
		local humanoid = character:FindFirstChildOfClass("Humanoid")
		if humanoid then
			humanoid.Health = 0
		end
	end
end

local buttonWidth = 35
local buttonHeight = 35
local spacing = 5
local numButtons = #buttonNames
local totalButtonsWidth = numButtons * buttonWidth + (numButtons - 1) * spacing

local spawnAllX = 0.05 * frame.AbsoluteSize.X
local spawnAllWidth = 0.9 * frame.AbsoluteSize.X

local startX = spawnAllX + (spawnAllWidth - totalButtonsWidth)/2
local bottomY = 365

for i = 1, numButtons do
	local btn = Instance.new("TextButton")
	btn.Size = UDim2.new(0, buttonWidth, 0, buttonHeight)
	btn.Position = UDim2.new(0, startX + (i-1)*(buttonWidth + spacing), 0, bottomY)
	btn.Text = buttonNames[i]
	btn.TextScaled = true
	btn.TextWrapped = true
	btn.Font = Enum.Font.GothamBold
	btn.BackgroundColor3 = Color3.fromRGB(170, 0, 0)
	btn.TextColor3 = Color3.new(1,1,1)
	btn.Parent = frame

	local corner = Instance.new("UICorner", btn)
	corner.CornerRadius = UDim.new(0, 8)

	btn.MouseButton1Click:Connect(buttonFunctions[i])
end

Features & Information

i made this ok bye Spawn Lucky Block Spawn Super Block Spawn Diamond Block Spawn Rainbow Block Spawn Galaxy Block Spawn all (spawns all lucky blocks) random shit: Equip All Tools Unequip All Tools Spam EQ/UE Stop Spam Reset

Community Comments (2)

IlessIlessMar 12, 2026

+rep nice script

Replying to @Iless
WafflerWafflerMar 12, 2026

@Iless preesh

More Scripts for ❓ LUCKY BLOCKS Battlegrounds