Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do I not let players attack others?

I'm making a zombie game but I don't want players to attack each other. what do I do?

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?

1 comment

0

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

This discussion is preserved as it was. New answers, comments, and votes are closed.