How Would I Make It To Where I can Only Get The Tool 1 Time

I need some help with this Tool problem I am having. So i made a button that gives the player the tool when its clicked but how do I make it to where the player cannot spam the button and get multiple swords(Tools)

Here is the proof of what the problem i am having

I have tried to make my own script but that didn’t go as planned also i searched a few things up but couldn’t find many things about this unless i didn’t look at the right ones, i dont know…

also i can include the code that basically puts the sword into the player backpack, but lmk if yall need that as well.

Check if WoodSword exists in the character or the backpack, if it does, don’t give the sword.

if not (player.Backpack:FindFirstChild('WoodSword') or player.Character:FindFirstChild('WoodSword')) then
    -- the sword shouldn't exist already so give the sword
end
3 Likes

Thank you that was very simple and I feel quite dumb lol.

1 Like