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 to make a TextBox Text a value

Previous Thread :: Next Thread 
1080pHD is not online. 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
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
09 Nov 2014 02:58 PM
".text"

Text is Pascal Case, FYI.
Report Abuse
1080pHD is not online. 1080pHD
Joined: 10 May 2012
Total Posts: 1192
09 Nov 2014 03:00 PM
What? I Do not understand.
Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
09 Nov 2014 03:01 PM
.text SHOULD B3 .Text
Report Abuse
Madified is not online. Madified
Joined: 19 Apr 2011
Total Posts: 5292
09 Nov 2014 03:01 PM
".text" to ".Text"
Report Abuse
1080pHD is not online. 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 is not online. 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
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
09 Nov 2014 03:06 PM
What does the output say?
Report Abuse
Madified is not online. 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 is not online. 1080pHD
Joined: 10 May 2012
Total Posts: 1192
09 Nov 2014 03:10 PM
Doesn't say anything.
Report Abuse
1080pHD is not online. 1080pHD
Joined: 10 May 2012
Total Posts: 1192
09 Nov 2014 03:11 PM
@madified I'll Try that
Report Abuse
iiEssence is not online. iiEssence
Joined: 18 Jun 2014
Total Posts: 3467
09 Nov 2014 03:16 PM
game:GetService("NetworkServer").Port
Report Abuse
KOTwarrior is not online. KOTwarrior
Joined: 13 Jun 2012
Total Posts: 4376
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 is not online. iiEssence
Joined: 18 Jun 2014
Total Posts: 3467
09 Nov 2014 03:19 PM
stop showing off, making me look bad
Report Abuse
KOTwarrior is not online. KOTwarrior
Joined: 13 Jun 2012
Total Posts: 4376
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 is not online. 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 is not online. 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 is not online. 1080pHD
Joined: 10 May 2012
Total Posts: 1192
09 Nov 2014 04:24 PM
(sorry for delay) I tried it, STILL NOTHING!!!!
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