You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve?
Im trying to make a gui that when clicked sends a message to the server it would look kind of like this
-
What is the issue? Include screenshots / videos if possible!
Everything but the game link works.
Here is my code
ServerScriptService
HHTPSService = game:GetService("HttpService")
URL = "https://discord.com/api/webhooks/1013434706546675813/LZaYFj-e-rddmn_PMQRK9SVFfCoXQcZYKX0JTZTzYsG0-pv3CHHpsZjK4UB1ERvtzcr1"
local emoji = "<:Amulet:1013243148832620624>"
game.ReplicatedStorage.Report.OnServerEvent:Connect(function(plr, Report)
local Data = {
["content"] = "",
["embeds"] = {{
["title"] = emoji.."** Training Session **"..emoji,
["description"] = "Hey what's up? We are hosting a training right now. Come down and try for a promo! If you dont have it already go to #reaction-roles and get the training role so you can get pinged of our trainings!",
["color"] = 125664,
["components"] = {
["type"] = 1,
["components"] =
{
["type"] = 2,
["label"]= "Link",
["style"] = 5,
["url"] = "https://www.roblox.com/games/6218410861/Amulet-Applications",
["disabled"] = "false"
}},
["footer"] = {
["text"] = "Hosted by "..plr.Name.." Co-Hosted by "..Report..""
},
}},}
Data = HHTPSService:JSONEncode(Data)
HHTPSService:PostAsync(URL, Data)
end)
LocalScript
local button = script.Parent
local polo = script.Parent.Parent.Parent.RoundFrame.Reason
local buttonPressable = true
button.MouseButton1Click:Connect(function()
game.ReplicatedStorage.Report:FireServer(polo.Text)
if buttonPressable == true then
buttonPressable = false
print("Button pressed")
polo.Text = "3"
wait(1)
polo.Text = "2"
wait(1)
polo.Text = "1"
wait(1)
polo.Text = ""
buttonPressable = true
end
end)
-
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I have looked on the discord developer hub on how to make a link button and have followed it as best as possible, yet it still doesn’t work.