I want a safe hard to exploit or impossible to exploit trade system i already have the basics im just looking to make it secure.
I have tried some solutions but none have worked.
Please help!
I want a safe hard to exploit or impossible to exploit trade system i already have the basics im just looking to make it secure.
I have tried some solutions but none have worked.
Please help!
Don’t handle the scripts on client. Mostly use ServerScriptService and only use local scripts for the visual things like GUI and such things. Otherwise use RemoveEvents and check if user is eligible for the trading on the server.
There are tutorials on Youtube for this as well.
Alright ill try to mostly use serverscriptservice and im already implementing changes to make sure they are actually in a trade
Honestly it isn’t too hard to make a trading system exploit safe, you just have to make sure that when both players are done deciding what they want to trade check if they both have what each other are wanting and for requesting to trade with someone that doesn’t really need any integrity checks because there isn’t any vital information being sent
Remote events, Bindable events, Remote functions. Check the trades status by using :InvokeServer
. Make a table for both players of what they have put in. If the trade is successful fire a remote event to both players e.g TradeFinished:FireClient(player1, playertable2), TradeFinished:FireClient(player2, playertable1)
. If one of the tables has no items in it warn the other player using a remote event. ONLY do visuals on the client. Everytime you click on one of the items in your inventory fire a remote event saying what item, check on the server if you have that item, then fire the same remote back to render the pet.
Use session locking for your saves to prevent item duplication. ProfileService handles this very well.
To make something secure, always check all actions. For a trade, i would check the start, the middle and the end of the trade
Use local scripts for the UI and maybe use external data storage
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.