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

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

Asked by 9 years ago

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

Log in to vote
0
Answered by 9 years ago

What does

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

equal?

0
On the next line: script.Parent.Parent.Parent.Text deputychicken 226 — 9y
0
Does your GUI have "Addid" as a textlabel or something similar? PresidentAlvarez 5 — 9y
0
It is a string value. deputychicken 226 — 9y
Ad

Answer this question