Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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)

7 comments

0

It means that it cannot find BackBoard in NDeployed.

0

Retype BackBoard. I have a hunch that there's a space that you can't see.

0

Nope :/

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

0

You are aware I've not voted on anything, right?

0

Maybe it's because its a Union part? Idk, I haven't worked with unions yet much.

1 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

3 comments

0
  1. Should have been a comment, 2) Yes, 3) It has always been there, not moved nor deleted.
0

sorry :/ I did not understand you didn't know what editing was

0

I really don't think re-typing the exact same code will do anything..

This discussion is preserved as it was. New answers, comments, and votes are closed.