How to change prefix/command for auto team command?

hi with the auto teaming script vidio how can I make it so the prefix is “!” and the command is !autogroup to make it have it team people teams without creating new ones!

Hi!

This is super easy.

In your script change the prefix variable:

local prefix = "/"

Further down in the script:

game.Players.PlayerAdded:Connect(function(Player)
	if Player:GetRankInGroup(GroupId) >= MinRank then
		Player.Chatted:Connect(function(msg)
			if msg == prefix.. "assign" then
				CreateTeams()
				AssignTeams()
			end
		end)
	end
end)

Change if msg == prefix.. "assign" then to if msg == prefix.. "choice" then

1 Like

what i ment is for eg group a,b,c are trainees and so on

If the fix above was the fix to your original question you should mark it as solution, if you have another question, then create another scripting support post!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.