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

Multiplier is not a valid member of Folder???

Asked by 4 years ago

when i test play on Roblox studio, the log says this : Multiplier is not a valid member of Folder Stack Begin Script 'ServerScriptService.Stats', Line 21 Stack End And also the multiplier value does not show up in leaderstats

01local DataStoreService = game:GetService("DataStoreService")
02local DataStore = DataStoreService:GetDataStore("Clidat")
03 
04game.Players.PlayerAdded:Connect(function(player)
05    local leaderstats = Instance.new("Folder")
06    leaderstats.Parent = player
07    leaderstats.Name = "leaderstats"
08 
09    local Clicks = Instance.new("IntValue", leaderstats)
10    Clicks.Name = "Clicks"
11    Clicks.Value = DataStore:GetAsync(player.UserId) or 0
12 
13    local mult = Instance.new("IntValue", leaderstats)
14    mult.Name = "Multiplier"
15    mult.Value = DataStore:GetAsync(player.UserId) or 1
View all 26 lines...

1 answer

Log in to vote
0
Answered by 4 years ago

You need to add a comma to your dattosa table.

01local DataStoreService = game:GetService("DataStoreService")
02local DataStore = DataStoreService:GetDataStore("Clidat")
03 
04game.Players.PlayerAdded:Connect(function(player)
05    local leaderstats = Instance.new("Folder")
06    leaderstats.Parent = player
07    leaderstats.Name = "leaderstats"
08 
09    local Clicks = Instance.new("IntValue", leaderstats)
10    Clicks.Name = "Clicks"
11    Clicks.Value = DataStore:GetAsync(player.UserId) or 0
12 
13    local mult = Instance.new("IntValue", leaderstats)
14    mult.Name = "Multiplier"
15    mult.Value = DataStore:GetAsync(player.UserId) or 1
View all 26 lines...
0
oh and also multiplier wouldn't show up too anhminh01997 7 — 4y
Ad

Answer this question