How to make proximity prompt activate typerwrite text

Hello! I would like to know how to make a dialog with the typerwrite effect that is activated by a proximity prompt

I already have the base of the dialog I just need to know how this effect can be activated through the proximity prompt Help please D:

https://developer.roblox.com/en-us/api-reference/event/ProximityPrompt/Triggered

This is to animate the text, if you would like to trigger the animation by a proximity prompt refer to,

no that’s what he needs to get it started

This is how I would achieve the typewriting effect:

local TestText = "Hello, welcome!" -- This is what we started with

local SplitText = string.split(TestText, "") -- Split it

local StartText = "" -- This is what we will add our text too

for i = 1, #TestText, 1 do -- Loop through the total letters
    task.wait(0.1) -- Wait how ever long you want between letters
    StartText = StartText..SplitText[i] -- Add on to the last text.
    print(StartText) -- Set it to a text and it will appear as if it was being typed
end
1 Like

Thanks for the help but I’m somewhat inexperienced in this so how would it be something I mean I tried to try something but it didn’t help…

Did you already make it get when the proximity prompt is activated?

Also, what text are you trying to make into a typewriter effect and where would this typewriting effect take place?

Well no… even just try to make the effect occur and well I want this to occur in a TextLabel inside a frame that activates a tween that takes the gui up and then returns down I want the effect of typewrite