Roblox Trading with Anti-Fraud Escrow and Atomic Transactions
Generate the professional core of a Roblox trading system with real server-side security. The prompt guides the AI to create a server-authoritative Luau Script capable of controlling invites, trade sessions, item and currency offers, independent confirmations, cancellations, and automatic expiration.
The system includes protections against duplication, offer changes after confirmation, RemoteEvent spam, nonexistent or non-tradable items, insufficient balance, concurrent sessions, and client-side tampering. It is suited for RPGs, simulators, collection games, tycoons, and experiences with persistent inventory.
It also requests an adapter layer to connect the code to the existing structure of your game, allowing you to provide folder names, RemoteEvents, inventory values, profile modules, and custom trading rules before generating the script ready to use in Roblox Studio.
Act as a senior Roblox Luau developer, specialized in server-authoritative multiplayer systems, persistent inventory, and exploit prevention. Generate a central player trading system with anti-fraud validation, implemented primarily in a single server Script. Before writing the code, use the technical context I will provide below to adapt names, paths, and integrations to my game.