Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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.

1 comment

0

P.S, I have tried many many times and I have failed to replicate this.

1 answer

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.

2 comments

0

But I want it to give a list of the player names that have the tool?

0

Nevermind this question, I'll post a new one up similar to this one.

This discussion is preserved as it was. New answers, comments, and votes are closed.