Gui clones as many as player count

      elseif players.Name:lower():match(args[2]:lower()) then
        local msg = game.Chat:FilterStringAsync(string.sub(msg,#cmd+#args[2]+2),player,player)
        local gui = script.Parent.Guis.PMFrame:Clone()
        gui.Bottom.TextLabel.Text = player.Name..": "..msg
        gui.Messeger.Value = player.Name
        gui.Parent = players.PlayerGui.NotifGui.ScrollingFrame
        log(cmd)
      end

This is my :pm command for my admin, whenever there’s more then 1 people it clones as much as the player count in game, why?

1 Like

What is args[2] defined as? Maybe you’re not checking for the right message?

I don’t think that’s the problem, but args is string.split(msg, " ")