Menu

Script - Roblox Fe Gui

-- Toggle GUI with P key mouse.KeyDown:Connect(function(key) if key == string.char(openKey.Value) then frame.Visible = not frame.Visible if frame.Visible then -- Refresh text from attribute textBox.Text = player:GetAttribute("PaperText") or "" end end end)

game.Players.PlayerRemoving:Connect(function(player) local userId = player.UserId local text = player:GetAttribute("PaperText") if text then pcall(function() paperStore:SetAsync(userId, text) end) end end)

-- TextBox (editable area) local textBox = Instance.new("TextBox") textBox.Size = UDim2.new(1, -10, 1, -35) textBox.Position = UDim2.new(0, 5, 0, 30) textBox.BackgroundColor3 = Color3.fromRGB(240, 240, 240) textBox.Text = "" textBox.TextWrapped = true textBox.TextScaled = false textBox.MultiLine = true textBox.ClearTextOnFocus = false textBox.Font = Enum.Font.SourceSans textBox.TextSize = 14 textBox.Parent = frame

if success and data then player:SetAttribute("PaperText", data) else player:SetAttribute("PaperText", "") end end) Roblox FE GUI Script

-- Save button local saveBtn = Instance.new("TextButton") saveBtn.Size = UDim2.new(0, 80, 0, 30) saveBtn.Position = UDim2.new(1, -90, 1, -35) saveBtn.BackgroundColor3 = Color3.fromRGB(100, 150, 100) saveBtn.Text = "Save" saveBtn.TextColor3 = Color3.fromRGB(255, 255, 255) saveBtn.Font = Enum.Font.SourceSansBold saveBtn.Parent = frame

-- 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

-- Visual feedback saveBtn.BackgroundColor3 = Color3.fromRGB(150, 200, 150) task.wait(0.2) saveBtn.BackgroundColor3 = Color3.fromRGB(100, 150, 100) end) -- Toggle GUI with P key mouse

-- 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

-- Optional: Fire RemoteEvent to save on server -- game.ReplicatedStorage.SavePaperEvent:FireServer(newText)

-- Load saved text from LocalStorage local savedText = player:GetAttribute("PaperText") or "" textBox.Text = savedText -35) textBox.Position = UDim2.new(0

-- Server Script (for DataStore) local DataStoreService = game:GetService("DataStoreService") local paperStore = DataStoreService:GetDataStore("PlayerPaperData") game.Players.PlayerAdded:Connect(function(player) local userId = player.UserId local success, data = pcall(function() return paperStore:GetAsync(userId) end)

-- Open/Close logic local openKey = Enum.KeyCode.P -- Press P to open/close

-- Draggable local drag = false local dragStart, startPos

local frame = Instance.new("Frame") frame.Size = UDim2.new(0, 400, 0, 300) frame.Position = UDim2.new(0.5, -200, 0.5, -150) frame.BackgroundColor3 = Color3.fromRGB(255, 255, 255) frame.BorderSizePixel = 2 frame.Visible = false frame.Parent = screenGui

frame.InputEnded:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 then drag = false end end)