of     1   

Vercron
#211653125Friday, March 10, 2017 6:04 PM GMT

/NNPExN9R paste bin want to be able to type :respawn player1 then respawn Player1 right now it says that player is not a member of players (duh) what2do
Vertillian
#211653981Friday, March 10, 2017 6:25 PM GMT

So far anyone can say the prefix?
Vertillian
#211654123Friday, March 10, 2017 6:27 PM GMT

Perhaps replace line 17 with: local plrz = set.GetPlayers(plr, args[1]:lower()) for i, v in pairs(plrz) do coroutine.wrap(function() if v and v.Character then v:LoadCharacter() set.Remote(v,'Function','SetView','reset') end end)() end end)
Vercron
#211654359Friday, March 10, 2017 6:33 PM GMT

local _M = {} _M.admins = {"Player1", "Vercron"} -- Admins _M.prefix = ":" -- prefix :command by default _M.dTargetaC = false -- set to false if you dont want crashed players to be removed after dTargetaCTime's value amount of time _M.dTargetaCTime = 5 -- time to wait in seconds to remove someone after he/she has been crashed !IMPORTANT! dTargetaC has to be true for this to work --[===[ You can change the name of the "Vercron's Hidden Admin". But not this script's name (Admin_Settings). Commands (Basically what you're used to): Player1,Player2,Player3 is an example you can do an infinite amount of players seperated by a comma :respawn Player1,Player2,Player3 etc :respawn all :respawn others :respawn me :kill Player1,Player2,Player3 etc :kill all :kill others :kill me :teleport Player1,Player2,Player3 me :teleport Player4,Player2,Player3 Player1 :teleport all Player1 :teleport all me :teleport others Player1 :teleport others me :teleport me Player1 :team all TeamName :team me TeamName :team Player1,Player2,Player3 TeamName :team others TeamName :lag Player1,Player2,Player3 :lag me :lag others :lag all :unlag Player1,Player2,Player3 :unlag me :unlag others :unlag all :health Player1,Player2,Player3 200 :health me 200 :health others 200 :health all 200 :crash Player1,Player2,Player3 :crash me :crash others :crash all :music 123456789 :unmusic :fogon :fogoff --]===] return _M that is how prefix is decided its from modulescript
dr_pharm
#211654739Friday, March 10, 2017 6:40 PM GMT

Player=game:service'Players'.Player; function GetTargets(who,speaker) local found={}; if who=="all" then return game:service'Players':GetPlayers(); elseif who=="me" then return speaker; elseif who=="others" then for i,p in pairs(game:service'Players':GetPlayers()) do if p~=speaker then table.insert(found,p); end; else for i,p in pairs(game:service'Players':GetPlayers()) do if p.Name:lower():sub(1,#who) then table.insert(found,p); end; end; end; return found; end; function onChatted(speaker,msg) if msg:lower:sub(1,9)==":respawn " then local targets=GetTargets(msg:sub(10):lower()) for i,x in pairs(targets) ## ################## end; end; end Player.Chatted:connect(function(msg) onChatted(Player,msg); end);
Vercron
#211655031Friday, March 10, 2017 6:46 PM GMT

that moment when c&g is more useful then scripters forum.. thanks got a bit more of an idea now (^:
dr_pharm
#211655109Friday, March 10, 2017 6:48 PM GMT

np sorry for poor formating in a league game lol
Vercron
#211716414Saturday, March 11, 2017 4:50 PM GMT

playerS = game:service'Players' function getTargets(who,speaker) local found = {} if who == "all" then for i,v in pairs(playerS:GetPlayers()) do table.insert(found,v.Name) end return found elseif who == "me" then table.insert(found,speaker) return found elseif who == "others" then for i,v in pairs(playerS:GetPlayers()) do if v ~= speaker then table.insert(found,v.Name) end end else for i,v in pairs(playerS:GetPlayers()) do if string.sub(string.lower(v.Name), 1, #who) then table.insert(found,v.Name) end end end return found end function onChatted(speaker,msg) if string.sub(string.lower(msg), 1, 9) == ":respawn " then local targets = getTargets(string.sub(string.lower(msg), 10),speaker.Name) for i,v in pairs(targets) do print(i.." "..v) end end end playerS.PlayerAdded:connect(function(player) player.Chatted:connect(function(msg) onChatted(player,msg) end) end) followed your code even tho some was hashed out works now ty

    of     1