Ronaldinho for some reason it gives me a weird error saying [Debug] Script error: Encountered an internal error, notify the brickplanet staff if the problem persists. (System.NullReferenceException at Void SetPlayerTeam(Brickplanet.Scripting.Api. PlayerProxy, System.String) Lua (at [string "InternalStandardLua"]:40)
3 years ago
Hivemind if you ever come back, it's because #1 you should check if hit:IsA("Player") and also you have to pass hit to the SetPlayerTeam function so the game knows who to change the team of