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)
COMMUNITY QUESTION
"HTTP 404 not found"? Webhooks
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)
This discussion is preserved as it was. New answers, comments, and votes are closed.

4 comments
You cant do that in a localscript
*Server script
you can..
also remember to also use remote functions/events for server-client communication