Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to detect if an ID is a valid group?

Asked by 8 years ago

I've tried using AssetTypeId but it doesn't really have a setting for the groups such as items do. Is there a possible way of knowing if an ID inputted is a valid group?

For example, I have a text box that changes an imagelabel to the emblem ID when the text is changed, issue is.. When inputting the ID one number at a time, it tends to come back with an error. If a user inputs text rather than numbers, how can I prevent these errors from displaying?

0
using string.sub to make sure that is a letter is typed, it would delete the number instantly (appearing as though you could not type numbers) Here is a link to where you can find out about string.sub;wiki.roblox.com/index.php?title=Function_dump/String_manipulation iFireLazer 35 — 8y

Answer this question