#Part that give a rank

1 messages · Page 1 of 1 (latest)

digital sigil
#

hold on

signal tundra
#

ok

digital sigil
#

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
signal tundra
#

and where do i put it

#

in the part?

#

ok nvm

#

sss?

digital sigil
signal tundra
#

alr ty man imma try it rn

digital sigil
#

and make sure you have a part named "AdminGrant" in the workspace (without quotation marks ofc)

#

thats it

signal tundra
#

ik im a programmer

digital sigil
#

alr

signal tundra
#

but can i change the part name or it has to be "AdminGrant"

digital sigil
signal tundra
#

.

digital sigil
#

there

signal tundra
#

Server-TouchForAdmin?

digital sigil
#

ignore the name

#

I put it like that

#

just change it to AdminGrant

#

or whatever you want

signal tundra
#

ye it works tysm bro u saved my life

digital sigil
#

np

signal tundra
#

im gonna get 10K robux lol

#

how do i close this

#

/close

#

!close

#

?close

digital sigil
#

right click on this forum and click "Close Post"