#I'm new, and i don't understand anything
24 messages · Page 1 of 1 (latest)
di you need it to work for multiple
you can add a script to all of them
you can use a hit function i think
im making a script rn
ty
here
script.Parent.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
hit.Parent.Humanoid.Health = nil
end
end)```
normal script in every kill brick
mark the post as solved
@noble stirrup
Thank you so much
hold on ill fix it
ty :))
** You are now Level 2! **
ill also add comments so you actually understand what the code does because you should try to understand at least some of the code if you are copying it from another place
ok
script.Parent.Touched:Connect(function(hit)
if debounce == false then
if hit.Parent:FindFirstChild("Humanoid") then
debounce = true -- cooldown is running
hit.Parent.Humanoid.Health = hit.Parent:FindFirstChild("Humanoid").Health - 10
wait(0.5) -- change this to the cooldown you want
debounce = false --cooldown is finished running and the part can deal damage again
end
end
end)
oops
it looks disorganized in discord