Ad
Still have questions? Join our Discord server and get real time help.
Log in to vote
0

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

Asked by 5 months ago
Edited 5 months ago

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.

0
Is your paste in JSON syntax? cowsoncows 724 — 5mo
0
It's set to Syntax none Cryo_Dev 9 — 5mo
0
since your post is a private post, you're going to need to use a token to log in p0etic 5049 — 5mo
0
I'll switch it to unlisted and then see if the script can read it Cryo_Dev 9 — 5mo
0
Okay it works royaltoe post in the awnser so I can select yours as awnsered thanks. Cryo_Dev 9 — 5mo

1 answer

Log in to vote
0
Answered by 5 months ago

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.

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 Cryo_Dev 9 — 5mo
Ad

Answer this question