So I am trying to make a GUI (I've made the GUI and made it openable and all) that only has one button, all I want it to do is when clicked, see if you have enough of a set value (in my case it's called GBP) and if you have enough, remove 500 and then give you the tool (M1911)
This is how I am making it detect the click (my button is named S) And then verify the value
bg.S.MouseButton1Click:connect(function()
if player.GBP.Value >= 8000 then
Can't seem to figure out how to make it clone the tool in the player's backpack from lighting if the player has enough and if the player doesn't have enough to cancel
