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
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: How can I create a SERVER script?

Previous Thread :: Next Thread 
jki is not online. jki
Joined: 23 Aug 2008
Total Posts: 4629
06 Sep 2013 10:31 PM
I'd like to make a script like on Dungeon Delver, the creator Gl0in2, has created a script where on the chatbar it says (SERVER) Jki has entered << or something like that.

How could I create that?
Report Abuse
dog456pop248 is not online. dog456pop248
Joined: 24 Aug 2008
Total Posts: 3977
06 Sep 2013 10:32 PM
Use the PlayerAdded event of the Players service.
Report Abuse
stephen1182 is not online. stephen1182
Joined: 31 Aug 2010
Total Posts: 4003
06 Sep 2013 10:33 PM
.Text = "(SERVER) "..player.Name.." has entered the game. Whoop-dee-doo."
Report Abuse
dog456pop248 is not online. dog456pop248
Joined: 24 Aug 2008
Total Posts: 3977
06 Sep 2013 10:34 PM
@Stephen

I bet you 10 Internets that he'll just post that one like into a script and say 'it doesn't work'
Report Abuse
stephen1182 is not online. stephen1182
Joined: 31 Aug 2010
Total Posts: 4003
06 Sep 2013 10:35 PM
LOL
Report Abuse
jki is not online. jki
Joined: 23 Aug 2008
Total Posts: 4629
06 Sep 2013 10:36 PM
I didn't paste it into a script, I just woke up and I'm trying to find the PlayersAddedEvent (something like that) in studio...

Where is it? XD
Report Abuse
stephen1182 is not online. stephen1182
Joined: 31 Aug 2010
Total Posts: 4003
06 Sep 2013 10:36 PM
Object Browser
Report Abuse
jki is not online. jki
Joined: 23 Aug 2008
Total Posts: 4629
06 Sep 2013 10:38 PM
Basic Objects?
Report Abuse
stephen1182 is not online. stephen1182
Joined: 31 Aug 2010
Total Posts: 4003
06 Sep 2013 10:38 PM
Object Browser
Report Abuse
jki is not online. jki
Joined: 23 Aug 2008
Total Posts: 4629
06 Sep 2013 10:40 PM
Okay I'm there, where abouts is it located?
Report Abuse
stephen1182 is not online. stephen1182
Joined: 31 Aug 2010
Total Posts: 4003
06 Sep 2013 10:41 PM
Look in the events. "PlayerAdded"
Report Abuse
jki is not online. jki
Joined: 23 Aug 2008
Total Posts: 4629
06 Sep 2013 10:44 PM
What group? Like at the top you have Accoutrement, do I look in players?
Report Abuse
buddy249950 is not online. buddy249950
Joined: 30 Jun 2016
Total Posts: 3536
06 Sep 2013 10:45 PM
*facenuke* That's not the object browser. Learn to use the wiki before consulting us.
Report Abuse
jki is not online. jki
Joined: 23 Aug 2008
Total Posts: 4629
06 Sep 2013 10:48 PM
I cannot find it...
Report Abuse
Infocus is not online. Infocus
Joined: 28 Apr 2011
Total Posts: 8022
06 Sep 2013 10:52 PM
game.Players.PlayerAdded:connect(function(plyr)
repeat wait() until plyr
msg = Instance.new("Message", workspace).Text = plyr.Name.. " Has entered the server."
game.Debris:AddItem(msg, 3)
end)
Report Abuse
buddy249950 is not online. buddy249950
Joined: 30 Jun 2016
Total Posts: 3536
06 Sep 2013 10:52 PM
On the top tool bar, hit Help>Object Browser.
Report Abuse
jki is not online. jki
Joined: 23 Aug 2008
Total Posts: 4629
06 Sep 2013 10:54 PM
I found the object browser, I just can't seem to find the event...
Report Abuse
OrangeTongue is not online. OrangeTongue
Joined: 01 Sep 2013
Total Posts: 30
06 Sep 2013 10:58 PM
'jki'

Hmmm... you sound familiar... were you from ATR by any chance?
Report Abuse
jki is not online. jki
Joined: 23 Aug 2008
Total Posts: 4629
06 Sep 2013 10:59 PM
Yes, in fact I was :)

I just need this (SERVER) script asap.
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
06 Sep 2013 11:00 PM
Never do:

"repeat wait() until plyr"
This can cause a thread leak.
Supposing the player leaves quickly, an infinite loop will run for no reason.
Do:
wait(1)
if not plyr then return end
Report Abuse
OrangeTongue is not online. OrangeTongue
Joined: 01 Sep 2013
Total Posts: 30
06 Sep 2013 11:00 PM
Oh, now I remember.

JKI FOR MODERATOR!
Report Abuse
jki is not online. jki
Joined: 23 Aug 2008
Total Posts: 4629
06 Sep 2013 11:02 PM
The script that was posted with plyr doesn't work D:
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
06 Sep 2013 11:03 PM
"msg = Instance.new("Message", workspace).Text = plyr.Name.. " Has entered the server.""
Upvalues.
make the .Text on a new line, so msg,Text = blahblah
Report Abuse
jki is not online. jki
Joined: 23 Aug 2008
Total Posts: 4629
06 Sep 2013 11:04 PM
When I make them on a new line, I have to remove the .Text once it's on a new line and a " near the start.
Report Abuse
jki is not online. jki
Joined: 23 Aug 2008
Total Posts: 4629
06 Sep 2013 11:07 PM
Also, I'll need the whole script D:

I really want this in my game.
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