How to Make Typewriter Text in Roblox Studio (Simple)

Поделиться
HTML-код
  • Опубликовано: 20 дек 2024

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

  • @Hadaldev
    @Hadaldev 4 месяца назад +13

    Truly just a man who knows a little things of a thang.

  • @proudoyster778
    @proudoyster778 4 месяца назад +9

    OOOOOOO
    You upload these videos when it’s night for me and I rlly appreciate it cuz I’m a night owl

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

      I'm glad to see you here!

  • @8tan200
    @8tan200 4 месяца назад +13

    here is a sample from the module i made with sounds too, sorry if i ruined the purpose of the video just wanted to show my method:
    function module:WriteText(LabelForText, Text: string,NextLetterDelay: number, NextLineDelay: number, StarterSound: Sound?, LetterSound: Sound?)
    LabelForText.Text = "" -- Start with a clean slate
    -- Play starter sound if provided
    if StarterSound then
    StarterSound:Play()
    StarterSound.TimePosition = 0 -- Reset position to ensure it plays from the start
    end
    for _, letters in pairs(string.split(Text, "")) do
    LabelForText.Text ..= letters
    if LetterSound then
    LetterSound:Play()
    LetterSound.TimePosition = 0 -- Reset sound position to ensure it plays each time
    end
    wait(NextLetterDelay)
    end
    wait(NextLineDelay)
    end
    example how to use:
    TextModule:WriteText(TextLabel, "Your Text", NextLetterDelay, NextLineDelay, StartSound, LetterSound)

    • @rkgam3zs
      @rkgam3zs  4 месяца назад +1

      You didn't ruin anything, this is really cool! Thanks for sharing:)

  • @Rikarru_Covers
    @Rikarru_Covers 3 месяца назад

    This is so freaking cool man! After 7 years of playing Roblox, I'm finally getting into Lua Coding and this is so freaking helpful man. Everything is super easy to understand.

    • @rkgam3zs
      @rkgam3zs  3 месяца назад

      I'm so glad!

  • @Mirage_BS
    @Mirage_BS 4 месяца назад +2

    OMG!!!! I commented this I'm so happy you made this!!

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

    Your voice is so calming w vid

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

    Thank you so much, I've been trying to find a typewriter text that would work, this is a lifesaver! I also like how you didn't say "if you enjoyed the video, subscribe" you instead wished everyone a good day!

  • @billy-st6qj
    @billy-st6qj 3 месяца назад

    thank you man, im makin a horror game with a few buddies (im still deciding on the whole horror part) and your really gettin me onto this coding stuff

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

    ive been watching your tutorials non stop. you’re really inspiring me to make my first roblox game . can you make a tutorial on having a death screen. im making a game with multiple endings and stuff.

  • @ThatOneDude484
    @ThatOneDude484 4 месяца назад +1

    This is so cool thanks

  • @bryanLITTLEPLAYZ-mk6ie
    @bryanLITTLEPLAYZ-mk6ie 4 месяца назад

    truly a masterpiece

  • @Miguel-e6y
    @Miguel-e6y 4 месяца назад

    Hey man thanks and good job!

  • @8tan200
    @8tan200 4 месяца назад +1

    i suggest you to more use string.split which is the same but easier to understand, and you can just do the seperator which will be an "" aka empty string

  • @vNoahlol
    @vNoahlol 4 месяца назад +3

    YUHHHHHH I NEEEDED THIS

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

    You are saving my game rnn

  • @Fez-h8r
    @Fez-h8r 4 месяца назад

    Hey man I just started watching your tutorials and they're amazing I'm working on a horror game and i'd appreciate a tutorial on npcs that do action

  • @zorouhrblx
    @zorouhrblx 4 месяца назад +2

    Heres the script!
    local text = script.Parent.ScreenGui.TextLabel
    local talkSound = script.talkSound
    local function writeText(message, waitTime)
    text.Text = " "
    text.Visible = true

    for i = 1, #message, 1 do
    talkSound:Play()
    text.Text = string.sub(message,1,i)
    task.wait(waitTime)
    end
    end
    writeText("helloo",0.08)

  • @NikitosMatros
    @NikitosMatros 4 месяца назад +2

    thank you brotha

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

    I just need this , Ty brother

  • @naizo1189
    @naizo1189 3 месяца назад

    This is my other favorite video on ytp

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

    Hey, sorry to ask, but if you can, would you be able to do a video about how to make a save system to remember if a player has done certain things/events, if possible? I keep trying to look up how to do it in datastores, but all the videos seem to just be for tycoon type games, which isn't what I'm looking for.
    There's probably a video out there and I just haven't looked hard enough, but I thought that maybe I could ask people with actual knowledge of how to code, rather than struggle for hours trying to find a singular video

  • @RaghunandD
    @RaghunandD 4 месяца назад +1

    Please make a video about how to make a cutscene when a player first joins

    • @proudoyster778
      @proudoyster778 4 месяца назад +1

      @@RaghunandD Search on his channel, there’s a video on it.

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

    Hello! If possible, I'd like to learn how to make your OWN character you play as say something. For example, if you're in a story game or something, and you're playing as a custom character, how could you force the player to say something, and it show up as bubble chat? Thanks!

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

    How about trying to do a tutorial for a dealership system for cars. So lets say for example A-Chassis if the player buys the car they own it forever (obviously) But the system should automatically set the vehicle to be owned by the player who bought it And Cannot Be Stolen By Other Users.

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

    Hello, where did you learn to code in Luau? Most RUclips channels teach the basics like Booleans, data types, variables, etc. However, they often don't teach you how to actually utilize them.

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

    So in one if your tutorials (how to make a cutscene with dialogue) how do you make it so when you press a proximity prompt to play it?

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

    Hi where need I to change if I want to add this script to your early dialogue tutorial? Sorry for my zero scripting😢

  • @joca750
    @joca750 4 месяца назад +1

    yess thak you bud

    • @joca750
      @joca750 4 месяца назад +1

      But how do you put this function in an NPCs dialog?

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

    u saw my comment on last cutscene tutorial, didn’t you?

  • @NoSoyDosis
    @NoSoyDosis 3 месяца назад

    what if i wanted it to work when touching something?

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

    FINNALY YES

  • @Scadower
    @Scadower 4 месяца назад +2

    Great Vids Homie

    • @rkgam3zs
      @rkgam3zs  4 месяца назад +2

      Thank you man!

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

    YOUR THE BEST

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

    Saw the notification and went ooooooo

  • @Adam-cg4ju
    @Adam-cg4ju 4 месяца назад +1

    that is amazing. this is one of the most fun to watch tutorial i ever watched and i learned a lot! (i mean not a lot but i learned something) i really like your way of explaining things.😊

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

      thank you so much!! im really glad you enjoy my content :)

  • @Kyrnovice
    @Kyrnovice 26 дней назад

    The audio part won't work for me

  • @DripCheems
    @DripCheems 4 месяца назад +2

    nice

  • @zediezainmagtibay9814
    @zediezainmagtibay9814 4 месяца назад +1

    Can you send the scrip?

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

    can we have a typewriter effect on cutscenes tutorial?

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

    Yo dude how do I fix that whenever someone resets the text comes back up? It's happening for me

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

      in the gui(not text label) search for resetonspawn ?, if i remember right. Sorry if it wasn't right

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

      @@dummy845 will it stop showing up when someone resets?

    • @dummy845
      @dummy845 4 месяца назад +1

      @@NoobyTheDev yup!

  • @The-Scary-Gamer
    @The-Scary-Gamer 4 месяца назад

    How can I get a custom font?

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

    you're definitely a deepwoken player and can't convince me otherwise.

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

      ive never played deepwoken in my life

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

      @@rkgam3zs if thats really the case, then good for you

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

      @@squadrel9479 do you play deepwoken? 👀👀

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

      @@rkgam3zs unfortunately yes.

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

    I know I'm late but does this script work with the dialogue system you made?

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

      yep!

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

      @@rkgam3zs I was wondering because would I need to add another script or still use the dHandler script?

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

      @@megamannymann you can just add it to the writetext function inside the dHandler script!

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

      @@rkgam3zs Thank you!!!

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

      @@megamannymann of course :)

  • @icecold.07
    @icecold.07 4 месяца назад +1

    Wondering if you're open for work.

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

    its not even working, i did nearly everything in the video (i think) and it still doesn't work

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

      are there any errors in the console?

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

    hi! i saw another comment from another person, but i figured i should ask.
    I am attempting to combine your simple npc system with the typewriter affect system; so far, I have managed to get both working but only in isolation. if i attempt to add the affect to the npc, they refuse to talk, but work perfectly the way that they were in your other tutorial.
    is there anything i might be doing wrong? i left the code that attempted to frankenstien them below
    -----
    local gui = script.Parent
    local textBox = script.Parent.textBox
    local text = script.Parent.textBox.TextLabel
    local sound = script.Parent.Talksound
    local DiaHandler = game.Workspace.DiaHandler
    local shopdialouge = DiaHandler.shopdialouge.ProximityPrompt
    gui.Enabled = false
    textBox.Visible = false
    local function writeText(message,waitTime)
    gui.Enabled = true
    textBox.Visible = true

    text.Text = ""
    text.Visible = true
    for i = 1, #message, 1 do
    sound:Play()
    text.Text = string.sub(message,1,i)
    task.wait(waitTime)
    end
    local function endDialouge()
    gui.Enabled = false
    textBox.Visible = false
    text.Text = ""
    end
    shopdialouge.Triggered:Connect(function()
    writeText("i see no coins in your pocket", 2)
    writeText("come back when the dev figures out how to make shop stuff", 2)
    endDialouge()

    end)

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

      I've been having the same problem :/