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

What's wrong with this which is making it not work as I want it to work?

I've been trying to find out why this isn't working it's a very basic check yet it doesn't seem to work it just says that it's false when I want it to be true.

local URL = "https://pastebin.com/raw/[Hidden]"
local PastebinText = game:GetService("HttpService"):GetAsync(URL, true)
	
if PastebinText == "Maintenance_Mode = true" then
	script.Parent.Settings.Maintenance_Mode.Value = true
else
	script.Parent.Settings.Maintenance_Mode.Value = false
end

I'm using this in a Plugin just as a better description on what I'm using this for.

5 comments

0

Is your paste in JSON syntax?

0

It's set to Syntax none

0

since your post is a private post, you're going to need to use a token to log in

0

I'll switch it to unlisted and then see if the script can read it

0

Okay it works royaltoe post in the awnser so I can select yours as awnsered thanks.

1 answer

Pastebin sometimes won't work from what I was told was an anti-bot system. So instead of the expected text, you will get HTML code instead. So you can't fix it, it's on PB's end.

Use https://paste.ee instead.

1 comment

0

was already awnsered, but thanks! I wasn't able to awnser the question because they commented and didn't add an awnser so I can't select as awnsered

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