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

Im trying to get my data store script in server script service to work but its not??

Asked by 8 years ago
Edited 8 years ago

Im trying to get my data store script to work but there where 0 errors and it did not work any idea why? It also keeps all stats at 0.

01local datastore = game:service("DataStoreService"):GetDataStore("OG-OMDA")
02 
03game.Players.PlayerAdded:connect(function(p)
04local ls = Instance.new("IntValue", p)
05ls.Name = "leaderstats"
06 
07local Coins = Instance.new("IntValue", ls)
08Coins.Name = "Coins"
09 
10local Lvl = Instance.new("IntValue", ls)
11Lvl.Name = "Lvl"
12 
13local XP = Instance.new("IntValue", ls)
14XP.Name = "XP"
15 
View all 37 lines...

Please help.

1 answer

Log in to vote
0
Answered by 8 years ago

Why is your script in server storage sir? Put it in ServerScriptService sir

0
it is in serverscriptservice outlook1234567890 115 — 8y
0
sorry typo outlook1234567890 115 — 8y
0
o Spearritt 70 — 8y
Ad

Answer this question