How do I tween text to make each letter come up next?

The title speaks for itself, I’m trying to make it so that for the bacon hair dialog that the Bacon hair’s text slowly come up!

2 Likes

@zCrxtix the script doesn’t work

local ReplicatedStorage = game:GetService("ReplicatedStorage")
local BaconHairText = game.StarterGui.BaconGui.DialogeFrame.TextLabel
local Event = ReplicatedStorage:WaitForChild("BaconHairQuest1")

Event.OnClientEvent:Connect(function()
	game.StarterGui.BaconGui.DialogeFrame.Visible = true
	
	local function typewrite(object, text)
		for i = 1,#text,1 do
			object.Text = string.sub(text,1,i)
			wait(0.05)
		end
	end
end)

typewrite(BaconHairText, "Hello! Im Bacon, Do you need something?")

What part of the script doesn’t work? Is it a local script or server script?

1 Like

I changed it to local and put it inside of StarterGUI

Where is the error coming from?

wait someone else might be able to help

How do I make it so that I can change a client’s UI? - Help and Feedback / Scripting Support - DevForum | Roblox