I was wondering how other people have done this with FE. I have the other aspects of the gun shop set up and they all work accordingly, but when it comes to actually give the player the gun I am at a loss. I have tried multiple methods and I still can not find something that actually wants to work. This is what I have:
script.Parent.MouseButton1Click:connect(function() local player = script.Parent.Parent.Parent.Parent.Parent local Mon = player.leaderstats.Cash.Value if Mon >= 900 then local update = Mon - 900 local Event = game.ReplicatedStorage.MoneyUpdate Event:FireServer(update) end end)
After it fires the server to change the money and save the datastore, I do not know how to get the gun from server storage (Or possibly somewhere else if needed?) and into the player's backpack. I am having this issue because I can not get a server script to insert it into the backpack and I can not get a local script to do it either because then it just does not work.
Some tips: