How to make a dialogue in roblox studio 2023!
22
Published 2023-08-05
-- Varibles
local Trigger = game.Workspace.TriggerPart -- What your part is called
local text = script.Parent.Dio1.Text -- Change Dio1 to whatever your frame is called
local frame = script.Parent.Dio1 -- Change frame Dio to whatever your frame is called
-- Function
Trigger.Touched:Connect(function()
frame.Visible = true -- Shows the frame
text.Text = "Your text here"
wait(3) -- how long you want your text to change
text.Text = "Your text here 2"
wait(3)
text.Text = "Your text here 3"
wait(3)
frame.Visible = false -- Hides the frame
end)
Enjoy!
All Comments (2)
-
script: -- Varibles local Trigger = game.Workspace.TriggerPart -- What your part is called local text = script.Parent.Dio1.Text -- Change Dio1 to whatever your frame is called local frame = script.Parent.Dio1 -- Change frame Dio to whatever your frame is called -- Function Trigger.Touched:Connect(function() frame.Visible = true -- Shows the frame text.Text = "Your text here" wait(3) -- how long you want your text to change text.Text = "Your text here 2" wait(3) text.Text = "Your text here 3" wait(3) frame.Visible = false -- Hides the frame end)