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

How can I make a script that detects if a player has a tool?

Asked by 10 years ago

Something like this: Wait(5) if player has a tool called Bamboo then A = Instance.new("Message") A.Text = "plyr..", "..plyr.name

But I don't know how to create this, please help me! It is confusing me a lot.

0
P.S, I have tried many many times and I have failed to replicate this. Overpride 0 — 10y

1 answer

Log in to vote
1
Answered by
HexC3D 830 Moderation Voter
10 years ago
game.Players.PlayerAdded:connect(function(plr)
if plr:WaitForChild("Backpack").Bamboo ~= then
Instance.new("Message",game.Workspace).Text = "Player Has the tool"
else
Instance.new("Message",game.Workspace).Text = "Player Does not have the tool"
end)

This shall help.

0
But I want it to give a list of the player names that have the tool? Overpride 0 — 10y
0
Nevermind this question, I'll post a new one up similar to this one. Overpride 0 — 10y
Ad

Answer this question