#Part that give a rank
1 messages · Page 1 of 1 (latest)
ok
Here take this
I took it from an earlier forum and changed like 1 thing
return function(Vargs)
local server, service = Vargs.Server, Vargs.Service
local debounce = {}
workspace:WaitForChild("AdminPad").Touched:Connect(function(part)
local player = game.Players:GetPlayerFromCharacter(part.Parent)
if not player then return end
if debounce[player] == true then return else debounce[player] = true end
if server.Admin.CheckAdmin(player) == false then
server.Admin.SetLevel(player, 100)
server.Remote.MakeGui(player,"Notification",{
Title = "Adonis Admin Pad";
Message = "You're now an admin! Click to view commands.";
Time = 10;
OnClick = server.Core.Bytecode("client.Remote.Send('ProcessCommand','"..server.Settings.Prefix.."cmds')");
})
else
server.Remote.MakeGui(player,"Notification",{
Title = "Adonis Admin Pad";
Message = "You already have admin!";
Time = 5;
})
end
task.wait(10)
debounce[player] = false
end)
end
You make a module script, name it Server-AdminGrant, and put it in the plugins folder of adonis
alr ty man imma try it rn
and make sure you have a part named "AdminGrant" in the workspace (without quotation marks ofc)
thats it
ik im a programmer
alr
but can i change the part name or it has to be "AdminGrant"
I just realized this is a wrong ss
.
Server-TouchForAdmin?
ignore the name
I put it like that
just change it to AdminGrant
or whatever you want
ye it works tysm bro u saved my life
np
right click on this forum and click "Close Post"