Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- game.Players.PlayerAdded:connect(function(player)
- local leaderstats = Instance.new("IntValue")
- leaderstats.Name = "leaderstats"
- leaderstats.Value = 0
- local rank = Instance.new("StringValue")
- rank.Name = "Guest"
- rank.Value = player:GetRoleInGroup(5271330) -- put group id in parentheses
- leaderstats.Parent = player
- rank.Parent = leaderstats
- if GroupService:GetRankInGroupAsync(player, 5271330) == 15 or game.MarketplaceService:UserOwnsGamePassAsync(player.UserId, 5237787) then
- game.ReplicatedFirst.ButlerSecurityDoors:Clone().Parent = player.PlayerGui
- game.ReplicatedFirst.ButlerSecurityDoors:Clone().Parent = player.StarterGui
- end
- if GroupService:GetRankInGroupAsync(player, 5271330) >= 100 then
- game.ReplicatedFirst.ButlerSecurityDoors:Clone().Parent = player.PlayerGui
- end
- -----------------------------------------------------------------------------------------------------
- player.CharacterAdded:Connect(function(char)
- print("okayeawed1")
- local Overhead = script.Rank:Clone()
- Overhead.Frame.Team.TextColor3 = Color3.fromRGB(226, 155, 64)
- pcall(function()
- Overhead.Frame.Team.Text = "Guest"
- Overhead.Frame.Team.Text = player:GetRoleInGroup(5271330)
- end)
- if GroupService:GetRankInGroupAsync(player, 5271330) >= 15 then
- Overhead.Frame.User.Text = "[WORKER] "..player.Name
- Overhead.Frame.User.TextColor3 = Color3.fromRGB(9, 137, 207)
- end
- Overhead.Frame.User.Text = player.Name
- Overhead.Frame.CompactUser.Text = player.Name
- Overhead.Parent = player.Character.Head
- player.Character.Humanoid.DisplayDistanceType = "None"
- player.Character.Humanoid.Jump = true
- -----------------------------------------------------------------------------------------------------
- if UserOwnsGamePassAsync(player, 7542848) then
- Overhead.Frame.User.TextColor3 = Color3.fromRGB(255,215,0)
- Overhead.Frame.User.Text = "[VIP] "..player.Name
- if player:FindFirstChild("Tags") then
- player.Tags:Destroy()
- end
- local tags = Instance.new("Folder",player)
- tags.Name = "Tags"
- local newTag = Instance.new("IntValue",tags)
- Overhead.Frame.User.TextColor3 = Color3.fromRGB(255,215,0)
- Overhead.Frame.User.Text = "[VIP] "..player.Name
- local chatColor = Instance.new("Color3Value",newTag)
- newTag.Name = "VIP"
- chatColor.Name = "ChatColor"
- chatColor.Value = Color3.fromRGB(239, 184, 56)
- local tagColor = Instance.new("Color3Value",newTag)
- tagColor.Name = "TagColor"
- tagColor.Value = BrickColor.new("Gold").Color
- end
- end)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement