generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
We use cookies to offer you a better experience. By using Roblox.com, you are agreeing to our Privacy and Cookie Policy.
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Private Server Script?

Previous Thread :: Next Thread 
NonSpeaker is not online. NonSpeaker
Joined: 24 Dec 2007
Total Posts: 1279
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
moneypoll9317 is not online. moneypoll9317
Joined: 29 Apr 2009
Total Posts: 2256
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
JohnnyThunder2 is not online. JohnnyThunder2
Joined: 11 Apr 2009
Total Posts: 1043
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
JohnnyThunder2 is not online. JohnnyThunder2
Joined: 11 Apr 2009
Total Posts: 1043
02 Jan 2010 03:12 PM
nvm I see
Report Abuse
NonSpeaker is not online. NonSpeaker
Joined: 24 Dec 2007
Total Posts: 1279
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
Ashispro97 is not online. Ashispro97
Joined: 11 Oct 2008
Total Posts: 5147
02 Jan 2010 03:50 PM
...
Report Abuse
NonSpeaker is not online. NonSpeaker
Joined: 24 Dec 2007
Total Posts: 1279
02 Jan 2010 04:02 PM
both scripts were a fail
Report Abuse
JohnnyThunder2 is not online. JohnnyThunder2
Joined: 11 Apr 2009
Total Posts: 1043
03 Jan 2010 05:16 AM
no, moneypoll's works
Report Abuse
totaka1 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image