So I am working on a group item giver, it works, besides the fact it gives two staff cards instead of one interview card and one staff card.
local groupId = 4933174
local tool = game.ServerStorage["Interview Card"]
function onPlayerSpawned(player) if player:IsInGroup(groupId) then tool:Clone().Parent = player.Backpack end end
game.Players.PlayerAdded:connect(function(player) player.CharacterAdded:connect(function() onPlayerSpawned(player) end) end)
function onPlayerSpawned(player) if player:GetRankInGroup(groupId) >= 12 then tool:Clone().Parent = player.Backpack end end
local tool2 = game.ServerStorage["Staff Card"]
function onPlayerSpawned(player) if player:IsInGroup(groupId) then tool2:Clone().Parent = player.Backpack end end
game.Players.PlayerAdded:connect(function(player) player.CharacterAdded:connect(function() onPlayerSpawned(player) end) end)
function onPlayerSpawned(player) if player:GetRankInGroup(groupId) >= 7 then tool2:Clone().Parent = player.Backpack end end
Any idea how to fix this?
