I tried making a currency and a minigame and what is supposed to happen is that if you get first, you would get that currency, but it never works.
local w = game.ServerScriptService.v:FindFirstChild(Wins)
local p = 0
if workspace.Parkour.PWalls.Winplat.Touched:Connect(FindFirstChild("Humanoid")) and p < 1 then
w = w + 1
p = p + 1
else
p = p + 1
end
If anyone could help me, that would be great.

10 comments
You forgot to say that he didn't change Wins into "Wins"
I corrected it but forgot to mention it, thanks.
Thank you!
Why is the last end underlined?
There was one more issue i missed, i forgot to add function
now it says "expected ')' to close '(' at column 58, got '('
Are you using the first or second one?
The second one.
Interesting! You may not be able to use FindFirstChild as a parameter, try what ive just editted.
FindFirstChild is underlined in blue.