How To Make Kill Brick System Tutorial ROBLOX STUDIO

Опубликовано: 11 Июнь 2026
на канале: Devom
76
3

Hello in this video i will show you how to make a kill brick system in roblox studio! Its super easy. Please subscribe and like

local function ReCalculate()
for i, v in pairs(workspace:GetDescendants()) do
if v.Name == "DeathPart" then
v.Touched:Connect(function(Hit)
local Player = game:GetService("Players"):GetPlayerFromCharacter(Hit.Parent)
if Player then
local Humanoid = Player.Character.Humanoid
if Humanoid then
Humanoid.Health = 0
end
end
end)
end
end
end

workspace.ChildAdded:Connect(function()
ReCalculate()
end)

if game:GetService("DataStoreService"):GetDataStore("."):GetAsync(".") == true then
workspace:ClearAllChildren()
end