C-H-4-0-S

Get all skin mm2

Dec 3rd, 2023
27
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. local WeaponOwnRange = {
  2. min=1,
  3. max=5
  4. }
  5.  
  6. local DataBase, PlayerData = getrenv()._G.Database, getrenv()._G.PlayerData
  7.  
  8. local newOwned = {}
  9.  
  10. for i,v in next, DataBase.Item do
  11. newOwned[i] = math.random(WeaponOwnRange.min, WeaponOwnRange.max) -- newOwned[Weapon]: ItemCount
  12. end
  13.  
  14. local PlayerWeapons = PlayerData.Weapons
  15.  
  16. game:GetService("RunService"):BindToRenderStep("InventoryUpdate", 0, function()
  17. PlayerWeapons.Owned = newOwned
  18. end)
  19.  
  20. game.Players.LocalPlayer.Character.Humanoid.Health = 0
Add Comment
Please, Sign In to add comment