aight i made this code for a diologue is this code good enough or could i make this better
task.wait(1)
local triggerpart = game.Workspace.eternaldiologue.ProximityPrompt
triggerpart.Triggered:Connect(function()
triggerpart.Enabled = false
script.Parent.Visible = true
script.Parent.Text = "sup and welcome to my game iam still working on this"
task.wait(5)
script.Parent.Text = "thats all ive got to say ima go back to work now cya"
task.wait(5)
script.Parent.Visible = false
triggerpart.Enabled = true
end)
update new code is now fixed