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

Player can't move when changing camera?

Asked by 10 years ago

When I change the camera to scriptable and set the view to look at the players head. The Player can no longer walk.

wait()

local Offset = 10

local Cam = Game.Workspace.CurrentCamera
local Char = Game.Players.LocalPlayer.Character
Cam.CameraType = "Scriptable"

Game:GetService("RunService").RenderStepped:connect(function()
    Cam.CoordinateFrame = CFrame.new(Char.Head.Position + Vector3.new(0,Offset,0),(Char.Head.Position))
end)

1 answer

Log in to vote
-1
Answered by 10 years ago

Yeah, I've faced similar problem and one workaround could be tilting the camera by few degrees, but that's not how I did it. Personally I just recreated movement with body objects.

Ad

Answer this question