So this is the scripts,
script.Parent.MouseButton1Click:Connect(function()
game.ReplicatedStorage.Spectate:FireServer()
print("Fired")
end)
Server Script
local event = game.ReplicatedStorage.Spectate
event.OnServerEvent:Connect(function(player)
local camera = game.Workspace.CurrentCamera
if game.Workspace:FindFirstChild("Ball").Handle then
camera.CameraSubject = game.Workspace:FindFirstChild("Ball").Handle
camera.CameraType = Enum.CameraType.Attach
end
end)

3 comments
I don't see your issue
the issue is that the server doesn't have access to the camera
ohh so i need to fire a client?