0% found this document useful (0 votes)
6 views3 pages

Project PP GUI: Drag & Execute Tool

The document describes the creation of a GUI for a project called 'Project PP' in Roblox, featuring a main frame, input box for Lua scripts, and buttons for executing and clearing scripts. It includes functionality for dragging the GUI around the screen without a title bar and ensures it does not drag when clicking on the game background. The script also initializes a welcome message and provides an interactive user experience for script execution.
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)
6 views3 pages

Project PP GUI: Drag & Execute Tool

The document describes the creation of a GUI for a project called 'Project PP' in Roblox, featuring a main frame, input box for Lua scripts, and buttons for executing and clearing scripts. It includes functionality for dragging the GUI around the screen without a title bar and ensures it does not drag when clicking on the game background. The script also initializes a welcome message and provides an interactive user experience for script execution.
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

-- Project PP GUI | เดิมเป๊ะ + ลากได้ทั้งหน้าต่างแบบ Executor จริง ๆ (เนียนสุด)

local player = [Link]


local scr = [Link]("ScreenGui")
[Link] = "ProjectPP"
[Link] = false
[Link] = player:WaitForChild("PlayerGui")

-- Main Frame (GUI เดิมของคุณ 100%)


local main = [Link]("Frame", scr)
[Link] = [Link](0, 600, 0, 350)
[Link] = [Link](0.5, -300, 0.5, -175)
main.BackgroundColor3 = [Link](255,255,255)
[Link] = 3

-- Title
local title = [Link]("TextLabel", main)
[Link] = [Link](0, 400, 0, 40)
[Link] = [Link](0, 10, 0, 5)
[Link] = "Project PP"
[Link] = 28
[Link] = 1
[Link] = [Link]
title.TextColor3 = [Link](0, 0, 0)

-- Input Box
local inputFrame = [Link]("Frame", main)
[Link] = [Link](0, 420, 0, 220)
[Link] = [Link](0, 10, 0, 50)
inputFrame.BackgroundColor3 = [Link](230,230,230)
[Link] = 2

local input = [Link]("TextBox", inputFrame)


[Link] = [Link](1, -10, 1, -10)
[Link] = [Link](0, 5, 0, 5)
input.BackgroundColor3 = [Link](255,255,255)
[Link] = ""
[Link] = 18
[Link] = true
[Link] = false
[Link] = true
[Link] = [Link]
[Link] = [Link]
[Link] = [Link]
[Link] = "พิมพ์สคริปต์ Lua ของคุณที่นี่..."

-- ปุ่ม Execute / Clear


local btnFrame = [Link]("Frame", main)
[Link] = [Link](0, 420, 0, 70)
[Link] = [Link](0, 10, 0, 280)
[Link] = 1

local execFrame = [Link]("Frame", btnFrame)


[Link] = [Link](0, 190, 0, 60)
[Link] = [Link](0, 5, 0, 5)
execFrame.BackgroundColor3 = [Link](0,0,0)

local execBtn = [Link]("TextButton", execFrame)


[Link] = [Link](1, -10, 1, -10)
[Link] = [Link](0, 5, 0, 5)
[Link] = "execute"
[Link] = 20
execBtn.BackgroundColor3 = [Link](255,255,255)

local clrFrame = [Link]("Frame", btnFrame)


[Link] = [Link](0, 190, 0, 60)
[Link] = [Link](0, 210, 0, 5)
clrFrame.BackgroundColor3 = [Link](0,0,0)

local clrBtn = [Link]("TextButton", clrFrame)


[Link] = [Link](1, -10, 1, -10)
[Link] = [Link](0, 5, 0, 5)
[Link] = "clear"
[Link] = 20
clrBtn.BackgroundColor3 = [Link](255,255,255)

-- Script Tab
local scriptTitle = [Link]("TextLabel", main)
[Link] = [Link](0, 150, 0, 35)
[Link] = [Link](0, 440, 0, 10)
[Link] = "script Tab"
scriptTitle.BackgroundColor3 = [Link](255,255,255)
[Link] = 2
[Link] = 20

local scriptFrame = [Link]("ScrollingFrame", main)


[Link] = [Link](0, 150, 0, 290)
[Link] = [Link](0, 440, 0, 50)
[Link] = [Link](0,0,0,500)
[Link] = 6
scriptFrame.BackgroundColor3 = [Link](255,255,255)
[Link] = 2

-- ฟังก์ชันเดิม
execBtn.MouseButton1Click:Connect(function()
loadstring([Link])()
end)

clrBtn.MouseButton1Click:Connect(function()
[Link] = ""
end)

[Link] = [[print("Welcome to Project PP!")]]

-- ===============================================
-- ระบบลาก GUI แบบ Executor จริง ๆ (เนียนสุด 2025)
-- คลิกตรงไหนใน GUI ก็ลากได้หมด ไม่ต้องมี Title Bar
-- ไม่ลากตอนคลิกพื้นหลังเกม
-- ===============================================
local UserInputService = game:GetService("UserInputService")
local dragging = false
local dragInput = nil
local dragStart = nil
local startPos = nil

local function updateDrag(input)


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

-- กดเมาส์ที่ GUI ใด ๆ ก็ได้


[Link]:Connect(function(input)
if [Link] == [Link].MouseButton1 or
[Link] == [Link] 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] or
[Link] == [Link] then
dragInput = input
end
end)

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

print("Project PP GUI โหลดสำเร็จ!")


print("ลากได้ทั้งหน้าต่างเลยครับ คลิกตรงไหนก็ลากได้หมด!")

You might also like