Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Globals
- Services =
- {
- ['AssetService'] = game:GetService('AssetService');
- ['BadgeService'] = game:GetService('BadgeService');
- ['ChangeHistoryService'] = game:GetService('ChangeHistoryService');
- ['Chat'] = game:GetService('Chat');
- ['CollectionService'] = game:GetService('CollectionService');
- ['ContentProvider'] = game:GetService('ContentProvider');
- ['ContextActionService'] = game:GetService('ContextActionService');
- ['CoreGui'] = game:GetService('CoreGui');
- ['DataStoreService'] = game:GetService('DataStoreService');
- ['Debris'] = game:GetService('Debris');
- ['GamePassService'] = game:GetService('GamePassService');
- ['GroupService'] = game:GetService('GroupService');
- ['GuiService'] = game:GetService('GuiService');
- ['HapticService'] = game:GetService('HapticService');
- ['HttpService'] = game:GetService('HttpService');
- ['InsertService'] = game:GetService('InsertService');
- ['JointsService'] = game:GetService('JointsService');
- ['KeyframeSequenceProvider'] = game:GetService('KeyframeSequenceProvider');
- ['Lighting'] = game:GetService('Lighting');
- ['LogService'] = game:GetService('LogService');
- ['LocalizationService'] = game:GetService('LocalizationService');
- ['MarketplaceService'] = game:GetService('MarketplaceService');
- ['PathfindingService'] = game:GetService('PathfindingService');
- ['PhysicsService'] = game:GetService('PhysicsService');
- ['Players'] = game:GetService('Players');
- ['PointsService'] = game:GetService('PointsService');
- ['ReplicatedFirst'] = game:GetService('ReplicatedFirst');
- ['ReplicatedStorage'] = game:GetService('ReplicatedStorage');
- ['RunService'] = game:GetService('RunService');
- ['ScriptContext'] = game:GetService('ScriptContext');
- ['Selection'] = game:GetService('Selection');
- ['ServerScriptService'] = game:GetService('ServerScriptService');
- ['ServerStorage'] = game:GetService('ServerStorage');
- ['SoundService'] = game:GetService('SoundService');
- ['StarterGui'] = game:GetService('StarterGui');
- ['StarterPack'] = game:GetService('StarterPack');
- ['StarterPlayer'] = game:GetService('StarterPlayer');
- ['Teams'] = game:GetService('Teams');
- ['TeleportService'] = game:GetService('TeleportService');
- ['TestService'] = game:GetService('TestService');
- ['TextService'] = game:GetService('TextService');
- ['TweenService'] = game:GetService('TweenService');
- ['UserInputService'] = game:GetService('UserInputService');
- ['Workspace'] = game:GetService('Workspace');
- }
- Client =
- {
- Player = Services.Players.LocalPlayer;
- Character = function()
- repeat
- wait()
- until _G.Services.Players.LocalPlayer.Character ~= nil
- return _G.Services.Players.LocalPlayer.Character
- end;
- Camera = Services.Workspace.CurrentCamera;
- Mouse = Services.Players.LocalPlayer:GetMouse();
- Backpack = Services.Players.LocalPlayer:WaitForChild('Backpack')
- }
- _G.Disabled = false
- local Player = Client.Player
- local mouse = Client.Mouse
- local Backpack = Client.Backpack
- local bindCustomer = Services.ReplicatedStorage:WaitForChild('remotes'):WaitForChild('bindCustomer')
- local Tires = {}
- local Start = function()
- while wait() and not _G.Disabled do wait()
- spawn(function()
- Tires = {}
- workspace:WaitForChild('zones'):WaitForChild('depositZone').CFrame = Player.Character.HumanoidRootPart.CFrame * CFrame.new(math.random(),0,0);
- local BackpackTire = Backpack:GetChildren()
- if #BackpackTire >= 1 then
- if BackpackTire[1] then
- BackpackTire = BackpackTire[1].Name
- else
- BackpackTire = 'Nill'
- end
- else
- BackpackTire = 'Nill'
- end
- if Services.ReplicatedStorage:WaitForChild('games'):FindFirstChild(BackpackTire) then
- local GameTire = Services.ReplicatedStorage:WaitForChild('games'):WaitForChild(BackpackTire)
- local CharacterTire = GameTire:WaitForChild('tier')
- local CharacterCash = GameTire:WaitForChild('cash')
- for Index, Tire in pairs(Services.ReplicatedStorage:WaitForChild('games'):GetChildren()) do
- spawn(function()
- local cash = Tire:WaitForChild('cash')
- Tires[#Tires + 1] = Tire:WaitForChild('tier')
- end)
- end
- for Index, Customer in ipairs(Services.Workspace:WaitForChild('customers'):GetChildren()) do
- spawn(function()
- local properties = Customer:FindFirstChild('properties')
- if properties then
- local Typeproperties = Customer:WaitForChild('properties')
- local Typetier = Typeproperties:FindFirstChild('tier')
- if Typetier then
- local Typestier = Typeproperties:WaitForChild('tier')
- for _,Tire in pairs(Tires) do
- if string.lower(Typestier.Value) == string.lower(Tire.Value) then
- if Customer.PrimaryPart:FindFirstChild('EZLink') then
- local EZLink = Instance.new('Weld')
- EZLink.Name = 'EZLink'
- EZLink.Parent = Customer.PrimaryPart
- EZLink.Part0 = Player.Character.PrimaryPart
- EZLink.Part1 = Customer.PrimaryPart
- end
- for Index, Part in pairs(Customer:GetDescendants()) do
- if Part:IsA('BasePart') then
- Part.CanCollide = false
- end
- end
- bindCustomer:FireServer(Customer)
- end
- end
- end
- end
- end)
- end
- end
- end)
- end
- end
- Start()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement