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: Dialog Script

Previous Thread :: Next Thread 
BenHall4433 is not online. BenHall4433
Joined: 10 Oct 2011
Total Posts: 842
01 Aug 2013 05:06 AM
I need help on the script, but I couldn't find for a free script, so - when someone clicks on a "?,! or $" on the Dialog.. I want it to start off by saying "Hello (PlayerName), how may I help you today?!"

Does anyone know what the script is?

Thanks!

Regards,
~BenHall4433
CEO of Liberty Lanes
Report Abuse
BenHall4433 is not online. BenHall4433
Joined: 10 Oct 2011
Total Posts: 842
01 Aug 2013 05:16 AM
Bump. Anyone?
Report Abuse
velibor is not online. velibor
Joined: 24 Nov 2009
Total Posts: 1003
01 Aug 2013 05:27 AM
Well. Look at the Wiki first, then ask your Questions.

http://wiki.roblox.com/index.php/Dialog
http://wiki.roblox.com/index.php/DialogChoiceSelected_(Event)
Report Abuse
BenHall4433 is not online. BenHall4433
Joined: 10 Oct 2011
Total Posts: 842
01 Aug 2013 05:35 AM
The last link you requested to me don't exist.
Report Abuse
BenHall4433 is not online. BenHall4433
Joined: 10 Oct 2011
Total Posts: 842
01 Aug 2013 05:36 AM
Can you show me the script.
Report Abuse
EivkizArysui is not online. EivkizArysui
Joined: 14 Jul 2013
Total Posts: 201
01 Aug 2013 05:54 AM
@Ben yeah it does, I just tested
Report Abuse
BenHall4433 is not online. BenHall4433
Joined: 10 Oct 2011
Total Posts: 842
01 Aug 2013 06:28 AM
I did make this script on my own and I don't know why it's still not working...

local myDialog = BenHall4433 - HelperBot.Head.Dialog

function isChatting(player, dialogChoice)
    if dialogChoice.Name == "DialogMain" then
        myDialog.Parent = nil
        game.Chat:Chat(BenHall4433 - HelperBot.Head, "Welcome to Liberty Lanes," .. player.Name .. "! How may I help you?" , "Green")
        wait(5)
    end
end

_____________________________________________________________________________________________________________________________________________________

Thanks!

Regards,
~BenHall4433
CEO of Liberty Lanes
Report Abuse
EivkizArysui is not online. EivkizArysui
Joined: 14 Jul 2013
Total Posts: 201
01 Aug 2013 06:29 AM
You can't subtract things from nil values
Report Abuse
BenHall4433 is not online. BenHall4433
Joined: 10 Oct 2011
Total Posts: 842
01 Aug 2013 06:30 AM
Wait a minute, the name "Dialog" is not anymore I changed it into "DialogMain", I just forgotten about that, let me change it - if it still not working, then I need help...
Report Abuse
BenHall4433 is not online. BenHall4433
Joined: 10 Oct 2011
Total Posts: 842
01 Aug 2013 06:36 AM
Here I have changed this script, but it still not working - I need help!

local myDialog = BenHall4433 - HelperBot.Head.DialogMain
function isChatting(player, dialogChoice)
if dialogChoice.Name == "DialogMain" then
game.Chat:Chat(BenHall4433 - HelperBot.Head, "Welcome to Liberty Lanes," .. player.Name .. "! How may I help you?" , "Green")
wait(5)
end
end

Thanks!

Regards,
~BenHall4433
CEO of Liberty Lanes
Report Abuse
EncounterTheory is not online. EncounterTheory
Joined: 14 Oct 2012
Total Posts: 2411
01 Aug 2013 06:39 AM
Heres the easy way.

Go on build mode
Get any model, A brick, HelperBot or whatever
Go to tools
Insert Basic Objects
Then go to where it says dialog
Then edit it to change what it says.
Report Abuse
BenHall4433 is not online. BenHall4433
Joined: 10 Oct 2011
Total Posts: 842
01 Aug 2013 06:42 AM
But, I what the user to click on it and I want it to appear as their username on the Dialog...
Report Abuse
BenHall4433 is not online. BenHall4433
Joined: 10 Oct 2011
Total Posts: 842
01 Aug 2013 06:43 AM
*want
Report Abuse
EncounterTheory is not online. EncounterTheory
Joined: 14 Oct 2012
Total Posts: 2411
01 Aug 2013 06:54 AM
Oh
Report Abuse
EivkizArysui is not online. EivkizArysui
Joined: 14 Jul 2013
Total Posts: 201
01 Aug 2013 06:55 AM
I told you what the problem was.
Report Abuse
BenHall4433 is not online. BenHall4433
Joined: 10 Oct 2011
Total Posts: 842
01 Aug 2013 07:00 AM
I did remove the "nil".
Report Abuse
BenHall4433 is not online. BenHall4433
Joined: 10 Oct 2011
Total Posts: 842
01 Aug 2013 07:31 AM
Bump. Anyone?
Report Abuse
TheAwesomenessDude is not online. TheAwesomenessDude
Joined: 17 Jul 2011
Total Posts: 11602
01 Aug 2013 08:01 AM
'local myDialog = BenHall4433 - HelperBot.Head.Dialog'

This.
Report Abuse
BenHall4433 is not online. BenHall4433
Joined: 10 Oct 2011
Total Posts: 842
01 Aug 2013 08:15 AM
@TheAwsomenessDude, I did put that method that you put in the first place and I tried - but it didn't work.
Report Abuse
BenHall4433 is not online. BenHall4433
Joined: 10 Oct 2011
Total Posts: 842
01 Aug 2013 08:36 AM
Bump. Anyone?
Report Abuse
TheAwesomenessDude is not online. TheAwesomenessDude
Joined: 17 Jul 2011
Total Posts: 11602
01 Aug 2013 08:38 AM
No, what I quoted is one reason why it's not working.

Variables cannot have spaces.
Report Abuse
BenHall4433 is not online. BenHall4433
Joined: 10 Oct 2011
Total Posts: 842
01 Aug 2013 08:49 AM
I did delete the method that you have quoted, but I have updated the script and it's still NOT working - can you figure it out? The script is below:

function isChatting(player, dialogChoice)
    if dialogChoice.Name == "Dialog" then
        game.Chat:Chat(BenHall4433 - HelperBot.Head, "Welcome to Liberty Lanes," .. player.Name .. "! How may I help you?" , "Green")
        wait(5)
    end
end

Thanks!

Regards,
~BenHall4433
CEO of Liberty Lanes
Report Abuse
laughablehaha is not online. laughablehaha
Joined: 19 Apr 2012
Total Posts: 2495
01 Aug 2013 10:07 AM
"player" doesn't even exist lol.
Report Abuse
BenHall4433 is not online. BenHall4433
Joined: 10 Oct 2011
Total Posts: 842
01 Aug 2013 11:12 AM
Do you mean "(player, dialogChoice)" that could turn in to a "(dialogChoice) and " .. player.Name .. " that could turn in to a "(" .. Name .. ")"? Am I correct?

Thanks!

Regards,
~BenHall4433
CEO of Liberty Lanes
Report Abuse
newker3 is not online. newker3
Joined: 17 Sep 2011
Total Posts: 183
01 Aug 2013 11:27 AM
How about game.Workspace.Player?
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