hey! i found ur video on the page so i clicked it and i pretty much enjoyed it. Thank you for helping me out with the script. I actually subscribed to u and liked the video. Im hoping u to make more tutorials so whenever they came out i can watch and learn from it. - my english is kinda stupid but sorry eheh
dude, thank you so much man, not only would this be helping me make games, but it also helps me learn at the same time! you've earned yourself another subscriber!
Since I've started working on a little dating sim kind of game in roblox, I've gotten into trying to learn to script in Lua and use Roblox Studio, and your videos have been a delight to watch! Very simple and understandable instructions, nice voice and straight to the point video. You even think of little details like failsafe measures or extra things like sound!
@@itslxhh It's a little passion project with friends for fun, and I don't think it really counts as e-dating since it's not real life online romantic relationships.
Hello guys, if you are experiencing a bug for the proximity prompt when coding, add a wait(0.1) or whatever, before you apply the variable. F.E. : wait(0.1) local npcDialogue = Folder:WaitForChild("NPCDialogue").ProximityPrompt local scripts can be pretty annoying, but this is how you can fix it. If you get hit with a "nil with FindFirstChild" error then always add a quick wait before calling the variable. I also figured out the humanoid problem. This one should also be pretty easy. You just need the code to check if the player has a character. F.E. : local Player = game.Players.LocalPlayer if Player.Character then Player.Character.Humanoid.WalkSpeed = 0 end hopefully this helps!
if your walkspeed/jumppower script doesn't work, use this: local player = game.Players.LocalPlayer player.Character:WaitForChild("Humanoid").WalkSpeed = 0 player.Character:WaitForChild("Humanoid").JumpPower = 0 edit the numbers at the end of the line for different walkspeed.
my script works for what you said but once the dialogue ends the player freezes any way to fix that? Here's the script I am using: local gui = script.Parent local textBox = script.Parent.textBox local textLabel = script.Parent.textBox.TextLabel local sound = script.Parent.talkSound local plr = game.Players.LocalPlayer local chr = plr.Character local humanoid = chr.Humanoid gui.Enabled = false textBox.Visible = false local function writeText(text,waitTime) local player = game.Players.LocalPlayer player.Character:WaitForChild("Humanoid").WalkSpeed = 0 player.Character:WaitForChild("Humanoid").JumpPower = 0 gui.Enabled = true textBox.Visible = true textLabel.Text = text sound:Play() task.wait(waitTime)
end local function endDialogue() gui.Enabled = false textBox.Visible = false textLabel.Text = "" humanoid.walkspeed = 16 humanoid.JumpPower = 50 end task.wait(2) writeText("Welcome to my shop",2) writeText("How may I help",2) writeText("Goodbye",4) endDialogue()
if the script doesnt work try this local dgui = script.Parent local textbox = dgui.Textbox local textlabel = dgui.Textbox.TextLabel local sound = dgui.TalkSound local function writeText(text, waitTime) dgui.Enabled = true textbox.Visible = true textlabel.Text = text sound:Play() wait(waitTime) end wait(2) writeText("Your text", 2) writeText("Your text", 2) writeText("Your text", 2) writeText("Your text", 2) writeText("Your text", 2) dgui.Enabled = false textbox.Visible = false (you can make the text whatever you want)
hey, even after pasting in your script and working around trying to get it work, it still wont work at all mind telling me what the problem might be? (found the problem, accidentaly pasted a letter in the sound part thing so it didnt work)
I got to the end expecting it to work but.. NUH UH. I currently am tweaking out because I just wasted a good 40 minutes of my life trying to find out what I got wrong
legit same idont know if its the code or something but i followed the video step by step and becuse of this i lost all motivation to continue my game.Which is sad becuse i always wanted to make a Roblox game
MAN THANKSSS WAS LOOKING FOR SOMETHING LIKE THIS IT WAS SO SIMPLEEEEEE KEEP UP THE GOOD WORK BTW UR CHANNEL IS SOOO UNDERATEDDD Edit: got urself a new sub
For those wanting the code for joe here it is: local gui = script.Parent local textBox = script.Parent.textBox local textlabel = script.Parent.textBox.TextLabel local sound = script.Parent.talksound local plr = game.Players.LocalPlayer local chr = plr.Character local humanoid = chr.Humanoid local dialogueFolder = game.Workspace.dialogueFolder local joeDialogue = dialogueFolder.joeDialogue.ProximityPrompt gui.Enabled = false textBox.Visible = false local function writeText(text,waitTime) humanoid.WalkSpeed = 0 humanoid.JumpPower = 0 gui.Enabled = true textBox.Visible = true textlabel.Text = text sound:play() task.wait(waitTime) end local function endDialogue() gui.Enabled = false textBox.Visible = false textlabel.Text = "" humanoid.WalkSpeed = 16 humanoid.JumpPower = 50 end joeDialogue.Triggered:Connect(function() joeDialogue.Enabled = false
writeText("cheese", 2) writeText("ye this is royalmonkey", 2) writeText("cheese",2) endDialogue() joeDialogue.Enabled = true end)
THANKS SO MUCH FOR THIS! I just took around 3 hours doin this... but it definitely helped A TON and I think I understand scripting just a tiny little bit better now. THANKS SO MUCHH! AND I WOULD LOVE TO TRY THE MORE ADVANCED VERSION
hey so everything was working up until i tested it and i interacted with joe and the text didint pop up? i thought i did everything right? do u have any solutions? btw i subscribed
Guys i got the script from 8:13 and it works so here local gui = script.Parent local textBox = script.Parent.textBox local textLabel = script.Parent.textBox.textLabel local sound = script.Parent.talkSound local plr = game.Players.LocalPlayer local chr = plr.Character local humanoid = chr.Humanoid gui.Enabled = false textBox.Visible = false local function writeText(text,waitTime) humanoid.WalkSpeed = 0 humanoid.JumpPower = 0 gui.Enabled = true textBox.Visible = true textLabel.Text = text sound:Play() task.wait(waitTime) end local function endDialouge() gui.Enabled = false textBox.Visible = false textLabel.Text = "text" humanoid.WalkSpeed = 16 humanoid.JumpPower = 50 end task.wait(2) writeText("i love cheese",2) writeText("i actully dont like cheese",2) writeText("i prefer bread",4) endDialouge() everything works btw
Am i the only one getting this error that says joeDialogue isn't valid member of the dialogue folder? I mean it does work in roblox studio but when i tried it on my real game it doesn't work and then when i check my roblox studio back it gives me the error..
this might not be verry helpfull, but i have the same problem. i fixed it by spawning closer to the npc. idk why but that is how i learned how to fix it temararly
i am having difficulty at the proximity part. ive double checked everything and everytime i run the test, the part in the npc folder dissapears. how do i fix that?
no hate, but the script didn't work for me, did i do something wrong? example: i play the game and the text only says "label" it doesn't play the text like usual, please let me know how to fix this!
Hey! So when i added the parts that stopped the player from moving, the script stopped working. I then removed those edits and it worked again. The player being frozen didn't really matter to me so I just moved on. I added the last edits and the proximity prompt was not working. I have tried everything, I've checked the script for mistakes, and when I interact still nothing happens. Can you reply to this with the fully copied script so I can paste that in? I don't know what to do
Will you be making a tutorial on how to make npc talk with actual human words like npc will say "hi i am fred" and you will hear him saying hi i am fred
Dude the interact doesnt work , pls help local gui = script.Parent local textBox = script.Parent.Textbox local textLabel = script.Parent.Textbox.Textlabel local sound = script.Parent.TalkSound gui.Enabled = false textBox.Visible = false local function writeText(text.waitTime) gui.Enabled = false textBox.Visible = false textLabel.Text = text sound:Play() task.wait(waitTime) end local function endDialouge() gui.Enabled = true textBox.Visible = true textLabel.Text = "" end task.wait(2) writeText("sono onma",2) writeText("tu sei gheyi",2) writeText("ez",4) endDialouge()
What’s the BG music name? It’s perfect for the game I’m doing 😭 (For reference, I’m talking about the music that plays at 2:35, this is in case the music changes sometime in the vid)
doesn´t work :/ the script doesn´t work, i dont know why, i play the game and the textbox appear, but it doesn´t change, it stays: text, i did every thing you did, i dont know what is going on, please help
Maybe because of your spelling. In your script check the errors. If you see an orange line in where you scroll up and down. that means theres something wrong about your spelling or maybe even wrong names.
I tried doing the part In 6:07 , but it somehow doesn’t work, I want to know what did I make wrong? Like the textlabel still remained to say “text” inside the text box, and it doesn’t disappear then appear then disappear again
Hey, your channel has a lot of interesting tutorials. I just am really interested in learning luau because I’ve been building since 2020 and just know the very basics of scripting after like 4 years, so could you please let me know how and where to learn luau from?
hey this is amazing! i have one tiny issue though, i tried to make some simple dialouge and whenever i edited the script i had to wait 5 minutes for it to work again
Hey, idk if u will see this but I make the script shown in the video but every time I interact with the proximity prompt/npc nothing happens (I’ve checked for spelling)
This helped me out a lot! But is it normal for it to suddenly say that my trigger isn't a valid part of the dialogue folder? Or am i messing something up
Sometimes when a script loads it'll load faster than some things in the workspace which results in an error, to fix this you can add a waitForChild, for example if the code is | local folder = game.workspace.Folder, you can change it yo local folder = game.workspace:WaitForChild("Folder")
I need help I did everything you told me to but for the text it isn’t working I followed everything you did but my text just says “label” how do I fix this please help!
a certain problem I have, when I move my npc to a different place with the proximity prompt selected along with it, the "e to interact" option still appears on the moved npc, but the dialogue doesn't play
how do i make the text animated? a typewriter effect, like make the letters appear one by one, i used to be able to do it but i sorta forgot since im not used to scripting anymore,
hey, i’m having some trouble with my script thats based off of this tutorial the triggered dialogue function expects “(“ when running “writeText” when playtesting, the gui and sounds don’t appeat or start if that means anything to you then i’d really appreciate the help
How do I make the text play on “interact” with proximity prompt? And how do I make the text appear letter by letter? Also how do I give it options to answer 👉👈
Hi i know im a little late but this worked until the very end, I could interact with the npc but text is not showing or the dialogue do you know how to fix this?
@rkgam3zs like you touch something or enter an area, then the camera changes to 2D for a 2D section of a level, and then after you clear the 2D section, it goes back to regular 3D
the second dialogue doesn't work at me i probably did something wrong but i dont think so "fredDialogue is not a valid member of Folder "Workspace.dialogueFolder"" i get this error but fredDialogue is a valid member of dialogueFolder i dont get why it doesn't work and when i try to do the second dialogue the first dialogue doesn't work anymore too think you can help me man?
Do you mind making a tutorial on something similar like this, but actual chat bubbles? Like, upon interaction, the NPC says something in a chat bubble (similar to our chat bubbles, not the one with a blue highlight)
It doesn't work I did everything like in video I have that button and I wrote all scripts like in video but when I'm pressing E it's just not working (I'm very beginner in scripting)
hey if you can read this i was wondering on how to make the dialogue sound come on for every letter pressed instead of one time for the entire sentence. is there a way to do that?
Why the text doesn’t show when i interact with the npc? I’ve followed all the scripts but it still didnt work. It only doesn’t work after i entered the proximityprompts
-- Variables local player = game.Players.LocalPlayer local gui = script.Parent local dialogueFrame = gui:WaitForChild("Frame") local npcMessage = dialogueFrame:WaitForChild("MessageLabel") -- Proximity Prompt local npcPart = workspace.NPC.HumanoidRootPart -- Replace "NPC" with your NPC's name local proximityPrompt = npcPart:WaitForChild("ProximityPrompt") -- Function to greet the player local function greetPlayer() local playerName = player.Name npcMessage.Text = "Hi " .. playerName .. "!" dialogueFrame.Visible = true -- Close dialogue after a few seconds wait(3) dialogueFrame.Visible = false end -- Trigger greeting on ProximityPrompt activation proximityPrompt.Triggered:Connect(function() greetPlayer() end)
Hey RKGAM3Zs can you tell me whats wrong? i dont want a sound but the script down below is what i put in please help me with this, Thank you! local gui = script.Parent local textBox = script.Parent.textBox local textLabel = script.Parent.textBox.TextLabel local function writeText(text, waitTime) gui.Enabled = true textBox.Visible = true textLabel.Text = text end task.wait(2) writeText("This used to be my favorite spot", 2) writeText("But ever since that thing happened", 2) writeText("Things havent been the same...", 4)
hello i have an question, how do you make each of these with different talking sound? or how do you make an dialogue system with images on it talking smthin ( im shitting at coding 😭) EDIT: day 1
only took 3 days!!!! okay okay so put the sound you wish to use either inside of the character, or make a folder with all the talking sounds, then just make variables like local bobTalkSound = game.Workspace.Sounds yada yada and then just do sound:Play() whenever the text changes
can u make Acid rainy weather (like the weather system u made in one of ur videos but damage the player ) and also make a script that when player holds an umbrella, the player will not take any damage from the acid rains I want it for my game pls
if your screengui is called Dgui if u change it here is the script local dgui = script.Parent local textbox = script.Parent.Textbox local textlabel = script.Parent.Textbox.TextLabel local sound = script.Parent.TalkSound local function writetext(text,waitTime) dgui.Enabled = true textbox.Visible = true textlabel.Text = text sound:Play() task.wait(waitTime) end task.wait(2) writetext("So can you figure out something",2) writetext("i been hearing on some houses but its abandoned city",2) writetext("Can You Figure It Out? its on some house",4) btw you can change some text
right so for some reason joeDialogue deletes itself when i load the game inside studio. what edit: fixed that but now i gotta figure out why the dialogue isnt showing MAN
writetext(text: *error-type*, appears after i try to edit out the text and waittime. I am a beginner and i followed every single steps but it's still not working properly.
So I am making a game. However I want the player not moving while the cutscene and also the cutscene has this type of dialogue do you understand what i mean? Thanks.
Some more advanced tutorials will be coming out soon, I want to cover a few simple things first then we can get into the cool stuff 😎
Very cool.
hey! i found ur video on the page so i clicked it and i pretty much enjoyed it. Thank you for helping me out with the script. I actually subscribed to u and liked the video. Im hoping u to make more tutorials so whenever they came out i can watch and learn from it.
- my english is kinda stupid but sorry eheh
@Vector-io9cn your English is great!
@@Vector-io9cnI'm glad you enjoyed it! :) And your English was fine! I'll make plenty of tutorials in the near future!
@@rkgam3zs Thank you!! :D
dude, thank you so much man, not only would this be helping me make games, but it also helps me learn at the same time! you've earned yourself another subscriber!
sans has passed his judgement.
Joe is my third husband. We have three kids together, how do I make him STOP talking to other women, and talk MORE to ME instead? Thanks! 😊🙏
Rusty metal pipe should do the trick, two times daily, and the problem shouldn't be a problem anymore.
@@rkgam3zs😂😂
HELP?
@@rkgam3zsSir this is work but the Npc dialogue can moved by player how to fix that??
I want the npc cant moved by player
@@honoree185 Anchored.. 😂
Since I've started working on a little dating sim kind of game in roblox, I've gotten into trying to learn to script in Lua and use Roblox Studio, and your videos have been a delight to watch! Very simple and understandable instructions, nice voice and straight to the point video. You even think of little details like failsafe measures or extra things like sound!
crazy how ur supporting e dating.
@@itslxhh It's a little passion project with friends for fun, and I don't think it really counts as e-dating since it's not real life online romantic relationships.
@@isabellejoestar2455 if it is that way then cool! sorry if i made your feel offended
OMG THATS CUTE WHATS THE GAME?
its still E dating cus its dating in the game and E dating is dating in the game
Hello guys,
if you are experiencing a bug for the proximity prompt when coding, add a wait(0.1) or whatever, before you apply the variable. F.E. :
wait(0.1)
local npcDialogue = Folder:WaitForChild("NPCDialogue").ProximityPrompt
local scripts can be pretty annoying, but this is how you can fix it. If you get hit with a "nil with FindFirstChild" error then always add a quick wait before calling the variable.
I also figured out the humanoid problem. This one should also be pretty easy. You just need the code to check if the player has a character. F.E. :
local Player = game.Players.LocalPlayer
if Player.Character then
Player.Character.Humanoid.WalkSpeed = 0
end
hopefully this helps!
you're. a. genius.
I'm just a little confused on the humanoid problem.
Sorry but before what variable for the text prompt?
@@raflyansadamhidayat9823 the variable for your proximity promt
I gasped when it actually worked thank you so much I was about to crash out
if your walkspeed/jumppower script doesn't work, use this:
local player = game.Players.LocalPlayer
player.Character:WaitForChild("Humanoid").WalkSpeed = 0
player.Character:WaitForChild("Humanoid").JumpPower = 0
edit the numbers at the end of the line for different walkspeed.
very cool man
thanks for helping people out, i appreciate it :)
tysm!
my script works for what you said but once the dialogue ends the player freezes any way to fix that? Here's the script I am using:
local gui = script.Parent
local textBox = script.Parent.textBox
local textLabel = script.Parent.textBox.TextLabel
local sound = script.Parent.talkSound
local plr = game.Players.LocalPlayer
local chr = plr.Character
local humanoid = chr.Humanoid
gui.Enabled = false
textBox.Visible = false
local function writeText(text,waitTime)
local player = game.Players.LocalPlayer
player.Character:WaitForChild("Humanoid").WalkSpeed = 0
player.Character:WaitForChild("Humanoid").JumpPower = 0
gui.Enabled = true
textBox.Visible = true
textLabel.Text = text
sound:Play()
task.wait(waitTime)
end
local function endDialogue()
gui.Enabled = false
textBox.Visible = false
textLabel.Text = ""
humanoid.walkspeed = 16
humanoid.JumpPower = 50
end
task.wait(2)
writeText("Welcome to my shop",2)
writeText("How may I help",2)
writeText("Goodbye",4)
endDialogue()
where does it go?
very well made and useful tutorial straight forward and even thought me a few things, keep it up dawg ill definitely support
Thank you so much, glad I could teach you something :)
@@rkgam3zsSir this is work but the Npc dialogue can moved by player how to fix that??
I want the npc cant moved by player
@@honoree185 Anchor it?
if the script doesnt work try this
local dgui = script.Parent
local textbox = dgui.Textbox
local textlabel = dgui.Textbox.TextLabel
local sound = dgui.TalkSound
local function writeText(text, waitTime)
dgui.Enabled = true
textbox.Visible = true
textlabel.Text = text
sound:Play()
wait(waitTime)
end
wait(2)
writeText("Your text", 2)
writeText("Your text", 2)
writeText("Your text", 2)
writeText("Your text", 2)
writeText("Your text", 2)
dgui.Enabled = false
textbox.Visible = false
(you can make the text whatever you want)
LIFE SAVER
W manzzz
hey, even after pasting in your script and working around trying to get it work, it still wont work at all
mind telling me what the problem might be?
(found the problem, accidentaly pasted a letter in the sound part thing so it didnt work)
it didnt work idk why
@@BrooksBradley-y5psame
I got to the end expecting it to work but.. NUH UH. I currently am tweaking out because I just wasted a good 40 minutes of my life trying to find out what I got wrong
sad
legit same idont know if its the code or something but i followed the video step by step and becuse of this i lost all motivation to continue my game.Which is sad becuse i always wanted to make a Roblox game
Did you forget to enable the gui again?
same, I don’t know what went wrong. I’m a complete noob at coding so idk what to do
@@glunk1 hey, let me know what’s going on
Yes, thank you so much! I am trying to get into Roblox studio and this would be so cool to add into my game!
This information is so useful, you're getting the sloppiest sloppy from me tonight
MAN THANKSSS WAS LOOKING FOR SOMETHING LIKE THIS IT WAS SO SIMPLEEEEEE KEEP UP THE GOOD WORK BTW UR CHANNEL IS SOOO UNDERATEDDD
Edit: got urself a new sub
That was by a big margin the best intro I've ever heard on a YT video
For those wanting the code for joe here it is:
local gui = script.Parent
local textBox = script.Parent.textBox
local textlabel = script.Parent.textBox.TextLabel
local sound = script.Parent.talksound
local plr = game.Players.LocalPlayer
local chr = plr.Character
local humanoid = chr.Humanoid
local dialogueFolder = game.Workspace.dialogueFolder
local joeDialogue = dialogueFolder.joeDialogue.ProximityPrompt
gui.Enabled = false
textBox.Visible = false
local function writeText(text,waitTime)
humanoid.WalkSpeed = 0
humanoid.JumpPower = 0
gui.Enabled = true
textBox.Visible = true
textlabel.Text = text
sound:play()
task.wait(waitTime)
end
local function endDialogue()
gui.Enabled = false
textBox.Visible = false
textlabel.Text = ""
humanoid.WalkSpeed = 16
humanoid.JumpPower = 50
end
joeDialogue.Triggered:Connect(function()
joeDialogue.Enabled = false
writeText("cheese", 2)
writeText("ye this is royalmonkey", 2)
writeText("cheese",2)
endDialogue()
joeDialogue.Enabled = true
end)
bro you are a real hero
great i just finished the script and now i saw this comment
@@K0l5050-II bad timeing haha
@@RealRoyalMonkey it dont work for me
@@joyboy2334 make sure you watch the video as well and name everything correct because this script does work
THANKS SO MUCH FOR THIS! I just took around 3 hours doin this... but it definitely helped A TON and I think I understand scripting just a tiny little bit better now. THANKS SO MUCHH! AND I WOULD LOVE TO TRY THE MORE ADVANCED VERSION
if you could, it would be easier for newer players for you to copy the script part and put it in the disc
thank you for the tutorial! im slowly learning how to script more and this made sense and worked, thanks!
6:27 are you sure that's not a demon in your room? what are you hiding?
PSSSHHH I WOULD NEVER HIDE ANYTHING!!!!! hahahahahahahhshahshshshshjajdnejeelfkkekwe. Demons don't exist.
hey so everything was working up until i tested it and i interacted with joe and the text didint pop up? i thought i did everything right? do u have any solutions? btw i subscribed
happened to me too
Guys i got the script from 8:13 and it works so here local gui = script.Parent
local textBox = script.Parent.textBox
local textLabel = script.Parent.textBox.textLabel
local sound = script.Parent.talkSound
local plr = game.Players.LocalPlayer
local chr = plr.Character
local humanoid = chr.Humanoid
gui.Enabled = false
textBox.Visible = false
local function writeText(text,waitTime)
humanoid.WalkSpeed = 0
humanoid.JumpPower = 0
gui.Enabled = true
textBox.Visible = true
textLabel.Text = text
sound:Play()
task.wait(waitTime)
end
local function endDialouge()
gui.Enabled = false
textBox.Visible = false
textLabel.Text = "text"
humanoid.WalkSpeed = 16
humanoid.JumpPower = 50
end
task.wait(2)
writeText("i love cheese",2)
writeText("i actully dont like cheese",2)
writeText("i prefer bread",4)
endDialouge()
everything works btw
you sir just gained a sub
so useful! I'm going to show this to a friend
average bot comment
@@H4CP average bot comment
Am i the only one getting this error that says joeDialogue isn't valid member of the dialogue folder? I mean it does work in roblox studio but when i tried it on my real game it doesn't work and then when i check my roblox studio back it gives me the error..
this might not be verry helpfull, but i have the same problem. i fixed it by spawning closer to the npc. idk why but that is how i learned how to fix it temararly
i am having difficulty at the proximity part. ive double checked everything and everytime i run the test, the part in the npc folder dissapears. how do i fix that?
Not sure if you still need help, but did you anchor the part? Otherwise it'll fall off the map
@@Itzame3756 i did anchor the part
no hate, but the script didn't work for me, did i do something wrong? example: i play the game and the text only says "label" it doesn't play the text like usual, please let me know how to fix this!
Same
Same
i really love this tutorial, i dont even speak english but i understood everything 🙏🙏
thanks for the simple and easy to follow along tutorial :)
of course:)
Hey! So when i added the parts that stopped the player from moving, the script stopped working. I then removed those edits and it worked again. The player being frozen didn't really matter to me so I just moved on. I added the last edits and the proximity prompt was not working. I have tried everything, I've checked the script for mistakes, and when I interact still nothing happens. Can you reply to this with the fully copied script so I can paste that in? I don't know what to do
that happened to me
Will you be making a tutorial on how to make npc talk with actual human words like npc will say "hi i am fred" and you will hear him saying hi i am fred
Dude the interact doesnt work , pls help
local gui = script.Parent
local textBox = script.Parent.Textbox
local textLabel = script.Parent.Textbox.Textlabel
local sound = script.Parent.TalkSound
gui.Enabled = false
textBox.Visible = false
local function writeText(text.waitTime)
gui.Enabled = false
textBox.Visible = false
textLabel.Text = text
sound:Play()
task.wait(waitTime)
end
local function endDialouge()
gui.Enabled = true
textBox.Visible = true
textLabel.Text = ""
end
task.wait(2)
writeText("sono onma",2)
writeText("tu sei gheyi",2)
writeText("ez",4)
endDialouge()
11:40 i accidently delete the writetexts scripts..and nothing works rn
What’s the BG music name? It’s perfect for the game I’m doing 😭
(For reference, I’m talking about the music that plays at 2:35, this is in case the music changes sometime in the vid)
I believe it is from FNAF 6 in one of the mini games I believe it was the secret car minigame
doesn´t work :/
the script doesn´t work, i dont know why, i play the game and the textbox appear, but it doesn´t change, it stays: text, i did every thing you did, i dont know what is going on, please help
me to
Same
Maybe because of your spelling. In your script check the errors. If you see an orange line in where you scroll up and down. that means theres something wrong about your spelling or maybe even wrong names.
I had the problem too but fixed it since i found the solution
Hope this helps
😃
I'm your 1,000th Subscriber! Congrats on getting to 1k! :P
Thank you so much btw!!! I can't believe ive reached 1k, gotta do something special 🤔🤔
@@rkgam3zs for sure!
youre gonna get 1.5k bsfore you make a 1k special 😮 @@rkgam3zs
I tried doing the part In 6:07 , but it somehow doesn’t work, I want to know what did I make wrong? Like the textlabel still remained to say “text” inside the text box, and it doesn’t disappear then appear then disappear again
I finally learned to do it on proximity prompt tysm , I'm also gonna add something extra which is cameras position
Hey, your channel has a lot of interesting tutorials. I just am really interested in learning luau because I’ve been building since 2020 and just know the very basics of scripting after like 4 years, so could you please let me know how and where to learn luau from?
is there any way to like make it appear after a play button is pressed?
you just earned a new sub (;
I followed everything and like triple checked, but when I try to interact with my character, theres no button to do so :(
Try making the invis box small and in the torso I had the same problem
Your video it's so good! you are the best! i have a ideia for you, make an functional computer
Thank you!
Great tutorial, but can you please recreate the drake video? please
BRO
😭❓
hey this is amazing! i have one tiny issue though, i tried to make some simple dialouge and whenever i edited the script i had to wait 5 minutes for it to work again
Hey, idk if u will see this but I make the script shown in the video but every time I interact with the proximity prompt/npc nothing happens (I’ve checked for spelling)
me too!! idk whats happening it worked before i added the proximity prompt
@@beezle18397 same
me too lol
Me too!!
tysm mate, now Shrek can talk to me
This helped me out a lot! But is it normal for it to suddenly say that my trigger isn't a valid part of the dialogue folder? Or am i messing something up
Sometimes when a script loads it'll load faster than some things in the workspace which results in an error, to fix this you can add a waitForChild, for example if the code is | local folder = game.workspace.Folder, you can change it yo local folder = game.workspace:WaitForChild("Folder")
Is it possible to have both options? I want to game to start off with the text box on the center then have the player talk to an npc
Congarts on 1k man!
Thank you so much!
Hey man, Could u do a tutorial on how to make those monsters u made some videos ago? thanks!
Thank you man you really helped me!
Of course!
6:41 whitch key do I press to do "BLANK SPACE"???
Can someone help me it just shows the original “text” but is not changing texts like his is 😢
You deserve a sub
I need help I did everything you told me to but for the text it isn’t working I followed everything you did but my text just says “label” how do I fix this please help!
a certain problem I have, when I move my npc to a different place with the proximity prompt selected along with it, the "e to interact" option still appears on the moved npc, but the dialogue doesn't play
Love the tutorial! but I'm stuck the proximity part, is there a way to fix a bug when the proximity part is pressed no text box shows up?
holy crap nevermind i feel stupid. look for the orange line people!
@@PALACEWALLS can you please tell me where the orange line is. Im having the same problem.
how do i make the text animated? a typewriter effect, like make the letters appear one by one, i used to be able to do it but i sorta forgot since im not used to scripting anymore,
Howdy fellow human
Howdy fellow human that breathes air
hey, i’m having some trouble with my script thats based off of this tutorial
the triggered dialogue function expects “(“ when running “writeText”
when playtesting, the gui and sounds don’t appeat or start
if that means anything to you then i’d really appreciate the help
How do I make the text play on “interact” with proximity prompt? And how do I make the text appear letter by letter? Also how do I give it options to answer 👉👈
everything works other than the text actually changing, its just stuck on "text"
Hi i know im a little late but this worked until the very end, I could interact with the npc but text is not showing or the dialogue do you know how to fix this?
Thanks for the help man!
I just have one queery. How do I make it so that my sound does not stop each time a new text appears?
You think you could to a tutorial on how to make a camera switch from 3D to side scrolling (2D) like a game like idk sonic
I could definitely look into it!
@rkgam3zs like you touch something or enter an area, then the camera changes to 2D for a 2D section of a level, and then after you clear the 2D section, it goes back to regular 3D
@@0x_SHADOW_x0 That sounds fun, Ill see how hard it is to make!
the second dialogue doesn't work at me i probably did something wrong but i dont think so
"fredDialogue is not a valid member of Folder "Workspace.dialogueFolder""
i get this error but fredDialogue is a valid member of dialogueFolder i dont get why it doesn't work and when i try to do the second dialogue the first dialogue doesn't work anymore too
think you can help me man?
try adding a waitforchild("fredDialogue") if everything is spelled correctly, since the script might be running before the game fully loads
Do you mind making a tutorial on something similar like this, but actual chat bubbles?
Like, upon interaction, the NPC says something in a chat bubble (similar to our chat bubbles, not the one with a blue highlight)
Ofc!
@@rkgam3zsSir this is work but the Npc dialogue can moved by player how to fix that??
I want the npc cant moved by player
@@honoree185 Could you elaborate friend, like the gui can be moved? or the prompt?
@@rkgam3zs prompt sir , It moved when I hit it.
@@rkgam3zs It moved when I hit it
whenever i try to make the player speed and jump power to 0 it doesn't work (i suck at coding)
i have a fps camera for my horror game I'm using this for and nothing happened... and I don't know how to activate it
for some reason when I add the other dialogue for Fred or the second person the Gui doesn't stay hidden
It doesn't work I did everything like in video I have that button and I wrote all scripts like in video but when I'm pressing E it's just not working
(I'm very beginner in scripting)
SAMEEE
bros cooking food in his room
I live inside of a microwave at this point
hey if you can read this i was wondering on how to make the dialogue sound come on for every letter pressed instead of one time for the entire sentence. is there a way to do that?
Great tutorial not gonna lie. But I have a problem how can I make the dialogue words typed one by one?
my latest tutorial covers that! 😊
@@rkgam3zs tysm!
when u do make a p2 can u pls include how to change the audio for different npcs? 😭
yes! working on p2 right now!
it wont work for me from 11:00 onwards, i have checked multiple times and the script is all the same
Why the text doesn’t show when i interact with the npc? I’ve followed all the scripts but it still didnt work. It only doesn’t work after i entered the proximityprompts
This is a message, not a dialogue
Can you please do a tutorial on pathfinding?
Hell yeah!
Great Video fr
-- Variables
local player = game.Players.LocalPlayer
local gui = script.Parent
local dialogueFrame = gui:WaitForChild("Frame")
local npcMessage = dialogueFrame:WaitForChild("MessageLabel")
-- Proximity Prompt
local npcPart = workspace.NPC.HumanoidRootPart -- Replace "NPC" with your NPC's name
local proximityPrompt = npcPart:WaitForChild("ProximityPrompt")
-- Function to greet the player
local function greetPlayer()
local playerName = player.Name
npcMessage.Text = "Hi " .. playerName .. "!"
dialogueFrame.Visible = true
-- Close dialogue after a few seconds
wait(3)
dialogueFrame.Visible = false
end
-- Trigger greeting on ProximityPrompt activation
proximityPrompt.Triggered:Connect(function()
greetPlayer()
end)
You could have done gui.textBox to make the script shorter
i have a question
what if you could make or know how to make a script for text that makes each letter is delayed?
i gotcha! its called typewriter text i think, i'd love to make a tutorial on it
Hey RKGAM3Zs can you tell me whats wrong? i dont want a sound but the script down below is what i put in please help me with this, Thank you!
local gui = script.Parent
local textBox = script.Parent.textBox
local textLabel = script.Parent.textBox.TextLabel
local function writeText(text, waitTime)
gui.Enabled = true
textBox.Visible = true
textLabel.Text = text
end
task.wait(2)
writeText("This used to be my favorite spot", 2)
writeText("But ever since that thing happened", 2)
writeText("Things havent been the same...", 4)
you need to add task.wait(waitTime) below textLabel.Text = text inside of the writeText function
@@rkgam3zs thank you
im pretty bad to copy because im accoustik could u add the script in the bio of the vidéo pls (gg for 2K)
hello i have an question, how do you make each of these with different talking sound?
or
how do you make an dialogue system with images on it
talking smthin ( im shitting at coding 😭)
EDIT: day 1
day 2 asking how to do this
day 3 asking how to do this
only took 3 days!!!! okay okay so put the sound you wish to use either inside of the character, or make a folder with all the talking sounds, then just make variables like local bobTalkSound = game.Workspace.Sounds yada yada and then just do sound:Play() whenever the text changes
@@rkgam3zs THANK YOU SO MUCH WAHHHHHHHHHHHH
i kinda dont get it ( i am dumb 🥲)
can u make Acid rainy weather (like the weather system u made in one of ur videos but damage the player )
and also make a script that when player holds an umbrella, the player will not take any damage from the acid rains
I want it for my game pls
sure!
mine doesnt work but ive copied everything that you did and im not sure what i did wrong. do you have any ideas
what is wrong? tell me
if your screengui is called Dgui if u change it here is the script
local dgui = script.Parent
local textbox = script.Parent.Textbox
local textlabel = script.Parent.Textbox.TextLabel
local sound = script.Parent.TalkSound
local function writetext(text,waitTime)
dgui.Enabled = true
textbox.Visible = true
textlabel.Text = text
sound:Play()
task.wait(waitTime)
end
task.wait(2)
writetext("So can you figure out something",2)
writetext("i been hearing on some houses but its abandoned city",2)
writetext("Can You Figure It Out? its on some house",4)
btw you can change some text
@@braindeadasfix i got it fixed now thanks
im tweaking cause i dont see any difference between the script i wrote down and the script in this video but the proximityprompt doesnt appear
right so for some reason joeDialogue deletes itself when i load the game inside studio. what
edit: fixed that but now i gotta figure out why the dialogue isnt showing MAN
For some reason the JoeDialouge part keeps deleting itself whenever I press play. What happened I am physically tweaking
when i click on joe or fred nothing happens but the code is the same what should i do?
Dude, you are freaking hilarious.
Hmm if I put another one far away from joe, I can't interact with it.
writetext(text: *error-type*, appears after i try to edit out the text and waittime. I am a beginner and i followed every single steps but it's still not working properly.
Thank you kind sir
W
JumpPower is JumpHeight now btw
thank you very much! But please tell, how to make answers to the dialogues!(
PEAKKK!!!!
This works really well
When I load into the game, the text label/frame does not disappear and the script doesn't work.
So I am making a game. However I want the player not moving while the cutscene and also the cutscene has this type of dialogue do you understand what i mean? Thanks.
I actually show how to stop the player from moving in this tutorial!
@@rkgam3zs Oh thanks! I fixed it because I did a error.