Advertisement
Guest User

Untitled

a guest
Mar 18th, 2018
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.24 KB | None | 0 0
  1. function chatfunc(text)
  2. local chat = coroutine.wrap(function()
  3. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  4. Character:FindFirstChild("TalkingBillBoard"):destroy()
  5. end
  6. local naeeym2 = Instance.new("BillboardGui",Character)
  7. naeeym2.Size = UDim2.new(0,100,0,40)
  8. naeeym2.StudsOffset = Vector3.new(0,3,0)
  9. naeeym2.Adornee = Character.Head
  10. naeeym2.Name = "TalkingBillBoard"
  11. local tecks2 = Instance.new("TextLabel",naeeym2)
  12. tecks2.BackgroundTransparency = 1
  13. tecks2.BorderSizePixel = 0
  14. tecks2.Text = ""
  15. tecks2.Font = "Fantasy"
  16. tecks2.TextSize = 30
  17. tecks2.TextStrokeTransparency = 0
  18. tecks2.TextColor3 = Color3.new(0,0,0)
  19. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  20. tecks2.Size = UDim2.new(1,0,0.5,0)
  21. local tecks3 = Instance.new("TextLabel",naeeym2)
  22. tecks3.BackgroundTransparency = 1
  23. tecks3.BorderSizePixel = 0
  24. tecks3.Text = ""
  25. tecks3.Font = "Fantasy"
  26. tecks3.TextSize = 30
  27. tecks3.TextStrokeTransparency = 0
  28. tecks3.TextColor3 = Color3.new(0,0,0)
  29. tecks3.TextStrokeColor3 = Color3.new(255,255,255)
  30. tecks3.Size = UDim2.new(1,0,0.5,0)
  31. for i = 1,string.len(text),1 do
  32. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=565939471", Character, 6, .8)
  33. tecks2.Text = string.sub(text,1,i)
  34. tecks3.Text = string.sub(text,1,i)
  35. wait(0.01)
  36. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement