My vfx won't face the right way while tweening

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 want a big slash effect go from my sword but the vfx doesn’t face the right way.

  2. What is the issue? Include screenshots / videos if possible!
    It won’t face the right way.

  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    Some have told me to use CFrame.Angles but have no idea how that works.

This is my code right now

-- 	local vfx = game.ServerStorage.Items.purple:Clone()
	vfx.Parent = workspace
	vfx.Position = hrp.Position

	local tableOfObjects = {char}
	game.ReplicatedStorage.AtomicImpact:FireClient(plr, tableOfObjects)
	local info = TweenInfo.new(1)
	local tweenService = game:GetService("TweenService")
	local tween = tweenService:Create(vfx, info, {Position = hrp.Position + hrp.CFrame.LookVector * 100})
	tween:Play()
	hrp.Anchored = false
	wait(1)
	vfx:Destroy()


2 Likes

vfx.Orientation = hrp.Orientation below vfx.Position?
also you should learn about CFrames

1 Like