local frame = script.Parent
local player = game.Players.LocalPlayer
local rs = game:GetService('ReplicatedStorage')
local sizeEvent = rs:WaitForChild('SizeEvent')
local mouse = player:GetMouse()
mouse.Button1Up:Connect(function()
sizeEvent:FireServer(sizeEvent + 1)
end)
If you’re trying to record how many clicks the player did, you just need to fire the event normally and without any arguments and in the server script you have, you just need to make a table of player: clicks containing the player object and the amount of clicks they did so that you can add a new click to the existing ones by simply PlayerClicks[Player] += 1.