.OnServerEvent seems to not run at all, there are no errors.
Client:
local rs = game:GetService("ReplicatedStorage")
local enterMatchRemote = rs.EnterMatchRemote
local leaveMatchRemote = rs.LeaveMatchRemote
exitMatchButton.MouseButton1Up:Connect(function()
print("run")
exitMatchButton.Visible = false
leaveMatchRemote:FireServer(player)
camera.CameraType = Enum.CameraType.Custom
end)
Server:
local rs = game:GetService("ReplicatedStorage")
local enterMatchRemote = rs.EnterMatchRemote
local leaveMatchRemote = rs.LeaveMatchRemote
leaveMatchRemote.OnServerEvent:Connect(function(player)
print("remote fired")
for i,v in playerList do
print(i.. " | i")
print(v.. " | v")
end
end)