Log in to vote

Problem? Body is not a valid member of player. Please help, I have no clue of the issue.

Asked by
ghxstlvty 133
3 days ago

Body is not a valid member of player ('', Line 2

I am not trying to reference the player in any way, shape, or form in this script I don't know why it's saying this.

I know line 2 in my script is written correctly, I used the LUA autofill to help me find the path to the object, so almost impossible it could be wrong.

    if script.Parent.Parent.Parent.Parent.Body.Package.Values.Stage3PatternSetting.Value ~= 1 and script.Parent.Parent.Parent.Parent.Body.Package.Lightbar.on.Value <= 3 then
        script.Parent.Parent.Parent.Parent.Body.Package.Lightbar.Stage3.Lights3RandomPattern.Disabled = false
        script.Parent.Parent.Parent.Parent.Body.Package.Lightbar.Stage3.B1.Light.Disabled = false
        script.Parent.Parent.Parent.Parent.Body.Package.Lightbar.Stage3.B2.Light.Disabled = false
        script.Parent.Parent.Parent.Parent.Body.Package.Lightbar.Stage3.B3.Light.Disabled = false
        script.Parent.Parent.Parent.Parent.Body.Package.Lightbar.Stage3.B4.Light.Disabled = false
        script.Parent.Parent.Parent.Parent.Body.Package.Lightbar.Stage3.BO1.Light.Disabled = false
        script.Parent.Parent.Parent.Parent.Body.Package.Values.Stage3PatternSetting.Value = 1

1 answer

Log in to vote
Answered by
friso9 2
3 days ago

Where is the script located?


Answer this question