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

"is not a valid member of Model"? [SOLVED]

Asked by 8 years ago

So. I have a script and a model with BackBoard and HeadBlock. The headblock script works fine, and they're both in the same model, but when I try activating the BackBoard script,

11:15:37.697 - BackBoard is not a valid member of Model
11:15:37.697 - Script 'Players.Player.PlayerGui.GUI.Frame.BB.Script', Line 2
11:15:37.698 - Stack End

BackBoard

script.Parent.MouseButton1Click:connect(function()
    if game.Workspace.NDeployed.BackBoard.Transparency == 1 then
        game.Workspace.NDeployed.BackBoard.Transparency = 0
    else
        game.Workspace.NDeployed.BackBoard.Transparency = 1
    end
end)

HeadBlock

script.Parent.MouseButton1Click:connect(function()
    if game.Workspace.NDeployed.HeadBlock.Transparency == 1 then
        game.Workspace.NDeployed.HeadBlock.Transparency = 0
    else
        game.Workspace.NDeployed.HeadBlock.Transparency = 1
    end
end)
0
It means that it cannot find BackBoard in NDeployed. XAXA 1569 — 8y
0
Retype BackBoard. I have a hunch that there's a space that you can't see. XAXA 1569 — 8y
0
Nope :/ TheHospitalDev 1134 — 8y
View all comments (3 more)
0
If there was any way I could recreate this than I could test it but I can't so stop downvoting my answer just because I don't have enough info Hexcede 52 — 8y
0
You are aware I've not voted on anything, right? TheHospitalDev 1134 — 8y
0
Maybe it's because its a Union part? Idk, I haven't worked with unions yet much. AwsomeSpongebob 350 — 8y

1 answer

Log in to vote
-1
Answered by
Hexcede 52
8 years ago

Please provide explanation with your answers. Simply posting code does not spread knowledge of integral scripting processes which helps people understand the logic and reasoning behind your answer.

In the script, a character was slightly glitched, I have this happen a lot. Try to retype all of the BackBoard script with the error. If it doesn't work, down votes are unnecessary. Please fix my life. -_- I no understand yu

0
1) Should have been a comment, 2) Yes, 3) It has always been there, not moved nor deleted. TheHospitalDev 1134 — 8y
0
sorry :/ I did not understand you didn't know what editing was Hexcede 52 — 8y
0
I really don't think re-typing the exact same code will do anything.. TheHospitalDev 1134 — 8y
Ad

Answer this question