How would I go with making it store who clicks the button in a serverscript? Because, webhooks are not client sides, therefor I can’t send a webhook with their name in it, it’d need to be a serverscript.
Use a remote event
--local
local remote = path.to.remote
script.Parent.MouseButton1Click:Connect(function()
remote:FireServer()
end)
--Server
local remote = path.to.remote
local playersClicked = {}
remote.OnServerEvent:Connect(function(player)
playersClicked[player.Name] = playersClicked[player.Name] or 0
playersClicked[player.Name] += 1
end)
-- to access the amount of clicks the player has, then do `playersClicked[player.Name] `
If you’d like to learn more about events, then check this article out: