Github loadstring() problem

hello, as the title says, im having some issues with loading a script that i uploaded on github, mainly in the loadstring() part, where it says the following:

image

im new using github so i dont really know how to execute the scripts that i have in my repositories, but i saw a post that’s related to what i want to achieve

i also dont know if i created the script correctly in Github, since i just created a new archive and i named it “scripts.lua”, then i just inserted the code inside of it, let me know if i did it right

thanks! :smiley:

You need to enable ServerScriptService.LoadStringEnabled. Of course, there are the given dangers of having loadstring enabled (e.g. arbitrary code execution).

1 Like

thanks! that was the issue, but another question, loadstring its available for client side? bc i tried using it there but i got the same error

I don’t believe you can do it on the client

1 Like

hello again, i tried getting the script from github but idk why it doesnt seem to work.

i get the script like this:

local code = http:GetAsync("https://github.com/repository/blob/main/script.lua", true)

it should return the code itself or it returns something else? bc when i print it it doesnt seems to be the actual script.

if you could help me with this too pls!

thanks!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.