How to use humanoid camera offset?

This is my local script under starter character scripts

game.Players.PlayerAdded:Connect(function(plr)
	plr.CharacterAdded:Connect(function(char)
		local hum = char.Humanoid
		hum.CameraOffset = Vector3.new(0,100,0)
	end)
end)

no matter what value i set it to absolutely nothing happens

you will intuitively understand if you paste this code in one localscript location, in StarterCharacterScripts.


local character = script.Parent


local humanoid = character:FindFirstChildOfClass('Humanoid')


humanoid.CameraOffset = Vector3.new(0,25,0)

local hrp = character:FindFirstChild('HumanoidRootPart')

game:GetService('RunService').RenderStepped:Connect(function()
	workspace.CurrentCamera.CFrame = CFrame.lookAt(workspace.CurrentCamera.CFrame.Position, hrp.Position)
end)

you can disable the RunService.RenderStepped Connection.

I see that now it does something but i broke one of my other camera systems what a pain

Is there a way to make it so that I can use my mouse to move my camera around? Im trying to create an over the shoulder camera system.

ok nvm this post solved my problem

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.