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

Why does the character look down at the mouse? [Solved]

rot=Vector3.new(mouse.Hit.X,0,mouse.Hit.Z)
p.Character.HumanoidRootPart.CFrame=CFrame.new(p.Character.HumanoidRootPart.Position,rot)

How can I fix it to look straight?

1 answer

Nevermind I found the answer

		rot=Vector3.new(mouse.Hit.p.X,p.Character.HumanoidRootPart.Position.Y,mouse.Hit.p.Z)	p.Character.HumanoidRootPart.CFrame=CFrame.new(p.Character.HumanoidRootPart.Position,rot)

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