How to make a player get a leaderstats by value

Hello develupers I maked a global winners leboard of ponchokings but I only know to make a player get wins by touching a part but I want to make a player get wins if the my WinValue is == true. Thanks for suport

Please describe it better. I still don’t quite understand what you’re trying to say.

Use:
if WinValue is == true then
– give the win
end

Well I know to make a player get a win only by touching in a part exenple:


I want to make the player get a win if the Value is == true and not by touching in a part

Then you have to make the value as true somehow. You could make it so that if they touched the part, the value is set to true.

1 Like

No I will make the value is = true in my sever script and if the Value is = true the player get a win

Then you can constantly check if the value is true using a while loop.

1 Like

I want to make a player get a win only if the Value is = true

Oh yeah I will make it thanks for help