Dialog help needed

Hello, I’m making a dialog system for a random events game and I want to be able to change text, text color, and wait time so its easy to use but reliable.
Here is what I have right now:

   local remoteEvent = game.ReplicatedStorage.RemoteEvents:WaitForChild("Message")
   local messageColor = BrickColor.new("New Yeller")
   
   local eventMessage = {
   	"Hello! Welcome to the robloxian mines!",
   	"but DO NOT fall in lava!!",
   	"AAAAA",
   	"QUICK!! GET TO THE TOP OF THE CAVE!!!"
   }
   
   
   remoteEvent:FireAllClients(eventMessage, messageColor)

client

event.OnClientEvent:Connect(function(eventMessage, messageTime, messageColor)
	screenGui.TextLabel.TextColor = messageColor
	screenGui.Enabled = true
	
	for index, obj in ipairs(eventMessage) do
		print(obj)
	end

	tween:Play()
	
	tween.Completed:Wait()
	task.wait(messageTime)
	tween2:Play()
	tween2.Completed:Wait()
	screenGui.Enabled = false
end)
1 Like

Nevermind, found a way! (filler because limit)

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.