How did this game get his head to follow the mouse on the Y axis (as in looking up or down and not left or right)
(Game Link = "http://www.roblox.com/games/15110690/Zombie-Defense-Tycoon")
I attempted it but my one moves in ALL directions which I don't want it to, I want it to only work on the Y axis, when the player looks up and down.
utl.USI.InputChanged:connect(function(input)
if (input.UserInputType == Enum.UserInputType.MouseMovement) then
weld.C1 = CFrame.new(char.Head.CFrame.p,mouse.Hit.p):toObjectSpace(char.Torso.CFrame)
end
end

3 comments
Thank you, it works and only follows the Y axis!
No problem.
Would there be a way to make this so it only rotates horizontally?