local function updatePlayer(player)
local playerInfo = game:GetService("ReplicatedStorage"):WaitForChild("Packages")
:WaitForChild("knit"):WaitForChild("Services")
:WaitForChild("UserInfoService"):WaitForChild("RF")
:WaitForChild("GetUserInfo"):InvokeServer(player)
local money = playerInfo.Cash
local levels = playerInfo.Level[1]
local leaderstats = player:FindFirstChild("leaderstats")
local cash = leaderstats:FindFirstChild("Cash")
if not cash then
cash = Instance.new("IntValue")
cash.Name = "Cash"
cash.Parent = leaderstats
end
local level = leaderstats:FindFirstChild("Level")
if not level then
level = Instance.new("IntValue")
level.Name = "Level"
level.Parent = leaderstats
end
if not tonumber(cash.Value) then
cash.Value = money
end
cash.Value = money
level.Value = levels
end
local function updateAllPlayers()
for _, player in ipairs(game:GetService("Players"):GetPlayers()) do
updatePlayer(player)
end
end
autoUpdate = true
game.Players.PlayerAdded:Connect(updatePlayer)
while autoUpdate do
updateAllPlayers()
task.wait(1)
end
Comments
cool script didnt know this was a game glad ya posted about the game but like whats the point of the script. I get it does all that but like why does it matter... Cool script tho 5 stars on yelp