Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

The CameraOffset is a problem for me, I try to use it but it doenst Work. help?

I'm trying to make the Camera stand to the side of the Character using CameraOffset, but it isn't working. Any Help is Appreciated.

local plr = game.Players.LocalPlayer

function Stuff()
	plr.Character.Humanoid.CameraOffset = Vector3.new(2, 0, -2)
end

1 answer

Hello, I'm not sure if this is what you're looking for, however, I've instead moved it out of a function. v

local plr = game.Players.LocalPlayer
local chr = plr.Character
if chr.Humanoid then
chr.Humanoid.CameraOffset = Vector3.new(2, 0, -2)
end

^ this works, make sure it is parented in the StarterGui as a LocalScript. If this isn't what you are looking for i'd be happy to help you again with a different code.

This discussion is preserved as it was. New answers, comments, and votes are closed.