Vercron
|
  |
| Joined: 18 Sep 2010 |
| Total Posts: 9418 |
|
|
| 12 Mar 2017 08:56 AM |
| assume the command is the following: :respawn player,player,player Playerlist: Player1 Player2 Player3 command is already broken down and whats left is a table with the targets (1 = player) (2 = player) (3 = player) ########## ## a table from game.Players:GetPlayers() and inserted into the allPlayers table targetTableName is an argument in the function and contains the targets that were named earlier in this thread (1 = player etc) for i=1, #allPlayers do if targetTableName[i] then if string.sub(string.lower(allPlayers[i]),1,string.len(targetTableName[i])) == string.sub(string.lower(targetTableName[i]),1,string.len(targetTableName[i])) then table.insert(potTargets,allPlayers[i]) end end end So what I want to do is when someone types :respawn player then player is not detailed enough since player has 3 potential targets and you will have to type player1 in order to actually respawn player1 |
|
|
| Report Abuse |
|
Vercron
|
  |
| Joined: 18 Sep 2010 |
| Total Posts: 9418 |
|
|
| 12 Mar 2017 08:56 AM |
nevermind cba with roblox filtering ill find out myself
|
|
|
| Report Abuse |
|