generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Script Error

Previous Thread :: Next Thread 
blackhalodude is not online. blackhalodude
Joined: 16 Jun 2010
Total Posts: 412
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 is not online. 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 is not online. 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
blackhalodude is not online. blackhalodude
Joined: 16 Jun 2010
Total Posts: 412
26 Feb 2012 11:20 AM
@UFAIL2
same error
Report Abuse
blackhalodude is not online. blackhalodude
Joined: 16 Jun 2010
Total Posts: 412
26 Feb 2012 11:23 AM
@UFAIL2
now it says

Quests is not a valid member of Model
Report Abuse
blackhalodude is not online. blackhalodude
Joined: 16 Jun 2010
Total Posts: 412
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
blackhalodude is not online. blackhalodude
Joined: 16 Jun 2010
Total Posts: 412
26 Feb 2012 01:46 PM
anyone?
Report Abuse
blackhalodude is not online. blackhalodude
Joined: 16 Jun 2010
Total Posts: 412
26 Feb 2012 02:29 PM
OMJ RLY NO ONE
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image