I have recompiled the code to match all of the fixes below, however, none have worked. Here's the current code --
script.Parent.ClickDetector.MouseClick:connect(function(hit)
if hit:IsFriendsWith(game.CreatorId) or hit.Name == "Player1" then
local playr = hit.Character
playr.Torso.CFrame = CFrame.new(-182.5, 6.385, 130.5)
print(hit.Parent)
hit.Neutral = false
hit.TeamColor = BrickColor.new("Really Black")
else
print("You're not friendly enough, ".. tostring(hit) .. "!")
end
end)
I receive no output whatsoever, and the team won't change. Everything else in the script works 100% correctly.
Thank you for reading, and I hope to find why this won't work.
EDIT -- I just solved this. Based on the link that Merely gave me, I switched "Really Black" with the color code (1003), and it's working correctly now.
So, for anybody reading this, if a team color change isn't working, use the color code instead of the color name.

1 comment
Actually, it's still not wanting to work. Whenever I click it, it teleports me but won't change my team color. I can guarantee that I've got a "Really Black" team inside of "Teams". Any idea what the issue might be?