Advertisement
iiWolfie

Roblox text script

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