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)
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)
bobux
That is not a sufficient and valid answer to post.
This discussion is preserved as it was. New answers, comments, and votes are closed.
5 comments
create the leaderstats lmao
i already made leaderstats
clearly didnt
lol im so dumb i need put plr next to function and erase the local plr
Bigger problem of yours is using game.Players.LocalPlayer in a server script...