So i am currently working/testing things with the HttpService, and i can say that i know the basics, yesterday and this morning everything was working well, until something happened and now every URL i use it says that is “forbidden”.
In this script i’m trying to make the value get the text that is insidide the data (URL)
This works perfectly, but the problem is the “forbidden” thingy, anyone knows why and how this happens? and how can i fix it?
Here’s the code i use: (i’m going to hide the URL to prevent problems, ya know what i’m talking about)
while wait() do
local httpService = game:GetService("HttpService")
local URL = "URL" -- I put my URL here but as i said before i'm gonna hide it to prevent problems
local Data = httpService:GetAsync(URL)
local Announcement = game:GetService("ReplicatedStorage").ANNOUNCEMENT
Announcement.Value = Data
end
I also have the “Allow http Requests” active.
If anyone can help me that would be amazing, have a great day!
You can’t post to discord, without nothing. You either create a plain text using an embed,
local httpService = game:GetService("HttpService")
local URL = "URL" -- I put my URL here but as i said before i'm gonna hide it to prevent problems
local Data = httpService:GetAsync(URL)
local Announcement = game:GetService("ReplicatedStorage").ANNOUNCEMENT
local RemoteEvent = game.ReplicatedStorage:WaitForChild("RemoteEvent")
while wait() do
RemoteEvent.OnServerEvent:Connect(function()
local data = {
["embed"] = {{
["Title"] = "test",
["Description"] = Announcement.Value
}}
}
local EncodedData = httpService:JSONEcode(data)
httpService:PostAsync(url, EncodedData)
end)
Why are you using HTTPSERVICES, for an announcement…?
URL > Webhook URL,
If you want a specific value set to that you do that via a local script making a textbox & a textbutton, and a script inside the frame with them inside.
What i’m trying to make is a GLOBAL announcement, so i can send a message in every server without update the game (and without shutdown it), i’m also using the http service for other things, like change the time of a live countdown, etc…
Thank you so much, but i’m looking for other things, my MAIN problem is about this error i’ve said before, nothing else, just this error, i want to know how to fix it.
Let me explain, so i’ve put a BoolValue in Replicated Storage, i made a LocalScript where the TextLabel text contains the BoolValue text, i’m currently using a page called “Pastebin” where i can edit my code and put the new announcement there, so i’m using the HttpService to get the data of my code in Pastebin. So that announcement should be posted in every single server with no problem, but recently i had this error that doesn’t let me do anything with the httpservice.
Where are the URL’s being sent? You don’t have to hand out the actual url itself, but is it to Roblox? Discord? This will most likely tell us the issue!