How do you script button so that when it is press it sends a message to a webhook?

I have a GUI for high profile users. I made a GUI for them and it only opens is they are in a group. For them to open it they have to accept a message. How do I make it so that when the accept button is pressed it sends a message to a webhook with their
Profile link
Server Link
Amount of players in the server
and If they are in the specific group

You’re going to want to use a RemoteEvent, on the server you want to connect the OnServerEvent, check if the player has proper permissions (if they’re a certain rank in the group) then use HttpService:PostAsync or RequestAsync connected to whichever webhook you want

1 Like