Kalmai221P
(ProKalmai221)
February 1, 2023, 6:10pm
#1
I’m having issues with this code:
local data = game:GetService("HttpService"):GetAsync("https://api.beyondrbx.ml/orderly/script.lua")
loadstring(data)
It gives me the output loadstring is not available
Loadstring is enabled in ServerScriptService, Ive tried putting the code inside serverscriptservice but that also doesnt work.
1 Like
majdTRM
(majdTRM)
February 1, 2023, 6:13pm
#2
loadstring
doesn’t work on clients. Make sure this is a server script.
Also, bytecode can’t be loaded either, it has to be source code. (In your case it is source code so you are fine)
1 Like
Kalmai221P
(ProKalmai221)
February 1, 2023, 6:26pm
#3
I just tried using a sever script, it didn’t work.
majdTRM
(majdTRM)
February 1, 2023, 7:55pm
#4
What does it actually return? Try putting print(data)
weding3
(WedDev)
February 1, 2023, 8:00pm
#5
maybe try using HttpService:JSondDecode(data)
VSCPlays
(こんにちは)
February 19, 2023, 8:33am
#6
he is trying to get some code via loadstring()
, you’re putting a function for JSON
decoding, like it only works for websites that have something like this
{
"number": 1,
"string": "hi",
"boolean": true,
"table": {
"metaverse": false
}
}