the camera is set to the part, i want to the player’s camera aim to a block.
i cant understand whats your point of this
This is not the best way to do it, but it’s a quick fix and I do need to leave now. Put this in a LocalScript inside StarterPlayer.StarterCharacterScripts.
game.Players.LocalPlayer.CharacterAdded:wait()
wait()
local character = game.Players.LocalPlayer.Character
game.Workspace.CurrentCamera.CameraType = Enum.CameraType.Scriptable
while true do
wait(.016)
game.Workspace.CurrentCamera.CFrame = CFrame.new((character.Head.CFrame * CFrame.new(0, 5, 0)).Position, game.Workspace.Part.Position)
end
that means the camera is set to the object
workspace.CurrentCamera.CFrame = CFrame.new((character.Head.CFrame CFrame.new(0, 5, 0)).Position, workspace.Part.Position)
camera.CameraSubject = target
camera.CFrame = target.CFrame
camera.FieldOfView = 46 -- not necessary
camera:WorldToViewportPoint(target.CFrame)
or you can do it on player added like @imalex4 did
1 Like
I’m meaning that the player camera looks to a part, like Dragon Ball Rage, for example, you press a button and a gui appear, on clicking on a name, the camera will start going to aim the character you selected…
It worked! Thanks you very much!