Hi.
This script gets deltas from the mouse, insert math into camera.CFrame along with collected deltas and make the camera angles move.
But it moves on the global axis...
local function GetMouseMovement()
return xangle, yangle, 0
end
game:GetService("RunService").RenderStepped:connect(function()
local mousemovement = GetMouseMovement()
local HeadPosition = game.Players.LocalPlayer.Character.Head.Position
camera.CoordinateFrame = CFrame.new(HeadPosition)
camera.CFrame = camera.CFrame * CFrame.Angles(math.rad(-yangle), math.rad(-xangle), 0)-- needs 2 be local
end)
What do I need to do to make it local.

1 comment
no... What I have the delta of the mouse doing the angle work. My question is how do I turn that for local angles to rotate the camera.