I am making a ProximityPrompt that will only work if a player is in a certain team but i can’t manage to get it to work.
script.Parent.Triggered:Connect(function(plr)
if plr.TeamColor == game.Teams.Cientista.TeamColor then
print("in team")
else
print("not in team")
end
end)
Besides team color i have also tried the Team Instance in game.Teams.
When you change the player’s team or generally anything manually, it by default is changed like in a local script. Therefore, serverside stuff cannot see this change. Try clicking the “Client” thing on the topbar while in testing mode to switch to server mode and then you should be able to apply changes normally.