Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How to check if a string consists of only one type of character?

Hi, how do I check if a string only consists of one character type? e.g A string that contains only a's ('aaaaaaaaaaaaaaaa')

1 comment

0

what do you mean

1 answer

I have something. Put it in Workspace:

for i,v in pairs(workspace:GetChildren()) do
	if v.Name == "aaaaaaaaaaaaaaaa" then
		print("b")
	end
end

For future purposes, this website is for fixing code, not making it for them.

2 comments

0

I don't know what you are saying, but this is the best I got.

0

This is not the solution I was looking for.

This discussion is preserved as it was. New answers, comments, and votes are closed.