the Roblox code:

local Data = game.HttpService:GetAsync('http://127.0.0.1:5500/WebsiteData/index.html') warn(Data)

the site code(JavaScript):

function httpGetAsync(theUrl, callback) { var xmlHttp = new XMLHttpRequest(); xmlHttp.onreadystatechange = function() { if (xmlHttp.readyState == 4 && xmlHttp.status == 200) callback(xmlHttp.responseText); } xmlHttp.open("GET", theUrl, true); xmlHttp.send(null); }

it always warns:

13:56:42.893 -

13:56:42.893 -

13:56:42.894 - L ua Learning 2

13:56:42.894 -

13:56:42.903 -

13:56:42.903 -

13:56:42.903 -

13:56:42.904 -

13:56:42.904 - 13:56:42.904 -

13:56:42.921 -

13:56:42.921 -

sorry if this don't make sense but its my first time with JavaScript

2 comments

0

could you atleast not make this 2 pages long and use format

0

how can i format?