local Players = game:GetService("Players") local RunService = game:GetService("RunService") local localPlayer = Players.LocalPlayer -- Fonction pour appliquer l'immunité aux collisions local function appliquerImmunite(character) local humanoid = character:WaitForChild("Humanoid", 5) local rootPart = character:WaitForChild("HumanoidRootPart", 5) if not humanoid or not rootPart then return end -- 1. On s'assure que la vie est normale pour pouvoir bouger humanoid.MaxHealth = 100 humanoid.Health = 100 -- 2. Boucle pour désactiver les collisions avec les attaques/monstres local connection connection = RunService.Stepped:Connect(function() if not character:IsDescendantOf(workspace) or humanoid.Health <= 0 then connection:Disconnect() return end -- Rend toutes les parties de ton corps invisibles aux capteurs de dégâts (Hitboxes) for _, part in ipairs(character:GetChildren()) do if part:IsA("BasePart") then part.CanTouch = false -- Les monstres ne déclenchent plus leurs scripts de dégâts sur toi end end end) end -- Activation immédiate sur ton personnage actuel if localPlayer.Character then appliquerImmunite(localPlayer.Character) end -- Réactivation automatique si tu changes de zone ou si tu réapparais normalement localPlayer.CharacterAdded:Connect(appliquerImmunite)