ok so, I pretty much completly remade robloxs first person perspective and i have everything made. i have the camera set perfectly but i cant get my character to rotate. i have been doing alot of research trying to figure out how to way to point the character toward the mouse, as of right now the only method i know is this
char.UpperTorso.CFrame = CFrame.new(char.UpperTorso.CFrame,rot) -- rot being the mouse
-- position
the problem with this is if i put this in a heartbeat service its constantly updating the position of the player, so that leads to whenever the player walks it bugs. is there another method of rotating the player towards the mouse?

7 comments
it works awesome but what exactly is dir getting? and what does math.asin do?
well
dir is essentially getting where the mouse is facing relative to the root
and asin is to transform that into rotational numbers
hm alright thanks alot. i would up you but im not a high enough level yet lol
lol ok
cant u just use a bodygyro