How do you do it? It looks like its good and it has no errors! Heres the code:
local ting = 0
local Part = script.Parent
function onClicked(click)
if ting == 0 then
ting = 1
local check = click.Parent:FindFirstChild("Humanoid")
if check ~= nil then
local p = game.Players.LocalPlayer
local sstats = game.Players.LocalPlayer.leaderstats
if sstats ~= nil then
local cash = sstats:findFirstChild("Wins")
cash.Value = cash.Value + 1
p:ResetCharacter()
wait(7)
end
end
ting = 0
end
end
Part.ClickDetector.MouseClick:Connect(onClicked)

2 comments
You can't change those values on a localplayer you have to m ake a serverscript
i did