How can I get a certain letter in a Text Label? I want to make a animated Text Label, but to do so I need to get a certain character in the TextLabel. Refer to the following script:
for i, v in pairs(script.Parent:GetChildren()) do
if v:IsA("TextLabel") then
local Btext = v.Text
v.Text = ""
local Atext = v.Text
print(Btext)
print(Atext)
print(#Btext[4]) -- Where error occurs
for i = 1, #Btext, 1 do
v.Text = v.Text .. #Btext[i]
wait(0.5)
end
end
end
The error is “Players.(PlayerName).PlayerGui.ScreenGui.LocalScript:8: attempt to get length of a nil value”. If you can help thanks