-- This is the Selection Script of a BloxyCola, an easer way to under stand this


local drink = script.Parent.Parent.Snacks.BloxyCola -- Location of BloxyCola, the soda we want to fall out of Holder1
local spot = script.Parent.Parent.Holders.Holder1 -- Location of Holder1, place where soda is dropped
local db = false -- I honestly don't know what this means

function onClick() -- once you click the button, a soda will appear in Holder1
	if db == false then
		db = true
		local d = drink:clone() -- Cloning the soda to fall out of Holder1
		d.Handle.Position = spot.Position
		d.Parent = game.Workspace
		d.Handle.Anchored = false
		wait(5) -- How long you have to wait until you can drop another soda
		db = false
	end
end

script.Parent.ClickDetector.MouseClick:connect(onClick)
