Sir_Spaceboi

jason help me

Nov 21st, 2021
1,118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.64 KB | None | 0 0
  1. return {
  2.     ["Enabled"] = true;
  3.     ["Function"] = function(API)
  4.         warn("Function | API")
  5.         local function Code(P)
  6.             warn(script.Name .. " | Starting")
  7.             local configuration = require(workspace.Popsiz.Configuration)
  8.             local groupId = configuration.GroupSettings.groupId
  9.             local groupRank = P:GetRankInGroup(configuration.GroupSettings.groupId)
  10.             local groupRole = P:GetRoleInGroup(configuration.GroupSettings.groupId)
  11.            
  12.             local tweenService = game:GetService("TweenService")
  13.             local info = TweenInfo.new(1.5, Enum.EasingStyle.Back, Enum.EasingDirection.InOut)
  14.             local info2 = TweenInfo.new(.8, Enum.EasingStyle.Back, Enum.EasingDirection.Out)
  15.            
  16.             local nametag = API.UI.NameTag:Clone()
  17.             local character = P:WaitForChild('Character')
  18.            
  19.             local head = character:WaitForChild("Head")
  20.             local humanoid = character:WaitForChild("Humanoid")
  21.             if head then
  22.                 nametag.Parent = character.HumanoidRootPart
  23.                 nametag.StudsOffset = Vector3.new(0, character.Head.Size.Y, 0) + Vector3.new(0, 2.5, 0)
  24.                 nametag.Name = P.Name
  25.                
  26.                 nametag.Frame.Username.Text = P.Name
  27.                 nametag.Frame.Rank.Text = groupRole
  28.                
  29.                 local rankTag = nametag.Frame.Rank
  30.                 local nameTag = nametag.Frame.Username
  31.                 local iconsFrame = nametag.Frame.Icons
  32.                
  33.                 local tween1 = tweenService:Create(nametag, info, {Position = UDim2.new(0, 0, 0.25, 0)})
  34.                 local tween2 = tweenService:Create(rankTag, info, {Position = UDim2.new(0, 0, 0.5, 0)})
  35.                 local tween3 = tweenService:Create(iconsFrame, info, {Position = UDim2.new(0.054, 0, 0, 0)})
  36.                
  37.                 tween1:Play()
  38.                 tween2:Play()
  39.                 tween3:Play()
  40.  
  41.                 tween3.Completed:Wait()
  42.  
  43.                 humanoid.DisplayDistanceType = "None"
  44.                
  45.                 local images = nametag.Frame.Icons
  46.  
  47.                 if P:GetRankInGroup(groupId) == 255 then
  48.                     local colorTween = tweenService:Create(nametag, info2, {TextColor3 = Color3.fromRGB(76, 118, 255)})
  49.                     colorTween:Play()
  50.                 end
  51.  
  52.                 if P.UserId == 1788016643 then
  53.                     local colorTween = tweenService:Create(nametag, info2, {TextColor3 = Color3.fromRGB(188, 170, 241)})
  54.                     colorTween:Play()
  55.                 end
  56.                 if P.UserId == 1782889630 then
  57.                     local colorTween = tweenService:Create(nametag, info2, {TextColor3 = Color3.fromRGB(52, 59, 91)})
  58.                     colorTween:Play()
  59.                 end
  60.  
  61.                 if P:GetRankInGroup(groupId) == 3 then
  62.                     local colorTween = tweenService:Create(nametag, info2, {TextColor3 = Color3.fromRGB(209, 177, 13)})
  63.                     colorTween:Play()
  64.                 end
  65.  
  66.                 if P.UserId == 1788016643 or P:GetRankInGroup(groupId) == 255 then
  67.                     images.Pirate.Visible = true
  68.                 end
  69.  
  70.                 if P:GetRankInGroup(groupId) >= 16 then
  71.                     images.Executive.Visible = true
  72.                 end
  73.  
  74.                 if P:GetRankInGroup(groupId) >= 10 then
  75.                     images.Staff.Visible = true
  76.                 end
  77.  
  78.                 if P:GetRankInGroup(groupId) == 4 then
  79.                     images.Represenative.Visible = true
  80.                 end
  81.  
  82.                 if P:GetRankInGroup(groupId) == 23 or P:GetRankInGroup(groupId) == 255 then
  83.                     images.Developer.Visible = true
  84.                 end
  85.  
  86.                 local mps = game:GetService("MarketplaceService")
  87.                 if mps:UserOwnsGamePassAsync(P.UserId, 24919579) then
  88.                     images.VIP.Visible = true
  89.                 end
  90.  
  91.  
  92.                 wait(.5)
  93.  
  94.                 for Index, Image in pairs(iconsFrame:GetChildren()) do -- Must always be at the end of the script
  95.                     if Image:IsA("ImageLabel") then
  96.                         local imageTransparencyTween = tweenService:Create(Image, info, {ImageTransparency = 0})
  97.                         imageTransparencyTween:Play()
  98.                     end
  99.                 end
  100.             end
  101.         end
  102.        
  103.         for _,P in pairs(game.Players:GetPlayers()) do
  104.             warn(P.Name .. " | Plugin Player")
  105.             Code(P)
  106.         end
  107.  
  108.         game.Players.PlayerAdded:Connect(function(P)
  109.             Code(P)
  110.         end)
  111.         warn(script.Name .. " | Completed Start")
  112.     end,
  113. }
Advertisement
Add Comment
Please, Sign In to add comment