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 9 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 — 9y

1 answer

Log in to vote
1
Answered by
HexC3D 830 Moderation Voter
9 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 — 9y
0
Nevermind this question, I'll post a new one up similar to this one. Overpride 0 — 9y
Ad

Answer this question