- What do you want to achieve? Keep it simple and clear!
- I want it so the feedback message others are sending is visible, but unfortunately the message box is empty. It just shows the message i am sending.
- What is the issue? Include screenshots / videos if possible!
(I’m using Guilded because Discord isn’t supported)
- What solutions have you tried so far? Did you look for solutions on the Developer Hub?
- Yes, none worked.
////////////////////////////////
Here’s the code i have.
[[ Server ]]
local url = "https://media.guilded.gg/webhooks/44c5c673-fdb9-473e-8f8b-1d44f0a66eab/9MSYjGlKtqCo2u2aOsGWW0cqUCQIAU2Oiia4ueMk0QGmIMw8CuaC08M68oiWIGeiaC0qmSYmywm0y0qWYIoieI"
local http = game:GetService("HttpService")
local cooldown = 5
local event = game.ReplicatedStorage.Events.Feedback
event.OnServerEvent:Connect(function(Client, Message)
if not script:FindFirstChild(Client.Name) then
local PlayerValue = Instance.new("BoolValue", script)
PlayerValue.Name = Client.Name
local data = {
["content"] = Client.Name..[[ has sent a feedback!
The feedback was: ]]..Message
}
local finaldata = http:JSONEncode(data)
http:PostAsync(url, finaldata)
wait(cooldown)
script[Client.Name]:Destroy()
end
end)
[[ Client ]]
script.Parent.TextButton.MouseButton1Click:Connect(function()
game.ReplicatedStorage.Events.Feedback:FireServer(script.Parent.TextBox.Text)
end)