Yeah, title doesn't make sense a bit. So basically, I'm trying to make soemthing that takes the LocalPlayer who touched the part, and then finds what team they are on and prints that they are on the right/wrong team. I have this so far:
function touch(hit)
if hit.Parent:FindFirstChild("Humanoid") ~= nil and hit.Parent.TeamColor == BrickColor.new("Bright red")then
print("right team")
end
end
script.Parent.Touched:connect(touch)
Sorry If I messed up, but any help will be good! Thanks!

1 comment
You should probably edit your title.