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 » Scripters
Home Search
 

Re: what would i use to do this

Previous Thread :: Next Thread 
iJacobness is not online. iJacobness
Joined: 20 Jan 2014
Total Posts: 4944
15 Feb 2016 10:24 AM
pretty much keep server values like a string value with a server message on it display to all servers?


#code print("This signature was created using Roblox+, get yours now at the chrome web store!")
Report Abuse
iJacobness is not online. iJacobness
Joined: 20 Jan 2014
Total Posts: 4944
15 Feb 2016 12:50 PM
bamp


#code print("This signature was created using Roblox+, get yours now at the chrome web store!")
Report Abuse
powerhotmail123 is not online. powerhotmail123
Joined: 11 Apr 2011
Total Posts: 5041
15 Feb 2016 12:54 PM
Use a RemoteEvent, and use :FireAllClients()?

Enjoying your stay at the Scripters Forum? Join this! http://www.roblox.com/My/Groups.aspx?gid=2582784
Report Abuse
Aethex is not online. Aethex
Joined: 16 Oct 2011
Total Posts: 2193
15 Feb 2016 01:24 PM
@powerhotmail123 He said to all servers, not all players in one server.

@op You would need to use either HttpService or DataStores.
Report Abuse
iJacobness is not online. iJacobness
Joined: 20 Jan 2014
Total Posts: 4944
15 Feb 2016 01:26 PM
i figured datastores, but how. i only know how to store players stuff


#code print("This signature was created using Roblox+, get yours now at the chrome web store!")
Report Abuse
Aethex is not online. Aethex
Joined: 16 Oct 2011
Total Posts: 2193
15 Feb 2016 01:46 PM
When whoever is sending the message presses a submit button or hits enter or something, the message can be stored two ways. If you want to keep track of all messages posted, I recommend an OrderedDataStore. If you don't care about seeing what messages were posted previously, then you just need a regular DataStore and one key that has the message in it. You can do a refresh every minute or 30 seconds or whatever (not too fast, or it may error--see Limitations section of DataStores) to see if the message has changed. If you use an OrderedDataStore, you can require a Page that returns the newest message created. If you use a normal DS the same way as mentioned above, you need to keep a variable stored of the last message and then check it similarly as done with the OrderedDS.
Report Abuse
Aethex is not online. Aethex
Joined: 16 Oct 2011
Total Posts: 2193
15 Feb 2016 01:48 PM
I'm assuming you already know what GetAsync is and how it works (also note, a time of 10 seconds or less is usually pointless considering a rought 10-second cache from GetAsync). You may want to read up on OrderedDataStores, though.
Report Abuse
Aethex is not online. Aethex
Joined: 16 Oct 2011
Total Posts: 2193
15 Feb 2016 01:48 PM
*rough not rought
Report Abuse
iJacobness is not online. iJacobness
Joined: 20 Jan 2014
Total Posts: 4944
15 Feb 2016 01:48 PM
But with that said, I can't like change the value without being in the game, correct?


#code print("This signature was created using Roblox+, get yours now at the chrome web store!")
Report Abuse
Aethex is not online. Aethex
Joined: 16 Oct 2011
Total Posts: 2193
15 Feb 2016 01:49 PM
No, not without HttpService. In that case, you could replace the methods above entirely by using HttpService (if you want to, it's possible to just mix them instead).
Report Abuse
iJacobness is not online. iJacobness
Joined: 20 Jan 2014
Total Posts: 4944
15 Feb 2016 01:50 PM
Okay, I am going to use httpservice, will just like putting values on a website work? Or is there a specific way?


#code print("This signature was created using Roblox+, get yours now at the chrome web store!")
Report Abuse
Aethex is not online. Aethex
Joined: 16 Oct 2011
Total Posts: 2193
15 Feb 2016 01:52 PM
I guess that could work. Just do the checks for the message the same way in the game, and instead of checking a DataStore, you can look at the website.
Report Abuse
xXTheRobotXx is not online. xXTheRobotXx
Joined: 05 May 2012
Total Posts: 13343
15 Feb 2016 01:53 PM
could you give sample code

because i'm also curious about how to do this


#Code print("Narwhals are our future")
Report Abuse
RecurringNightmare is not online. RecurringNightmare
Joined: 05 Jul 2012
Total Posts: 15336
15 Feb 2016 02:00 PM
ya
Report Abuse
Aethex is not online. Aethex
Joined: 16 Oct 2011
Total Posts: 2193
15 Feb 2016 02:01 PM
@xXTheRobotXx It's really easy if you understand how HttpService works. Just use the theory mentioned above for DataStores and translate it into HttpService. Assuming you have a website that can host those messages, that is.

http://wiki.roblox.com/index.php?title=API:Class/HttpService
http://wiki.roblox.com/index.php?title=Sending_HTTP_requests#GetAsync
Report Abuse
xXTheRobotXx is not online. xXTheRobotXx
Joined: 05 May 2012
Total Posts: 13343
15 Feb 2016 02:04 PM
still clueless


#Code print("Narwhals are our future")
Report Abuse
iJacobness is not online. iJacobness
Joined: 20 Jan 2014
Total Posts: 4944
15 Feb 2016 02:04 PM
can i use a free hosting site, or does it have to be set up a certain way?


#code print("This signature was created using Roblox+, get yours now at the chrome web store!")


#code print("This signature was created using Roblox+, get yours now at the chrome web store!")
Report Abuse
Aethex is not online. Aethex
Joined: 16 Oct 2011
Total Posts: 2193
15 Feb 2016 02:06 PM
@iJacobness From how you sound like you'll be setting it up, the entire website needs to be blank minus the text for the message. Free hosts like x10hosting, 000webhost, OpenShift, etc. are all fine, but you can't use a site builder for something like this because it has content on the pages like advertising for their site builder.
Report Abuse
iJacobness is not online. iJacobness
Joined: 20 Jan 2014
Total Posts: 4944
15 Feb 2016 02:16 PM
also for values can i just do BGHF 4999 then use string to seperate?


#code print("This signature was created using Roblox+, get yours now at the chrome web store!")
Report Abuse
Aethex is not online. Aethex
Joined: 16 Oct 2011
Total Posts: 2193
15 Feb 2016 02:22 PM
I don't know what you're asking. You can separate strings like "BGHF 4999", yes. There are easier ways to do things depending on how you set them up, though. Read up on JSON and how to format tables with them.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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