Ability does not go in the correct direction. (Tween)

Hi, I’m trying to make this ability go in the players direction (where the humanoidrootpart is facing) but it ends up looking like this:

I tried to make the tween go in the players direction but it doesn’t seem to work.

After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!

	local goal = {}
		goal.Position = beamclone.End.Position + (hrp.Position - Vector3.new(0,0,100)) 
		TS:Create(beamclone.End, TweenInfo.new(2), goal):Play()
		workspace[plr.Name.."'s Kamehameha"]:Destroy()
1 Like

nvm i got it to work, i did goal.CFrame = hrp.CFrame * CFrame.new(0, 0, -150)

Yes, that would work. Another solution that would work would be using the CFrame’s LookVector:

goal.Position = hrp.Position + hrp.CFrame.LookVector * 100

This will avoid setting the rotation of the attachment, which may or may not be what you want. Also, nice special effect!

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.