hamburger="hummanoid" myFunction = "part" script.Parent.Touched:connect(function(hamburger) if hamburger.Parent.FindFirstChild.myFunction then hamburger.parent.Head:Destroy() end end)
-- This script destroys player head --Its really wrong --Please help me fix it .

2 comments
Thank you for you're help , and could you give me some tips for making me code as clean as yours and not "making no sense at all " ?
Sure, the roblox wiki is very very helpful, always indent and add comments when needed to help you remember what key functions do, Efficiency is key, know when to use local and regular scripts as well as module scripts.