Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---------------------------------------------- BY NOOBIK_2033333LELK (ROBLOX ACCOUNT)
- -------- PASTE IT IN Void-Script-Builder-Place-2 ON ROBLOX
- local Players = game:GetService("Players")
- local Players = game:GetService("Players")
- local coins = Instance.new("IntValue")
- local uicorner = Instance.new("UICorner")
- local uicorner2 = Instance.new("UICorner")
- local canbuy = true
- local canbuy2 = true
- coins.Name = "Coins"
- coins.Value = 0
- -- Функция для создания кнопки
- local function createButton(player)
- -- Создаем новый объект ScreenGui для игрока
- coins.Parent = player
- local gui = Instance.new("ScreenGui")
- gui.Parent = player.PlayerGui
- -- Создаем новую кнопку внутри ScreenGui
- local label = Instance.new("TextLabel", gui)
- local button = Instance.new("TextButton")
- local button2 = Instance.new("TextButton", gui)
- local button3 = Instance.new("TextButton", gui)
- local button4 = Instance.new("TextButton", gui)
- local button5 = Instance.new("TextButton", gui)
- button3.Name = "button3"
- button.Parent = gui
- button2.Name = "Button2"
- button4.Name = "Button4"
- button5.Name = "Button5"
- uicorner.Parent = button
- uicorner2.Parent = button2
- -- Настройки кнопки
- button.Text = "Click for coin"
- button.TextScaled = true -- Текст на кнопке
- button.Size = UDim2.new(0, 200, 0, 50) -- Размеры кнопки (ширина, высота)
- button.Position = UDim2.new(0.5, -100, 0.75, -50) -- Позиция кнопки (относительно центра экрана)
- button.BackgroundColor3 = Color3.new(1, 1, 1) -- Цвет фона кнопки (белый)
- button.TextColor3 = Color3.new(0, 0, 0) -- Цвет текста кнопки (черный)
- button.Font = Enum.Font.LuckiestGuy -- Шрифт текста кнопки
- button.TextSize = 20 -- Размер текста кнопки
- button2.Text = "Total coins: " .. coins.Value
- button2.TextScaled = true -- Текст на кнопке
- button2.Size = UDim2.new(0, 200, 0, 50) -- Размеры кнопки (ширина, высота)
- button2.Position = UDim2.new(0.5, -100, 0.1, -25) -- Позиция кнопки (относительно центра экрана)
- button2.BackgroundColor3 = Color3.new(1, 1, 1) -- Цвет фона кнопки (белый)
- button2.TextColor3 = Color3.new(0, 0, 0) -- Цвет текста кнопки (черный)
- button2.Font = Enum.Font.LuckiestGuy -- Шрифт текста кнопки
- button2.TextSize = 20 -- Размер текста кнопки
- label.Text = "Its my clicker game! created by (noobik_2033333lelk)"
- label.TextScaled = true -- Текст на кнопке
- label.Size = UDim2.new(0, 200, 0, 50) -- Размеры кнопки (ширина, высота)
- label.Position = UDim2.new(0.2, -100, 0.3, -25) -- Позиция кнопки (относительно центра экрана)
- label.BackgroundColor3 = Color3.new(1, 1, 1) -- Цвет фона кнопки (белый)
- label.TextColor3 = Color3.new(0, 0, 0) -- Цвет текста кнопки (черный)
- label.Font = Enum.Font.Code -- Шрифт текста кнопки
- label.TextSize = 20 -- Размер текста кнопки
- button3.Text = "Clear all buttons (if you want)"
- button3.TextScaled = true -- Текст на кнопке
- button3.Size = UDim2.new(0, 200, 0, 50) -- Размеры кнопки (ширина, высота)
- button3.Position = UDim2.new(0.2, -100, 0.2, -25) -- Позиция кнопки (относительно центра экрана)
- button3.BackgroundColor3 = Color3.new(1, 1, 1) -- Цвет фона кнопки (белый)
- button3.TextColor3 = Color3.new(0, 0, 0) -- Цвет текста кнопки (черный)
- button3.Font = Enum.Font.Code -- Шрифт текста кнопки
- button3.TextSize = 20 -- Размер текста кнопки
- button4.Text = "Freeze all players (cost: 100 clicks) one time "
- button4.TextScaled = true -- Текст на кнопке
- button4.Size = UDim2.new(0, 200, 0, 50) -- Размеры кнопки (ширина, высота)
- button4.Position = UDim2.new(0.2, -100, 0.5, -25) -- Позиция кнопки (относительно центра экрана)
- button4.BackgroundColor3 = Color3.new(1, 1, 1) -- Цвет фона кнопки (белый)
- button4.TextColor3 = Color3.new(0, 0, 0) -- Цвет текста кнопки (черный)
- button4.Font = Enum.Font.Code -- Шрифт текста кнопки
- button4.TextSize = 20 -- Размер текста кнопки
- button4.TextColor = BrickColor.Blue()
- button5.Text = "Delete all players (cost: 100 clicks) one time "
- button5.TextScaled = true -- Текст на кнопке
- button5.Size = UDim2.new(0, 200, 0, 50) -- Размеры кнопки (ширина, высота)
- button5.Position = UDim2.new(0.2, -100, 0.6, -25) -- Позиция кнопки (относительно центра экрана)
- button5.BackgroundColor3 = Color3.new(1, 1, 1) -- Цвет фона кнопки (белый)
- button5.TextColor3 = Color3.new(0, 0, 0) -- Цвет текста кнопки (черный)
- button5.Font = Enum.Font.Code -- Шрифт текста кнопки
- button5.TextSize = 20 -- Размер текста кнопки
- button5.TextColor = BrickColor.Red()
- -- Добавляем обработчик события "MouseButton1Click" (щелчок левой кнопкой мыши)
- button5.MouseButton1Click:Connect(function()
- if coins.Value > 99 and canbuy2 then
- canbuy2 = false
- for _, model in pairs(workspace:GetChildren()) do
- wait()
- if model:IsA("Model") then
- model:Destroy()
- coins.Value -= 100
- button2.Text = "Total coins: " .. coins.Value
- end
- end
- end
- end)
- button3.MouseButton1Click:Connect(function()
- gui:Destroy()
- print(player.Name .. " destroy clicker")
- end)
- button.MouseButton1Click:Connect(function()
- coins.Value += 1
- button2.Text = "Total coins: " .. coins.Value
- button.Text = "+1 coin"
- print(player.Name .. " get coin!")
- wait(1)
- button.Text = "Click for coin"
- end)
- button4.MouseButton1Click:Connect(function()
- if coins.Value > 99 and canbuy then
- canbuy = false
- for _, model in pairs(workspace:GetChildren()) do
- wait()
- if model:IsA("Model") then
- for _, hrt in pairs(model:GetChildren()) do
- if hrt:IsA("Part") then
- hrt.Anchored = true
- coins.Value -= 100
- button2.Text = "Total coins: " .. coins.Value
- end
- end
- end
- end
- end
- end)
- end
- -- Создаем кнопки для всех существующих игроков
- for _, player in ipairs(Players:GetPlayers()) do
- createButton(player)
- end
- -- Слушаем событие, чтобы создать кнопки для новых игроков, которые могут присоединиться позже
- Players.PlayerAdded:Connect(function(player)
- createButton(player)
- end)
Advertisement