#Kill Brick script not working
13 messages · Page 1 of 1 (latest)
show script not error
Ok
local CollectionService = game:GetService("CollectionService")
for i, Part in CollectionService:GetTagged("KillBricks") do
Part.Touched:Connect(function(touchingPart)
local Humanoid = touchingPart.Parent
if Humanoid then
Humanoid.Health = 0
end
end)
end
humanoid is an object inside player's character
How do i add it in
local Humanoid = touchPart.Parent:FindFirstChild("Humanoid")
np
up to you, just make it unique and always have fun while coding