Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- return {
- ["Enabled"] = true;
- ["Function"] = function(API)
- warn("Function | API")
- local function Code(P)
- warn(script.Name .. " | Starting")
- local configuration = require(workspace.Popsiz.Configuration)
- local groupId = configuration.GroupSettings.groupId
- local groupRank = P:GetRankInGroup(configuration.GroupSettings.groupId)
- local groupRole = P:GetRoleInGroup(configuration.GroupSettings.groupId)
- local tweenService = game:GetService("TweenService")
- local info = TweenInfo.new(1.5, Enum.EasingStyle.Back, Enum.EasingDirection.InOut)
- local info2 = TweenInfo.new(.8, Enum.EasingStyle.Back, Enum.EasingDirection.Out)
- local nametag = API.UI.NameTag:Clone()
- local character = P:WaitForChild('Character')
- local head = character:WaitForChild("Head")
- local humanoid = character:WaitForChild("Humanoid")
- if head then
- nametag.Parent = character.HumanoidRootPart
- nametag.StudsOffset = Vector3.new(0, character.Head.Size.Y, 0) + Vector3.new(0, 2.5, 0)
- nametag.Name = P.Name
- nametag.Frame.Username.Text = P.Name
- nametag.Frame.Rank.Text = groupRole
- local rankTag = nametag.Frame.Rank
- local nameTag = nametag.Frame.Username
- local iconsFrame = nametag.Frame.Icons
- local tween1 = tweenService:Create(nametag, info, {Position = UDim2.new(0, 0, 0.25, 0)})
- local tween2 = tweenService:Create(rankTag, info, {Position = UDim2.new(0, 0, 0.5, 0)})
- local tween3 = tweenService:Create(iconsFrame, info, {Position = UDim2.new(0.054, 0, 0, 0)})
- tween1:Play()
- tween2:Play()
- tween3:Play()
- tween3.Completed:Wait()
- humanoid.DisplayDistanceType = "None"
- local images = nametag.Frame.Icons
- if P:GetRankInGroup(groupId) == 255 then
- local colorTween = tweenService:Create(nametag, info2, {TextColor3 = Color3.fromRGB(76, 118, 255)})
- colorTween:Play()
- end
- if P.UserId == 1788016643 then
- local colorTween = tweenService:Create(nametag, info2, {TextColor3 = Color3.fromRGB(188, 170, 241)})
- colorTween:Play()
- end
- if P.UserId == 1782889630 then
- local colorTween = tweenService:Create(nametag, info2, {TextColor3 = Color3.fromRGB(52, 59, 91)})
- colorTween:Play()
- end
- if P:GetRankInGroup(groupId) == 3 then
- local colorTween = tweenService:Create(nametag, info2, {TextColor3 = Color3.fromRGB(209, 177, 13)})
- colorTween:Play()
- end
- if P.UserId == 1788016643 or P:GetRankInGroup(groupId) == 255 then
- images.Pirate.Visible = true
- end
- if P:GetRankInGroup(groupId) >= 16 then
- images.Executive.Visible = true
- end
- if P:GetRankInGroup(groupId) >= 10 then
- images.Staff.Visible = true
- end
- if P:GetRankInGroup(groupId) == 4 then
- images.Represenative.Visible = true
- end
- if P:GetRankInGroup(groupId) == 23 or P:GetRankInGroup(groupId) == 255 then
- images.Developer.Visible = true
- end
- local mps = game:GetService("MarketplaceService")
- if mps:UserOwnsGamePassAsync(P.UserId, 24919579) then
- images.VIP.Visible = true
- end
- wait(.5)
- for Index, Image in pairs(iconsFrame:GetChildren()) do -- Must always be at the end of the script
- if Image:IsA("ImageLabel") then
- local imageTransparencyTween = tweenService:Create(Image, info, {ImageTransparency = 0})
- imageTransparencyTween:Play()
- end
- end
- end
- end
- for _,P in pairs(game.Players:GetPlayers()) do
- warn(P.Name .. " | Plugin Player")
- Code(P)
- end
- game.Players.PlayerAdded:Connect(function(P)
- Code(P)
- end)
- warn(script.Name .. " | Completed Start")
- end,
- }
Advertisement
Add Comment
Please, Sign In to add comment