-
What do you want to achieve? Keep it simple and clear!
Fix or prevent this abnormal behavior - What is the issue? Include screenshots / videos if possible!
Currently im using RaycastHitboxV4 and upon contact with a enemy I’m Running a Hit animation and for some odd apparent reason its also raycasting during the hitted player Hit animation.
https://gyazo.com/c041a1903639f95538e30cdd55105415
Additional outlook for context
Hitbox.OnHit:Connect(function(hit, humanoid)
local EnemyCharAttackAttribute = humanoid:FindFirstChild("Attacking")
local EnemyCharStunnedAttribute = humanoid:FindFirstChild("Stunned")
local EnemyCharBlockingAttribute = humanoid:FindFirstChild("Blocking")
local EnemyCharEquippedAttribute = humanoid:FindFirstChild("Equipped")
local EnemyCharParryAttribute = humanoid:FindFirstChild("Parry")
local EnemyCharRunAttribute = humanoid:FindFirstChild("Running")
if humanoid.Parent ~= script.Parent.Parent then
if EnemyCharEquippedAttribute and EnemyCharBlockingAttribute.Value == false and EnemyCharParryAttribute.Value == false then
local function EnableParticle()
HitPlrSoundModule.FireHittedPlrSound(humanoid)
-- Create an attachment at the hit position
local Attachment = Instance.new("Attachment")
Attachment.Parent = hit.Parent.HumanoidRootPart
-- Emit the particle from the attachment
local bloodEffectClone = BloodHitEffect:Clone()
bloodEffectClone.Parent = Attachment
bloodEffectClone:Emit(10)
HitPlrAnimsModule.PlayRandomHitAnim(humanoid)
humanoid:TakeDamage(1.5)
StunHandler.Stun(humanoid, 0.75)
local hitEffectAttachment = game.ReplicatedStorage.VfxFolder.HitVfx.HitEffectAttachment:GetDescendants()
local CombathitEffect = hitEffectAttachment:Clone()
CombathitEffect.Parent = Attachment
CombathitEffect:Emit(1)
wait(0.15)
CombathitEffect:Destroy()
bloodEffectClone:Remove()
Attachment:Remove()
end
EnableParticle(hit)
end
end
end)
-
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
So far i haven’t found anyone who has reproduced this issue. Yes, I have looked for solutions.