I'm making a zombie game but I don't want players to attack each other. what do I do?
COMMUNITY QUESTION
How do I not let players attack others?
2 answers
local Players = game:GetService("Players")
Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
local humanoid = character:WaitForChild("Humanoid")
while humanoid do
humanoid.Health = 100000000000000000000000000000000
wait(4)
end
end)
end)
this might work it gives players alot of hp that nothing could kill them im not sure the script works thoe
Could you be more specific?
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
i want the players to attack the enemies but not each other