Is their a way to make it if your rank is a specific number in the group you get a tool when spawned?
Here is the script I attempted to make:
-- Add script into StarterPlayer>StarterPlayerScripts
toolName = ("Glock17") -- EXAMPLE: ("Cyan Mace")
groupId = 6756481 -- Add your group id here.
game.Players.PlayerAdded:connect(function(player)
if player then
if player:IsInGroup() then
local tool1 = game.ReplicatedStorage.Tools:FindFirstChild("Glock17"):Clone()
local tool2 = game.ReplicatedStorage.Tools:FindFirstChild("Glock17"):Clone()
tool1.Parent = player.StarterGear
tool2.Parent = player.Backpack
end
end
end)

3 comments
How would I make this correlate to group rank?
If you'd like to make it group rank locked, change the if player is in group to **if player:GetRankInGroup(groupId) >= YOUR GROUP RANK HERE
Unfortunately this does not work.