Pokecenter

Untitled

Dec 7th, 2018
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. local plr = game.Players.LocalPlayer
  2. local gui = plr.PlayerGui
  3. local main = gui.tnfgui
  4. local frm = main.Frame
  5. local but = frm
  6. local menu = frm
  7.  
  8. local item = but.item.Text
  9. local quantity = but.quantity.Text
  10. local store = but.store.Text
  11. local rp = game.ReplicatedStorage.Resources.Remotes.ClientRequest
  12.  
  13. if store == "t" then
  14. store = "militiaSupplies"
  15. end
  16. if store == "g" then
  17. store = "generalStore1"
  18. end
  19. if store == "f" then
  20. store = "illegalSupplies"
  21. end
  22. rp:InvokeServer("sellItem",tostring(store),tostring(item),tonumber(quantity))
Advertisement
Add Comment
Please, Sign In to add comment