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

Make Player Face Camera?

Asked by 8 years ago

Idea Lock a player, and lock it in front of a player at the same time as making the player face forward.
Problem Not sure of the best method to force the player to face the camera.
Code

wait(.5)
while not game.Players.LocalPlayer.Character:FindFirstChild('Head') do wait() end

local cam = workspace.CurrentCamera
cam.CameraType = 'Custom'
cam.CameraType = 'Scriptable'
plr = game.Players.LocalPlayer
local RunService = game:GetService('RunService')
while RunService.Stepped:wait() do
    local head = game.Players.LocalPlayer.Character:FindFirstChild('Head')
        cam.CoordinateFrame = CFrame.new(Vector3.new(head.Position.x, head.Position.y, head.Position.Z - 10),head.Position)
        plr.Character.Torso.Anchored = true
    end
0
Unfortunately I don't think the question is very understandable. As I do not get the idea, I will not be able to post an answer. Sorry. TerrodactyI 173 — 8y

Answer this question