dozik_clozik

ROBLOX CLICK SIMULATOR (+ SECRET FUNCTIONS) void script builder

Feb 8th, 2024 (edited)
236
0
Never
2
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 7.08 KB | Gaming | 0 0
  1. ---------------------------------------------- BY NOOBIK_2033333LELK (ROBLOX ACCOUNT)
  2. -------- PASTE IT IN Void-Script-Builder-Place-2 ON ROBLOX
  3. local Players = game:GetService("Players")
  4. local Players = game:GetService("Players")
  5. local coins = Instance.new("IntValue")
  6. local uicorner = Instance.new("UICorner")
  7. local uicorner2 = Instance.new("UICorner")
  8. local canbuy = true
  9. local canbuy2 = true
  10. coins.Name = "Coins"
  11. coins.Value = 0
  12. -- Функция для создания кнопки
  13. local function createButton(player)
  14.     -- Создаем новый объект ScreenGui для игрока
  15.     coins.Parent = player
  16.     local gui = Instance.new("ScreenGui")
  17.     gui.Parent = player.PlayerGui
  18.  
  19.     -- Создаем новую кнопку внутри ScreenGui
  20.     local label = Instance.new("TextLabel", gui)
  21.     local button = Instance.new("TextButton")
  22.     local button2 = Instance.new("TextButton", gui)
  23.     local button3 = Instance.new("TextButton", gui)
  24.     local button4 = Instance.new("TextButton", gui)
  25.     local button5 = Instance.new("TextButton", gui)
  26.     button3.Name = "button3"
  27.     button.Parent = gui
  28.     button2.Name = "Button2"
  29.     button4.Name = "Button4"
  30.     button5.Name = "Button5"
  31.     uicorner.Parent = button
  32.     uicorner2.Parent = button2
  33.  
  34.     -- Настройки кнопки
  35.     button.Text = "Click for coin"
  36.     button.TextScaled = true -- Текст на кнопке
  37.     button.Size = UDim2.new(0, 200, 0, 50) -- Размеры кнопки (ширина, высота)
  38.     button.Position = UDim2.new(0.5, -100, 0.75, -50) -- Позиция кнопки (относительно центра экрана)
  39.     button.BackgroundColor3 = Color3.new(1, 1, 1) -- Цвет фона кнопки (белый)
  40.     button.TextColor3 = Color3.new(0, 0, 0) -- Цвет текста кнопки (черный)
  41.     button.Font = Enum.Font.LuckiestGuy -- Шрифт текста кнопки
  42.     button.TextSize = 20 -- Размер текста кнопки
  43.  
  44.     button2.Text = "Total coins: " .. coins.Value
  45.     button2.TextScaled = true            -- Текст на кнопке
  46.     button2.Size = UDim2.new(0, 200, 0, 50) -- Размеры кнопки (ширина, высота)
  47.     button2.Position = UDim2.new(0.5, -100, 0.1, -25) -- Позиция кнопки (относительно центра экрана)
  48.     button2.BackgroundColor3 = Color3.new(1, 1, 1) -- Цвет фона кнопки (белый)
  49.     button2.TextColor3 = Color3.new(0, 0, 0) -- Цвет текста кнопки (черный)
  50.     button2.Font = Enum.Font.LuckiestGuy -- Шрифт текста кнопки
  51.     button2.TextSize = 20 -- Размер текста кнопки
  52.  
  53.  
  54.     label.Text = "Its my clicker game! created by (noobik_2033333lelk)"
  55.     label.TextScaled = true            -- Текст на кнопке
  56.     label.Size = UDim2.new(0, 200, 0, 50) -- Размеры кнопки (ширина, высота)
  57.     label.Position = UDim2.new(0.2, -100, 0.3, -25) -- Позиция кнопки (относительно центра экрана)
  58.     label.BackgroundColor3 = Color3.new(1, 1, 1) -- Цвет фона кнопки (белый)
  59.     label.TextColor3 = Color3.new(0, 0, 0) -- Цвет текста кнопки (черный)
  60.     label.Font = Enum.Font.Code     -- Шрифт текста кнопки
  61.     label.TextSize = 20 -- Размер текста кнопки
  62.  
  63.     button3.Text = "Clear all buttons (if you want)"
  64.     button3.TextScaled = true            -- Текст на кнопке
  65.     button3.Size = UDim2.new(0, 200, 0, 50) -- Размеры кнопки (ширина, высота)
  66.     button3.Position = UDim2.new(0.2, -100, 0.2, -25) -- Позиция кнопки (относительно центра экрана)
  67.     button3.BackgroundColor3 = Color3.new(1, 1, 1) -- Цвет фона кнопки (белый)
  68.     button3.TextColor3 = Color3.new(0, 0, 0) -- Цвет текста кнопки (черный)
  69.     button3.Font = Enum.Font.Code     -- Шрифт текста кнопки
  70.     button3.TextSize = 20 -- Размер текста кнопки
  71.  
  72.     button4.Text = "Freeze all players (cost: 100 clicks) one time "
  73.     button4.TextScaled = true            -- Текст на кнопке
  74.     button4.Size = UDim2.new(0, 200, 0, 50) -- Размеры кнопки (ширина, высота)
  75.     button4.Position = UDim2.new(0.2, -100, 0.5, -25) -- Позиция кнопки (относительно центра экрана)
  76.     button4.BackgroundColor3 = Color3.new(1, 1, 1) -- Цвет фона кнопки (белый)
  77.     button4.TextColor3 = Color3.new(0, 0, 0) -- Цвет текста кнопки (черный)
  78.     button4.Font = Enum.Font.Code     -- Шрифт текста кнопки
  79.     button4.TextSize = 20 -- Размер текста кнопки
  80.     button4.TextColor = BrickColor.Blue()
  81.    
  82.     button5.Text = "Delete all players (cost: 100 clicks) one time "
  83.     button5.TextScaled = true            -- Текст на кнопке
  84.     button5.Size = UDim2.new(0, 200, 0, 50) -- Размеры кнопки (ширина, высота)
  85.     button5.Position = UDim2.new(0.2, -100, 0.6, -25) -- Позиция кнопки (относительно центра экрана)
  86.     button5.BackgroundColor3 = Color3.new(1, 1, 1) -- Цвет фона кнопки (белый)
  87.     button5.TextColor3 = Color3.new(0, 0, 0) -- Цвет текста кнопки (черный)
  88.     button5.Font = Enum.Font.Code     -- Шрифт текста кнопки
  89.     button5.TextSize = 20 -- Размер текста кнопки
  90.     button5.TextColor = BrickColor.Red()
  91.  
  92.     -- Добавляем обработчик события "MouseButton1Click" (щелчок левой кнопкой мыши)
  93.     button5.MouseButton1Click:Connect(function()
  94.         if coins.Value > 99 and canbuy2 then
  95.             canbuy2 = false
  96.             for _, model in pairs(workspace:GetChildren()) do
  97.                 wait()
  98.                 if model:IsA("Model") then
  99.                             model:Destroy()
  100.                             coins.Value -= 100
  101.                             button2.Text = "Total coins: " .. coins.Value
  102.            
  103.                 end
  104.             end
  105.         end
  106.     end)
  107.     button3.MouseButton1Click:Connect(function()
  108.         gui:Destroy()
  109.         print(player.Name .. " destroy clicker")
  110.     end)
  111.     button.MouseButton1Click:Connect(function()
  112.         coins.Value += 1
  113.         button2.Text = "Total coins: " .. coins.Value
  114.         button.Text = "+1 coin"
  115.         print(player.Name .. " get coin!")
  116.         wait(1)
  117.         button.Text = "Click for coin"
  118.     end)
  119.     button4.MouseButton1Click:Connect(function()
  120.         if coins.Value > 99 and canbuy then
  121.             canbuy = false
  122.             for _, model in pairs(workspace:GetChildren()) do
  123.                 wait()
  124.                 if model:IsA("Model") then
  125.                     for _, hrt in pairs(model:GetChildren()) do
  126.                         if hrt:IsA("Part") then
  127.                             hrt.Anchored = true
  128.                             coins.Value -= 100
  129.                             button2.Text = "Total coins: " .. coins.Value
  130.                         end
  131.                     end
  132.                 end
  133.             end
  134.         end
  135.  
  136.     end)
  137. end
  138.  
  139. -- Создаем кнопки для всех существующих игроков
  140. for _, player in ipairs(Players:GetPlayers()) do
  141.     createButton(player)
  142. end
  143.  
  144. -- Слушаем событие, чтобы создать кнопки для новых игроков, которые могут присоединиться позже
  145. Players.PlayerAdded:Connect(function(player)
  146.     createButton(player)
  147. end)
Tags: Roblox Script
Advertisement
Comments
Add Comment
Please, Sign In to add comment