like i m making a jojo game , and i want to make people cant attack him and i didnt how to do it
You could make their health not be able to change like this:
local prevHealth = Humanoid.Health Humanoid.HealthChanged:Connect(function() Humanoid.Health = prevHealth end)
or I guess you could just check on the places where it can do damage to this person if it is the invincible person and not damage them?
ok after that i to disable that?
To do that you would disconnect it, like this:
local prevHealth = Humanoid.Health local connection connection = Humanoid.HealthChanged:Connect(function() Humanoid.Health = prevHealth end) --when you want to disconnect it connection:Disconnect()