Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to use DialogChoiceSelected with FE?

Asked by 6 years ago

Hello,

I am working on a dialog based shop system. When a certain dialogchoice is selected, I want a script to run. The script I have works when the game isn't set to FE. The script is a regular script, so I don't think I need remote events.

Here's the script:

Dialog = script.Parent
Dialog.DialogChoiceSelected:connect(function(Player,Choice)
    if Choice.Name == "Wee" then
       Player.Character.Humanoid.Health = 0
    end
end)

Thanks,

Blue

1 answer

Log in to vote
0
Answered by
Despayr 505 Moderation Voter
6 years ago

Just use a normal script, it does not need a remote event.

0
I originally tried a regular script. It only worked in Studio. bluestreakejjp 41 — 6y
Ad

Answer this question