Loop in event not running

As you can see when a player sits a event is fired, and the script runs. What I am trying to get is a typewriter effect on text, but the loop inside the code does not run. Is it a syntax error that i’m doing, or something different?

Does it state any error when you hover over the text with the red underlines?

No thats just grammarly being weird

Isn’t it because you created the function inside the event, but never called it?

add this

write(obj, txt)

underneath the function. But at that point you might as well not even create a function. Move the lines that are inside the function above it and remove the function creation.

im so dumb thank you so much, this is an L for me

No problem, don’t sweat it, happens to the best of us. This is why this forum exists. Happy coding! :slight_smile: