local player = game.Players.LocalPlayer if player then local screenGui = Instance.new("ScreenGui") screenGui.Name = "SafeFarmGui" screenGui.Parent = player:WaitForChild("PlayerGui") screenGui.ResetOnSpawn = false local frame = Instance.new("Frame") frame.Size = UDim2.new(0, 150, 0, 50) frame.Position = UDim2.new(0, 20, 0, 20) frame.BackgroundColor3 = Color3.new(0, 0, 0) frame.BorderSizePixel = 0 frame.Active = true frame.Draggable = true frame.Parent = screenGui local textb = Instance.new("TextButton") textb.Parent = frame textb.Size = UDim2.new(0, 100, 0, 40) textb.BackgroundColor3 = Color3.new(0,0,0) textb.Draggable = true textb.Text = "Press For lucky blocks" textb.TextColor3 = Color3.fromRGB(50, 80, 350) textb.TextScaled = true textb.TextXAlignment = Enum.TextXAlignment.Center textb.MouseButton1Click:Connect(function() game:GetService("ReplicatedStorage"):FindFirstChild("SpawnLuckyBlock"):FireServer() game:GetService("ReplicatedStorage"):FindFirstChild("SpawnSuperBlock"):FireServer() game:GetService("ReplicatedStorage"):FindFirstChild("SpawnDiamondBlock"):FireServer() game:GetService("ReplicatedStorage"):FindFirstChild("SpawnRainbowBlock"):FireServer() game:GetService("ReplicatedStorage"):FindFirstChild("SpawnGalaxyBlock"):FireServer() end) local holding = false textb.MouseButton1Down:Connect(function() holding = true while holding do local RS = game:GetService("ReplicatedStorage") RS.SpawnLuckyBlock:FireServer() RS.SpawnSuperBlock:FireServer() RS.SpawnDiamondBlock:FireServer() RS.SpawnRainbowBlock:FireServer() RS.SpawnGalaxyBlock:FireServer() task.wait(0.1) end end) textb.MouseButton1Up:Connect(function() holding = false end) textb.MouseLeave:Connect(function() holding = false end) end