I'm trying to make it so that when a specific dialog choice is selected, the lighting changes dramatically. I've been trying to do this for two days now, trying as many different methods of getting the result I want as I can possibly think of- Script/LocalScript in the DialogChoice; putting the script in the parent Dialog; putting a LocalScript in StarterPlayer and firing an event; all with no results. When I test it, nothing even shows in the Output aside from "DialogChoiceSelected is not a valid member of DialogChoice", and only if I place the script in a DialogChoice.
I looked at various scripting help sites, but the majority of the answers are outdated - Apparently this function was a lot easier on Experimental Mode. A reply to a post on the Devforum a few months ago stated that if you had FilteringEnabled turned on, the function would pretty much never work. Now, with Filtering enabled site-wide, there's no choice but to do it the hard way, and I have hardly a clue what I'm doing.
Here's what my scripts last looked like before I gave up:
-- LocalScript inside of StarterPlayer
bigDialog = game.Workspace.ghostA.Head.Dialog bigDialog.DialogChoiceSelected:Connect(function(Player,Choice) game.ReplicatedStorage.RemoteEvent:FireServer() end)
-- Script inside of Workspace
game.ReplicatedStorage.RemoteEvent.OnServerEvent:Connect(function() print("Event fired") end)
If anyone has any idea how to make this work in current Roblox, I would greatly appreciate the help.