-- [[ Rscripts Risk Notice ]] -- This script is not verified by rscripts.net. Deal with caution. -- -- Stay safe: -- • Never log in on unofficial Roblox sites or lookalike domains. -- • Real Roblox links use roblox.com (check the .com ending). -- • Treat fake Roblox login / "claim reward" pages as phishing. -- [[ End Rscripts Risk Notice ]] local Players = game:GetService("Players") local ReplicatedStorage = game:GetService("ReplicatedStorage") local TweenService = game:GetService("TweenService") local Player = Players.LocalPlayer local PlayerGui = Player:WaitForChild("PlayerGui") -- Remove old GUI if it exists local oldGui = PlayerGui:FindFirstChild("LuckyBlockGui") if oldGui then oldGui:Destroy() end --// ScreenGui local ScreenGui = Instance.new("ScreenGui") ScreenGui.Name = "LuckyBlockGui" ScreenGui.ResetOnSpawn = false ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling ScreenGui.Parent = PlayerGui --// Main Window local Main = Instance.new("Frame") Main.Name = "Main" Main.Size = UDim2.fromOffset(320, 190) Main.Position = UDim2.new(0.5, -160, 0.5, -95) Main.BackgroundColor3 = Color3.fromRGB(22, 22, 28) Main.BorderSizePixel = 0 Main.Active = true Main.Draggable = true Main.Parent = ScreenGui local MainCorner = Instance.new("UICorner") MainCorner.CornerRadius = UDim.new(0, 16) MainCorner.Parent = Main local Stroke = Instance.new("UIStroke") Stroke.Color = Color3.fromRGB(80, 80, 100) Stroke.Thickness = 1.5 Stroke.Transparency = 0.25 Stroke.Parent = Main --// Header local Header = Instance.new("Frame") Header.Size = UDim2.new(1, 0, 0, 55) Header.BackgroundColor3 = Color3.fromRGB(32, 32, 42) Header.BorderSizePixel = 0 Header.Parent = Main local HeaderCorner = Instance.new("UICorner") HeaderCorner.CornerRadius = UDim.new(0, 16) HeaderCorner.Parent = Header local HeaderCover = Instance.new("Frame") HeaderCover.Size = UDim2.new(1, 0, 0, 18) HeaderCover.Position = UDim2.new(0, 0, 1, -18) HeaderCover.BackgroundColor3 = Color3.fromRGB(32, 32, 42) HeaderCover.BorderSizePixel = 0 HeaderCover.Parent = Header --// Title local Title = Instance.new("TextLabel") Title.Size = UDim2.new(1, -100, 1, 0) Title.Position = UDim2.fromOffset(18, 0) Title.BackgroundTransparency = 1 Title.Text = "🍀 Lucky Blocks" Title.TextColor3 = Color3.fromRGB(255, 255, 255) Title.TextSize = 20 Title.Font = Enum.Font.GothamBold Title.TextXAlignment = Enum.TextXAlignment.Left Title.Parent = Header --// Close Button local Close = Instance.new("TextButton") Close.Size = UDim2.fromOffset(34, 34) Close.Position = UDim2.new(1, -43, 0, 10) Close.BackgroundColor3 = Color3.fromRGB(220, 65, 75) Close.Text = "×" Close.TextColor3 = Color3.new(1, 1, 1) Close.TextSize = 24 Close.Font = Enum.Font.GothamBold Close.AutoButtonColor = false Close.Parent = Header local CloseCorner = Instance.new("UICorner") CloseCorner.CornerRadius = UDim.new(0, 10) CloseCorner.Parent = Close Close.MouseEnter:Connect(function() TweenService:Create(Close, TweenInfo.new(0.15), { BackgroundColor3 = Color3.fromRGB(245, 80, 90) }):Play() end) Close.MouseLeave:Connect(function() TweenService:Create(Close, TweenInfo.new(0.15), { BackgroundColor3 = Color3.fromRGB(220, 65, 75) }):Play() end) Close.MouseButton1Click:Connect(function() ScreenGui:Destroy() end) --// Description local Description = Instance.new("TextLabel") Description.Size = UDim2.new(1, -36, 0, 35) Description.Position = UDim2.fromOffset(18, 65) Description.BackgroundTransparency = 1 Description.Text = "Press the button below to spawn a Lucky Block." Description.TextColor3 = Color3.fromRGB(165, 165, 180) Description.TextSize = 13 Description.Font = Enum.Font.Gotham Description.TextXAlignment = Enum.TextXAlignment.Left Description.Parent = Main --// Spawn Button local Button = Instance.new("TextButton") Button.Name = "SpawnButton" Button.Size = UDim2.new(1, -36, 0, 55) Button.Position = UDim2.new(0, 18, 1, -73) Button.BackgroundColor3 = Color3.fromRGB(92, 65, 220) Button.BorderSizePixel = 0 Button.Text = "🍀 SPAWN LUCKY BLOCK" Button.TextColor3 = Color3.new(1, 1, 1) Button.TextSize = 15 Button.Font = Enum.Font.GothamBold Button.AutoButtonColor = false Button.Parent = Main local ButtonCorner = Instance.new("UICorner") ButtonCorner.CornerRadius = UDim.new(0, 12) ButtonCorner.Parent = Button --// Button Hover Button.MouseEnter:Connect(function() TweenService:Create(Button, TweenInfo.new(0.15), { BackgroundColor3 = Color3.fromRGB(115, 85, 245), Size = UDim2.new(1, -32, 0, 57), }):Play() end) Button.MouseLeave:Connect(function() TweenService:Create(Button, TweenInfo.new(0.15), { BackgroundColor3 = Color3.fromRGB(92, 65, 220), Size = UDim2.new(1, -36, 0, 55), }):Play() end) --// Spawn Logic local spawning = false Button.MouseButton1Click:Connect(function() if spawning then return end spawning = true local success, err = pcall(function() local Remote = ReplicatedStorage:WaitForChild("SpawnLuckyBlock", 5) if not Remote then error("SpawnLuckyBlock RemoteEvent was not found.") end Remote:FireServer() end) if success then Button.Text = "✓ LUCKY BLOCK SPAWNED!" TweenService:Create(Button, TweenInfo.new(0.15), { BackgroundColor3 = Color3.fromRGB(55, 175, 105) }):Play() else Button.Text = "⚠ SPAWN FAILED" warn("Failed to fire SpawnLuckyBlock: " .. tostring(err)) TweenService:Create(Button, TweenInfo.new(0.15), { BackgroundColor3 = Color3.fromRGB(210, 65, 75) }):Play() end task.wait(1) Button.Text = "🍀 SPAWN LUCKY BLOCK" TweenService:Create(Button, TweenInfo.new(0.15), { BackgroundColor3 = Color3.fromRGB(92, 65, 220) }):Play() spawning = false end)