Destroy() function Does Not work on Text Label?
So ive made a Diolauge System and When the Player clicks the option "Sure" I want A text Label to destroy. But thats the part im stuck on so could anyone help me. Here is the code
Local D = game.StartergGui.QuestGui.NoQ
Sure.MouseButton1Click:Connect(function()
D:Destroy() <----------- That is the destroy code that doesent work
01 | if script.Parent.Parent.Parent.TalkGui.TalkFrame.Dialogue.Text = = "Hey kid Can you Do somthing for me?" then |
02 | local text = "Well i cant find My radio, last time i saw it I was at this abbandoned place" |
03 | local length = string.len(text) |
07 | script.Parent.Parent.Parent.TalkGui.TalkFrame.Dialogue.Text = text:sub( 1 , i) |
13 | script.Parent.Parent.Parent.ButtonGui.ButtonFrame.Visible = false |
14 | script.Parent.Visible = false |
end)
Sure.MouseButton1Click:Connect(function()
01 | game.StarterGui.QuestGui.NoQ:Destroy() < |
02 | if script.Parent.Parent.Parent.TalkGui.TalkFrame.Dialogue.Text = = "Hey kid Can you Do somthing for me?" then |
03 | local text = "Well i cant find My radio, last time i saw it I was at this abbandoned place" |
04 | local length = string.len(text) |
08 | script.Parent.Parent.Parent.TalkGui.TalkFrame.Dialogue.Text = text:sub( 1 , i) |
14 | script.Parent.Parent.Parent.ButtonGui.ButtonFrame.Visible = false |
15 | script.Parent.Visible = false |
end)
first I tried making a local Script then i tried doing it without the local script.