I need help how can I make this script only choose one person and not like 3 or 4 . Code:
function selectCharacter(person) --XD this got a wee-bit confusing!
local chosen = person[math.random(1,#person)]
if string.find(tagger.Value,chosen.Name) == nil then
if chosen:findFirstChild("ItStatus") ~= nil then
chosen:findFirstChild("ItStatus").Value = true
end
if chosen:findFirstChild("leaderstats") ~= nil then chosen:findFirstChild("leaderstats").Value = 0
end
local hum = chosen.Character:findFirstChild("Humanoid")
if hum ~= nil then
hum.WalkSpeed = 20
end
local parts = chosen.Character:GetChildren()
for i = 1,#parts do
if parts[i].className == "Part" then
parts[i].Anchored = false
end end
wait()
local tagscript = chosen.Character:findFirstChild("Torso"):findFirstChild("TagFlee")
if tagscript ~= nil then
tagscript.Name = "Murderer"
end
local tagblock = chosen.Character:findFirstChild("TagBlock")
if tagblock ~= nil then
tagblock.Parent = nil
end
dubHat(chosen)
tagger.Value = tagger.Value..", "..chosen.Name
else selectCharacter(person) end end
