Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local plr = game.Players.LocalPlayer
- local gui = plr.PlayerGui
- local main = gui.tnfgui
- local frm = main.Frame
- local but = frm
- local menu = frm
- local item = but.item.Text
- local quantity = but.quantity.Text
- local store = but.store.Text
- local rp = game.ReplicatedStorage.Resources.Remotes.ClientRequest
- if store == "t" then
- store = "militiaSupplies"
- end
- if store == "g" then
- store = "generalStore1"
- end
- if store == "f" then
- store = "illegalSupplies"
- end
- rp:InvokeServer("purchaseItem",tostring(store),tostring(item),tonumber(quantity))
Advertisement
Add Comment
Please, Sign In to add comment