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

My script isn't working, can anyone help me?

So, my script isn't working correctly, and here is the error message: 12:12:56.235 - Addid is not a valid member of ScreenGui 12:12:56.236 - Script 'Players.Player.PlayerGui.MusicLibrary.Menu.HistoryFrame.His', Line 2 My script is this:

script.Parent.MouseButton1Down:connect(function()
	if script.Parent.Parent.Parent.Parent.Parent.Parent.Addid ~= nil then script.Parent.Parent.Parent.Parent.AddSongName.Visible = true script.Parent.Parent.Parent.Parent.Parent.Addid.Value = script.Parent.Parent.Parent.Text script.Parent.Parent.Visible = false
end
end)

1 answer

✓ Accepted answer

What does

script.Parent.Parent.Parent.Parent.Parent.Addid.Value =

equal?

3 comments

0

On the next line: script.Parent.Parent.Parent.Text

0

Does your GUI have "Addid" as a textlabel or something similar?

0

It is a string value.

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