local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local w_Camera = workspace.CurrentCamera
local p_Camera = workspace.Office.plr_Camera
local Mouse = Players.LocalPlayer:GetMouse()
repeat
wait()
print ("Setting up player camera (p_Camera)")
w_Camera.CameraType = Enum.CameraType.Scriptable
until w_Camera.CameraType == Enum.CameraType.Scriptable
print"Player camera setup finished, initalizing (p_Camera)")
local Max = 10
RunService.RenderStepped:Connect(function()
w_Camera.CFrame = p_Camera.CFrame * CFrame.Angles(--[[math.rad((((Mouse.Y - Mouse.ViewSize.Y / 2) / Mouse.ViewSize.Y)) * Max)--]] 0, math.rad((((Mouse.X - Mouse.ViewSize.X / 2) / Mouse.ViewSize.X)) * -Max), 0)
end)
To embed this project on your website, copy the following code and paste it into your website's HTML: