|
| 26 Feb 2012 11:03 AM |
OutPut: Workspace.Man.ChatActivator.ChatGUI.Frame1.Next1.Script:23: 'end' expected (to close 'function' at line 15) near 'else' Quests is not a valid member of Model
sentence = script.Parent.Parent.Sentence
function NotActivee() sentence.Text = "Man: I need you to go buy me a Iron Sword" end
function Activee() sentence.Text = "Man: Did you get me that Iron Sword yet?" end
function Donee() sentence.Text = "Man: Thank you for getting me an Iron Sword" end
function Next() quest = script.Parent.Parent.Parent.Parent.Parent.Quests:FindFirstChild(script.Parent.Parent.Parent.QuestName) if quest.Value == NotActive then script.Parent.Parent.Parent.AllOptions.Next2:Clone().Parent = script.Parent.Parent NotActivee() script.Parent:Remove() end else if quest.Value == Active then script.Parent.Parent.Parent.AllOptions.Next3:Clone().Parent = script.Parent.Parent script.Parent.Parent.Parent.AllOptions.Exit2:Clone().Parent = script.Parent.Parent script.Parent:Remove() script.Parent.Parent.Exit1:Remove() Activee() end
else if quest.Value == Done then script.Parent.Parent.Parent.AllOptions.Exit3:Clone().Parent = script.Parent.Parent script.Parent.Parent.Exit1:Remove() Donee() end end script.Parent.MouseButton1Click:connect(Next) |
|
|
| Report Abuse |
|
|
UFAIL2
|
  |
| Joined: 14 Aug 2010 |
| Total Posts: 6905 |
|
|
| 26 Feb 2012 11:12 AM |
function Next() quest = script.Parent.Parent.Parent.Parent.Parent.Quests:FindFirstChild(script.Parent.Parent.Parent.QuestName) if quest.Value == NotActive then script.Parent.Parent.Parent.AllOptions.Next2:Clone().Parent = script.Parent.Parent NotActivee() script.Parent:Remove() elseif quest.Value == Active then script.Parent.Parent.Parent.AllOptions.Next3:Clone().Parent = script.Parent.Parent script.Parent.Parent.Parent.AllOptions.Exit2:Clone().Parent = script.Parent.Parent script.Parent:Remove() script.Parent.Parent.Exit1:Remove() Activee() elseif quest.Value == Done then script.Parent.Parent.Parent.AllOptions.Exit3:Clone().Parent = script.Parent.Parent script.Parent.Parent.Exit1:Remove() Donee() end end
~UFAIL2 Novice Coder~ |
|
|
| Report Abuse |
|
|
C0D3Y
|
  |
| Joined: 24 Jul 2010 |
| Total Posts: 1692 |
|
|
| 26 Feb 2012 11:13 AM |
| You need to add an end to your Next function |
|
|
| Report Abuse |
|
|
| |
|
|
| 26 Feb 2012 11:23 AM |
@UFAIL2 now it says
Quests is not a valid member of Model |
|
|
| Report Abuse |
|
|
|
| 26 Feb 2012 12:02 PM |
OutPut: Quests is not a valid member of Model
sentence = script.Parent.Parent.Sentence
function NotActivee() sentence.Text = "Man: I need you to go buy me a Iron Sword" end
function Activee() sentence.Text = "Man: Did you get me that Iron Sword yet?" end
function Donee() sentence.Text = "Man: Thank you for getting me an Iron Sword" end
function Next() quest = script.Parent.Parent.Parent.Parent.Parent.Quests:FindFirstChild(script.Parent.Parent.Parent.QuestName) if quest.Value == NotActive then script.Parent.Parent.Parent.AllOptions.Next2:Clone().Parent = script.Parent.Parent NotActivee() script.Parent:Remove() elseif quest.Value == Active then script.Parent.Parent.Parent.AllOptions.Next3:Clone().Parent = script.Parent.Parent script.Parent.Parent.Parent.AllOptions.Exit2:Clone().Parent = script.Parent.Parent script.Parent:Remove() script.Parent.Parent.Exit1:Remove() Activee() elseif quest.Value == Done then script.Parent.Parent.Parent.AllOptions.Exit3:Clone().Parent = script.Parent.Parent script.Parent.Parent.Exit1:Remove() Donee() end end script.Parent.MouseButton1Click:connect(Next) |
|
|
| Report Abuse |
|
|
| |
|
| |
|