Hey. I have a script that triggers a remote event if a player's value is false and a player's team is not a specific team. The problem is that if the value is false and the player is part of that specific team the remote event is still triggered. Help? Script:
for i, v in pairs(Players) do
local Team = game:GetService("Teams")["Police"]
if Players[i].Robbing.Value == false and Players[i].Team ~= Team then
game.ReplicatedStorage.ShowRobberyGUI:FireClient(Players[i])
Players[i].Robbing.Value = true
end
end

2 comments
You need to explain the changes. (saying this before a mod sees it)
@Pupppy44 don't worry, next time I'll be faster