I am doing this collect stone system with pairs() And I'm Trying to Find Which Brick Was Activated
local this = script.Parent
local Items = this.Items
---- Dict.
local Items = {
Diamond = Items.Diamond,
Copper = Items.Copper,
Ruby = Items.Ruby,
Emerald = Items.Emerald
}
local Levels = {
Copper = 1,
Emerald = 2,
Ruby = 3,
Diamond = 4
}
for key, value in pairs(Items) do
print(value)
value.ClickDetector.MouseClick:Connect(function(part)
print(part)
end)
end
It Returns The Player
