I am not too good with position objects in Roblox.
What would be the best way to set the clients camera position to face their players head like so:
I am not too good with position objects in Roblox.
What would be the best way to set the clients camera position to face their players head like so:
This is a basic example:
local cam = workspace.CurrentCamera
local Player = game.Players.LocalPlayer
local Character = Player.Character or Player.CharacterAdded:Wait()
local HRP = Character.HumanoidRootPart
cam.CameraType = Enum.CameraType.Scriptable -- with this you are taking control of the camera
cam.CFrame = HRP.CFrame * CFrame.new(0, 2, -8) -- with this you are changing position of camera
cam.CFrame = CFrame.new(cam.CFrame.Position, HRP.Position) -- with this you are changing where camera is facing
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.