Team Issues with UIButton

So in my script below, the UIButton can only be accessed to those who are teamed on host. When I test my game, team myself Host than refresh myself. The button is there, but when I press the button, the script doesn’t execute. I am not sure why and need some help.

local ReplicatedStorage = game:GetService("ReplicatedStorage")
local ToggleUI = ReplicatedStorage.ToggleUI

local Player = game.Players.LocalPlayer
local CaptainList = Player:WaitForChild("PlayerGui"):WaitForChild("CaptainList")
local UIButton = Player:WaitForChild("PlayerGui"):WaitForChild("SendCaptainScreenGui").SendCaptain 

UIButton.MouseButton1Up:Connect(function()
	ToggleUI:FireServer()
end)

ToggleUI.OnClientEvent:Connect(function()
	for _, descendant in pairs(CaptainList:GetDescendants()) do
		if descendant:IsA("TextBox") or descendant:IsA("ScrollingFrame") or descendant:IsA("TextButton") then	
			descendant.Visible = true
		else
			print("Ignore")
		end
	end
end)

Just confirming, does the server return the remote back to the client or does the request never make it to the server? Basically, where does the remote get stuck in the process? Also, you might want to consider using a RemoteFunction instead of a RemoteEvent since it seems like you are just getting information from the server and using the returned information which would be perfect for a RemoteFunction.

If I’m not wrong, I think the request never makes it to the server.

I also don’t know if this interferes, but the UIButton can only be seen for the Host team and I want the UI that becomes visible only to be seen by the Lobby team.