Part facing in the direction of the player

  1. What do you want to achieve? Keep it simple and clear!
    I want to create a punch, that when pressed, creates a punch after shock.

  2. What is the issue? Include screenshots / videos if possible!
    The issue is that I can’t get the punch aftershock to go in the direction that the player is facing

  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    I haven’t been able to find anything on parts facing directions. I’ve tried to incorporate lookvector, but I don’t know how to properly use it.

image_2021-10-23_102202

-- 		
punchShockwaveEffect.Parent = game.Workspace	
print(character.RightHand.Position)
punchShockwaveEffect.CFrame = character.RightHand.CFrame

A CFrame value contains both positional and rotational data.

Try using orientation instead.

punchShockwaveEffect.Parent = game.Workspace	
print(character.RightHand.Position)
punchShockwaveEffect.Orientation = character.RightHand.Orientation
2 Likes

Yes! thank you, I actual do need the positional value because I’m creating a clone of the punch. But your post made me use orientation and position rather than using CFrame, thank you. I was only focusing on using CFrame, so I didn’t think to use orientation.

		punchShockwaveEffect.Position = character.RightHand.Position
		punchShockwaveEffect.Orientation = character.RightHand.Orientation - Vector3.new(-90,-90,0)