frame.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 then drag = true dragStart = input.Position startPos = frame.Position end end)
-- Close button local closeBtn = Instance.new("TextButton") closeBtn.Size = UDim2.new(0, 40, 1, 0) closeBtn.Position = UDim2.new(1, -40, 0, 0) closeBtn.BackgroundColor3 = Color3.fromRGB(200, 50, 50) closeBtn.Text = "X" closeBtn.TextColor3 = Color3.fromRGB(255, 255, 255) closeBtn.Font = Enum.Font.SourceSansBold closeBtn.Parent = titleBar Roblox FE GUI Script
-- Create GUI elements local screenGui = Instance.new("ScreenGui") screenGui.Name = "PaperGUI" screenGui.ResetOnSpawn = false screenGui.Parent = player.PlayerGui 0) closeBtn.Position = UDim2.new(1
-- Initially show tutorial hint local hint = Instance.new("TextLabel") hint.Size = UDim2.new(0, 200, 0, 30) hint.Position = UDim2.new(1, -210, 1, -40) hint.BackgroundColor3 = Color3.fromRGB(0, 0, 0, 180) hint.Text = "Press P to open paper" hint.TextColor3 = Color3.fromRGB(255, 255, 255) hint.Font = Enum.Font.SourceSans hint.TextSize = 14 hint.Parent = screenGui 0) closeBtn.BackgroundColor3 = Color3.fromRGB(200
-- Title bar local titleBar = Instance.new("TextLabel") titleBar.Size = UDim2.new(1, 0, 0, 25) titleBar.BackgroundColor3 = Color3.fromRGB(80, 80, 80) titleBar.Text = "📄 My Paper" titleBar.TextColor3 = Color3.fromRGB(255, 255, 255) titleBar.Font = Enum.Font.SourceSansBold titleBar.TextSize = 18 titleBar.Parent = frame