game.Players.PlayerAdded:Connect(function(plr)
plr.CharacterAdded:Connect(function(char)
local function typeWrite(textbox, text)
for i=1,#text do
textbox.Text = (text):sub(1, i)
wait(0.1)
end
end
local plrtag = script.NameGui:Clone()
plrtag.Parent = char:WaitForChild('Head')
plrtag.overhead.UserName.Text = string.upper(plr.Name)
coroutine.wrap(function()
while true do
for _, IntValue in pairs(script.SettingsContainer.Configuration.Groups:GetChildren()) do
if IntValue:IsA("IntValue") then
typeWrite(plrtag.overhead.Division, string.upper(plr:GetRoleInGroup(9536284)))
wait(1)
typeWrite(plrtag.overhead.Division, string.upper(IntValue.RegimentName.Value))
wait(1)
typeWrite(plrtag.overhead.Division, string.upper(plr:GetRoleInGroup(IntValue.Value)))
end
end
end
end)
end)
end)
For some reason, the “Division” text won’t do anything.
if IntValue:IsA("IntValue") then
print("yes") -- here
typeWrite(plrtag.overhead.Division, string.upper(plr:GetRoleInGroup(9536284)))
wait(1)
typeWrite(plrtag.overhead.Division, string.upper(IntValue.RegimentName.Value))
wait(1)
typeWrite(plrtag.overhead.Division, string.upper(plr:GetRoleInGroup(IntValue.Value)))
end