|
| 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 |
|
|
| |
|
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 |
|
|
|
| 01 Aug 2013 05:35 AM |
| The last link you requested to me don't exist. |
|
|
| Report Abuse |
|
|
|
| 01 Aug 2013 05:36 AM |
| Can you show me the script. |
|
|
| Report Abuse |
|
|
|
| 01 Aug 2013 05:54 AM |
| @Ben yeah it does, I just tested |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 01 Aug 2013 06:29 AM |
| You can't subtract things from nil values |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
| |
|
| |
|
|
| 01 Aug 2013 06:55 AM |
| I told you what the problem was. |
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 01 Aug 2013 08:01 AM |
'local myDialog = BenHall4433 - HelperBot.Head.Dialog'
This. |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
| |
|
|
| 01 Aug 2013 08:38 AM |
No, what I quoted is one reason why it's not working.
Variables cannot have spaces. |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 01 Aug 2013 10:07 AM |
| "player" doesn't even exist lol. |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| Joined: 17 Sep 2011 |
| Total Posts: 183 |
|
|
| 01 Aug 2013 11:27 AM |
| How about game.Workspace.Player? |
|
|
| Report Abuse |
|
|