--(Variables : local Objects = { ["Giveaway"] = Instance.new("ScreenGui"), ["draggable"] = Instance.new("Frame"), ["Anonymous"] = Instance.new("ImageLabel"), ["Cashier"] = Instance.new("TextButton"), ["AutoJobs"] = Instance.new("TextLabel"), ["Manager"] = Instance.new("TextButton"), ["Boxer"] = Instance.new("TextButton"), ["Delivery"] = Instance.new("TextButton"), ["Supplier"] = Instance.new("TextButton"), ["Music"] = Instance.new("TextButton"), ["Frame"] = Instance.new("Frame"), ["Sound"] = Instance.new("Sound"), ["targethouse"] = Instance.new("ObjectValue") } local Status = { ["Cashier"] = false, ["Manager"] = false, ["Boxer"] = false, ["Delivery"] = false, ["Supplier"] = false, ["Music"] = false } --); --(Creation : Objects.Giveaway.Name = "Giveaway" Objects.Giveaway.Parent = game:GetService("Players").LocalPlayer.PlayerGui Objects.Giveaway.ResetOnSpawn = false Objects.draggable.Name = "draggable" Objects.draggable.Parent = Objects.Giveaway Objects.draggable.BackgroundColor3 = Color3.new(1, 1, 1) Objects.draggable.Position = UDim2.new(0.224719107, 0, 0.223320156, 0) Objects.draggable.Size = UDim2.new(0, 371, 0, 329) Objects.draggable.Active = true Objects.draggable.Draggable = true Objects.Anonymous.Name = "Anonymous" Objects.Anonymous.Parent = Objects.draggable Objects.Anonymous.BackgroundColor3 = Color3.new(1, 1, 1) Objects.Anonymous.BorderSizePixel = 0 Objects.Anonymous.Position = UDim2.new(-0.0754716992, 0, -0.167173252, 0) Objects.Anonymous.Size = UDim2.new(0, 427, 0, 393) Objects.Anonymous.Image = "rbxassetid://1504309217" Objects.Cashier.Name = "Cashier" Objects.Cashier.Parent = Objects.draggable Objects.Cashier.BackgroundColor3 = Color3.new(1, 1, 1) Objects.Cashier.BorderColor3 = Color3.new(0.639216, 0.639216, 0.639216) Objects.Cashier.Position = UDim2.new(0.0161725078, 0, 0.0699088126, 0) Objects.Cashier.Size = UDim2.new(0, 146, 0, 50) Objects.Cashier.Font = Enum.Font.SourceSans Objects.Cashier.Text = "Cashier" Objects.Cashier.TextColor3 = Color3.new(0, 0, 0) Objects.Cashier.TextSize = 14 Objects.AutoJobs.Name = "AutoJobs" Objects.AutoJobs.Parent = Objects.draggable Objects.AutoJobs.BackgroundColor3 = Color3.new(1, 1, 1) Objects.AutoJobs.BackgroundTransparency = 1 Objects.AutoJobs.BorderSizePixel = 0 Objects.AutoJobs.Position = UDim2.new(0.210438251, 0, -0.0825909823, 0) Objects.AutoJobs.Size = UDim2.new(0, 200, 0, 50) Objects.AutoJobs.Font = Enum.Font.SourceSansBold Objects.AutoJobs.Text = "Auto Jobs" Objects.AutoJobs.TextColor3 = Color3.new(0, 0, 0) Objects.AutoJobs.TextSize = 14 Objects.Manager.Name = "Manager" Objects.Manager.Parent = Objects.draggable Objects.Manager.BackgroundColor3 = Color3.new(1, 1, 1) Objects.Manager.BorderColor3 = Color3.new(0.639216, 0.639216, 0.639216) Objects.Manager.Position = UDim2.new(0.566540122, 0, 0.316090077, 0) Objects.Manager.Size = UDim2.new(0, 146, 0, 50) Objects.Manager.Font = Enum.Font.SourceSans Objects.Manager.Text = "Attempt to be Manager" Objects.Manager.TextColor3 = Color3.new(0, 0, 0) Objects.Manager.TextSize = 14 Objects.Boxer.Name = "Boxer" Objects.Boxer.Parent = Objects.draggable Objects.Boxer.BackgroundColor3 = Color3.new(1, 1, 1) Objects.Boxer.BorderColor3 = Color3.new(0.639216, 0.639216, 0.639216) Objects.Boxer.Position = UDim2.new(0.0150529332, 0, 0.317217827, 0) Objects.Boxer.Size = UDim2.new(0, 146, 0, 50) Objects.Boxer.Font = Enum.Font.SourceSans Objects.Boxer.Text = "Pizza Boxer" Objects.Boxer.TextColor3 = Color3.new(0, 0, 0) Objects.Boxer.TextSize = 14 Objects.Delivery.Name = "Delivery" Objects.Delivery.Parent = Objects.draggable Objects.Delivery.BackgroundColor3 = Color3.new(1, 1, 1) Objects.Delivery.BorderColor3 = Color3.new(0.639216, 0.639216, 0.639216) Objects.Delivery.Position = UDim2.new(0.566540182, 0, 0.0692343116, 0) Objects.Delivery.Size = UDim2.new(0, 146, 0, 50) Objects.Delivery.Font = Enum.Font.SourceSans Objects.Delivery.Text = "Delivery" Objects.Delivery.TextColor3 = Color3.new(0, 0, 0) Objects.Delivery.TextSize = 14 Objects.Supplier.Name = "Supplier" Objects.Supplier.Parent = Objects.draggable Objects.Supplier.BackgroundColor3 = Color3.new(1, 1, 1) Objects.Supplier.BorderColor3 = Color3.new(0.639216, 0.639216, 0.639216) Objects.Supplier.Position = UDim2.new(0.30228138, 0, 0.570431888, 0) Objects.Supplier.Size = UDim2.new(0, 146, 0, 50) Objects.Supplier.Font = Enum.Font.SourceSans Objects.Supplier.Text = "Supplier" Objects.Supplier.TextColor3 = Color3.new(0, 0, 0) Objects.Supplier.TextSize = 14 Objects.Music.Name = "Music" Objects.Music.Parent = Objects.draggable Objects.Music.BackgroundColor3 = Color3.new(1, 1, 1) Objects.Music.BorderColor3 = Color3.new(0.639216, 0.639216, 0.639216) Objects.Music.Position = UDim2.new(0.229110509, 0, 0.772036433, 0) Objects.Music.Size = UDim2.new(0, 200, 0, 50) Objects.Music.Font = Enum.Font.SourceSans Objects.Music.Text = "Music" Objects.Music.TextColor3 = Color3.new(0, 0, 0) Objects.Music.TextSize = 14 Objects.Sound.Name = "Sound" Objects.Sound.SoundId = "http://www.roblox.com/asset/?id=2305948480" Objects.Sound.Looped = true Objects.Sound.Pitch = 1 Objects.Sound.Volume = 5 Objects.Sound.Archivable = false Objects.Sound.Parent = workspace --); ---(Main : --(Boxer : spawn(function () workspace.BoxingRoom.ChildAdded:Connect(function(obj) if Status.Boxer == true then if obj.Name == "Pizza" then workspace.GameService.DraggingStarted:FireServer(workspace.AllBox.BoxClosed) wait(0.1) workspace.GameService.UpdateObjectProperty:FireServer(true, workspace.AllBox.BoxClosed, "CFrame", CFrame.new(66,4,19.5), 51158) wait(0.1) workspace.GameService.OpenBox:FireServer(workspace.AllBox.BoxClosed) wait(0.2) workspace.GameService.AssignPizzaToBox:FireServer(workspace.AllBox.BoxOpen, obj) wait(0.1) workspace.GameService.CloseBox:FireServer(workspace.AllBox.BoxOpen) wait(0.1) workspace.GameService.UpdateObjectProperty:FireServer(true, workspace.AllBox.BoxOpen, "CFrame", CFrame.new(68.2,4.4,4.9), 51158) elseif obj.Name == "Dew" then workspace.GameService.DraggingStarted:FireServer(obj) wait(0.1) workspace.GameService.UpdateObjectProperty:FireServer(true, obj, "CFrame", CFrame.new(62.8,4.9,2.7), 51158) end end end) end) --); --(Manager : game:GetService("Teams").Manager.PlayerRemoved:Connect(function() if Status.Manager then game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(workspace.ManagerChair.Seat.Position) end end) --); --(Cashier : workspace.Customers.ChildAdded:Connect(function(customer) if Status.Cashier then wait(10) workspace.Dialog:FireServer("ClickedBubble",customer.Head) wait(0.2) workspace.TutorialService.PlayerAction:FireServer("ClickedBubble",true) wait(0.2) workspace.Dialog:FireServer("RespondSelected",customer.Head.Dialog.Correct, customer.Head) wait(0.2) workspace.GameService.OrderCompleted:FireServer(customer,false,workspace.Register1) end end) --); --(Delivery : game.Players.LocalPlayer.Character.ChildAdded:connect(function(item) if Status.Delivery then item:findFirstChild("House") local house = item.House.Value local door = house:GetDescendants() for i=1,#door do if door[i].Name == "GivePizza" then game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = door[i].CFrame end end end end) --); --(Button_Clicks : Objects.Music.MouseButton1Down:Connect(function() if Status.Music then Status.Music = false Objects.Sound:Stop() else Status.Music = true Objects.Sound:Play() end end) Objects.Supplier.MouseButton1Down:Connect(function() for i, v in pairs(workspace.AllSupplyBoxes:GetChildren()) do workspace.GameService.UpdateObjectProperty:FireServer(v, "CFrame", CFrame.new(43.5000114, 4.59913683, -9.79934692, 1, 0, 0, 0, 1, 0, 0, 0, 1)) end end) Objects.Boxer.MouseButton1Down:Connect(function() if Status.Boxer then Objects.Boxer.Text = string.gsub( Objects.Boxer.Text, " -on", "") Status.Boxer = false else Objects.Boxer.Text = Objects.Boxer.Text.." -on" Status.Boxer = true end end) Objects.Manager.MouseButton1Down:Connect(function() if Status.Manager then Objects.Manager.Text = string.gsub( Objects.Manager.Text, " -on", "") Status.Manager = false else Objects.Manager.Text = Objects.Manager.Text.." -on" Status.Manager = true end end) Objects.Cashier.MouseButton1Down:Connect(function() if Status.Cashier then Objects.Cashier.Text = string.gsub( Objects.Cashier.Text, " -on", "") Status.Cashier = false else Objects.Cashier.Text = Objects.Cashier.Text.." -on" Status.Cashier = true end end) Objects.Delivery.MouseButton1Down:Connect(function() if Status.Delivery then Objects.Delivery.Text = string.gsub( Objects.Delivery.Text, " -on", "") Status.Delivery = false else Objects.Delivery.Text = Objects.Delivery.Text.." -on" Status.Delivery = true end end) --); ---);