It probably broke another function, there is supposed to be another place where the function ran and it gave the error, could you show me which one it is?
NOOOOOOOOOOOO IT IS STILL GIVING THE SAME ERROR ServerScriptService.BunnyHandler.MainBunny:28: invalid argument #1 to ‘pairs’ (table expected, got nil)
function Module:SetProperties(Parent, propertiesTable)
for guiObjctName, labelProperties in pairs(propertiesTable) do
local targetGuiObject = Parent:FindFirstChild(guiObjctName)
if targetGuiObject and targetGuiObject:IsA('Frame') then
targetGuiObject = targetGuiObject:FindFirstChild('Label')
end
if not targetGuiObject then
continue
end
for propertyName, propertyValue in pairs(labelProperties) do
targetGuiObject[propertyName] = propertyValue
end
end
end
it printed all the bunnys, it cycled through them, one time it printed normal bunny the next flower bunny and the next apple bunny. And I only touched normal bunny
Exactly it checks through to see which bunny it is. Thats how it works with the loop. It should work now. Does it give any errors? If nothing happens then it has to do with the module function. Maybe try printing there.