local KillBrick = workspace.KillBrick
for i,v in pairs(KillBrick) do
local humanoid = v.Parent:FindFirstChild(“Humanoid”)
if humanoid then
v.Parent.humanoid.Health = 0
end
end
for i,v in pairs(KillBrick) do
local humanoid = v.Parent:FindFirstChild(“Humanoid”)
if humanoid then
v.Parent.humanoid.Health = 0
end
end
local KillBrick = workspace.KillBrick
for i,v in KillBrick:GetChildren() do
v.Touched:Connect(function(hit)
local humanoid = hit.Parent:FindFirstChild("Humanoid")
if humanoid then
humanoid.Health = 0
end
end)
end
thanks it works, many thanks!!!
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.