My script is behaving weird. Here’s the code:
local Mouse = game.Players.LocalPlayer:GetMouse()
local Camera = game.Workspace.CurrentCamera
local Scale = 50
function Update()
local Center = Vector2.new(Camera.ViewportSize.X/2, Camera.ViewportSize.Y/2)
local MoveVector = Vector3.new((Mouse.X-Center.X)/Scale, (Mouse.Y-Center.Y)/Scale, 10)
Camera.CFrame = CFrame.Angles(math.rad(-(Mouse.Y-Center.Y)/Scale),math.rad(-(Mouse.X-Center.X)/Scale),0)
end
game:GetService("RunService").RenderStepped:Connect(Update)
Here’s what it does:
The camera is basically under the map… Is there a way to fix this?
Basically it needs to be higher