Kasumo
|
  |
| Joined: 22 Mar 2013 |
| Total Posts: 2467 |
|
|
| 30 Oct 2017 09:36 PM |
Every time I join the game the value stays true, but it's supposed to turn false at the changed event.. output doesn't say that there is anything wrong. Is the format for this data store correct?
local Key = "Player - "..player.userId local DataStoreService = game:GetService("DataStoreService") local PlayerStats = DataStoreService:GetDataStore("PlayerStats")
FirstTime = Instance.new("BoolValue",InfoStore) FirstTime.Name = "FirstTime" FirstTime.Value = PlayerStats:GetAsync(Key) or true PlayerStats:SetAsync(Key, player.InfoStore.FirstTime.Value) player.InfoStore.FirstTime.Changed:connect(function() PlayerStats:SetAsync(Key,false) end) |
|
|
| Report Abuse |
|
|
Kasumo
|
  |
| Joined: 22 Mar 2013 |
| Total Posts: 2467 |
|
| |
|
WildGuest
|
  |
| Joined: 28 Feb 2010 |
| Total Posts: 647 |
|
| |
|
Kasumo
|
  |
| Joined: 22 Mar 2013 |
| Total Posts: 2467 |
|
|
| 30 Oct 2017 10:24 PM |
| Yes, assume that any variables are defined. :) |
|
|
| Report Abuse |
|
|
Kasumo
|
  |
| Joined: 22 Mar 2013 |
| Total Posts: 2467 |
|
| |
|
|
| 30 Oct 2017 10:45 PM |
| on line 7 im pretty sure that is suppose to be firsttime.Value = ########################### false |
|
|
| Report Abuse |
|
|
Kasumo
|
  |
| Joined: 22 Mar 2013 |
| Total Posts: 2467 |
|
| |
|
WildGuest
|
  |
| Joined: 28 Feb 2010 |
| Total Posts: 647 |
|
|
| 30 Oct 2017 10:51 PM |
Use the preview option before posting to see if you're post is hashtagged.
|
|
|
| Report Abuse |
|
|
Kasumo
|
  |
| Joined: 22 Mar 2013 |
| Total Posts: 2467 |
|
|
| 30 Oct 2017 11:59 PM |
| Wow I never even realized that's what that was for lol. Bump. |
|
|
| Report Abuse |
|
|
Kasumo
|
  |
| Joined: 22 Mar 2013 |
| Total Posts: 2467 |
|
|
| 31 Oct 2017 12:12 AM |
| Bump please I just want to get this to work so I can GO TO BED D: |
|
|
| Report Abuse |
|
|
Kasumo
|
  |
| Joined: 22 Mar 2013 |
| Total Posts: 2467 |
|
| |
|