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)
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.
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!
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.
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
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)
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
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!
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.
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.
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.😊
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()
Truly just a man who knows a little things of a thang.
Currency of Vietnam
OOOOOOO
You upload these videos when it’s night for me and I rlly appreciate it cuz I’m a night owl
I'm glad to see you here!
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)
You didn't ruin anything, this is really cool! Thanks for sharing:)
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.
I'm so glad!
OMG!!!! I commented this I'm so happy you made this!!
Your voice is so calming w vid
Thank you!!
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!
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
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.
This is so cool thanks
truly a masterpiece
Hey man thanks and good job!
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
YUHHHHHH I NEEEDED THIS
You are saving my game rnn
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
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)
thank you brotha
I just need this , Ty brother
This is my other favorite video on ytp
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
Please make a video about how to make a cutscene when a player first joins
@@RaghunandD Search on his channel, there’s a video on it.
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!
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.
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.
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?
Hi where need I to change if I want to add this script to your early dialogue tutorial? Sorry for my zero scripting😢
yess thak you bud
But how do you put this function in an NPCs dialog?
u saw my comment on last cutscene tutorial, didn’t you?
what if i wanted it to work when touching something?
FINNALY YES
Great Vids Homie
Thank you man!
YOUR THE BEST
Saw the notification and went ooooooo
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.😊
thank you so much!! im really glad you enjoy my content :)
The audio part won't work for me
nice
Can you send the scrip?
can we have a typewriter effect on cutscenes tutorial?
yes
@@rkgam3zs alr tyty
Yo dude how do I fix that whenever someone resets the text comes back up? It's happening for me
in the gui(not text label) search for resetonspawn ?, if i remember right. Sorry if it wasn't right
@@dummy845 will it stop showing up when someone resets?
@@NoobyTheDev yup!
How can I get a custom font?
you're definitely a deepwoken player and can't convince me otherwise.
ive never played deepwoken in my life
@@rkgam3zs if thats really the case, then good for you
@@squadrel9479 do you play deepwoken? 👀👀
@@rkgam3zs unfortunately yes.
I know I'm late but does this script work with the dialogue system you made?
yep!
@@rkgam3zs I was wondering because would I need to add another script or still use the dHandler script?
@@megamannymann you can just add it to the writetext function inside the dHandler script!
@@rkgam3zs Thank you!!!
@@megamannymann of course :)
Wondering if you're open for work.
its not even working, i did nearly everything in the video (i think) and it still doesn't work
are there any errors in the console?
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)
I've been having the same problem :/