Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Trying to save Value to DataStore, Please help?

Asked by 4 years ago
Edited 4 years ago

Hi, I'm trying to save a value to my datastore, When I run the script it says nothing. Help?

Script is in serverscriptservice and FE is on.

Pic of output:

https://prnt.sc/ujsn6x

if you want to, just give me a working script with my variables instead of attempting to fix this one

01local players = game:GetService("Players")
02 
03local Workpace = game:GetService("Workspace")
04 
05local DataStoreService = game:GetService("DataStoreService")
06 
07local StrengthData = DataStoreService:GetDataStore("StrengthData")
08 
09 
10players.PlayerAdded:Connect(function(plr)
11wait(3)
12 
13local strength = plr.PlayerGui.Points:WaitForChild("PointDisplay")
14 
15 
View all 52 lines...
0
It could be possible that the PlayerAdded script is being ran after the player is added, therefore not running. moo1210 587 — 4y
0
its wrapped in a p-call tho brodywth 97 — 4y
0
also, i wouldnt be able to access the gui without the wait brodywth 97 — 4y

Answer this question