ASAP_Sow
|
  |
| Joined: 02 Dec 2011 |
| Total Posts: 58 |
|
|
| 31 Jul 2017 04:29 PM |
I have a Dialog shop that works in studio, But not in-game, I was wondering how I could make a script that would work with FE, here's my current script:
script.Parent.DialogChoiceSelected:connect(function(player, dialog) if dialog == script.Parent.Coffee then game.Lighting.GhoulCoffee:Clone().Parent = player.Backpack elseif dialog == script.Parent.Cola then game.Lighting.GhoulCola:Clone().Parent = player.Backpack elseif dialog == script.Parent.Orb then game.Lighting.Orb:Clone().Parent = player.Backpack end end)
As you can see the tools are stored in Lighting, and it will clone them to the players Backpack.
|
|
|
| Report Abuse |
|
|
|
| 31 Jul 2017 04:30 PM |
Try putting the tools into ReplicatedStorage instead and replacing Lighting in your code with ReplicatedStorage.
-The [Guy] |
|
|
| Report Abuse |
|
|
ASAP_Sow
|
  |
| Joined: 02 Dec 2011 |
| Total Posts: 58 |
|
| |
|
Wrathsong
|
  |
| Joined: 05 Jul 2012 |
| Total Posts: 22393 |
|
| |
|
|
| 31 Jul 2017 04:35 PM |
Make sure it's a LocalScript.
-The [Guy] |
|
|
| Report Abuse |
|
|
ASAP_Sow
|
  |
| Joined: 02 Dec 2011 |
| Total Posts: 58 |
|
|
| 31 Jul 2017 04:40 PM |
| Is this correct? ################################################################################## dialog) if dialog == ########################################### then game.ReplicatedStorage.GhoulCoffee:Clone().Parent = player.Backpack elseif dialog == ######################################### then game.ReplicatedStorage.GhoulCola:Clone().Parent = player.Backpack elseif dialog == ######################################## then game.ReplicatedStorage.Orb:Clone().Parent = player.Backpack end end) |
|
|
| Report Abuse |
|
|
ASAP_Sow
|
  |
| Joined: 02 Dec 2011 |
| Total Posts: 58 |
|
|
| 31 Jul 2017 04:48 PM |
I dont know what im doing.
|
|
|
| Report Abuse |
|
|
Wrathsong
|
  |
| Joined: 05 Jul 2012 |
| Total Posts: 22393 |
|
|
| 31 Jul 2017 04:54 PM |
Dialog is deprecated [2] It doesn't work anymore. Many people are having the same problem as you
|
|
|
| Report Abuse |
|
|
ASAP_Sow
|
  |
| Joined: 02 Dec 2011 |
| Total Posts: 58 |
|
| |
|
Vultorz
|
  |
| Joined: 02 Mar 2015 |
| Total Posts: 2985 |
|
|
| 31 Jul 2017 04:57 PM |
| Do you understand the word deprecated? |
|
|
| Report Abuse |
|
|
ASAP_Sow
|
  |
| Joined: 02 Dec 2011 |
| Total Posts: 58 |
|
|
| 31 Jul 2017 04:59 PM |
I do, I'm just asking if there is any other way I can make it.
|
|
|
| Report Abuse |
|
|
Wrathsong
|
  |
| Joined: 05 Jul 2012 |
| Total Posts: 22393 |
|
|
| 31 Jul 2017 05:02 PM |
not with the dialog objects
|
|
|
| Report Abuse |
|
|