I made a script so that if the currency value is 0, then another text is visible, and if the value is 1, then another. The error in the console is that the script cannot find the folder in the player, although it exists and I did :WaitForChild
local player = game:GetService("Players")
local localPlayer = player.LocalPlayer
local blackList = localPlayer:WaitForChild("BankFolder").BlackList.Value
if blackList == 0 then
script.Parent.Visible = false
script.Parent.Parent.NoBlackList.Visible = true
elseif blackList == 1 then
script.Parent.Visible = true
script.Parent.Parent.NoBlackList.Visible = false
end
local players = game:GetService("Players")
local player = players.LocalPlayer
local bankFolder = player:WaitForChild("BankFolder")
local blacklistValue = bankFolder:FindFirstChild("BlackList").Value
local noBlackListUI = script.Parent.Parent.NoBlackList
if blackListValue == 0 then
script.Parent.Visible = false
noBlackListUI.Visible = true
elseif blackListValue == 1 then
script.Parent.Visible = true
noBlackListUI.Visible = false
end