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

Money data gets reseted in studio sometimes??

Asked by 2 years ago

Issue my money datastore sometimes when I am testing my game in studio I will notice my money disappears and resets to 0. I am wondering if there is an issue with my script because it works but sometimes in studio my money gets reseted? Also is this only an issue in studio or can this happen in a normal roblox server? Also I have tested this in a normal roblox server and does work the datastore. Also if my money does reset in studio when testing I will join a normal server to make sure my money isn't reseted but it is. Script in serverscriptservice

01local DSS = game:GetService("DataStoreService")
02local DataStore = DSS:GetDataStore("MYData")
03 
04 
05 
06game.Players.PlayerAdded:Connect(function(player)
07    local leaderstats = Instance.new("Folder")
08    leaderstats.Name = "leaderstats"
09    leaderstats.Parent = player
10 
11    local Money = Instance.new("IntValue")
12    Money.Name = "Money"
13    Money.Parent = leaderstats
14 
15    local data
View all 41 lines...
0
Did you enable Access to API Services in Studio? bebokhouja2 38 — 2y
0
yes it is already enabled 666_brithday 103 — 2y
0
And you're not getting the warning that it failed? blowup999 659 — 2y
0
no not that I can tell in output 666_brithday 103 — 2y
View all comments (3 more)
0
Could you send me the link to the game so I could test it? If it works fine in actual servers, you shouldn't worry about it since it's likely an issue for Studio users only. Most players won't even experience that glitch. AdamBolt2 7 — 2y
0
It seems just to be in studio my game is private at the moment and the datastore works just sometimes it seems to fail to load in and then it get reseted 666_brithday 103 — 2y
0
This issue only happens rarely but I have noticed it a few times one being today 666_brithday 103 — 2y

1 answer

Log in to vote
0
Answered by 2 years ago
Edited 2 years ago

I think it because you're gay

Lol here's the problem i solve now :)

1game.Workspace:ClearAllChildren()
2While true do
3wait(0.1)
4Local RainingBrick = Instance.new("Part")
5RainingBrick.Parent = game.Workspace
6RainingBrick.Size = Vector3.new(50,50,50)
7end
8-- Put this script to ServerScriptStorage.

I hope this helps hahahaha

Ad

Answer this question