

TouchDe = true -Check rank is lower than giver rank local plrRankId, plrRankName, plrRankType = hd: GetRank(player)Įlse -Error message local errorMessage = "Your rank is already higher than ' ". If player and not touchDe then -Setup debounce for player Parent local player = game: GetService( "Players "): GetPlayerFromCharacter(character)


Check for character and player local character = hit. Touch event ('touchPart' is the part players have to step on to receive the rank) Define the rank-to-reward and setup the corresponding rankId and rankName local rank = "Mod " local rankType = "Server " local rankId = tonumber(rank) or hd: GetRankId(rank) In a Server Script -Retrieve API local hdMain = require(game: GetService( "ReplicatedStorage "): WaitForChild( "HDAdminSetup ")): GetMain() If used on the client, 'player' must be the LocalPlayer. Example: `hd:Notice(player, "Hello world!")' hd:Error(player, message)ĭisplays an error notification to the specified player. Example: local rankId = hd:GetRankId("VIP") hd:Notice(player, message)ĭisplays a notification to the specified player. Returns the corresponding rankId from the given rankName. Example: local rankName = hd:GetRankName(1) hd:GetRankId(rankName) Returns the corresponding rankName from the given rankId. Hides and disables the HD Topbar when set to false. Example: hd:SetTopbarTransparency(0.5) hd:SetTopbarEnabled(boolean) Example: hd:DisableCommands(player, true) Example: local rankId, rankName, rankType = hd:GetRank(player) hd:DisableCommands(player, boolean)ĭisables the ability to use commands for the specified player when set to true. Returns the rankId, rankName and rankType for the specified player. Example: hd:UnRank(player) hd:GetRank(player) Sets the Rank to 0 (NonAdmin) and clears the RankType for the specified player. Example: hd:SetRank(player, "Mod", "Perm") hd:UnRank(player) Sets the Rank and RankType for the specified player. Methods Server hd:SetRank(player, rank, rankType) "Temp" - for the server the rank is given in until the player leaves."Server" - for the server the rank is given in until the server ends."Perm" - for all servers for an infinite period of time.rankType - determines the duration the player keeps their rank for:.local player = game:GetService("Players").ForeverHD) Local hd = hdMain: GetModule( "API ") Key Parameters Local hdMain = require(game: GetService( "ReplicatedStorage "): WaitForChild( "HDAdminSetup ")): GetMain()
