#why does my viewmodel offset when camera turn

1 messages · Page 1 of 1 (latest)

ancient sentinel
#
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) ```
#

the yellow is me

barren wadi
#

which runservice method are you using

ancient sentinel
#

heartbeat

barren wadi
#

my fualt

#

im restarted

#

its only local right

ancient sentinel
#

ye

barren wadi
#

like only you can see it or

#

ok then use renderstepped

ancient sentinel
#

k

#

imma try

barren wadi
#

k

ancient sentinel
#

ye it worked

#

ty

barren wadi
#

hurray