Remote events won't fire without any error

so i tried to do some code for a game on team changing but i noticed it didn’t work, so i tried debugging, and it still didn’t work, for example:

game.ReplicatedStorage.ChangeTeamAllies.OnServerEvent:Connect(function()
	print("test")
end)

game.ReplicatedStorage.ChangeTeamAxis.OnServerEvent:Connect(function()
	print("test123")
end)

(this is remotehandler code for changeteam)

script.Parent.MouseButton1Click:Connect(function()
	game.ReplicatedStorage.ChangeTeamAxis:FireServer()
end)

for example, if i tried to fire this remote event every time the player clicks on the change team button, it won’t print anything out to the output, so i need help

try

game.ReplicatedStorage:WaitForChild("ChangeTeamAllies").OnServerEvent:Connect(function()
    print("test")
end)

thanks for the help, but it doesn’t work for me

try printing something in the remotehandler code for changeteam

script.Parent.MouseButton1Click:Connect(function()
    print("fired")
    game.ReplicatedStorage.ChangeTeamAxis:FireServer()
end)

see if it prints

it did print out the text but fireserver won’t work

script.Parent.Activated:Connect(function()
print("firing")
game.ReplicatedStorage.ChangeTeamAxis:FireServer()
end)

Make sure the server script is in ServerScriptService. Additionally, try printing out the player argument as well.

thanks, i just noticed i accidentally put the server script in replicatedservice