#I'm so lost on this one stupid line

1 messages · Page 1 of 1 (latest)

fringe goblet
viscid inlet
#

share the code please

fringe goblet
#
local Abbreviations = {
    "";
    "K";
    "M";
    "B";
    "T";
    "Qa";
    "Qi";
    "Sx";
    "Sp";
    "Oc";
    "No";
    "Dc";
    "Ud";
    "Dd";
    "Td";
    "Qad";
    "Qid";
    "Sxd";
    "Spd";
    "Ocd";
    "Nod";
    "Vg";
}

function Abbreviation(Number)
    if Number < 10^66 then
        for i = 1, #Abbreviations do    
            if Number < 10 ^ (i * 3) then
                if Abbreviations[i] == "inf" then
                    return "∞"
                else
                    return math.floor(Number / ((10 ^ ((i - 1) * 3)) / 100)) / 100 ..Abbreviations[i]
                end
            elseif tostring(Number) == "inf" then
                return "∞"
            end
        end
    else
        local FirstThree = string.sub(tostring(Number), 0, 4)
        local lengthuntile = string.find(string.reverse(tostring(Number)), "+")
        local endthree = string.reverse(string.sub(string.reverse(tostring(Number)), 0, lengthuntile - 1))
        local result = tostring(FirstThree.."e"..endthree)
        return result
    end
end

player = game.Players.LocalPlayer

player.Backpack.Folder.Money.Changed:Connect(function()
    player.PlayerGui.Fake.Frame.Money.TextLabel.Text = `{Abbreviation(player.Backpack.Folder.Money.Value)}`
end) ```
fringe goblet
#

its a local script in starter player scripts

viscid inlet
#

and the folder is assigned to the player's backback?

fringe goblet
viscid inlet
#

is it named "Folder"?

fringe goblet
#

its just the regular "folder"

viscid inlet
#

well its looking for "Folder" not "folder"

#

make it look for "folder" instead

fringe goblet
#

it is Folder i forgot caps because im stupid

viscid inlet
#

oh sorry

fringe goblet
#

its fine

viscid inlet
#

are you sure that Folders can go to backpack?

#

have you checked when you run?

fringe goblet
#

its worked on every other script so yes

viscid inlet
#

ok let me test it

fringe goblet
#

see

fringe goblet
viscid inlet
#

and its wait for child?

fringe goblet
viscid inlet
#

you are doing this

#

thats not waiting for the child

fringe goblet
#

i tried it both ways

viscid inlet
#

is there another script related to this?

fringe goblet
viscid inlet
#

show the other scripts that do stuff like this maybe ill check the difference

fringe goblet
# viscid inlet show the other scripts that do stuff like this maybe ill check the difference
player = game:GetService("Players").PlayerAdded:Wait()

-- game tick every 1 sec
while task.wait(GT) do
    if     player.Backpack.Folder["money1(Fake)"].Value == true then
        if player.Backpack.Folder["money2(Fake)"].Value == true then
            player.Backpack.Folder["Money"].Value = player.Backpack.Folder["Money"].Value + 5
        else
            player.Backpack.Folder["Money"].Value = player.Backpack.Folder["Money"].Value + 1
        end
    end
end ```
#

server script

viscid inlet
#

ok so since you got infinite yield try making it check every 5 seconds for it just for testing purposes

fringe goblet
viscid inlet
#

ye

#

just try i know its not effecient but its just for testing

fringe goblet
#

it worked somehow

#

with wait for child tho

viscid inlet
#

ye its cuz clients dont load everything right away

fringe goblet
#

i added it back

#

thanks

viscid inlet
#

ofc (: