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)

2 comments
Can you include the script?
Included it.