I'm new to scripting, I want to make a brick kill the player that clicked it, right when they click it, and still work after that. Please help me. :C
More information Here
local part = script.Parent part.Touched:connect(function(hit) if hit.Parent then --common pitfall of kill bricks, without this the script will break when hit by bullets local hum = hit.Parent:FindFirstChild("Humanoid") if hum then hum.Health = 0 end end end)
Delete this question its not allowed, your not allowed to ask for scripts.