So, I am trying to make something check if you are a team but its not working it keeps saying that I am not on the team but I am, Could anyone help?
local players = game:GetService("Players")
local Teams = game:GetService("Teams")
script.Parent.Attachment.ProximityPrompt.Triggered:Connect(function(player)
if player.Team == Teams.engineer then
script.Parent.Transparency = 0
script.Parent.Attachment.ProximityPrompt.MaxActivationDistance = 0
else
print("Not on team")
end
end)

2 comments
Instead of doing "Teams.engineer" try doing "engineer". I'm not too sure, but that MIGHT work.
So, "if player.Team == "engineer" then"