Please post the script in the comments if you have the solution, I am not that good at scripting things.
local Player = game.Players.LocalPlayer local Tool = script.Parent local MiniumRank = 0 local groupId = 5470879
if Player:GetRankInGroup(5470879) >= MiniumRank then print("yas u have access") else
Player:Kick("Don't select StaffKey, doing this will cause you to be kicked") end