Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

why is my party system not working no errors it work if there's only one player how do i fix?

Asked by 2 years ago
script.Parent.Touched:Connect(function(hit)
    local Nokill = {"23123","SeaRoared","Dummy"}
    local humanoid = hit.Parent:FindFirstChild("Humanoid") 
    if  (humanoid ~= nil) and hit.Parent.Name ~= Nokill then
        print(table)
        humanoid.Health = humanoid.Health -23

    end

end)

Answer this question