Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 6 years ago
Edited by OldPalHappy 6 years ago
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

Log in to vote
0
Answered by 6 years ago

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)
Ad

Answer this question