I have this script to make the camera follow your cursor movements, but no one else can see it when they press play
Script is as follows :
local cam = workspace.CurrentCamera
local mouse = game:GetService("Players").LocalPlayer:GetMouse()
--// Set cam
repeat
wait()
cam.CameraType = Enum.CameraType.Scriptable
until cam.CameraType == Enum.CameraType.Scriptable
--// Move cam
local maxTilt = 10
local camPart = workspace:WaitForChild("CameraPart") -- Wait for the CameraPart to appear in the workspace
game:GetService("RunService").RenderStepped:Connect(function()
cam.CFrame = camPart.CFrame * CFrame.Angles(
math.rad((((mouse.Y - mouse.ViewSizeY / 2) / mouse.ViewSizeY)) * -maxTilt),
math.rad((((mouse.X - mouse.ViewSizeX / 2) / mouse.ViewSizeX)) * -maxTilt),
0
)
end)
script.Parent.PlayButton.MouseButton1Up:Connect(function()
cam.CameraType = Enum.CameraType.Custom
script.Parent:Destroy()
end)
Like i said, works perfectly for me, but no one else can see it. We are all on the same experience and version of the studio
** You are now Level 6! **