I want to make a 2 player 2D style game with a Surface Gui and Camera fixing for each player but im bad at camera manipulation i gave a try but it did not work :
local function LookAtFace(part, face, distance) face = face or Enum.NormalId.Front distance = distance or 10 if (type(face) == "string") then face = Enum.NormalId[face] end local position = part.Position local offset = part.CFrame:vectorToWorldSpace(Vector3.FromNormalId(face)) -- Gets the Vector3 from the face you put in and rotate it to world space workspace.CurrentCamera.CoordinateFrame = CFrame.new(position + distance*offset, position) end workspace.CurrentCamera.CameraType = Enum.CameraType.Scriptable LookAtFace(game.Workspace.GameGUI, "Front", 20)
i put this script in workspace maybe its the problem