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

I am making a simulator my script for leaderstats does not work any help?

Asked by 5 years ago
01PointData = game:GetService("DataStoreService"):GetDataStore("PointData")
02RebirtData = game:GetService("DataStoreService"):GetDataStore("RebirthData")
03 
04game.Players.PlayerAdded:Connect(function(plr)
05    local LB Instance.new ("IntValue")
06    LB.Name "leaderstats"
07    LB.Parent = plr
08 
09    local p = Instance.new ("IntValue")
10    p.Name = "Points"
11    p.Parent = LB
12    P.Value = PointData:GetAsync(plr.userId)or 0
13 
14end)
15local r = Instance.new ("IntValue")
View all 24 lines...
0
Line 20 ErtyPL 129 — 5y
0
Delete end at line 20 and add it on line 25 ErtyPL 129 — 5y
0
Local script or normal and also where do I put it? charlesec 36 — 5y
1
*Screaming from a distance* SAVE STUFF IN TABLES, LIKE 100% MORE CLEANER! BashGuy10 384 — 5y

1 answer

Log in to vote
1
Answered by
ErtyPL 129
5 years ago
Edited 5 years ago

Hope I helped :] you made typos

01PointData = game:GetService("DataStoreService"):GetDataStore("PointData")
02RebirthData = game:GetService("DataStoreService"):GetDataStore("RebirthData")
03plr = game.Players.LocalPlayer
04 
05game.Players.PlayerAdded:Connect(function(plr)
06    local LB Instance.new ("IntValue")
07    LB.Name "leaderstats"
08    LB.Parent = plr
09 
10    local p = Instance.new ("IntValue")
11    p.Name = "Points"
12    p.Parent = LB
13    p.Value = PointData:GetAsync(plr.userId)or 0
14    --[[P or p ? lua is case sensitive]]
15    local r = Instance.new ("IntValue")
View all 28 lines...
Ad

Answer this question