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
COMMUNITY QUESTION
How do I make a brick kill a player?
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.
