How to script sword swing effect

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    I made swing effect (particle emitter) and I want the cframe of the slash effect to be the same as the swords cframe

  2. What is the issue? Include screenshots / videos if possible!
    So I have an attachment in the sword handle where the sword would be parented but the slash doesn’t have attachments cframe so if the sword is side way the slash effect would be vertical

  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?

local function SlashEffect(player) 
	local Sword = player.Character:FindFirstChild("Sword")
	local AttachmentPosition = Sword:FindFirstChild("Handle").Attachment
	local CloneEffect = BasicSlashEffect:Clone()
	CloneEffect.Parent = AttachmentPosition
	--CloneEffect.EmissionDirection = Enum.NormalId.Left
	DS:AddItem(CloneEffect, 2)
end


--Events
M1s.OnServerEvent:Connect(function(player, AttackName : StringValue)
	local AnimationSpeed = swordMastery(player)
	local Animation, AttackName:StringValue = m1animationLoader(player, AttackName)
	if Animation then
		Animation:Play()
		Animation:AdjustSpeed(1 + AnimationSpeed)
		m1decreaseMS(player, AttackName)
	end
end)
1 Like

What is the orientation of the particle emitter?

1 Like

The oritentation is velocity perpendicular