levigenesis

Untitled

Aug 14th, 2020
20,976
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. local Player = game:GetService("Players").LocalPlayer
  2. local Character = Player.Character or Player.CharacterAdded:wait()
  3. local MaxLimit = game.Players.LocalPlayer.Stats.BagSizeLevel.CurrentAmount.Value
  4.  
  5. while wait() do
  6. for i,v in pairs(game.Players.LocalPlayer.PlayerGui.InfoGui:GetDescendants()) do
  7. if v.Name == "Bag" and v.Visible == false then
  8. Character.HumanoidRootPart.CFrame = game.Workspace.CashRegister.Open.CFrame
  9. wait(1)
  10. repeat wait()
  11. game.Workspace.CashRegister.Active.Value = true
  12. game:GetService("ReplicatedStorage").GeneralEvents.Rob:FireServer("Register", { ["Part"]= workspace.CashRegister.Union, ["OpenPart"]= workspace.CashRegister.Open, ["ActiveValue"]= workspace.CashRegister.Active, ["Active"]= true })
  13. until game.Players.LocalPlayer.States.Bag.Value == MaxLimit
  14. Character.HumanoidRootPart.CFrame = game.Workspace.Shops["OutlawGeneralStore1"].Head.ShopPart.CFrame
  15. end
  16. end
  17. end
Add Comment
Please, Sign In to add comment