Yeah, I have no idea why this error is being produced, I’m passing a player and the Name of an item I want to give to the player
Error Being Produced:
Sender:
if #PlayerData.Data.Names < 1 then
print("Giving default name")
PlayerData.GiveName(plr,"Default") --Eror Right Here
end
Receiver:
function module.GiveName(player: Player, name)
local profile = module.Profiles[player]
if not profile then return end
print("Giving player name: " .. name)
table.insert(profile.Data.Names, name)
module.LoadUI(player, "Name")
end
For Reference, I’m Using ProfileService and for some odd reason it is also producing This Error:
ServerScriptService.Libs.ProfileService:1077: attempt to call a number value