generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: No Case Sensitive

Previous Thread :: Next Thread 
GraphicsSettings is not online. GraphicsSettings
Joined: 12 Sep 2013
Total Posts: 2883
12 Jul 2016 02:16 AM
How can I make my weapon spawner not be case sensitive.

This is my code for checking the TextBox:

if Weapons:FindFirstChild(stringTextbox.Text)) ~= nil and torso ~= nil and debounce == false then
debounce = true
local Drop = Weapons:FindFirstChild(Textbox.Text).GunPickup:Clone()


Textbox.Text is where you insert the name of the weapon you want to spawn, but I want it so I am able to type in any condition (caps or no caps) and still spawn it.
Report Abuse
GraphicsSettings is not online. GraphicsSettings
Joined: 12 Sep 2013
Total Posts: 2883
12 Jul 2016 02:17 AM
My bad, I was testing string.lower but it didn't work.


if Weapons:FindFirstChild(Textbox.Text) ~= nil and torso ~= nil and debounce == false then
debounce = true
local Drop = Weapons:FindFirstChild(Textbox.Text).GunPickup:Clone()
Report Abuse
dev_Alekz is not online. dev_Alekz
Joined: 14 Sep 2013
Total Posts: 171
12 Jul 2016 02:21 AM
convert to string.lower() or string.upper()
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image