local player = game.Players.LocalPlayer

for index, swag in pairs(workspace:GetChildren()) do
	if swag.Name == "DylansVendingMachine" then
		dank = swag.Buttons.SurfaceGui
	end
end

dank.Coke.MouseButton1Click:connect(function()
	local memes = game.Lighting.Coke:Clone()
	memes.Parent = player.Backpack
end)

dank.MtnDew.MouseButton1Click:connect(function()
	local memes = game.Lighting["Mtn Dew"]:Clone()
	memes.Parent = player.Backpack
end)

dank.Pepsi.MouseButton1Click:connect(function()
	local memes = game.Lighting.Pepsi:Clone()
	memes.Parent = player.Backpack
end)

dank.DrPepper.MouseButton1Click:connect(function()
	local memes = game.Lighting.DrPepper:Clone()
	memes.Parent = player.Backpack
end)


2 comments

1

you should not use Lighting to store models ect use server storage, replicated storage

0

Alright but that doesn't answer my question