I have a script that can help with your specific case:
for number,data in pairs(script.Parent:GetChildren()) do
if data:IsA("BasePart") then
data.Touched:connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
hit.Parent.Humanoid.Health = 0
end
end
end
end
Just group all the kill parts in a model, and put a single instance of this script into the model also. Only one script needed, so it should *help* to cut down on lag.
For the overall idea, I support. |