Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local TweenService = game:GetService("TweenService")
- local MarketPlaceService = game:GetService("MarketplaceService")
- local gamePassId = 1234567 --REPLACE THIS WITH YOUR GAMEPASSID
- local groupId = 1234567 --REPLACE THIS WITH YOUR GROUPID
- game.Players.PlayerAdded:Connect(function(Player)
- Player.CharacterAdded:Connect(function(Character)
- local GuiClone = script.OverheadGui:Clone()
- GuiClone.Parent = Character.Head
- local InformationLabel = GuiClone.InformationLabel
- local PlayerRank = Player:GetRoleInGroup(groupId)
- InformationLabel.Text = Player.Name .. " - " .. PlayerRank
- if MarketPlaceService:UserOwnsGamePassAsync(Player.UserId, gamePassId) then
- while true do
- local Color = Color3.new(math.random(), math.random(), math.random())
- local ColorTween = TweenService:Create(InformationLabel, TweenInfo.new(3), {TextColor3 = Color})
- ColorTween:Play()
- wait(3)
- end
- end
- end)
- end)
Add Comment
Please, Sign In to add comment