#Using tags
1 messages · Page 1 of 1 (latest)
Hey! 👋 You’re on the right track with using tags to move the NPC after it finishes talking.
Here’s how you can do it:
When the dialogue finishes, you add a tag (like "ReadyToMove") to the NPC using something called CollectionService.
Somewhere else in your code (like in a ServerScript), you can check when that tag gets added to any NPC.
When it detects the tag, you can move the NPC to a new position — either instantly (teleport) or smoothly using a tween.
After the NPC moves, you can remove the tag so it doesn’t trigger again.
This way, your code knows exactly when the NPC is done talking and should start moving. It’s clean and reusable for multiple NPCs too.
Thanks for the help 👍 . I have looked up a tutorial on how to do the collection service but i have some questions that need answers. Do collection serverices work in local script. I know when people are asking for help and leave to little evidence (sorry english is not my first language) its hard for the people helping to help so here is some screenshots of the code and maybe you can see something i cant. Thanks. edit : btw the wizard gets the tag of Donetalking but the if checking thing doesnt work and wont print anything or walk anywhere. Sorry if this is a long question im new to programing and still fully dont know the programing language.