0% found this document useful (0 votes)
27 views2 pages

HelloWorld Lua

Uploaded by

noverikaosi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
27 views2 pages

HelloWorld Lua

Uploaded by

noverikaosi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

-- Dapatkan objek Screen GUI

local ScreenGui = [Link]("ScreenGui")


[Link] = [Link]

-- Set properti GUI


[Link] = true
[Link] = true
[Link] = 10
[Link] = false

-- Buat frame sebagai latar belakang hitam


local blackFrame = [Link]("Frame")
[Link] = [Link](1, 0, 1, 0) -- Ukuran frame mengisi seluruh layar
blackFrame.BackgroundColor3 = [Link](0, 0, 0) -- Warna hitam
[Link] = 0.5 -- Transparansi 0.5 (50% hitam)
[Link] = ScreenGui

-- Buat tombol "Buy All Items"


local buyButton = [Link]("TextButton")
[Link] = "Buy All Items"
[Link] = [Link](0.2, 0, 0.1, 0)
[Link] = [Link](0.4, 0, 0.4, 0)
buyButton.BackgroundColor3 = [Link](1, 1, 1) -- Warna putih
[Link] = blackFrame

-- Fungsi untuk menjalankan skrip saat tombol diklik


local function buyAllItems()
-- Jalankan skrip lain di sini (contoh: pesan pop-up)
print("Script for Buy All Items executed!")
end

buyButton.MouseButton1Click:Connect(buyAllItems)

-- Fungsi untuk menggerakkan GUI (opsional)


local dragging = false
local dragInput, dragStart, startPos

local function updateInput(input)


local delta = [Link] - dragStart
[Link] = true
[Link] = [Link]([Link], [Link] + delta.X,
[Link], [Link] + delta.Y)
end

[Link]:Connect(function(input)
if [Link] == [Link].MouseButton1 then
dragging = true
dragStart = [Link]
startPos = [Link]

[Link]:Connect(function()
if [Link] == [Link] then
dragging = false
end
end)
end
end)

[Link]:Connect(function(input)
if [Link] == [Link] then
dragInput = input
end
end)

You might also like