I’m not exactly sure how you want to get the values of the module from the Id, and how would you get the id. Is there a specific id for each bunny or??
Edit: I assume its by name so you could just do:
local bunnyName = Bunny.Name
local bunnyID
for k, v in pairs (BunnyConfig.Bunnys) do
if v.ID == bunnyName then
v.ID == bunnyID
break
end
end
for i, Bunny in pairs(BunnyFolder:GetChildren()) do
if Bunny:IsA('Part') and Bunny.Parent == BunnyFolder then
Bunny.Touched:Connect(function(Hit)
local bunnyName = Bunny.Name
local bunnyID
for k, v in pairs (BunnyConfig.Bunnys) do
if v.ID == bunnyName then
v.ID == bunnyID
break
end
end
local LocalPlayer = Players:GetPlayerFromCharacter(Hit.Parent)
BunnyModule:CheckBunnyFromID(bunnyID)
end)
else
warn('Touched Part Not From Bunny Folder')
end
end