I'm working on a remake of "The Underground War" By StickMasterLuke. In the game I have a "swuvel" that works fine. it has a child numbervalue called "Shovel". There is also a block with a script in it that looks for the numbervalue inside of the block, when it is found it turns transparent. But for some reason when the block touches it nothing happens. I know how to make the script find a humanoid or nothing, is there something I can make it detect something besides those two things? Script:

script.Parent.Touched:connect(function(hit)
	local shovel = hit:FindFirstChild('Shovel')
	
	if shovel then
		script.Parent.Transparency = 1
		
	end
end)

4 comments

0

first of all, what is the shovel, and what is its parent

0

the shovel is a number value, the parent is a brick named HitBlock, the parent of that is a tool called "swuvel"

0

I would put the script in the shovel instead of in every part in the game. This will prevent lots of lag

0

what if I put a humanoid in it?