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

I have a problem With a Npc's Gui?

Asked by 4 years ago

I have a Npc To where once you Click "Sure" he Destroys And i noticed that after he is destroyed The E Gui To talk is still there and if you click it it just re-does the dialogue again. Here is my code

01<pre class="brush: lua">Local A = Game.Players.LocalPlayer.ScreenGui
02Sure.MouseButton1Click:Connect(function()
03 
04 
05    if script.Parent.Parent.Parent.TalkGui1.TalkFrame.Dialogue.Text == "Hey kid Can you Do somthing for me?" then
06        local text = "Well i cant find My radio, last time i saw it I was at this abbandoned place"
07        local length = string.len(text)
08 
09        for i = 1, length do
10 
11            script.Parent.Parent.Parent.TalkGui1.TalkFrame.Dialogue.Text = text:sub(1, i)
12            wait(0.04)
13        end
14 
15 
View all 31 lines...

~~~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~~~ Does anybody have any idea on how to fix this Thanks

Answer this question