Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I move CameraOffset?

Asked by 9 years ago

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

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? bobafett3544 198 — 9y
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) RoboFrog 400 — 9y
0
All I need to know is how to position a CameraOffset of a Humanoid. Orbviox 0 — 9y

1 answer

Log in to vote
0
Answered by 9 years ago

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
Ad

Answer this question