Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Tool help: How can I make this?

Asked by 10 years ago

How can I make a brick that when you step on it it gives you a tool, but if you already have that tool in your inventory, it doesn't give it. Also a brick that removes just that tool.

0
Make an attempt first. We don't build for you, we guide you. But first, you need to make a whole-hearted attempt first. Look to the wiki. They have great tutorials there since the new update. Apply what you learn there to you problems; that's how life works by the way. OniiCh_n 410 — 10y

1 answer

Log in to vote
0
Answered by
Tesouro 407 Moderation Voter
10 years ago
if player.Backpack:FindFirstChild("ToolName") then
    player.Backpack.Tool:Destroy()
else
    new = Tool:Clone()
    new.Parent = player.Backpack
end

That is what you may use, just fit it in your script. (If you don't know how, follow zMatrix65831 suggestion and learn it before using it)

Ad

Answer this question