How to detect if there's a duplicate item in Backpack?

Ohh, I get it now, I’m gonna try if it works.

So, this

local function hello()

end

is not the same as

local helloFunction = function()

end

???

There is no difference between those two, you are both assigning them as a local function.

Can refer to : What is the difference between a local function and a normal function? - #3 by XAXA

for any other issues

1 Like

Also, you can create a connection with the event Backpack.ChildAdded:Connect() and inside the parentheses, put the function there.

1 Like