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

How do I move CameraOffset?

It is a Property of Humanoid. So, the player says something.. and the script functions.. plr.Character.Humanoid.CameraOffset = Vector3.new(0,250,0)

plr = Player

3 comments

1

You asked a question and seemed to have solved it. Are you looking to make sure your code is correct or are you asking what's wrong with it?

0

Erm, I can't tell if you just messed up the paste, but you don't define "plr" until after the line is run. That would give an output (meaning, if there's an output, please post it)

0

All I need to know is how to position a CameraOffset of a Humanoid.

1 answer

Your code to set the CameraOffset in the OP is correct. Are you having trouble defining player?

local player = game.Players.LocalPlayer
repeat wait() until player.Character--Wait for the character to load

player.Character:WaitForChild("Humanoid").CameraOffset = Vector3.new(0,250,0)
--Set the humanoid's CameraOffset after it is created

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