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 |
|
|
|
| 06 Sep 2013 10:32 PM |
| Use the PlayerAdded event of the Players service. |
|
|
| Report Abuse |
|
|
|
| 06 Sep 2013 10:33 PM |
| .Text = "(SERVER) "..player.Name.." has entered the game. Whoop-dee-doo." |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
| |
|
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 |
|
|
| |
|
jki
|
  |
| Joined: 23 Aug 2008 |
| Total Posts: 4629 |
|
| |
|
| |
|
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 |
|
|
|
| 06 Sep 2013 10:41 PM |
| Look in the events. "PlayerAdded" |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 06 Sep 2013 10:45 PM |
| *facenuke* That's not the object browser. Learn to use the wiki before consulting us. |
|
|
| Report Abuse |
|
|
jki
|
  |
| Joined: 23 Aug 2008 |
| Total Posts: 4629 |
|
| |
|
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 |
|
|
|
| 06 Sep 2013 10:52 PM |
| On the top tool bar, hit Help>Object Browser. |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 06 Sep 2013 10:58 PM |
'jki'
Hmmm... you sound familiar... were you from ATR by any chance? |
|
|
| Report Abuse |
|
|
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
|
  |
| 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 |
|
|
|
| 06 Sep 2013 11:00 PM |
Oh, now I remember.
JKI FOR MODERATOR! |
|
|
| Report Abuse |
|
|
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
|
  |
| 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
|
  |
| 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
|
  |
| 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 |
|
|