:IsA() not working

So, I have a script that checks if a tool is named a certain thing, and if the tool is actually a tool (problem i’m having). Here is my script:

local inside = script.Parent.Inside
local outside = script.Parent.Outside
local light = script.Parent.Light
local door = script.Parent.Parent.Door
local model = script.Parent.Parent


outside.Touched:Connect(function(hit)
	if hit:IsA("Tool") then -- NOT WORKING
		if hit.Parent.Name == model.Name then
			door.CanCollide = false
			light.BrickColor = BrickColor.new("Lime green")
			print("Outside successful")
			wait(2)
			door.CanCollide =  true
			light.BrickColor = BrickColor.new("Bright orange")
			
		else
			door.CanCollide = true
			light.BrickColor = BrickColor.new("Really red")
			print("Outside unsuccessful")
			wait(2)
			door.CanCollide =  true
			light.BrickColor = BrickColor.new("Bright orange")
		end
	end
end)

Here is my explorer:
image

Please help!

hit.Parent is probably the tool since the object hit would be the handle…

3 Likes

Thanks so much!

God, i’m so thick…