
1.8k Views
39 Executions
Localqw6 OMER GUI V7
Universal Script 📌
ScripstPublished 10
2 years ago
Please login to perform these actions:Does it work?
No reports yetNo reports yet. Tried it? Be the first to say.
Also noticed:
Description
Djjdjd
local player = game.Players.LocalPlayer
local screenGui = Instance.new("ScreenGui")
screenGui.Parent = player:FindFirstChild("PlayerGui") or player:WaitForChild("PlayerGui")
screenGui.Name = "OMER_GUI_V7"
local frame = Instance.new("Frame")
frame.Size = UDim2.new(0.3, 0, 0.6, 0)
frame.Position = UDim2.new(0.35, 0, 0.2, 0)
frame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
frame.BorderSizePixel = 2
frame.Parent = screenGui
local function createButton(name, position, callback)
local button = Instance.new("TextButton")
button.Size = UDim2.new(0.8, 0, 0.1, 0)
button.Position = UDim2.new(0.1, 0, position, 0)
button.Text = name
button.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
button.TextColor3 = Color3.fromRGB(255, 255, 255)
button.Parent = frame
button.MouseButton1Click:Connect(callback)
end
-- **Sürüklenebilir GUI**
local dragging, dragStart, startPos
frame.InputBegan:Connect(function(input)
if input.UserInputType == Enum.UserInputType.MouseButton1 then
dragging = true
dragStart = input.Position
startPos = frame.Position
input.Changed:Connect(function()
if input.UserInputState == Enum.UserInputState.End then
dragging = false
end
end)
end
end)
frame.InputChanged:Connect(function(input)
if dragging and input.UserInputType == Enum.UserInputType.MouseMovement then
Comments
0Log in to join the conversation. Login
No comments yet. Be the first!




