I previously asked for help after a script wouldn't give devs their tools, thing which i fixed, but now i'm working on the dev panel and i'm having a similar issue. I'm trying to get a tool when you press a button. Could anyone help?
local devs = {
["name"] = true,
["name"] = true,
["name"] = true,
["name"] = true,
["name"] = true
}
local function isDeveloper(player)
return devs[player.Name] == true
end
script.Parent.Activated:Connect(function(player)
if isDeveloper(player) then
local tool = game.ServerStorage.Noclip:Clone()
local backpack = player:FindFirstChildOfClass("Backpack")
if backpack then
tool.Parent = backpack
else
print(backpack)
end
end
end)```
** You are now Level 4! **