local screenGui = Instance.new("ScreenGui") screenGui.Name = "MyGui" screenGui.Parent = game.Players.LocalPlayer.PlayerGui local frame = Instance.new("Frame") frame.Name = "DraggableFrame" frame.Size = UDim2.new(0, 200, 0, 150) frame.Position = UDim2.new(0.5, -100, 0.5, -75) frame.BackgroundColor3 = Color3.new(1, 1, 1) frame.Parent = screenGui frame.Draggable = true local textLabel = Instance.new("TextLabel") textLabel.Name = "Script lua test by AI" textLabel.Size = UDim2.new(1, 0, 0.3, 0) -- Lebar sesuai frame, tinggi 30% dari frame textLabel.Position = UDim2.new(0, 0, 0.1, 0) -- Posisi di atas frame textLabel.Text = "Gui lua by AI" textLabel.BackgroundColor3 = Color3.new(1, 1, 1) textLabel.BackgroundTransparency = 1 -- Membuat latar belakang transparan textLabel.Parent = frame local button = Instance.new("TextButton") button.Name = "MyButton" button.Size = UDim2.new(0, 100, 0, 30) button.Position = UDim2.new(0.5, -50, 0.8, -15) button.Text = "Button" button.BackgroundColor3 = Color3.new(0.8, 0.8, 0.8) button.Parent = frame