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

Why is this head rotation not working?

Asked by
Scriptecx 124
8 years ago

So here is the run down. I'm trying to have the head rotate up and down by the neck according to the mouse position, but its acting funky.

Here is the code:

Neck.C0 = CFrame.new(0,1.5,0) *  CFrame.Angles(math.sin((Mouse.hit.p - Mouse.Origin.p).unit.y), 0, 0)

You can see what its doing here: http://www.roblox.com/games/296695874/SS-Development

Please help, Ive tried everything I know to do.

0
Try to connect it to the event "Move" of the instance called "Mouse". Vitou 65 — 8y
0
I fixed it, never mind. Scriptecx 124 — 8y

Answer this question