replicatedstorage.Remotes.Rank.OnServerInvoke = function()
local character = game.Players.LocalPlayer.Character --This is the line with the error
if not remoteData:FindFirstChild(character) then return "NoFolder" end
local rank = player.leaderstats.Rank
I'm getting index nil and I do not know how to fix this. Any help?

1 comment
This is a LocalScript right?