local RemoteEvent = game.ReplicatedStorage.ChangeTeam
local Humans = "Dark blue"
local Zombies = "Really red"
game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
character:WaitForChild("Humanoid").Died:Connect(function()
print(player.Team.Name)
if player.Team.Name == "Blue" then
RemoteEvent:FireServer(BrickColor.new(Zombies))
else
RemoteEvent:FireServer(BrickColor.new(Humans))
wait(0.5)
end
end)
end)
end)
This is inside a script. The point is that when a player dies it changes to an opposite team , in this case blue to red , vice versa.
When I die the output says this "FireServer can only be called from the client".

1 comment
:FireServer is used for local scripts, :FireAllClients() is used for normal scripts the both are the same thing. Just make sure you are using the right one.