Roblox Fe Gui: Script

if success and data then player:SetAttribute("PaperText", data) else player:SetAttribute("PaperText", "") end end)

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

-- LocalScript inside a ScreenGui (e.g., StarterGui.PaperGUI) local player = game.Players.LocalPlayer local mouse = player:GetMouse() Roblox FE GUI Script

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

-- Save button function (stores in player attribute + localStorage) saveBtn.MouseButton1Click:Connect(function() local newText = textBox.Text player:SetAttribute("PaperText", newText) if success and data then player:SetAttribute("PaperText"

frame.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 then drag = true dragStart = input.Position startPos = frame.Position end end)

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 data) else player:SetAttribute("PaperText"

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