local plr = game.Players.LocalPlayer
local char = plr.Character
local camera = Instance.new("Camera")
camera.Parent = script.Parent.ViewportFrame
local plrcamera = game.Workspace.CurrentCamera
game["Run Service"].Heartbeat:Connect(function(deltatime)
camera.CFrame = plrcamera.CFrame
camera.FieldOfView = plrcamera.FieldOfView
script.Parent.ViewportFrame.CurrentCamera = camera
script.Parent.ViewportFrame.main.Head.CFrame = char.Head.CFrame
script.Parent.ViewportFrame.main.Torso.CFrame = char.Torso.CFrame
script.Parent.ViewportFrame.main["Right Leg"].CFrame = char["Right Leg"].CFrame
script.Parent.ViewportFrame.main["Left Leg"].CFrame = char["Left Leg"].CFrame
script.Parent.ViewportFrame.main["Left Arm"].CFrame = char["Left Arm"].CFrame
script.Parent.ViewportFrame.main["Right Arm"].CFrame = char["Right Arm"].CFrame
end) ```
#why does my viewmodel offset when camera turn
1 messages · Page 1 of 1 (latest)