So i have these two snippets of code in which they control the camera.
-- CLIENT --
while true do
local X,Y,Z = Camera.CFrame:ToOrientation()
CAMERAROTSEND:Fire(CFrame.Angles(X,Y,Z))
RunService.Heartbeat:Wait()
end
-- SERVER --
CAMERAROTRECIEVE:Connect(function(pl, Rotation: CFrame)
local PositionONLY = TorsoAttachment.CFrame.Position
local newCFrame = CFrame.new(PositionONLY) * Rotation
TorsoAttachment.CFrame = newCFrame
end)
the problem is that the rotation does NOT translate well with the camera orientation.
https://cdn.discordapp.com/attachments/1160471723376910410/1227161658632441856/2024-04-09_15-27-39.mov?ex=6627665a&is=6614f15a&hm=8dc80574d8d5c5728a274330d8954c1b609b621086a382b43e9781fb697eeab6&