local target = Workspace.Grass local camera = Workspace.CurrentCamera camera.CameraType = Enum.CameraType.Scriptable camera.CameraSubject = target local angle = 100 local i = 0 while wait() do camera.CoordinateFrame = CFrame.new(target.Position) * CFrame.Angles(0, angle, 0) * CFrame.new(0, 100, 200) angle = angle + math.rad(1) script.Parent.StartGui.ClassFrame.Buttons.PlayKnightButton.MouseButton1Down:connect(function(onClick) print("Works") camera.CameraType = Enum.CameraType.Custom game.Workspace.CurrentCamera.CameraSubject = game.Players.LocalPlayer.Character.Humanoid end) end
I am trying to get it so when a player joins the camera rotates around the baseplate. That works, but I want when the PlayKnightButton is presseed it changes the camera to the normal positon. It checks the mouse and does print "Works" and it changes the cameratype to custom and the subject to humanoid, but the camera is on a wierd angle. Any ideas?