I've made a script to check player's inventory when they touch the block, but I want to make a exception (Which can make the player can carry a tool named "AccessCard") but I think that I need some help about it.

script.Parent.Touched:connect(function(hit)
	if debounce == false then
		debounce = true
		local char = hit.Parent
		local player = game.Players:GetPlayerFromCharacter(char)
		if player ~= nil then
			for i,v in pairs(char:GetChildren()) do
				if v:IsA("Tool") then
				end
					etalert = true
				end
			end
			for i,v in pairs(player.Backpack:GetChildren()) do
				if v:IsA("Tool") then
					uetalert = true
				end
			end

##Or could your guys explain about if v:Is xxx## Thank you!

3 comments

0

Im very confused.

0

I'm confused too, I did not understand the question.

0

same here :p