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 » Game Design
Home Search
 

Re: Determining the type of value

Previous Thread :: Next Thread 
fireheart568 is not online. fireheart568
Joined: 04 Jan 2009
Total Posts: 1285
26 Dec 2014 01:13 PM
Say I have a value in the GlobalDataStore with the key "VIP"

That key's value is set to "fireheart568"

If I called it by game:GetService("DataStoreService"):GetGlobalDataStore():GetAsync("VIP"), how could I find out if the value is a string, integer or boolean in a setup like:

if game:GetService("DataStoreService"):GetGlobalDataStore():GetAsync("VIP") == ASTRING then
--Rest of the code
end
Report Abuse
maxomega3 is not online. maxomega3
Joined: 11 Jun 2010
Total Posts: 10668
26 Dec 2014 01:50 PM
ugh, I used to know how to do thisssss

bump
Report Abuse
fireheart568 is not online. fireheart568
Joined: 04 Jan 2009
Total Posts: 1285
27 Dec 2014 06:00 PM
Bump
Report Abuse
morash is not online. morash
Joined: 22 May 2010
Total Posts: 5834
27 Dec 2014 06:20 PM
variable = 1337
print(type(variable)) --"number"

variable = "One-Three-Three-Seven"
print(type(variable)) --"string"

variable = false
print(type(variable)) --"bool"
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Game Design
   
 
   
  • 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