Here is my script for the shift lock
local cam = game.Workspace.CurrentCamera
local RunService = game:GetService("RunService")
local char = script.Parent
local hum = char:FindFirstChild("Humanoid")
RunService.RenderStepped:Connect(function ()
local x,y,z = cam.CFrame:ToOrientation()
char.HumanoidRootPart.CFrame = CFrame.Angles(0,y,0)
end)
right now the players position stays at 0,0,0 how would i add the Humanoid Root Parts position into this CFrame without it affecting the angles?