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

0

I don't see your issue

0

the issue is that the server doesn't have access to the camera

0

ohh so i need to fire a client?