Hi!
Im currently making a room giver for a hotel of a friend. The receptionist will then type "giveroom PLAYERNAME" in the chat. This is a part of my script:
local plrtogive = msg:sub(10)
if game.Players:FindFirstChild(plrtogive) then
print("Opening give GUI for " .. plrtogive)
end
The problem is: when i type "giveroom OKRPLAY" in the chat everything works fine. When i type "giveroom okrplay", it dosent find it.
It is possible to use FindFirstChild without upper and lower case?

2 comments
Okay, im just doing it case-sensitive. Thank you!
Is there a reason you can't use this loop? It's a few more lines of code but it solves the problem without any scope bloat.