Its a stupid question and probably very simple. I am missing something fundamental.
I created a template Team/FFA game in studio added the weapons included with the weaponssystem
in PlayerManager I have a local function
local function UpdatePlayerPerks(player)
local Weapon = game.ReplicatedStorage.Weapons.SMG:Clone()
Weapon.parent = player:FindFirstChild("Backpack")
end
then I called it on line 7 of the PlayerDied() function also in the PlayerManager
function PlayerManager:PlayerDied(player)
if HitArray[player] then
for i = #HitArray[player], 1, -1 do
local hittingPlayer = HitArray[player][i]
if hittingPlayer ~= player then
if i == #HitArray[player] then
UpdatePlayerPerks(hittingPlayer)
ScoreArray[hittingPlayer][1] = ScoreArray[hittingPlayer][1] + 1
TeamManager:AddTeamScore(hittingPlayer.TeamColor, 1)
spawn(function() pcall(function() PointsService:AwardPoints(hittingPlayer.userId, Configurations.PLAYER_POINTS_PER_KO) end) end)
else
ScoreArray[hittingPlayer][3] = ScoreArray[hittingPlayer][3] + 1
spawn(function() pcall(function() PointsService:AwardPoints(hittingPlayer.userId, Configurations.PLAYER_POINTS_PER_ASSIST) end) end)
end
UpdatePlayerScore(hittingPlayer)
end
end
end
ScoreArray[player][2] = ScoreArray[player][2] + 1
HitArray[player] = nil
UpdatePlayerScore(player)
This seems simple, but it seems to never be called. I know its simple, but I need to get over this initial learning curve. Possible move it to the client side, but that doesnt seem right either?
Thanks everyone!

2 comments
it would really help others read it if you can put the code in a code block, thank you!
im trying