So, I made a script in which if you join my group it gives you a certain item. Then, what the problem is that I'm owner and I'm in the rank of Owner. I have 3 more ranks in my group, so what happens is when It gives me the item it gives me 3 of it. How come it does this how can I fix it. I only want one radio for each rank. For example that in my group theres 4 ranks, and if you are the last rank which is 4 it gives you 4 officer radios items, and if you are in rank 3 it gives you 3 officer radios. I dont want that, I want the person who is an any rank from 1-4 to only recieve one officer radio item. I don't want it to give you 4 as if you are in rank 4. Is this a bug?
function PlayerEntered(Player)
Player.CharacterAdded:connect(function(Char)
if Player:GetRankInGroup(2539528) >= 255 then
if game.Lighting:FindFirstChild("OfficerRadio") then
local Flintlock = game.Lighting["OfficerRadio"]:Clone()
Flintlock.Parent = Player.Backpack
end
end
end)
end
game.Players.PlayerAdded:connect(PlayerEntered)

3 comments
Lol this isn't the problem. The problem is that in my group theres 4 ranks, and if you are the last rank which is 4 it gives you 4 officerradios, and if you are in rank 3 it gives you 3 officer radios. I dont want that, I want for each rank to only recieve one radio
I fixed the problem by myself ill just accept answer.
Oh, ok well sorry I couldn't give the correct answer...thanks for thumbs up tho.