Check if speaker exists

Hi!

I am working on a chatbot which basically restarts when the script gets enabled again. Although, that script makes the speaker every time, is there a way to check if the speaker already exists?

Thanks! :slight_smile:

EDIT: I also can’t find any documentation for the ChatService. Where is it?

Regards,
Jonas

1 Like

Can you provide more information about the script?

1 Like

I literally found it when you posted, lol. Still thanks a lot for your effort!

You can use ChatService:GetSpeaker(name) to see if it exists. It will return nil if it is not there.

1 Like

Glad to help, happy coding! :cowboy_hat_face:

2 Likes