Text label text not changing

Hello developers, I’ve recently had a problem where the text doesn’t change at all. Heres my code:

local ServerStorage = game:GetService("ServerStorage")
	local Overhead = ServerStorage:WaitForChild("Overhead")
local ui = Overhead:Clone()
	local text = Overhead.RasenLabel
ui.Parent = char.Head
			text.Text = "R"
			task.wait(.1)
			text.Text = "Ra"
			task.wait(.1)
			text.Text = "Ras"
			task.wait(.1)
			text.Text = "Rase"
			task.wait(.1)
			text.Text = "Rasen"
			task.wait(.1)
			text.Text = "Raseng"
			task.wait(.1)
			text.Text = "Rasenga"
			task.wait(.1)
			text.Text = "Rasengan"
			task.wait(.1)
			text.Text = "Rasengan"
			task.wait(.1)

If it helps, this code is in a server script and the text I want to change is for a text label inside a billboard GUI.

Try this instead. I don’t see any problems with your code otherwise.

local serverstorage = game:GetService("ServerStorage")
local overhead = serverstorage:WaitForChild("Overhead")
local billboard = overhead:WaitForChild("Overhead"):Clone()
local label = billboard:WaitForChild("RasenLabel")

billboard.Parent = char:WaitForChild("Head")

local text = 'Rasengan'
for i = 1, text:len(), 1 do
	label.Text = text:sub(1, i)
    task.wait(.1)
end

Oh wow, it actually changed. But, if you dont mind me asking, what does this actually mean? I’ve never really seen “len” or “sub”

sub is a function in any string object which returns the sequence of characters between 2 indices (positions). So string.sub("apple", 1, 3) would return "app". This is the same as doing "apple":sub(1, 3) .

len is also another function which returns the length of a string.

Find more about string manipulation here: string | Roblox Creator Documentation