|
| 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
|
  |
| 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 |
|
|
| |
|
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 |
|
|