Why is it underlining my player variable?
01 | local ds = game:GetService( "DataStoreService" ) |
02 | local ds 1 = ds:GetDataStore( "PostionSavingSystem" ) |
04 | game.Players.PlayerAdded:Connect( function (players) |
05 | local val = Instance.new( "Vector3Value" , players) |
10 | userdata = ds 1 :GetAsync(player.UserId) |
14 | game.Workspace:WaitForChild(player.Name):WaitForChild( "HumanoidRootPart" ).CFrame = CFrame.new(userdata.x, userdata.y, userdata.z) |
16 | ds 1 :SetAsync(player.UserId, { |
24 | game.Players.PlayerRemoving:Connect( function (player) |
25 | ds 1 :SetAysnc(player.UserId, { |
26 | x = player.Position.Value.X, |
27 | y = player.Position.Value.Y, |
28 | z = player.Position.Value.Z, |
the game is saying underlining only player, its also saying SetAysnc is not a valid member of GlobalDataStore but it is???