diff --git a/lib/ClientHandler.client.luau b/lib/ClientHandler.client.luau index 6bf8c04..6f0e988 100644 --- a/lib/ClientHandler.client.luau +++ b/lib/ClientHandler.client.luau @@ -141,7 +141,7 @@ function ClientCast.new(Object, RaycastParameters, UniqueId) local function OnDamagePointAdded(Attachment) if - Attachment.ClassName == "Attachment" + Attachment:IsA("Attachment") and Attachment.Name == Settings.AttachmentName and not DamagePoints[Attachment] then diff --git a/lib/init.luau b/lib/init.luau index 7b57cae..91b78d6 100644 --- a/lib/init.luau +++ b/lib/init.luau @@ -522,7 +522,7 @@ function ClientCast.new(Object, RaycastParameters, NetworkOwner) local function OnDamagePointAdded(Attachment) if - Attachment.ClassName == "Attachment" + Attachment:IsA("Attachment") and Attachment.Name == Settings.AttachmentName and not DamagePoints[Attachment] then