I need help with Camera Manipulation

Aight, so I’ve been trying how to figure out how to make the CameraManipulation follow the cursor.
Example:
https://gyazo.com/50d9a2ccaf82a019f68b982b86296fc7
Here is my script:
local Player = game.Players.LocalPlayer

local Character = Player.Character or Player.CharacterAdded:Wait()

local Camera = workspace.CurrentCamera

repeat wait()

Camera.CameraType = Enum.CameraType.Scriptable

until Camera.CameraType == Enum.CameraType.Scriptable

Camera.CFrame = workspace.CameraPart.CFrame

PlayButton.MouseButton1Click:Connect(function()

Camera.CameraType = Enum.CameraType.Custom

PlayButton:Destroy()

end)

Try this:

local player = game.Players.LocalPlayer
local mouse = player:GetMouse()
local cam = -- workspace.CurrentCamera
cam.CFrame = cam.CFrame * CFrame.Angles(math.asin((mouse.Hit.p - mouse.Origin.p).unit.y), 0, 0)

Doesn’t work. @DindinYT37
30 chars