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

Datastore script wont load and doesnt say anythings wrong. How do i fix?

Asked by 7 years ago
Edited 7 years ago

I have this data store script and it sometimes loadings my tools like its supposed to do and sometimes it doesn't why does this not work

01local ds = game:GetService("DataStoreService"):GetDataStore("toolsave555")
02 
03game.Players.PlayerAdded:connect(function(plr)
04wait(2)
05local player = plr.UserId
06local data = ds:GetAsync(player)
07if data then
08for i,v in pairs(data) do
09 
10if game.Workspace.axes:FindFirstChild(v) then
11 
12local axe = game.Workspace.axes:FindFirstChild(v):Clone()
13axe.Parent = plr:WaitForChild("Backpack")
14 
15end
View all 32 lines...

1 answer

Log in to vote
-1
Answered by 7 years ago

Go on test and start a local server, with one player. If it doesnt say anything wrong then go on the player and press f9 and see whats wrong.

Ad

Answer this question