Hello everyone, so for example I've made this simple function of brick that kills you if you touch it.
function Touchies(mb)
if mb and mb.Parent and mb.Parent:FindFirstChild("Humanoid") then
mb.Parent.Humanoid.Health = 0
end
end
And how do i make it that I can initialize this function for different scripts with:
script.Parent.Touched:connect(Touchies)
Instead of copying same part of code again?

1 comment
Understood, thanks!