So I don't know why it doesn't check the player's team , "player" is well assigned
event.OnServerEvent:Connect(function(player, request)
if request == "Starting" and player.Team == game.Teams.Host then
event:FireAllClients("Startit")
end
end)
So I don't know why it doesn't check the player's team , "player" is well assigned
event.OnServerEvent:Connect(function(player, request)
if request == "Starting" and player.Team == game.Teams.Host then
event:FireAllClients("Startit")
end
end)
local Teams = game:GetService("Teams")
if player.Team == Teams.Host then
--code
end
This discussion is preserved as it was. New answers, comments, and votes are closed.
10 comments
Didn't work
print(player.Name) returns my name
the only thing i can think of then is that in your if statement "request" isnt "Starting"
It is, I checked without the player team thing and it works
try adding a print inside the if statement and let me know if it prints
Does not print after "if request == "Starting" and player.Team == game.Teams.Host then", but before yes. If its only " "if request == "Starting"" it works
and you're on the host team right?
Yup
Im clueless
Sameee