How to fix this script?

Im not really an scripter and im trying to make an script work if block is touched but if not then the script is disabled. But i cant seem to get it right and i cant search it cause roblox’s search system is absolute trash.

Heres my script:

script.Parent.Touched:connect(function(hit)
script.Parent.Parent.Parent.Part.TouchKill.Enabled = true
else
script.Parent.Parent.Parent.Part.TouchKill.Enabled = false
end)

what’s suposed to the TouchKill script does, can you show it?

And I’m not sure if you can just disable/enable scripts like that in middle game, I never saw that working well in any game.

My idea is to change the touchkill script to work like it had a enable/disable option instead of changing the Enabled part.

Can you give the TouchKill script and show the Explorer with all the mentioned instances?