So I have this gun spawn script kind of thing, and it requires your userid to be in the module for it to work, and mine is but its not working, any help
local DrumList = require(game.ReplicatedStorage.Modules.SpawnerPack).DrumPackIds game:GetService("Players").PlayerAdded:Connect(function(plr) plr.Chatted:connect(function(msg) if table.find(DrumList, plr.UserId) then print("played chatted") if msg:lower(1, 12) == ":draco me" then local draco = game.ServerStorage.Draco:Clone() draco.Parent = plr.Backpack elseif msg:lower(1, 12) == ":akdrum me" then print("got akdrum typed") local akdrum = game.ServerStorage.SupressedExtended:FindFirstChild("DracoM"):Clone() print("cloned akdrum") akdrum.Name = "Draco" print("named akdrum to draco") akdrum.Parent = plr.Backpack print("parented akdrum") elseif msg:lower(1, 14) == ":glockdrum me" then local glockdrum = game.ServerStorage.SupressedExtended:FindFirstChild("GlockM"):Clone() glockdrum.Name = "Glock" glockdrum.Parent = plr.Backpack end end end) end)
Module
local Spawners = { DrumPackIds = { {162544032}; }, PistolPackIds = { {162544032,46236818}; }, TecMacPackIds = { {162544032}; }, CratePackIds = { {162544032}; }, PermitHolderIds = { {162544032}; }, } return Spawners