repeat task.wait() until game:IsLoaded()
repeat task.wait() until game.Players.LocalPlayer
repeat task.wait() until game.Players.LocalPlayer:FindFirstChild("DataLoaded")

wait(5)

local LocalPlayer = game.Players.LocalPlayer

-- Module
local ProfileModule = {}
ProfileModule.__index = ProfileModule

local function ProfileModule.New()
local self = setmetatable({}, ProfileModule)

1
2
3
4
5
self.FindData = function(name)
    return LocalPlayer.PlayerStats[name] or nil
end

return self

end

-- Convert Number Func
local function ConvertNumber(function(number)
local suffixes = {"", "k", "M", "B", "T"}
local suffix_index = 1

1
2
3
4
5
6
while number >= 1000 and suffix_index < #suffixes do
    number = number / 1000
    suffix_index = suffix_index + 1
end

return string.format("%.2f", number) .. suffixes[suffix_index]

end)

-- Fk Data?
local function GetClientData()
local Level = Profile.FindData("lvl").Value
local Money = tostring(ConvertNumber(Profile.FindData("beli").Value))
local Gem = tostring(ConvertNumber(Profile.FindData("Gem").Value))
local CurrentWeapon = Data.Config["Weapon"]["Current"]

local SwordInv = LocalPlayer.Inventory
local AccessoryInv = LocalPlayer.Accessories
local FruitInv = LocalPlayer.PlayerStats.FruitStore
local MaterialInv = LocalPlayer.PlayerStats.Material

FruitInv = HttpService:JSONDecode(FruitInv.Value)
MaterialInv = HttpService:JSONDecode(MaterialInv.Value)

local SwordList = require(game:GetService("ReplicatedStorage").Modules.SwordList)
local AllSwords = ""
for i, v in next, SwordInv:GetChildren() do
    AllSwords = AllSwords .. ("%s (%s)\n"):format(v.Name, SwordList[v.Name].Tier)
end

local AccessoryList = require(game:GetService("ReplicatedStorage").Modules.AccessoriesList)
local AllAccessories = ""
for i, v in next, AccessoryInv:GetChildren() do
    AllAccessories = AllAccessories .. ("%s (%s)\n"):format(v.Name, AccessoryList[v.Name].Tier)
end

local DFList = require(game:GetService("ReplicatedStorage").Modules.DFTier)
local AllFruits = ""
for i, v in next, FruitInv do
    for _ in next, DFList do
        if table.find(DFList[_], tostring(i)) then
            AllFruits = AllFruits .. ("%s x%d (%s)\n"):format(i, v, _)
        end
    end
end

local MaterialList = require(game:GetService("ReplicatedStorage").Modules.MaterialList)
local AllMaterials = ""
for i, v in next, MaterialInv do
    AllMaterials = AllMaterials .. ("%s x%d (%s)\n"):format(i, v, MaterialList[tostring(i)].Tier)
end

AllSwords = string.gsub(AllSwords, "\n%s*$", "")
AllAccessories = string.gsub(AllAccessories, "\n%s*$", "")
AllFruits = string.gsub(AllFruits, "\n%s*$", "")
AllMaterials = string.gsub(AllMaterials, "\n%s*$", "")

print(AllSwords)

end

GetClientData()

Edit Report
Pub: 14 Oct 2023 12:07 UTC
Views: 22