Advertisement
AzCreates

Roblox Cash Grab Simulator

Jan 21st, 2018
7,354
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 5.33 KB | None | 0 0
  1.  
  2. -- Globals
  3. Services =
  4.     {
  5.         ['AssetService'] = game:GetService('AssetService');
  6.         ['BadgeService'] = game:GetService('BadgeService');
  7.         ['ChangeHistoryService'] = game:GetService('ChangeHistoryService');
  8.         ['Chat'] = game:GetService('Chat');
  9.         ['CollectionService'] = game:GetService('CollectionService');
  10.         ['ContentProvider'] = game:GetService('ContentProvider');
  11.         ['ContextActionService'] = game:GetService('ContextActionService');
  12.         ['CoreGui'] = game:GetService('CoreGui');
  13.         ['DataStoreService'] = game:GetService('DataStoreService');
  14.         ['Debris'] = game:GetService('Debris');
  15.         ['GamePassService'] = game:GetService('GamePassService');
  16.         ['GroupService'] = game:GetService('GroupService');
  17.         ['GuiService'] = game:GetService('GuiService');
  18.         ['HapticService'] = game:GetService('HapticService');
  19.         ['HttpService'] = game:GetService('HttpService');
  20.         ['InsertService'] = game:GetService('InsertService');
  21.         ['JointsService'] = game:GetService('JointsService');
  22.         ['KeyframeSequenceProvider'] = game:GetService('KeyframeSequenceProvider');
  23.         ['Lighting'] = game:GetService('Lighting');
  24.         ['LogService'] = game:GetService('LogService');
  25.         ['LocalizationService'] = game:GetService('LocalizationService');
  26.         ['MarketplaceService'] = game:GetService('MarketplaceService');
  27.         ['PathfindingService'] = game:GetService('PathfindingService');
  28.         ['PhysicsService'] = game:GetService('PhysicsService');
  29.         ['Players'] = game:GetService('Players');
  30.         ['PointsService'] = game:GetService('PointsService');
  31.         ['ReplicatedFirst'] = game:GetService('ReplicatedFirst');
  32.         ['ReplicatedStorage'] = game:GetService('ReplicatedStorage');
  33.         ['RunService'] = game:GetService('RunService');
  34.         ['ScriptContext'] = game:GetService('ScriptContext');
  35.         ['Selection'] = game:GetService('Selection');
  36.         ['ServerScriptService'] = game:GetService('ServerScriptService');
  37.         ['ServerStorage'] = game:GetService('ServerStorage');
  38.         ['SoundService'] = game:GetService('SoundService');
  39.         ['StarterGui'] = game:GetService('StarterGui');
  40.         ['StarterPack'] = game:GetService('StarterPack');
  41.         ['StarterPlayer'] = game:GetService('StarterPlayer');
  42.         ['Teams'] = game:GetService('Teams');
  43.         ['TeleportService'] = game:GetService('TeleportService');
  44.         ['TestService'] = game:GetService('TestService');
  45.         ['TextService'] = game:GetService('TextService');
  46.         ['TweenService'] = game:GetService('TweenService');
  47.         ['UserInputService'] = game:GetService('UserInputService');
  48.         ['Workspace'] = game:GetService('Workspace');
  49.     }
  50.  
  51.  
  52. Client =  
  53.     {
  54.    
  55.         Player = Services.Players.LocalPlayer;
  56.        
  57.         Character = function()
  58.             repeat
  59.                 wait()
  60.             until  _G.Services.Players.LocalPlayer.Character ~= nil
  61.             return  _G.Services.Players.LocalPlayer.Character
  62.         end;
  63.        
  64.         Camera = Services.Workspace.CurrentCamera;
  65.        
  66.         Mouse = Services.Players.LocalPlayer:GetMouse();
  67.        
  68.         Backpack = Services.Players.LocalPlayer:WaitForChild('Backpack')
  69.     }
  70.  
  71.  
  72. _G.Disabled = false
  73.  
  74. local Player = Client.Player
  75. local mouse = Client.Mouse
  76. local Backpack = Client.Backpack
  77. local bindCustomer = Services.ReplicatedStorage:WaitForChild('remotes'):WaitForChild('bindCustomer')
  78. local Tires = {}
  79.  
  80. local Start = function()
  81.     while wait() and not _G.Disabled do wait()
  82.         spawn(function()
  83.             Tires = {}
  84.             workspace:WaitForChild('zones'):WaitForChild('depositZone').CFrame = Player.Character.HumanoidRootPart.CFrame * CFrame.new(math.random(),0,0);
  85.             local BackpackTire = Backpack:GetChildren()
  86.            
  87.             if #BackpackTire >= 1 then
  88.                 if BackpackTire[1] then
  89.                     BackpackTire = BackpackTire[1].Name
  90.                 else
  91.                     BackpackTire = 'Nill'
  92.                 end
  93.             else
  94.                 BackpackTire = 'Nill'
  95.             end
  96.            
  97.             if Services.ReplicatedStorage:WaitForChild('games'):FindFirstChild(BackpackTire) then
  98.                 local GameTire = Services.ReplicatedStorage:WaitForChild('games'):WaitForChild(BackpackTire)
  99.                 local CharacterTire = GameTire:WaitForChild('tier')
  100.                 local CharacterCash = GameTire:WaitForChild('cash')
  101.                
  102.                 for Index, Tire in pairs(Services.ReplicatedStorage:WaitForChild('games'):GetChildren()) do
  103.                     spawn(function()
  104.                     local cash = Tire:WaitForChild('cash')
  105.                    
  106.                         Tires[#Tires + 1] = Tire:WaitForChild('tier')
  107.                     end)
  108.                 end
  109.                
  110.                 for Index, Customer in ipairs(Services.Workspace:WaitForChild('customers'):GetChildren()) do
  111.                     spawn(function()
  112.                         local properties = Customer:FindFirstChild('properties')
  113.                         if properties then
  114.                             local Typeproperties = Customer:WaitForChild('properties')
  115.                             local Typetier = Typeproperties:FindFirstChild('tier')
  116.                             if Typetier then
  117.                                 local Typestier = Typeproperties:WaitForChild('tier')
  118.                                
  119.                                 for _,Tire in pairs(Tires) do
  120.                                     if string.lower(Typestier.Value) == string.lower(Tire.Value) then
  121.                                         if Customer.PrimaryPart:FindFirstChild('EZLink') then
  122.                                         local EZLink = Instance.new('Weld')
  123.                                         EZLink.Name = 'EZLink'
  124.                                         EZLink.Parent = Customer.PrimaryPart
  125.                                         EZLink.Part0 = Player.Character.PrimaryPart
  126.                                         EZLink.Part1 = Customer.PrimaryPart
  127.                                     end
  128.                                     for Index, Part in pairs(Customer:GetDescendants()) do
  129.                                         if Part:IsA('BasePart') then
  130.                                             Part.CanCollide = false
  131.                                         end
  132.                                     end
  133.                                     bindCustomer:FireServer(Customer)
  134.                                     end
  135.                                 end
  136.                             end
  137.                         end
  138.                
  139.                     end)
  140.                 end
  141.            
  142.             end
  143.    
  144.         end)
  145.     end
  146. end
  147.  
  148. Start()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement