local b=script.Parent.Parent.Snacks.BloxyCola local P=script.Parent.Parent.Holders.Holder1 local v=false function onClick()if v==false then v=true local r=b:clone()r.Handle.Position=P.Position r.Parent=game.Workspace r.Handle.Anchored=false wait(5)v=false end end script.Parent.ClickDetector.MouseClick:connect(onClick)


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)
