RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"Create a admin only tool script inside serverscript and tool located in replicatedstorage"
-- server script (ServerScriptService) local replicatedStorage = game:GetService("ReplicatedStorage") local tool = replicatedStorage:WaitForChild("AdminTool") local function onPlayerAdded(player) if player:IsInGroup(123456) and player:GetRankInGroup(123456) >= 10 then -- Replace 123456 with your group ID and 10 with the minimum rank for admin local clonedTool = tool:Clone() clonedTool.Parent = player.Backpack end end game.Players.PlayerAdded:Connect(onPlayerAdded) -- script inside the tool (AdminTool) local tool = script.Parent local debounce = false local function onActivated() if debounce then return end debounce = true -- Your admin tool functionality here wait(1) debounce = false end tool.Activated:Connect(onActivated)