Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

"HTTP 404 not found"? Webhooks

Asked by
6zk8 95
4 years ago
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

Log in to vote
0
Answered by 4 years ago
Edited 4 years ago

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)

0
You cant do that in a localscript 6zk8 95 — 4y
0
*Server script 6zk8 95 — 4y
0
you can.. User#23252 26 — 4y
0
also remember to also use remote functions/events for server-client communication User#23252 26 — 4y
Ad

Answer this question