IIIIIIlII
|
  |
| Joined: 06 Jan 2011 |
| Total Posts: 710 |
|
|
| 15 Mar 2015 10:25 PM |
Don't try to prompt purchase on a guest, it will mess up your whole script! So before you call prompt purchase or check for asset, make sure the player isn't a guest :D |
|
|
| Report Abuse |
|
|
chimmihc
|
  |
| Joined: 01 Sep 2014 |
| Total Posts: 17143 |
|
|
| 15 Mar 2015 10:28 PM |
| Actually it wont error, just print a warning. |
|
|
| Report Abuse |
|
|
IIIIIIlII
|
  |
| Joined: 06 Jan 2011 |
| Total Posts: 710 |
|
|
| 15 Mar 2015 10:29 PM |
| Oh I tried checking for a asset on a guest after a hit event, the whole thing broke.. |
|
|
| Report Abuse |
|
|
IIIIIIlII
|
  |
| Joined: 06 Jan 2011 |
| Total Posts: 710 |
|
|
| 15 Mar 2015 10:31 PM |
@chim quick question, if tonumber(player.userId) > 0 then blah end
should do the trick right? |
|
|
| Report Abuse |
|
|
chimmihc
|
  |
| Joined: 01 Sep 2014 |
| Total Posts: 17143 |
|
|
| 15 Mar 2015 10:33 PM |
| user ID's are already numbers so no need for the tonumber, yeah it will prevent guests. |
|
|
| Report Abuse |
|
|
IIIIIIlII
|
  |
| Joined: 06 Jan 2011 |
| Total Posts: 710 |
|
| |
|