How do I get text from a raw GitHub file?

Fill this out this info to make it easier for the community to help you! If you don’t fill out this information, your post may be deleted or removed.

What Wick Editor Version are you using?
1.19

Describe the Problem
I’m trying to make a announcement system
What have you tried so far?
Desperately using people’s code but they ain’t working

are you saying you want to create a text file on github and then when you change the text on it, text ingame changes to that?

2 Likes

are you using gist or a normal github repo?

1 Like

Just normal GitHub

1 Like

you could try this. just open it as a raw and change the url

2 Likes

Thank you so MUCH!
:tired_face: I was so stressed.

no worries! glad to help! :slight_smile:

Is there a way to define it in a project variable? So I can set as a text object?

i think you can just make a new variable for it.

var changableText = client.responseText;

i dont have wick open rn thought so this is just a thought

It doesn’t work.

Try to set the XML request into a window variable

Ex:

window.SomeVariable=client.responseText;

I believe that XML requests can only reach scripts that are from the site that they were sent from, but I may be wrong

It didn’t work, again. But here’s my code

nice keyboard bro

1 Like

This is a quick example:
xmlhttp request5-13-2021_11-35-20.wick (1.3 KB)

Lemme know if it helps