CHoff719

Untitled

Jun 19th, 2019
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.09 KB | None | 0 0
  1. --[[
  2. --//Scripted by Coletin
  3. --//06.29.2015
  4. --//http://www.roblox.com/User.aspx?ID=71436898
  5. ]]
  6.  
  7. player = owner or game:GetService("Players").LocalPlayer
  8.  
  9. chatted = false
  10.  
  11.  
  12. a = Instance.new("BillboardGui", player.Character:FindFirstChild("Head"))
  13. a.ExtentsOffset = Vector3.new(1,0,0)
  14. a.Size = UDim2.new(1,0,1,0)
  15. a.AlwaysOnTop = true
  16. a.Enabled = true
  17. b = Instance.new("ImageLabel", a)
  18. b.BackgroundTransparency = 1
  19. b.BorderSizePixel = 0
  20. b.Image = "http://www.roblox.com/asset/?id=243503908"
  21. b.ImageTransparency = 0.1
  22. b.Position = UDim2.new(0.2,0,0.05,0)
  23. b.Size = UDim2.new(5,0,1.2,0)
  24. b.Visible = false
  25. c = Instance.new("TextLabel", b)
  26. c.BackgroundTransparency = 1
  27. c.BorderSizePixel = 0
  28. c.Position = UDim2.new(0.1,0,0)
  29. c.Size = UDim2.new(0.5,0,0.4,0)
  30. c.ZIndex = 2
  31. c.Font = "SourceSans"
  32. c.FontSize = "Size18"
  33. c.Text = player.Name..":"
  34. c.TextColor3 = Color3.new(255/255,255/255,255/255)
  35. c.TextXAlignment = "Left"
  36. c.TextYAlignment = "Center"
  37. d = Instance.new("TextLabel", b)
  38. d.BackgroundTransparency = 1
  39. d.BorderSizePixel = 0
  40. d.Position = UDim2.new(0.1,0,0.4,0)
  41. d.Size = UDim2.new(0.9,0,0.6,0)
  42. d.ZIndex = 2
  43. d.Font = "SourceSans"
  44. d.FontSize = "Size18"
  45. d.Text = ""
  46. d.TextColor3 = Color3.new(255/255,255/255,255/255)
  47. d.TextXAlignment = "Left"
  48. d.TextYAlignment = "Top"
  49. d.TextWrapped = true
  50.  
  51.  
  52. function message(message)
  53. repeat wait() until chatted == false
  54. chatted = true
  55. b.Visible = true
  56. if string.find(message,"-r") ~=nil then
  57. for i=1,string.len(message),1 do
  58. d.TextColor3 = Color3.new(math.random(1,255)/255,math.random(1,255)/255,math.random(1,255)/255)
  59. d.Text = string.sub(message,1,i)
  60. wait(0.1)
  61. end
  62. elseif string.find(message,"-b") ~=nil then
  63. for i=1,string.len(message),1 do
  64. d.Text = string.sub(string.byte(message),1,i)
  65. wait(0.05)
  66. end
  67. else
  68. for i=1,string.len(message),1 do
  69. d.Text = string.sub(message,1,i)
  70. wait(0.05)
  71. end
  72. end
  73. wait(2)
  74. if string.find(message,"-t") ~=nil then
  75. b.Visible = true
  76. else
  77. b.Visible = false
  78. d.TextColor3 = Color3.new(255/255,255/255,255/255)
  79. end
  80. chatted = false
  81. end
  82.  
  83.  
  84.  
  85.  
  86. player.Chatted:connect(message)
  87.  
  88. print("Hello world!")
Advertisement
Add Comment
Please, Sign In to add comment