Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How to get a text from a website ?

local Http = game:GetService("HttpService")

local Text = Http:RequestAsync("https://example.com/textfile.txt")

print(Text)

I want the script read the file from the website and then print it but i get this error :

Unable to cast to Dictionary

(Sorry for my bad english)

Thanks

6 comments

0

What is your principal language?

0

Are You Trying to get the text with RAW?

0

yes i'm trying to get the text with raw

0

link in void script builder

0

like*

0

Ok.

1 answer

✓ Accepted answer

Here:

local hs = game:GetService("HttpService")

local Text = hs:GetAsync("https://example.com/textfile.txt")

print(Text)

If it works then mark the answer as correct! Hope it helped :)

2 comments

0

Do not remind users to accept your answer! If it truly helped, it's nature for them to accept your answer.

0

Omg, incapaz ur so alergic on prople who reminds people to accept their answers xD

This discussion is preserved as it was. New answers, comments, and votes are closed.