|
| 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 |
|
|
|
| 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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 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
|
  |
| 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
|
  |
| 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
|
  |
| Joined: 16 Oct 2011 |
| Total Posts: 2193 |
|
| |
|
|
| 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
|
  |
| 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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 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 |
|
|
| |
|
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 |
|
|
|
| 15 Feb 2016 02:04 PM |
still clueless
#Code print("Narwhals are our future") |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 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
|
  |
| 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 |
|
|