Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How could I make an item giver for a rank in group?

Hello, everyone! I was wondering how I could make a loadout giver that only gives you the loadout if you have a specific rank or higher in a group. I hope somebofy is able to help me with my question, as I have no idea how I could clone the items into a player's inventory while checking if the player is in the group with a specific rank. I am glad if anyone could help me!

1 comment

0

well first you would have to check the players rank in the group

1 answer

✓ Accepted answer

It's really simple, there's tons of free models on it but I'll post my own anyways.

local ID = 
local RANK = 
local tool = "Toolname"
game.Players.PlayerAdded:Connect(function(plr)
	plr.CharacterAdded:Connect(function(char)
		if plr:GetRankInGroup(ID) == RANK then
			script:FindFirstChild(tool):Clone().Parent = plr.Backpack
	end)
end)

This discussion is preserved as it was. New answers, comments, and votes are closed.