How can I make a UI appear when the player has a certin leaderstat value?

What do you want to achieve? I am trying to get a Ui appear when the player has a leaderstat value of 1

  1. What is the issue i don’t know how to script and i couln’t find much.

  2. What solutions have you tried so far? I’ve tried diffrent scripts from other tutorials but none worked.

Thanks for the help

You could implement a PlayerAdded event into this, defining the leaderstats & such and using a Changed event for the Value you want to detect for, and check if the Player has enough to enable the UI

Code example:

local GoalRequirement = 50
--Server Script inside ServerScriptService
    local PlayerGui = Player:WaitForChild("PlayerGui")
    --Define our leaderstats and such here

        if NewValue > GoalRequirement then
            PlayerGui.ScreenGui.Enabled = true

1 Like