hii! i am trying to create a cool gui npc dialogue. so when the player clicks a gui button, a gui frame will tween to the screen. when it finishes tweening, i want the text appear with a typewriter effect. i have a script but i am not sure why it is not working.
gui.MouseButton1Click:Connect(function() frame:TweenPosition(UDim2.new(0.378, 0, 0.465, 0), Enum.EasingDirection.Out, Enum.EasingStyle.Back, 1):Play() wait(1) for i = 1, #text do typewriter.Text = string.sub(text, 1, i) wait(0.04) end end)
any help is appreciated!! <33