The tool is in ServerStorage, I believe the fault is at the end where it finds the ranks needed.
local groupId = 6998516
local tool = game.ServerStorage['Cleaning Equipment']
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) = {252,253,254,255} then
tool:Clone().Parent = player.Backpack
end
end

1 comment
Got it! Thanks!