I've come up with a script to make dialogue but I don't know how to add sprites along when dialogue appears.
Here's my script:
local dialogue = {"Hey there", ... }
local function displayText(text)
script.Parent.Parent.TextPart.Text = text
end
local dialogueInSession = false
local mouseButtonConnection;
mouseButtonConnection = script.Parent.MouseButton1Click:Connect(function()
if dialogueInSession then return end
dialogueInSession = true
for _, text in ipairs(dialogue) do
displayText(text)
script.Parent.MouseButton1Click:Wait()
end
dialogueInSession = false
script.Parent.LocalScript.Disabled = true
script.Parent.MouseButton1Click:Connect(function()
script.Parent.Parent.rantaro4.Visible = false
script.Parent.Parent.main.Visible = false
script.Parent.Parent.TextPart.Visible = false
script.Parent.Parent.rantaroname.Visible = false
end)
end)
I don't know where to put any sprites to appear during any dialogue, so it would help if you give me tips how to do this.

3 comments
By sprite do you mean like a picture of who is speaking next to the text?
By sprite do you mean like a picture of who is speaking next to the text?
yes.