Advertisement
imgayandyouknow666

something for rou

Oct 9th, 2018
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.28 KB | None | 0 0
  1. function message(m)
  2.  
  3.  
  4. -- Edit the text below to display different dialog!
  5. -- Created by hihi624
  6. -- Credit to Aurarus for the basic design(Text box around it and ontop of screen"
  7. -- I basicly eddited the script so it has really cool subtitles.
  8. -- Thanks for taking.
  9.  
  10. ---------------------------------------------------------------\\
  11.  
  12.  
  13. m.Text = "Get to da choppa Bob!"
  14. wait(3)
  15.  
  16.  
  17. m.Text = "Nahh" --You can change the text and time it stays for AND colour. --Change the colour by using the codes below.
  18. wait(3)
  19.  
  20.  
  21. m.Text = "Okai c:"
  22. m.TextColor3 = Color3.new(1,1,1)
  23. wait(2)
  24.  
  25.  
  26. m.Text = "Made by hihi624!"
  27. m.TextColor3 = Color3.new(1,1,1)
  28. wait(2)
  29.  
  30.  
  31.  
  32.  
  33. ---------------------------------------------------------------//
  34.  
  35. -- Color codes:
  36. -- (1,0,0) is Red
  37. -- (0,1,0) is Green
  38. -- (0,0,1) is Blue
  39. -- (1,1,1) is White
  40. -- And you can also mix colors. (1,0,1) is Purple for example
  41.  
  42. -- For more settings, read the green text around the section below
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50. end
  51. function onTouch(hit)
  52.  
  53. if hit.Parent:FindFirstChild("Humanoid") ~= nil then
  54.  
  55. if game.Players:FindFirstChild(hit.Parent.Name) ~= nil then
  56. local player = game.Players:FindFirstChild(hit.Parent.Name)
  57.  
  58. if player:FindFirstChild("PlayerGui"):FindFirstChild("ScreenGui") == nil then
  59. sg = Instance.new("ScreenGui")
  60. sg.Parent = player:FindFirstChild("PlayerGui")
  61. end
  62.  
  63. if player.PlayerGui.ScreenGui:FindFirstChild("MessageBox") == nil then
  64.  
  65. -- In this section below, you can edit how the text box looks like
  66. local f = Instance.new("Frame")
  67. f.Name = "MessageBox"
  68. f.Position = UDim2.new(0.50, 3, 0.1, 500)
  69. f.Size = UDim2.new(0.0, 0, 0, 0) -- If Text box needs to be bigger, simply change "0.4"
  70. f.Style = "RobloxRound" -- Styles: "ChatBlue", "Chat Red", "Chat Green"
  71. f.Parent = player.PlayerGui:FindFirstChild("ScreenGui")
  72.  
  73. local m = Instance.new("TextLabel")
  74. m.Position = UDim2.new(0.100, 0, 0.5, 0)
  75. m.FontSize = "Size14" -- Font Sizes: 10, 11, 12, 14, 18, 24
  76. m.TextColor3 = Color3.new(1,1,1) -- Colors: (1,0,0) = Red, (0,1,0) = Green, (0,0,1) = Blue
  77. m.Parent = f
  78.  
  79. message(m)
  80.  
  81.  
  82. -- Don't edit below this
  83. f:Destroy()
  84. end
  85. end
  86. end
  87. end
  88.  
  89. script.Parent.Touched:connect(onTouch)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement