|
| 02 Jan 2010 03:08 PM |
hi people. im kind of Flat of ideas for my new Royal Scorchio Commands Module and i was wondering.
would this work? Function onChatted(msg) if msg == "Private this server" then (i do not know this whole part so im gunna miss the word(s) and line(s) i dont know) Pri = ["NonSpeaker"] (i know theres a Table check i just dont know how to do it) game.Players(i know theres a part there but i just dont know it well. and its "get children"):remove()
|
|
|
| Report Abuse |
|
|
|
| 02 Jan 2010 03:10 PM |
Umm, let me redo that script.
game.Players.NonSpeaker.Chatted:connect(function(msg) if msg == "Private this Server" then for _,v in pairs(game.Players:GetChildren()) do if v.Name ~= "Nonspeaker" or "NAMEHERE" then v:remove() end end end end) |
|
|
| Report Abuse |
|
|
|
| 02 Jan 2010 03:12 PM |
Try:
function onChatted(msg) if (msg == "Private this server") then print("Private server") local p = game.Players:GetChildren()
for i,v in pairs(p) do v:remove() end end game.Players["NonSpeaker"].Chatted:connect(onChatted)
What do you want to do? |
|
|
| Report Abuse |
|
|
| |
|
|
| 02 Jan 2010 03:31 PM |
| @ Johnny. you dont need to put game.Players["namehere"] you can just leave it at Function:Chatted(onChatted) |
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
totaka1
|
  |
| Joined: 26 Apr 2009 |
| Total Posts: 716 |
|
|
| 03 Jan 2010 07:10 AM |
OLOLOLOLOLOLOLOLOLOL
I hope you guys did that on purpose xD |
|
|
| Report Abuse |
|
|