I made a camera manipulating script but it glitches out if you move the mouse to far to the sides or the screen. I'm trying to make a camera move smoothly and doesn't move so much.
Here's the script :
local plr = game.Players.LocalPlayer
local mouse = plr:GetMouse()
game.Workspace.CurrentCamera.CameraType = Enum.CameraType.Scriptable
game.Workspace.CurrentCamera.CameraSubject = workspace.CameraPart
game.Workspace.CurrentCamera.CFrame = workspace.CameraPart.CFrame
mouse.Move:connect(function()
game.Workspace.CurrentCamera.CFrame = CFrame.new(workspace.CameraPart.Position,Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z))
end)
I wanted to create like this (it isn't mine but I got inspiration from it) https://twitter.com/Preacherism/status/820396489440632832
Please help? Thank you
