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

rebirths is not a valid member of Folder?

Asked by 3 years ago

I'm trying to make a weight lift simulator And this is the debug message that I get   09:55:22.789 rebirths is not a valid member of Folder "Players.StqrLost.leaderstats" - Server - Remotes:17

And this is the code

player.leaderstats.Strength.Value = player.leaderstats.Strength.Value + 25 * (player.leaderstats.rebirths.Value + 1)

0
you could try WaitForChild() :) Punctist 120 — 3y

1 answer

Log in to vote
0
Answered by 3 years ago

You should probably make the code:

workspace.leaderstats.Strength.Value = workspace.leaderstats.Strength.Value + 25 * (workspace.leaderstats.rebirths.Value + 1)

tell me if it doesn't work

Ad

Answer this question