Hello! I'm new for scripting teams and I'm making my tycoon with no kits or help from the toolbox. But I ran into a problem Where you can change teams even if you are in one so Please help. The script:
local sL = script.Parent local claimed = false sL.Touched:Connect(function(hit) if game.Players:FindFirstChild(hit.Parent.Name)and claimed == false then claimed = true local player = game.Players:FindFirstChild(hit.Parent.Name) player.Neutral = false player.Team = game.Teams.Blue if not player.Team.Blue then end end end)
I honestly don't think you need to do anything as long as no team has AutoAssign or whatever that boolean is called to automatically assign someone to a team.