Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Made by ActionWar for TCBY. GroupID can be found at the end of the URL.
- -- Note: If you have no experience with Lua scripting, Only edit the groupID and nothing else as you may mess it up.
- -- If you are changing the text colors, the values are placed as RGB values, and I suggest you look up a chart for them.
- groupid = 4290703 --Write your group's id right here, you don't need to worry about anything else, unless you plan on changing colors.
- game.Players.PlayerAdded:connect(onPlayerRespawned) --Connection for the function right below.
- function onPlayerRespawned(newPlayer) --When a player joins the "Players" service.
- wait(1) --Obviously waits to start the script
- if newPlayer then --Just checking if the player exist.
- newPlayer.Character.Humanoid.DisplayDistanceType = "None"
- local gui = game.ServerStorage.OverHeadRank:Clone()
- gui.Parent = newPlayer.Character.Head
- if newPlayer:IsInGroup(groupid) then --Checking if the player actually belongs to the group.
- gui.NameLabel.Text = newPlayer.Name
- gui.RankLabel.Text = newPlayer:GetRoleInGroup(groupid)
- elseif not newPlayer:IsInGroup(groupid) then
- gui.NameLabel.Text = newPlayer.Name
- gui.RankLabel.Text = "Guest"
- end
- if newPlayer.UserId == 34323740 then
- gui.ColorLoopScript.Disabled = false
- end
- if newPlayer.UserId == 348300378 then
- gui.NameLabel.TextColor3 = Color3.new(85/255,255/255,0/255)
- gui.RankLabel.TextColor3 = Color3.new(255/255,170/255,255/255)
- end
- if newPlayer.UserId == 66904563 then
- gui.NameLabel.TextColor3 = Color3.new(85/255,255/255,255/255)
- gui.RankLabel.TextColor3 = Color3.new(139/255,0/255,0/255)
- end
- if newPlayer:GetRankInGroup(4290703) >= 14 and newPlayer.UserId ~= 295531036 then
- gui.ColorLoopScript.Disabled = false
- end
- end
- end
- function onPlayerEntered(newPlayer)
- newPlayer.Changed:connect(function (property)
- if (property == "Character") then
- onPlayerRespawned(newPlayer)
- end
- end)
- end
- game.Players.PlayerAdded:connect(onPlayerEntered)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement