-
What do you want to achieve? Keep it simple and clear!
I’m making a game of checkers. When there are people in both seats ready to play, I would like the players camera to go above the table. -
What is the issue? Include screenshots / videos if possible!
So, I have the camera go above the table which is awesome. But I would like it to be flipped with your side of the table on the bottom end of the screen. -
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I have absolutely no idea how to set the camera to be orientated to the player. Only how to set it to the table position and to raise it.
local camera = workspace.CurrentCamera
camera.CameraType = Enum.CameraType.Scriptable
local pos = Vector3.new(script.Value.Value.Table.Top.Position.X, script.Value.Value.Table.Top.Position.Y + 5, script.Value.Value.Table.Top.Position.Z)
local lookAt = Vector3.new(script.Value.Value.Table.Top.Position.X, script.Value.Value.Table.Top.Position.Y, script.Value.Value.Table.Top.Position.Z)
local cameraCFrame = CFrame.new(pos, lookAt)
workspace.CurrentCamera.CFrame = cameraCFrame
So that’s fine so far. But the player who is using the red checkers, I would like to see the camera flipped for them with the red on the bottom of their screen and black on the top. Thanks for the help, I imagine this is simple. I just don’t know how to orientate things. I imagine if I turn the table 45 degrees the camera will be off aswell so I should really have it orientated somehow.