Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do I make a brick kill a player?

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

2 answers

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.

This discussion is preserved as it was. New answers, comments, and votes are closed.