I'm trying to shorten the values for the currency,
It works for Coins but no the Chi?
Leaderstats
game.Players.PlayerAdded:Connect(function(plr)
local leaderstats = Instance.new("Folder", plr)
leaderstats.Name = "leaderstats"
local MainCurrency = Instance.new("Folder", plr)
MainCurrency.Name = "MainCurrency"
local Coins = Instance.new("IntValue", MainCurrency)
Coins.Name = "Coins"
Coins.Value = 0
local Chi = Instance.new("IntValue", MainCurrency)
Chi.Name = "Chi"
Chi.Value = 0
local CoinsDis = Instance.new("StringValue", leaderstats)
CoinsDis.Name = "Coins"
CoinsDis.Value = 0
local Gems = Instance.new("IntValue", leaderstats)
Gems.Name = "Gems"
Gems.Value = 0
local ChiDisp = Instance.new("StringValue", leaderstats)
ChiDisp.Name = "Chi"
ChiDisp.Value = 0
local Strength = Instance.new("IntValue", leaderstats)
Strength.Name = "Strength"
Strength.Value = 0
local MaxStrength = Instance.new("IntValue", leaderstats)
MaxStrength.Name = "MaxStrength"
MaxStrength.Value = 10
while wait() do --COIN COVERT
local Coin = tostring(Coins.Value)
if #Coin >= 10 then -- Bill
CoinsDis.Value = Coin:sub(0,(#Coin-9)).."."..(Coin:sub(#Coin-7,(#Coin-7))).."B+"
elseif #Coin >= 7 then -- Mill
CoinsDis.Value = Coin:sub(0,(#Coin-6)).."."..(Coin:sub(#Coin-5,(#Coin-5))).."M+"
elseif #Coin >= 4 then -- Thos
CoinsDis.Value = Coin:sub(0,(#Coin-3)).."."..(Coin:sub(#Coin-2,(#Coin-2))).."K+"
else
CoinsDis.Value = tostring(Coins.Value)
end
end
while wait() do --CHI COVERT
local Chi = tostring(Chi.Value)
if #Chi >= 10 then -- Bill
ChiDisp.Value = Chi:sub(0,(#Chi-9)).."."..(Chi:sub(#Chi-7,(#Chi-7))).."B+"
elseif #Chi >= 7 then -- Mill
ChiDisp.Value = Chi:sub(0,(#Chi-6)).."."..(Chi:sub(#Chi-5,(#Chi-5))).."M+"
elseif #Chi >= 4 then -- Thos
ChiDisp.Value = Chi:sub(0,(#Chi-3)).."."..(Chi:sub(#Chi-2,(#Chi-2))).."K+"
else
ChiDisp.Value = tostring(Chi.Value)
end
end
end)

3 comments
Your using 2 while loops, so the first while loop will only run, try combining the loops.
Any errors?
No errors