Help With Code (Http Service)


heres The Error

And heres My Code:`local HTTPS = game:GetService(“HttpService”)
local RS = game:GetService(“ReplicatedStorage”)
local Button = game.StarterGui.ScreenGui.Frame.TextButton

RS.ButtonClicked.OnServerEvent:Connect(function(player)
local WhURL = “https://webhook.newstargeted.com/api/webhooks/1153404456738770994/bvfK6J-t9D_pmBqc5QvEb8QvlOi_a-_Sc_nOlq8xycA-AC7ULiOgfFhgRiSUpMK1uKC0

local Tbtext = game.StarterGui.ScreenGui.Frame.TextBox.Text
local Textbox = game.StarterGui.ScreenGui.Frame:WaitForChild("TextBox")
local ButtonClicked = RS.ButtonClicked
local text = RS.Value
print(Tbtext)

local data = {
	["content"] = "Message Sent By: " .. player.Name .. " Message: " ..  text
}

local Finaldata = HTTPS:JSONEncode(data)


HTTPS:PostAsync(WhURL, Finaldata)

end)
`

Client Side: `local HTTPS = game:GetService(“HttpService”)
local RS = game:GetService(“ReplicatedStorage”)
local Button = script.Parent

Button.MouseButton1Click:Connect(function()
local WhURL = “https://webhook.newstargeted.com/api/webhooks/1153404456738770994/bvfK6J-t9D_pmBqc5QvEb8QvlOi_a-_Sc_nOlq8xycA-AC7ULiOgfFhgRiSUpMK1uKC0

local Tbtext = game.StarterGui.ScreenGui.Frame.TextBox.Text
local Textbox = game.StarterGui.ScreenGui.Frame:WaitForChild("TextBox")
local ButtonClicked = RS.ButtonClicked
local String = RS.Value

String.Value = Tbtext
print(String)
task.wait()
RS.ButtonClicked:FireServer()

end)`

hmm, maybe try this:

local data = {
	["content"] = "Message Sent By: " .. tostring(player.Name) .. " Message: " ..  tostring(text)
}

try doing this:

local text = RS.Value.Value

also nice webhook you just leaked your own webhook xdxd
-https://discord.com/api/webhooks/1153404456738770994/bvfK6J-t9D_pmBqc5QvEb8QvlOi_a-_Sc_nOlq8xycA-AC7ULiOgfFhgRiSUpMK1uKC0

loll lemme delete dat youre right lmao