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: RPG, Quest help

Previous Thread :: Next Thread 
tehepicford is not online. tehepicford
Joined: 26 Aug 2011
Total Posts: 1486
05 Mar 2012 05:25 PM
script.Parent.DialogChoiceSelected:connect(function(player, choice)
if (choice == script.Parent.Choice1) then
H = Instance.new("IntValue")
H.Name = GobKills
H.Parent = player
elseif (choice == script.Parent.Got) and player.leaderstats:FindFirstChild("GobKills" == true) and player.leaderstats.GobKills.Value == 5 then
script.Parent.Got.ResponceDialog = "Like I said, Here is your reward!"
wait(6)
script.Parent.Got.ResponseDialog = ""
else
script.Parent.Got.ResponseDialog = "Gome back when you get it."
wait(6)
script.Parent.Got.ResponseDialog = ""

end
end)

This works, No error's but when I select Choice1 Nothing happens, The IntValue GobKills is not in the Players or Player!
Help.
Report Abuse
tehepicford is not online. tehepicford
Joined: 26 Aug 2011
Total Posts: 1486
05 Mar 2012 05:29 PM
Bump.
Report Abuse
tehepicford is not online. tehepicford
Joined: 26 Aug 2011
Total Posts: 1486
05 Mar 2012 05:33 PM
Bump..
Report Abuse
tehepicford is not online. tehepicford
Joined: 26 Aug 2011
Total Posts: 1486
05 Mar 2012 05:36 PM
Slow today, Bump.
Report Abuse
tehepicford is not online. tehepicford
Joined: 26 Aug 2011
Total Posts: 1486
05 Mar 2012 05:42 PM
Bumpin it back up

B M
U
P
Report Abuse
tehepicford is not online. tehepicford
Joined: 26 Aug 2011
Total Posts: 1486
05 Mar 2012 05:50 PM
BUMP!?!?!?!?!?!
Report Abuse
tehepicford is not online. tehepicford
Joined: 26 Aug 2011
Total Posts: 1486
05 Mar 2012 05:59 PM
PLEASE HELP!
Report Abuse
epicfail22 is not online. epicfail22
Joined: 25 Sep 2009
Total Posts: 3739
06 Mar 2012 03:44 PM
I'll rewrite it, gimme a sec.
Report Abuse
epicfail22 is not online. epicfail22
Joined: 25 Sep 2009
Total Posts: 3739
06 Mar 2012 03:48 PM
You forgot quotes around a string, and there was a spelling mistake in 'response'.

Dialog = script.Parent
Dialog.DialogChoiceSelected:connect(function(player,choice)
if choice == Dialog.Choice1 then
Instance.new("IntValue",player).Name="GobKills" --found error
elseif choice == Dialog.Got and player.leaderstats:findFirstChild("GobKills").Value >= 5 then
Dialog.Got.ResponseDialog = "Like I said, here is your reward!"
--give reward
wait(6)
Dialog.Got.ResponseDialog = ""
else
Dialog.Got.ResponseDialog = "Come back when you get it."
wait(6)
Dialog.Got.ResponseDialog = ""
end
end)

Report Abuse
tehepicford is not online. tehepicford
Joined: 26 Aug 2011
Total Posts: 1486
06 Mar 2012 03:55 PM
Thanks =P
Report Abuse
epicfail22 is not online. epicfail22
Joined: 25 Sep 2009
Total Posts: 3739
06 Mar 2012 04:35 PM
Glad I could help.
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