开发者

How to have a store using dialog in ROBLOX

开发者 https://www.devze.com 2023-01-31 01:36 出处:网络
Using the new \"Dialog\" feature I want to create a store, how would I do that, like they cl开发者_开发问答ick on an option and the game gives them the weapon they want.

Using the new "Dialog" feature I want to create a store, how would I do that, like they cl开发者_开发问答ick on an option and the game gives them the weapon they want.

Yeah so this feature is fairly new, but this is also my first store.


The tree should be like this

  • Dialog
    • DialogChoice
      • UserResponse: What the text shows for the user
        • ResponseDialog: What the dialog's text becomes when the user clicks the choice

To detect when a user clicks it...

Dialog.DialogChoiceSelected:connect(function(player, dialogChoice)
    -- Do stuff
end)

'player' is an actual Player, and 'dialogChoice' is the DialogChoice they clicked on.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号