local repstorage = game:GetService("ReplicatedStorage") local remote = repstorage:FindFirstChild("ButtonClick")
local button = script.Parent
local debounce = false
button.MouseButton1Click:Connect(function() if not debounce then debounce = true local playerPoint = game.players.LocalPlayer.leaderstats.Points remote:FireServer(playerPoint) wait(0.01) debounce = false end end)