Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

Help with string manipulation?

Asked by 9 years ago

I made a website that displays a number when you add a ?something=key. I am using HttpService to get the page content but I don't know how to set a value to that number/find the number.

If I print the request it returns something like this:

<body>

245507596default4Testingkey accepted<div class="list"><div class="server"><center><span class="name">SERVER_1</span></center><center><span class="id">ID: 245507596</span></center><center><span class="online">ONLINE: 4/12</span></center><center><span class="status">STATUS: Testing</span></center></div></div>

</body>

What I need to get from this is the players online(ONLINE: 4/12 <-- this will change) and the server status(STATUS: Testing <-- this will change too)

Is there a way to do that with string manipulation functions?

1 answer

Log in to vote
2
Answered by
yumtaste 476 Moderation Voter
9 years ago

Yes. According to the ROBLOX wiki, using GetAsync returns a string, so you can use string manipulation functions to find what you need. If you need a tutorial on using string manipulation, I can provide one (I didn't provide it initially because I don't have access to Studio).

Ad

Answer this question