Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

[SOLVED]how do i make an enemy look at me (my old position) when i punch?

how do i make an enemy look at me (my old HumanoidRootPart position) when i punch? no need for the punch script i just want someone to explain the mathematics for me please :) thanks

2 answers

Sorry for late response but ive already solved it i basically did Enemy.HumanoidRootPart.CFrame = CFrame.New (Enemy.HumanoidRootPart.Position, playerCharacter.HumanoidRootPart.Position * Vector3.new(1,0,1) + Enemy.HumanoidRootPart.Position * Vector3.new(0,1,0))

This discussion is preserved as it was. New answers, comments, and votes are closed.