I’m trying to check if a player has a certain tool that is given to them in game.
Basically, player clicks part > player gets tool > player needs said tool to get past checkpoint
I’m checking for tool with
player.Backpack:FindFirstChild("ToolName")
but it doesn’t work.
I’ve noticed that if I give tool to player with dev console tool:Clone().Parent = player.Backpack
, when I check for tool it returns true. But when I give in game
script.Parent.ClickDetector.MouseClick:Connect(function(player)
tool:Clone().Parent = player.Backpack
end
the check returns nil. I’ve tried giving the player the tool using both server and client scripts, though in client I couldn’t even get the tool in the player’s backpack. The check is in server.
How would I make this work?