Tray
1
Hi guys,
I’ve tried using this script where all the nametags are related to my group like most roleplay places but mine doesn’t work. It works for me but sometimes it doesn’t display on other members. I need help. Here is my script:
local TweenService = game:GetService(“TweenService”)
local MarketPlaceService = game:GetService(“MarketplaceService”)
local gamePassId = 179257963
local groupId = 5062496
game.Players.PlayerAdded:Connect(function(Player)
Player.CharacterAdded:Connect(function(Character)
local GuiClone = script.OverheadGui:Clone()
GuiClone.Parent = Character.Head
local InformationLabel1 = GuiClone.InformationLabel1
local InformationLabel2 = GuiClone.InformationLabel2
local PlayerRank = Player:GetRoleInGroup(5062496)
InformationLabel1.Text = Player.Name
InformationLabel2.Text = 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(InformationLabel1, TweenInfo.new(3), {TextColor3 = Color})
ColorTween:Play()
wait(1)
end
end
end)
end)

This is also placed inside the serverscript service.
system
Closed
2
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.