This script is inside of a coffee pot, and is supposed to make a brick transparent and give the player a cup of coffee, but it currently does neither and I have no idea why.
local running = script.Parent.Parent.Running.Value
local full = script.Parent.Parent.Full.Value
local fakeCoffee = script.Parent.Parent.FakeCoffee
local Coffee = script.Parent.Parent.Coffee
local pot = script.Parent
function givecoffee(player)
if running == false and full == true then
full = false
Coffee.Transparency = 1
pot.ClickDetector.MaxActivationDistance = 0
game:GetService("InsertService"):LoadAsset(32199868):GetChildren()[1].Parent = player.Backpack
end
end
script.Parent.ClickDetector.mouseClick:connect(givecoffee)

2 comments
Can you check that this code is being ran by adding a print on line 9.
Added and checked... And nothing.