From 84f109f82b2af6ade6a559d5a2176558fcaeac0b Mon Sep 17 00:00:00 2001 From: Pyseph Date: Sun, 30 Oct 2022 15:43:28 +0100 Subject: [PATCH] v1.14.0 - Added support for Bone instances being used as `DmgPoint` attachments --- lib/ClientHandler.client.luau | 2 +- lib/init.luau | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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