harng123

Untitled

Aug 27th, 2015
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.22 KB | None | 0 0
  1. wait(0.001)
  2. script:ClearAllChildren();
  3. script.Parent=nil;
  4. wait(1)
  5. LocalPlayer = game:service'Players'.LocalPlayer
  6. Letters = {"00000000000000000000000000000000000","01000010000100001000010000000001000","10100101000000000000000000000000000","00000010101111101010111110101000000","00100111111010011111001011111100100","00000000001100111010001000101110011","00100010100101001010011011001001101","00100001000000000000000000000000000","00010001000100001000010000010000010","01000001000001000010000100010001000","00100011100010000000000000000000000","00000001000010011111001000010000000","00000000000000000000110001100001000","00000000000000000000011100000000000","00000000000000000000000001100011000","00000000100001000100001000100001000","01110100011001110101110011000101110","00100011000010000100001000010011111","01110100010000100110010001000111111","01110100010000100110000011000101110","00011001010100110001111110000100001","11111100001111000001000011000101110","00110010001000011110100011000101110","11111100010000100010001000010000100","01110100011000101110100011000101110","01110100011000101111000010001001100","00000000000110001100000000110001100","00000011000110000000011000110000100","00010001000100010000010000010000010","00000000001111100000111110000000000","01000001000001000001000100010001000","01110100010000100010001000000000100","01110100011011110101101111000001111","01110100011111110001100011000110001","11110100011111010001100011000111110","01110100011000010000100001000101110","11110100011000110001100011000111110","11111100001110010000100001000011111","11111100001110010000100001000010000","01111100001001110001100011000101110","10001100011111110001100011000110001","01110001000010000100001000010001110","00001000010000100001000011000101110","10010101001100011000101001001010010","10000100001000010000100001000011111","10001110111010110001100011000110001","10001110011010110011100011000110001","01110100011000110001100011000101110","11110100011111010000101001000010000","01110100011000110001100011001001101","11110100011111010001100011000110001","01111100000111000001000011000101110","11111001000010000100001000010000100","10001100011000110001100011000101110","10001100011000110001010100101000100","10001100011000110001101011101110001","10001010100010001010100011000110001","10001010100010000100001000010000100","11111000010001000100010001000011111","01110010000100001000010000100001110","00000010000100000100001000001000010","01110000100001000010000100001001110","00000001000101000000000000000000000","00000000000000000000000000000011111","01000001000000000000000000000000000","00000000000111000001011111000101111","10000100001011011001100011000111110","00000000000111010001100001000101110","00001000010110110011100011000101111","00000000000111010001111111000001111","00011001000111100100001000010000100","00000000000111110001011110000111110","10000100001011011001100011000110001","00100000000010000100001000010000100","00001000000000100001100011000101110","10000100001001010100110001010010010","00100001000010000100001000010000010","00000000001101010101101011000110001","00000000001111010001100011000110001","00000000000111010001100011000101110","00000000001011011001111101000010000","00000000000110110011011110000100001","00000000001011011001100001000010000","00000000000111110000011100000111110","00100001000111000100001000010000010","00000000001000110001100011000101111","00000000001000110001100010101000100","00000000001000110001101011010101111","00000000001000101010001000101010001","00000000001000110001011110000111110","00000000001111100010001000100011111","00010001000010001000001000010000010","10000100001000010000100001000010000","01000001000010000010001000010001000","00000000000000000010101010100000000"}
  7. DeModel = Instance.new("BillboardGui", workspace:findFirstChild(LocalPlayer.Name))
  8. DeModel.StudsOffset = Vector3.new(0,2.5,0)
  9. DeModel.Name = ":D"
  10. FR = Instance.new("Frame",DeModel)
  11. FR.Size=UDim2.new(1,0,1,0)
  12. FR.BackgroundColor3=BrickColor.new("Institutional white").Color
  13. FR.BorderSizePixel=0
  14. FR.ZIndex=2
  15. CurrParent = workspace:findFirstChild(LocalPlayer.Name).Head
  16. game:service'RunService'.RenderStepped:connect(function()
  17. pcall(function()
  18. local a = workspace:findFirstChild(LocalPlayer.Name)
  19. if a.ClassName == 'Part' then
  20. CurrParent = a
  21. else
  22. CurrParent = a:findFirstChild'Head'
  23. end
  24. end)
  25. if DeModel.Parent ~= CurrParent or DeModel == nil or FR.Parent ~= DeModel or FR == nil then
  26. pcall(function()
  27. if CurrParent.ClassName == 'Part' then
  28. DeModel = Instance.new("BillboardGui", CurrParent)
  29. DeModel.Adornee = CurrParent
  30. DeModel.StudsOffset = Vector3.new(0,2.5,0)
  31. DeModel.Name = ":D"
  32. FR = Instance.new("Frame",DeModel)
  33. FR.Size=UDim2.new(1,0,1,0)
  34. FR.BackgroundColor3=BrickColor.new("Institutional white").Color
  35. FR.BorderSizePixel=0
  36. FR.ZIndex=2
  37. end
  38. end)
  39. end
  40. end)
  41. function CreateLetter(what, pos, posy, cl)
  42. pcall(function()
  43. if cl == nil then cl = "Toothpaste" end
  44. if Letters[what:byte()-31] then
  45. what = Letters[what:byte()-31]
  46. else
  47. what = Letters[1]
  48. end
  49. if type(what) ~= "string" then return end
  50. what = what:gsub('\n','')
  51. what = what:gsub('\t','')
  52. what = what:gsub(' ','')
  53. pos = pos * 2
  54. posy = posy * 2
  55. c = 0
  56. for y=1,7 do
  57. for x=1,5 do
  58. c = c + 1
  59. if what:sub(c, c) == "1" then
  60. local a = Instance.new("Frame", FR)
  61. a.Name = "L"
  62. a.ZIndex=3
  63. a.Size = UDim2.new(0,2,0,2)
  64. a.BorderSizePixel = 0
  65. a.BackgroundTransparency = 1
  66. a.BackgroundColor3 = BrickColor.new(cl).Color
  67. a.Position = UDim2.new(0,((x+1)*2)+pos,0,(y*2)+posy)
  68. coroutine.wrap(function()
  69. wait(math.random(1, 10)/50)
  70. a.BackgroundTransparency = 0
  71. end)()
  72. end
  73. end
  74. end
  75. end)
  76. end
  77. LocalPlayer.Chatted:connect(function(m)
  78. pcall(function()
  79. local cl = "Really black"
  80. for _,v in pairs(DeModel.Frame:children()) do
  81. v:Destroy()
  82. end
  83. if m:sub(1,2) == '/e' then return end
  84. if m:sub(1,3) == "/! " then
  85. m = m:sub(4)
  86. DeModel.Frame.BackgroundColor3 = BrickColor.new("Toothpaste").Color
  87. cl = "Really red"
  88. else
  89. DeModel.Frame.BackgroundColor3 = BrickColor.new("Institutional white").Color
  90. end
  91. m1 = m:gsub("\n"," ")
  92. m1 = m1:gsub("\t"," ")
  93. m1 = m1:gsub("math.pi",tostring(math.pi))
  94. if #m1 <= 30 then
  95. DeModel.Size = UDim2.new(0,(30+(#m1*10)),0,20)
  96. elseif #m1 <= 60 then
  97. DeModel.Size = UDim2.new(0,330,0,40)
  98. elseif #m1 <= 90 then
  99. DeModel.Size = UDim2.new(0,330,0,60)
  100. elseif #m1 > 90 then
  101. DeModel.Size = UDim2.new(0,340,0,60)
  102. m1 = m1:sub(1,90).."..."
  103. end
  104. coroutine.wrap(function()
  105. for i = 1,0,-1/#m1 do
  106. DeModel.Frame.Transparency = i
  107. wait(1/60)
  108. end
  109. end)()
  110. if #m1 < 30 then
  111. for i = 1,#m1 do
  112. CreateLetter(m1:sub(i,i),i*5,0,cl)
  113. wait(1/60)
  114. end
  115. elseif #m1 <= 60 then
  116. for i = 1,30 do
  117. CreateLetter(m1:sub(i,i),i*5,0,cl)
  118. wait(1/60)
  119. end
  120. for i = 31,#m1 do
  121. CreateLetter(m1:sub(i,i),(i-30)*5,10,cl)
  122. wait(1/60)
  123. end
  124. elseif #m1 >= 60 then
  125. for i = 1,30 do
  126. CreateLetter(m1:sub(i,i),i*5,0,cl)
  127. wait(1/60)
  128. end
  129. for i = 31,60 do
  130. CreateLetter(m1:sub(i,i),(i-30)*5,10,cl)
  131. wait(1/60)
  132. end
  133. for i = 61,#m1 do
  134. CreateLetter(m1:sub(i,i),(i-60)*5,20,cl)
  135. wait(1/60)
  136. end
  137. end
  138. end)
  139. end)
Add Comment
Please, Sign In to add comment