Hello I’ve been stuck on this issue for ~3 days already and it’s been bugging me.
local function InitializeWeapons()
Module_FPS.SetupViewmodel()
for Key, Item in pairs(Equipped) do
GunObjects[Item] = Module_FPS:New(Item)
print(GunObjects)
ContextActionService:BindAction(Item, Equip, false, Key)
end
warn(GunObjects)
end
The second time the loop runs it over rides the data from the previous loop but doesn’t change the key, what I’m talking about:
I’m not going to show everything because its >300 lines but I’ll show what I’m pretty sure is important here:
--//Variables\\--
local Object = Common:WaitForChild(Newobject):Clone() Object.Parent = workspace.Runtime
local Name = Newobject
self.Name = Name
-- way more variables here
-- other functions etc...
return self
end