local RunService = game:GetService("RunService")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local GameFunctions = ReplicatedStorage:WaitForChild("GameFunctions")
local CurrentCamera = GameFunctions.CurrentCamera
RunService.RenderStepped:Connect(function()
local SecurityCameras = workspace.SecurityCameras
local w_Camera = workspace.CurrentCamera
local p_Camera = CurrentCamera.Value
w_Camera.CFrame = p_Camera.CFrame * CFrame.Angles(0, math.rad((((Mouse.X - Mouse.ViewSizeX / 2) / Mouse.ViewSizeX)) * - Max), 0)
end)
To embed this project on your website, copy the following code and paste it into your website's HTML: