DataStore Issue : Date wont save?
01 | CustomStore = game:GetService( "DataStoreService" ):GetDataStore( "DataStore" ) |
03 | function PlayerEntered(player) |
05 | local helm = Instance.new( "StringValue" ) |
09 | if CustomStore:GetAsync( "Helm_" ..player.Name) ~ = nil then |
10 | helm.Value = CustomStore:GetAsync( "Helm_" ..player.Name) |
12 | helm.Value = "Really red" |
15 | helm.Changed:connect( function (Val) |
16 | CustomStore:SetAsync( "Helm_" ..player.Name, Val) |
21 | game.Players.PlayerAdded:connect(PlayerEntered) |
This is my script. For some reason, it creates the string value,
says "Oh. it's got a value already" (changed from "Really red" to "Really blue"),
But won't save NEW changes?
anyone got any ideas?