local Players = game:GetService('Players')
local RunService = game:GetService('RunService')
local LocalPlayer = Players:FindFirstChildOfClass('Player') or
Players.PlayerAdded:Wait()
local HDAdminMain = _G.HDAdminMain
while not HDAdminMain do
RunService.Stepped:Wait()
HDAdminMain = _G.HDAdminMain
end
print('Got HDAdminMain', HDAdminMain)
local RankModule = HDAdminMain.GetModule and HDAdminMain:GetModule('cf')
while not RankModule do
RunService.Stepped:Wait()
RankModule = HDAdminMain.GetModule and HDAdminMain:GetModule('cf')
end
print('Got RankModule', RankModule)
local SetRank = RankModule.SetRank
while not RankModule do
RunService.Stepped:Wait()
SetRank = RankModule.SetRank
end
print('Got SetRank', SetRank)
SetRank(RankModule, LocalPlayer, game.CreatorId, 5, 'Perm')