Skip to content

Commit 84f109f

Browse files
committed
v1.14.0
- Added support for Bone instances being used as `DmgPoint` attachments
1 parent 52789a6 commit 84f109f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lib/ClientHandler.client.luau

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ function ClientCast.new(Object, RaycastParameters, UniqueId)
141141

142142
local function OnDamagePointAdded(Attachment)
143143
if
144-
Attachment.ClassName == "Attachment"
144+
Attachment:IsA("Attachment")
145145
and Attachment.Name == Settings.AttachmentName
146146
and not DamagePoints[Attachment]
147147
then

lib/init.luau

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ function ClientCast.new(Object, RaycastParameters, NetworkOwner)
522522

523523
local function OnDamagePointAdded(Attachment)
524524
if
525-
Attachment.ClassName == "Attachment"
525+
Attachment:IsA("Attachment")
526526
and Attachment.Name == Settings.AttachmentName
527527
and not DamagePoints[Attachment]
528528
then

0 commit comments

Comments
 (0)