Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do i make so the player stays in his and doesn't change his team even if he died?

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

0

Can you include the script?

0

Included it.

1 answer

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.

This discussion is preserved as it was. New answers, comments, and votes are closed.