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

Workspace.Prestige:3: attempt to index nil with 'leaderstats'?

Asked by 3 years ago

How do i fix this error: Workspace.Prestige:3: attempt to index nil with 'leaderstats'

local plr = game.Players.LocalPlayer
script.GetPrestige.OnServerEvent:Connect(function()
    plr.leaderstats.Prestiges = plr.leaderstats.Prestiges +1
end)
0
create the leaderstats lmao WideSteal321 773 — 3y
0
i already made leaderstats stevenfury91 -17 — 3y
0
clearly didnt WideSteal321 773 — 3y
0
lol im so dumb i need put plr next to function and erase the local plr stevenfury91 -17 — 3y
0
Bigger problem of yours is using game.Players.LocalPlayer in a server script... AswormeDorijan111 531 — 3y

1 answer

Log in to vote
-2
Answered by 3 years ago

bobux

0
That is not a sufficient and valid answer to post. JesseSong 3916 — 3y
Ad

Answer this question