HowToRoblox

MessageDisplayScript

Mar 10th, 2020
1,533
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.27 KB | None | 0 0
  1. game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Chat, false)
  2.  
  3.  
  4. local msg1 = script.Parent:WaitForChild("MessageBox1")
  5. local msg2 = script.Parent:WaitForChild("MessageBox2")
  6. local msg3 = script.Parent:WaitForChild("MessageBox3")
  7. local msg4 = script.Parent:WaitForChild("MessageBox4")
  8. local msg5 = script.Parent:WaitForChild("MessageBox5")
  9. local msg6 = script.Parent:WaitForChild("MessageBox6")
  10. local msg7 = script.Parent:WaitForChild("MessageBox7")
  11. local msg8 = script.Parent:WaitForChild("MessageBox8")
  12. local msg9 = script.Parent:WaitForChild("MessageBox9")
  13. local msg10 = script.Parent:WaitForChild("MessageBox10")
  14. local msg11 = script.Parent:WaitForChild("MessageBox11")
  15. local msg12 = script.Parent:WaitForChild("MessageBox12")
  16. local msg13 = script.Parent:WaitForChild("MessageBox13")
  17. local msg14 = script.Parent:WaitForChild("MessageBox14")
  18.  
  19.  
  20.  
  21. game.ReplicatedStorage.MessageContainer.ChildAdded:Connect(function(str)
  22.    
  23.    
  24.     msg1.Text = msg2.Text
  25.     msg2.Text = msg3.Text
  26.     msg3.Text = msg4.Text
  27.     msg4.Text = msg5.Text
  28.     msg5.Text = msg6.Text
  29.     msg6.Text = msg7.Text
  30.     msg7.Text = msg8.Text
  31.     msg8.Text = msg9.Text
  32.     msg9.Text = msg10.Text
  33.     msg10.Text = msg11.Text
  34.     msg11.Text = msg12.Text
  35.     msg12.Text = msg13.Text
  36.     msg13.Text = msg14.Text
  37.     msg14.Text = str.Value
  38. end)
Add Comment
Please, Sign In to add comment