1080pHD
|
  |
| Joined: 10 May 2012 |
| Total Posts: 1192 |
|
|
| 09 Nov 2014 02:55 PM |
Hello. I am Trying to make a GUI that Tells you the Sever Port(Port Number of the server) and mine does not seem to be working. Is there something I am missing or Doing wrong?
Script: script.Parent.PortNum.text = workspace.NetworkServer.Port if workspace.NetworkServer.Port "0" then script.Parent.PortNum.text = "(No Server Port)" end |
|
|
| Report Abuse |
|
|
|
| 09 Nov 2014 02:58 PM |
".text"
Text is Pascal Case, FYI. |
|
|
| Report Abuse |
|
|
1080pHD
|
  |
| Joined: 10 May 2012 |
| Total Posts: 1192 |
|
|
| 09 Nov 2014 03:00 PM |
| What? I Do not understand. |
|
|
| Report Abuse |
|
|
eLunate
|
  |
| Joined: 29 Jul 2014 |
| Total Posts: 13268 |
|
| |
|
Madified
|
  |
| Joined: 19 Apr 2011 |
| Total Posts: 5292 |
|
| |
|
1080pHD
|
  |
| Joined: 10 May 2012 |
| Total Posts: 1192 |
|
|
| 09 Nov 2014 03:02 PM |
| Oh, I see. Its CASE Sensitive. Let me test it. |
|
|
| Report Abuse |
|
|
1080pHD
|
  |
| Joined: 10 May 2012 |
| Total Posts: 1192 |
|
|
| 09 Nov 2014 03:06 PM |
| Well I fixed That But It is still not doing anything. I am Thinking I am Supposed to put in Function? |
|
|
| Report Abuse |
|
|
| |
|
Madified
|
  |
| Joined: 19 Apr 2011 |
| Total Posts: 5292 |
|
|
| 09 Nov 2014 03:10 PM |
while wait(1) do script.Parent.PortNum.Text = workspace.NetworkServer.Port if workspace.NetworkServer.Port "0" then script.Parent.PortNum.text = "(No Server Port)" --Whatever you want it to do else --Whatever you want it to do end end |
|
|
| Report Abuse |
|
|
1080pHD
|
  |
| Joined: 10 May 2012 |
| Total Posts: 1192 |
|
| |
|
1080pHD
|
  |
| Joined: 10 May 2012 |
| Total Posts: 1192 |
|
| |
|
iiEssence
|
  |
| Joined: 18 Jun 2014 |
| Total Posts: 3467 |
|
|
| 09 Nov 2014 03:16 PM |
| game:GetService("NetworkServer").Port |
|
|
| Report Abuse |
|
|
|
| 09 Nov 2014 03:18 PM |
local d = game:service'NetworkServer'.Port; if(d==0) then script.Parent.PortNum.Text = 'No Server Port.' else script.Parent.PortNum.Text = d; end; |
|
|
| Report Abuse |
|
|
iiEssence
|
  |
| Joined: 18 Jun 2014 |
| Total Posts: 3467 |
|
|
| 09 Nov 2014 03:19 PM |
| stop showing off, making me look bad |
|
|
| Report Abuse |
|
|
|
| 09 Nov 2014 03:23 PM |
im sorry ii, don't b mad at me pls
semicolons are love, semicolons are life |
|
|
| Report Abuse |
|
|
1080pHD
|
  |
| Joined: 10 May 2012 |
| Total Posts: 1192 |
|
|
| 09 Nov 2014 03:25 PM |
@KOT and @iiE I feel like both of your Ideas Might Work... |
|
|
| Report Abuse |
|
|
iiEssence
|
  |
| Joined: 18 Jun 2014 |
| Total Posts: 3467 |
|
|
| 09 Nov 2014 03:26 PM |
| yes cus networkserver isnt a object, its service |
|
|
| Report Abuse |
|
|
1080pHD
|
  |
| Joined: 10 May 2012 |
| Total Posts: 1192 |
|
|
| 09 Nov 2014 04:24 PM |
| (sorry for delay) I tried it, STILL NOTHING!!!! |
|
|
| Report Abuse |
|
|