How to make a Dialogue System / Part 2 - Roblox Studio 2022

Поделиться
HTML-код
  • Опубликовано: 8 дек 2022
  • Roblox Model 📦: www.roblox.com/library/134790...
    Scripts📜: pastebin.com/hkCu4Bzb
    My discord: Telemacos#8418
    My roblox account: www.roblox.com/users/40740165...
    Talent Hub: talent.roblox.com/creators/40...
  • ИгрыИгры

Комментарии • 86

  • @OwllYranni
    @OwllYranni Год назад +9

    Dude, ur tutorials are literally helping me to make my game, and oh god... It's a REALLY BIG project... but it's gonna worth the work, thanks for making so helpfull tutorials! Keep on like that!

    • @juicejosh1520
      @juicejosh1520 11 месяцев назад

      What's it about?

    • @StrawberryDeveloper.
      @StrawberryDeveloper. 11 месяцев назад

      what is it about? hears interesting, im making a big project too lol

    • @Raphaeltheslayer
      @Raphaeltheslayer 6 месяцев назад

      @@StrawberryDeveloper. The fact all 3 of us are Is kinda funny! I'd like to know what yours is about

    • @StrawberryDeveloper.
      @StrawberryDeveloper. 6 месяцев назад

      Do you have discord? Maybe we can talk more about it there @@Raphaeltheslayer

  • @PIPEWASXD
    @PIPEWASXD Год назад +1

    Nice video as always!

  • @skegior2323
    @skegior2323 Год назад +10

    Hey, you gonna be making a part 3? Where you can teach us how to add a quest system, would be really helpful, thanks brodie.

  • @dominik2.Ogaming_VR
    @dominik2.Ogaming_VR Год назад +1

    Hey Teletacos I love ur vidds!
    Btw Can you make a tutorial how to make a story game?

  • @fiyex
    @fiyex Год назад +12

    You should make a part three but have the next one maybe give you an item for going through specific dialogue or maybe having a requirement for a special dialogue to show up or something like that.

  • @BeepSheepHello
    @BeepSheepHello Год назад +2

    Ayo nice and first

  • @azuslol5871
    @azuslol5871 Год назад +4

    Hey not bad at all, i've made a system by myself before but i lost the code so i though of taking a look at how people do it. Your approach isn't bad at all , however instead of allowing only text to be used i made it pass functions through tables , this way when a choice is selected not only you can show text but you can call actions which is super useful. Of course this will depend on your game type

    • @thesnapdev
      @thesnapdev Год назад

      Can I ask how exactly you did it? I just don't really understand...

    • @EveryBodyHatesKiki-cq9zr
      @EveryBodyHatesKiki-cq9zr 2 дня назад

      can u please show how ive been trying for a while now

  • @rexdoesroblox1135
    @rexdoesroblox1135 Год назад

    This is really helpful

  • @user-kl4ir1dq4v
    @user-kl4ir1dq4v 8 месяцев назад +3

    the dialogue works but the buttons are broken for me, how the hell do i fix it?

  • @tak.o.5337
    @tak.o.5337 Год назад +2

    So what if for example we want it to fire a certain remote event after we select a specific answer?

  • @GANimationZCreationZ
    @GANimationZCreationZ Год назад

    Hey Teletacos I need your help, I like your videos, about how you explain, how you tell, or some people that need fast to make games without hearing how to do it. You just give them a script you are good person I found. I have one question I've been searching on YT RoDevFom and ChatGPT how do I add a Command line when choices is chosen a Command start that kicks, bans, teleport, given effects or anything. Sorry for long Comments ._.

  • @cptjackspanker3106
    @cptjackspanker3106 11 месяцев назад

    The dialogue system works perfectly, but some of my NPC's are much much larger than the player models so the root part is far out of reach and the dialogue prompt can't be activated, how could I fix this?

  • @_matioo
    @_matioo Год назад +2

    Why does the E button appears, but when i press it nothing happens?

  • @ichad6535
    @ichad6535 Год назад +2

    Can u make a vid about how to make a jumpscare for an ai?

  • @Dippybro
    @Dippybro Год назад +3

    THANK YOU SO MUCH, but i have a question.
    How can i freeze player while player is in Dialogue?

  • @CattAztrophe
    @CattAztrophe Год назад +1

    how do i make it so i can use the "Info" script multiple times on an NPC? like how can i make another NPC be able to chat?

  • @AshSpawn
    @AshSpawn Год назад

    How would I make a first time greet message? So when the player interacts with the npc again they cannot see the first dialog and choices and will be presnted with something else?

  • @kazissilly
    @kazissilly 11 дней назад

    Great tutorial overall, but something has been bothering me whenever I test it out. I changed the design of the choice buttons, but in the game, it displays how you designed the UI. Is there a way to fix this? I'm not very good at explaining things so I apologize if some can't understand what I'm saying.

  • @Sweet_springYT
    @Sweet_springYT 4 месяца назад

    I need so much help when I test it to try to play it. The text box for the thing is already there and I didn’t even test it out yet.

  • @CashoutJabe
    @CashoutJabe Год назад

    You should do quest system with this dialogue system

  • @PlaZmaPK
    @PlaZmaPK Год назад +1

    can you tell me how to add a typewriter sound?

  • @eddieddieeddie
    @eddieddieeddie Год назад +2

    i have an issue with the leave message being the same on all characters, despite each module script being separate and having different ones, it seems to default always to the first npc that the player speaks to. anyone know a fix to that?

    • @Snickers-ev8hv
      @Snickers-ev8hv Год назад

      I can't change the leave message at all how did you do it

  • @auevi
    @auevi Год назад +1

    how do I connect the choices to receiving an item?

  • @cptjackspanker3106
    @cptjackspanker3106 11 месяцев назад

    Chef's kiss

  • @OfficialRuntiger
    @OfficialRuntiger Год назад

    can i make a screen gui or smth like that pop up as soon as you leave the dialogue

  • @laakashff8979
    @laakashff8979 Год назад

    How to add animation to the NPC while chatting with it

  • @EveretPlayz
    @EveretPlayz 10 месяцев назад

    my camera moves around when i press e and i want it to stay still can someone please help me with this

  • @XqlWasTaken
    @XqlWasTaken Год назад

    I have an issue every time i want to add another NPC it does not work? im confused

  • @thevivveowner6096
    @thevivveowner6096 Год назад

    whenever i click the prompt to talk it doesn't work does anyone know how to fix this.

  • @mopstop3910
    @mopstop3910 Год назад

    how to make camera face the way u want to? like if u want to not look at the head but hand

  • @groovythegoatgecko
    @groovythegoatgecko 2 месяца назад

    Please help, I did everything, and have no errors but the script won't work

  • @Us_gt
    @Us_gt Год назад

    does anyone know how I can link a specific dialogue to an event?

  • @victory2094
    @victory2094 Год назад

    I HAVE A ISSUE, i can not detect the E button even when i copied the scripts already there something wrong?
    pls message me.
    now.

  • @kimiko1056
    @kimiko1056 Год назад

    Hello, mr Teletacos! this helped so much but i have a question... how do we add thi dialogue to multiple npcs? i could add to one of them but not the 2nd one... how do we do?

    • @Raphaeltheslayer
      @Raphaeltheslayer Год назад

      You might have to just copy and paste everything into the 2nd one? Thought I’m not sure and don’t know if that’d work

    • @angryzllama3719
      @angryzllama3719 Год назад +1

      As a noob it took me all day to figure out but I did. For use on multiple NPC, drag the NPC out of the folder(or don't I don't think there's difference) then go to the server script and do:
      if npc:IsA("Model") and npc:FindFirstChild("Humanoid") then
      print(npc.Name, "Has been found")
      local humanoid_root = npc:WaitForChild("HumanoidRootPart")
      local head = npc:WaitForChild("Head")
      local module = require(npc.brenda)
      local prompt = npc.Head.block.ClickDetector.MouseClick


      prompt:Connect(function(player)
      player.PlayerGui.NPC_ChatGui.Enabled = true

      if module.CameraDistance then
      event:FireClient(player, npc, module, CFrame.new(head.Position + head.CFrame.LookVector * module.CameraDistance, head.Position))
      else
      event:FireClient(player, npc, module)
      end
      end)
      end
      NOTE:
      * npc for me is my script.Parent, i.e the NPC
      * I did not use a proximity prompt, I used a click detector cause I wanted to 🤌
      * My camera position thing does not work but everything else does and I still needed to connect my click detector
      * Brenda in this instance would be the name of your module script!
      * Make sure the function: for i, v in pairs, is REMOVED you don't want that to be there or it won't work just have your variables and the scripting above :)
      (edit):
      lmao i see my typo i just fixed it and my camera works now too perfecto 🤌

    • @kimiko1056
      @kimiko1056 Год назад

      @@angryzllama3719 tysm, i will tested out!

  • @Snickers-ev8hv
    @Snickers-ev8hv Год назад

    How to make it so the player can't use their inventory while talking

  • @1kkay
    @1kkay Год назад

    can someone link a template game where they used this and it worked, I used both videos but something is wrong with whatever I did and I really am kinda lost lol..

  • @lefortniteure2129
    @lefortniteure2129 11 месяцев назад

    Hi I have a problem my reply buttons are not showing how can I make them work?

  • @_matioo
    @_matioo Год назад +2

    WHAT AM I DOING WRONG!!!!!! 😭😭😭

  • @AshSpawn
    @AshSpawn Год назад

    local main = script.Parent.Main
    is not apart of "workspace"

  • @curiouskid2943
    @curiouskid2943 Год назад

    is there a way to add a shop system?

  • @hurhyrjefme
    @hurhyrjefme 5 месяцев назад

    is there sound talk?

  • @kiddkitch4237
    @kiddkitch4237 Год назад

    How would I adjust this to work with more than one npc that all have different dialog. I've messed with it a little bit and havnt figured it out. I'll keep messing with it but I thought you or someone else could help

    • @alwaysagony
      @alwaysagony 11 месяцев назад

      @@kiddkitch4237 Hey man I'm wondering the same thing, can you help me out?

    • @kiddkitch4237
      @kiddkitch4237 5 месяцев назад

      @@alwaysagony Took me a long time again, just had to do it again and had to re watch the videos but basically what i did was dpilicate the first npc and add a number at the end of their humanoid name so humanoid1. Then in the info script everywhere it says info put info1. Then duplicate the workspace script and where it says humanoid put humanoid1 and where it says info put info1. Then boom it works.

    • @alwaysagony
      @alwaysagony 5 месяцев назад +1

      @@kiddkitch4237 Well that's definitely a solution. I'll remember that next time I have trouble. I did it in a way weirder way and sometimes it just didn't work. I moved my other NPCS to a different folder and I had to like continually delete and re-add the info scripts. I have 0 clue why this worked like 40% of the time. I'm definitely doing it your way now though, tysm

    • @kiddkitch4237
      @kiddkitch4237 5 месяцев назад

      Glad to help but I think we are both doing it wrong. I think ideally we figure it out adding to 1 script stead of in my case copy and pasteing 2 scripts adding to 4. I'd imagine for performance less scripts would be the way to go but I don't know how to script so here we are.

    • @alwaysagony
      @alwaysagony 5 месяцев назад

      I feel you man@@kiddkitch4237

  • @rendoox4697
    @rendoox4697 5 месяцев назад

    How to add sound?

  • @jaxonresio21
    @jaxonresio21 Месяц назад

    Why is he not online anymore?

  • @rbx3922
    @rbx3922 Год назад

    i did the tutorial but after that i realized that i cant talk to the npc and saw how you had a prompt to hold e to talk to him
    did i miss a step or something?

    • @writtenbycamus
      @writtenbycamus Год назад

      The same happened to me! :( Did you solve it? This is frustating..

    • @ImAzus
      @ImAzus Год назад

      @@writtenbycamus Turn off RequiresLineOfSight for the ProximityPrompt

    • @writtenbycamus
      @writtenbycamus Год назад +1

      @@ImAzus Don't worry I fixed it

    • @Raphaeltheslayer
      @Raphaeltheslayer Год назад

      @@writtenbycamus please tell me how you fixed it

    • @writtenbycamus
      @writtenbycamus Год назад +1

      @@Raphaeltheslayer Check it again. What I did wrong is that I did the whole thing manually, then I saw the script could be downloaded lol 💀

  • @orientinc.
    @orientinc. Год назад

    How do you make the npc play a sound as it speaks.

    • @damelongod722
      @damelongod722 Год назад +2

      In client add the sound of your choice.
      Then go to this part of the script at line 20-21
      Type this
      for i, v in text:split("") do
      label.Text = label.Text .. v
      task.wait(0.05)
      script.Text:Play() -- Text is the name of the sound I inserted into the Client. Call it whatever you want
      end
      end

    • @im_KRIZ
      @im_KRIZ Год назад +1

      @@damelongod722 it work but the text appear two times

  • @sm0.k3y
    @sm0.k3y Год назад

    9:43

  • @_matioo
    @_matioo Год назад

    IT WONT WORK HELP WHAT IM DOING WRONG AW)FTIWEJTFK

  • @lisindia8218
    @lisindia8218 Год назад +1

    Where do I put the proximity prompt?

    • @Us_gt
      @Us_gt Год назад

      the proximity prompt is added to the HumanoidRootPart from the script in the NPCs folder

  • @veilon
    @veilon Год назад

    I've done so many of these none of them work and its pissing me off now. I watched 40 mins

  • @sxyqq
    @sxyqq Год назад +5

    You guys should also include part of endDialogue function on character.Died event so it doesnt break when player resets or dies somehow
    repeat wait() until game:IsLoaded()
    local players = game:GetService('Players')
    local plr = players.LocalPlayer
    local plrchar = plr.Character or plr.CharacterAdded:Wait()
    plrchar:WaitForChild('Humanoid').Died:Connect(function()
    task.wait(0.5)
    currentNpc.HumanoidRootPart.ProximityPrompt.Enabled = true
    camera.CameraType = Enum.CameraType.Custom
    camera.CameraSubject = game.Players.LocalPlayer.Character
    main:TweenPosition(UDim2.new(0,0,1,0))
    task.wait(1)
    main.Visible = false
    nameLabel.Text = ""
    dialogLabel.Text = ""
    storedChoices = {}
    currentNpc = nil
    end)

    • @n0dxnut4youmom4
      @n0dxnut4youmom4 Год назад +3

      where do i add this? script? info? or client and what part?

    • @Pgmr_2402
      @Pgmr_2402 Год назад

      ​@@n0dxnut4youmom4 yea

    • @user-vr2nq1yd2o
      @user-vr2nq1yd2o Год назад +5

      @@Pgmr_2402 man said yea instead of answering his question 💀💀

    • @smoreblox3485
      @smoreblox3485 Год назад +1

      @@user-vr2nq1yd2o no he said that because he agrees to his question

    • @smoreblox3485
      @smoreblox3485 Год назад +2

      where do I add this?

  • @urcaburra670
    @urcaburra670 Год назад

    Hey telemacos can u please answer to me on discord, im Oxis plz