Hello, I am trying to make a bug report system connected to Guilded. Everything was going great so far untili wanted to add the bug type to the message
It seems that the game cannot see what’s the text in TextButton
This is the UI layout
This is the LocalScript in the “Report” frame
script.Parent.Send.MouseButton1Click:Connect(function()
local report = script.Parent.Report.Text
local player = game.Players.LocalPlayer
local dropdown = script.Parent.DropdownSelect.Text
if script.Parent.DropdownSelect.Text == "Select" then
script.Parent.DropdownSelect.TextColor3 = Color3.new(1, 0.32549, 0.337255)
script.Parent.DropdownSelect.Text = "Please select something!"
task.wait(2)
script.Parent.DropdownSelect.TextColor3 = Color3.new(255, 255, 255)
script.Parent.DropdownSelect.Text = "Select"
else
game.ReplicatedStorage.Report:FireServer(report)
script.Parent.Send.Text = "Sending..."
task.wait(3)
script.Parent.Send.Text = "Sent!"
task.wait(2)
script.Parent.Send.Text = "Send"
end
end)
This is the script in ServerScriptService
local http = game:GetService("HttpService")
game.ReplicatedStorage.Report.OnServerEvent:Connect(function(player, report, dropdown)
local data = {
["embeds"] = {{
["title"] = player.Name.." - "..dropdown,
["description"] = report
}}
}
data = http:JSONEncode (data)
print(dropdown)
http:PostAsync("webhook link", data)
end)
I am very sorry if I didnt give much info