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

"HTTP 404 not found"? Webhooks

local url = no xd

wait(4)

local http = game:GetService("HttpService")

local HookData = {
 ['username'] = "Bot",
 ['content'] = tostring(game.StarterGui.ScreenGui.Frame.TextButton.LocalScript.SV.Value)
}

HookData = http:JSONEncode(HookData)
http:PostAsync(url, HookData)



1 answer

Well in HTTP status codes, 404 means Not Found. if you go to https://www.roblox.com/NoExistLol, the server will return a 404 status code..

so check your url to make sure it's valid

also, if your looking to get some data from a player via tostring(game.StarterGui.ScreenGui.Frame.TextButton.LocalScript.SV.Value), then that's not the right way to go.. Instead, you need to get access to a player object then do thistostring(player.PlayerGui.ScreenGui.Frame.TextButton.LocalScript.SV.Value)

4 comments

0

You cant do that in a localscript

0

*Server script

0

you can..

0

also remember to also use remote functions/events for server-client communication

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