Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Service = game:GetService("MarketplaceService")
- game.Players.PlayerAdded:Connect(function(plr)
- plr.CharacterAdded:Connect(function(char)
- if not plr then
- warn("an error occured fetching the plr")
- end
- wait(1)
- local ui = script.Rank:Clone()
- ui.Parent = char
- ui.Adornee = char.Head
- while not plr.Character.Humanoid do wait() end
- plr.Character.Humanoid.DisplayDistanceType = Enum.HumanoidDisplayDistanceType.None
- local frame = ui.Frame
- local name = frame.Name1
- local rank = frame.TextLabel
- name.Text = plr.Name
- rank.Text = "Guest"
- local GroupService = game:GetService('GroupService')
- wait(2)
- while true do
- for i,v in pairs(GroupService:GetGroupsAsync(plr.UserId))do
- if v.Id == 4412069 then
- rank.Text = v.Role
- break
- else
- rank.Text = "Guest"
- end
- end
- if plr:GetRankInGroup(4412069) == 2 then
- wait(1)
- name.TextColor3 = Color3.new(255, 255, 0)
- rank.TextColor3 = Color3.new(255, 255, 0)
- end
- if rank.Text == "Unknown Rank" then
- rank.Text = "Guest"
- wait(2)
- end
- plr.Chatted:Connect(function(Message)
- if (Message:lower() == "!host") and plr:GetRankInGroup(4412069) >= 11 then
- name.Text = "Host | ".. plr.Name
- else
- print(plr.Name.. ' nice try!')
- end
- end)
- plr.Chatted:Connect(function(Message)
- if (Message:lower() == "!unrole") and plr:GetRankInGroup(4412069) >= 7 then
- name.Text = plr.Name
- else
- print(plr.Name.. ' nice try!')
- end
- end)
- plr.Chatted:Connect(function(Message)
- if (Message:lower() == "!co-host") and plr:GetRankInGroup(4412069) >= 7 then
- name.Text = "Co-Host | ".. plr.Name
- else
- print(plr.Name.. ' nice try!')
- end
- end)
- plr.Chatted:Connect(function(Message)
- if (Message:lower() == "!spectator") and plr:GetRankInGroup(4412069) >= 7 then
- name.Text = "Spectator | ".. plr.Name
- else
- print(plr.Name.. ' nice try!')
- end
- end)
- plr.Chatted:Connect(function(Message)
- if (Message:lower() == "!afk") and plr:GetRankInGroup(4412069) >= 7 then
- name.Text = "AFK | ".. plr.Name
- plr.Character.Humanoid.WalkSpeed = 0
- else
- print(plr.Name.. ' nice try!')
- end
- end)
- plr.Chatted:Connect(function(Message)
- if (Message:lower() == "!unafk") and plr:GetRankInGroup(4412069) >= 7 then
- name.Text = plr.Name
- plr.Character.Humanoid.WalkSpeed = 16
- else
- print(plr.Name.. ' nice try!')
- end
- end)
- plr.Chatted:Connect(function(Message)
- if (Message:lower() == "!interviewer") and plr:GetRankInGroup(4412069) >= 7 then
- name.Text = "Interviewer | "..plr.Name
- else
- print(plr.Name.. ' nice try!')
- end
- end)
- end
- end)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement