--game.ReplicatedStorage.Remotes.EndPurchase:FireServer()
--if true then
--	GiveFlagBucks = function()
--		script.Disabled = true
--	end
--	if false then
--		game.ReplicatedStorage.Remotes.EndPurchase:FireServer()
--		for ind, v in ipairs(Cart) do
--			local clone = script.Parent.Cart.ItemsScrollingFrame.Item:Clone()
--			task.wait() --Wait until all of the children have been added bc lua is faster than roblox wth
--			clone.Visible = true
--			clone.ItemImage.Image = v.Decal
--			clone.ItemName.Text = v.Name
--			clone.Price.Text = v.Price
--			clone.Description.Text = v.Special
--			clone.Parent = script.Parent.Cart.ItemsScrollingFrame
--		end
--		--For performance, it's connecting now
--		script.Parent.Cart.Warning.Yes.MouseButton1Click:Connect(function()
--			PurchaseActive = true
--			script.Parent.Cart.Warning.Visible = false
--			for i,v in ipairs(Cart) do
--				if Players.LocalPlayer.leaderstats.Cash.Value >= v.Price  then
--					Players.LocalPlayer.leaderstats.Cash.Value -= v.Price
--					print("Success!")
--					script.Parent.Success:Play()
--					script.Parent.Cart.Buy.Text = "Successfully purchased "..v.Name
--					local Itemm = game.ServerStorage.Tools[v.NameInItemsFolder]:Clone()
--					Itemm.Parent = game.Players.LocalPlayer.Backpack
--					table.remove(v,Cart)
--					task.wait(2)
--				else
--					warn("Not enough Cash")
--					script.Parent.Cart.Buy.Text = "Could not purchase "..v.Name..". Error: Not Enough Cash, please remove this item if you want to continue."
--					PurchaseActive = false
--					script.Parent.Error:Play()
--					return
--				end
--				--All items have been bought
--			end
--		end)