So I have a leaderstats folder inside of the Player which is created by a Server Script.
But if I try to use it, it gives me the error : leaderstats is not a valid member of player
If anyone has a solution, please let me know.
So I have a leaderstats folder inside of the Player which is created by a Server Script.
But if I try to use it, it gives me the error : leaderstats is not a valid member of player
If anyone has a solution, please let me know.
Can you show me what it looks like in the explorer and give me the script you are using. As this would help me see what the issue is.
Is the leaderstats folder parented to the player, because the error is saying that it isn’t
try something like this, it’ll create the folder when the player join and move it instantly to their player
local players = game:GetService("Players")
function PlayerAdded(player)
local leaderstats = Instance.new("Folder", player)
end
players.PlayerAdded:Connect(PlayerAdded)
we need to see the script that contains the error
Got it fixed guys, thanks for your time.
Could you perhaps share how you fixed it? It would help other Developers who are facing similar issues.