#Why can no one else who's testing the game see this camera?

11 messages · Page 1 of 1 (latest)

feral field
#

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

tall hare
median bridge
#

@feral field

#

i can write you a script

feral field
median bridge
cerulean ploverBOT
#

studio** You are now Level 6! **studio

feral field
median bridge
#

what type of game r u making?

feral field
median bridge