local U=require("\064\115\104\097\114\101\100\047\099\111\109\112\111\110\101\110\116\115")local v=require("\064\115\104\097\114\101\100\047\102\114\097\109\101")local r=require("\064\115\104\097\114\101\100\047\119\111\114\108\100")return v.on("\112\104\121\115\105\099\115",function()for U,v,r in(r:query(U.SimulatedRig,U.Input)):iter()do local L=CFrame.fromEulerAnglesXYZ(0,math.rad(r.camera_vector.Y),0)v.attachment.CFrame=L end end)
local components = require("@shared/components")
local frame = require("@shared/frame")
local world = require("@shared/world")

return frame.on("physics", function()
	for _, LocalHumanoid, HumanoidInput in world:query(components.SimulatedRig, components.Input):iter() do
		local new_attachment_coordinate_frame = CFrame.fromEulerAnglesXYZ(0, math.rad(HumanoidInput.camera_vector.Y), 0)

		LocalHumanoid.attachment.CFrame = new_attachment_coordinate_frame
	end
end)
