Changing Leaderstats on every match

Hi everyone! i’m trying to make a minigame game where you need to qualify to access the next mingame

At the start everyone has the Leaderstats of “Not Qualified”
When reaching the end of a minigame the Leaderstats of the player changes to “Qualified”

I need something that changes to “Not Qualified” or “Eliminated” every time a StringValue has the value of “STOP!” (that’s when another minigame starts and the previous one ends)

Does anyone know how can i do this?

NOTE: the first “Not Qualified” is set when a player joins and the “Qualified” value is set when a player touches the ending part/plate

Here is an example

StringValue.Changed:Connect(function()
  If StringValue.Value == "STOP!" then
      idk
  else
      idk
  end
end)

yeah that’s what i need but idk how to change the leaderstats :sweat_smile:

Just do

Player.leaderstats.VALUE.Value = "WhatYouNeed"
1 Like

i mean, how do i get the player? I only know how to get it through part hit or when it joins the server

It all depends, What needs to happen to get the player etc

I’m searching for something on the dev forum, for example i need to do something like

    if Timer.value == "STOP!" and  player.leaderstats.status.value == "Qualified" then
    player.leaderstats.status.value = "Not Qualified"
    -- other things..
    else
    player.leaderstats.status.value  = "Eliminated"
    -- Other Things...
    end

The only thing i miss is how i make the script change eveyone Leaderstats without make them touch something or when they join, just change when needed
or better, idk how to get the players so i can change everyone leaderstats