Advertisement
Guest User

Untitled

a guest
Nov 13th, 2019
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.51 KB | None | 0 0
  1. game.Players.PlayerAdded:connect(function(player)
  2.  
  3. local leaderstats = Instance.new("IntValue")
  4. leaderstats.Name = "leaderstats"
  5. leaderstats.Value = 0
  6.  
  7. local rank = Instance.new("StringValue")
  8. rank.Name = "Guest"
  9. rank.Value = player:GetRoleInGroup(5271330) -- put group id in parentheses
  10.  
  11. leaderstats.Parent = player
  12. rank.Parent = leaderstats
  13.  
  14. if GroupService:GetRankInGroupAsync(player, 5271330) == 15 or game.MarketplaceService:UserOwnsGamePassAsync(player.UserId, 5237787) then
  15. game.ReplicatedFirst.ButlerSecurityDoors:Clone().Parent = player.PlayerGui
  16. game.ReplicatedFirst.ButlerSecurityDoors:Clone().Parent = player.StarterGui
  17. end
  18. if GroupService:GetRankInGroupAsync(player, 5271330) >= 100 then
  19. game.ReplicatedFirst.ButlerSecurityDoors:Clone().Parent = player.PlayerGui
  20. end
  21. -----------------------------------------------------------------------------------------------------
  22. player.CharacterAdded:Connect(function(char)
  23. print("okayeawed1")
  24. local Overhead = script.Rank:Clone()
  25.  
  26. Overhead.Frame.Team.TextColor3 = Color3.fromRGB(226, 155, 64)
  27. pcall(function()
  28. Overhead.Frame.Team.Text = "Guest"
  29. Overhead.Frame.Team.Text = player:GetRoleInGroup(5271330)
  30. end)
  31. if GroupService:GetRankInGroupAsync(player, 5271330) >= 15 then
  32. Overhead.Frame.User.Text = "[WORKER] "..player.Name
  33. Overhead.Frame.User.TextColor3 = Color3.fromRGB(9, 137, 207)
  34. end
  35. Overhead.Frame.User.Text = player.Name
  36. Overhead.Frame.CompactUser.Text = player.Name
  37. Overhead.Parent = player.Character.Head
  38. player.Character.Humanoid.DisplayDistanceType = "None"
  39. player.Character.Humanoid.Jump = true
  40. -----------------------------------------------------------------------------------------------------
  41. if UserOwnsGamePassAsync(player, 7542848) then
  42. Overhead.Frame.User.TextColor3 = Color3.fromRGB(255,215,0)
  43. Overhead.Frame.User.Text = "[VIP] "..player.Name
  44. if player:FindFirstChild("Tags") then
  45. player.Tags:Destroy()
  46. end
  47. local tags = Instance.new("Folder",player)
  48. tags.Name = "Tags"
  49. local newTag = Instance.new("IntValue",tags)
  50. Overhead.Frame.User.TextColor3 = Color3.fromRGB(255,215,0)
  51. Overhead.Frame.User.Text = "[VIP] "..player.Name
  52. local chatColor = Instance.new("Color3Value",newTag)
  53. newTag.Name = "VIP"
  54. chatColor.Name = "ChatColor"
  55. chatColor.Value = Color3.fromRGB(239, 184, 56)
  56. local tagColor = Instance.new("Color3Value",newTag)
  57. tagColor.Name = "TagColor"
  58. tagColor.Value = BrickColor.new("Gold").Color
  59. end
  60. end)
  61. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement