PR0J3CT11

Untitled

Aug 13th, 2019
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. print("this was made by retram V1 hi friends")
  2. warn("bruh if i find you i will kill you") players = game:GetService("Players")
  3. player = players.TameDoNotClick
  4. head = player.Character:WaitForChild("Head")
  5. max_distance = 60
  6. chat_bubbles = 0
  7. gui_height = 5
  8. bubble_color = Color3.new(0,0,0)
  9. chat_color = Color3.new(255, 255, 255)
  10.  
  11. function createChatBubble(seconds, message)
  12. chat_bubbles = chat_bubbles + 1
  13. local gui = Instance.new("BillboardGui",head)
  14. gui.Adornee = head
  15. gui.MaxDistance = max_distance
  16. gui.ExtentsOffsetWorldSpace = Vector3.new(0,gui_height+(chat_bubbles*1.5),0)
  17. gui.Size = UDim2.new(0,32*(#message/3),0.6,0)
  18.  
  19. local chat_bubble = Instance.new("Frame",gui)
  20. chat_bubble.Size = UDim2.new(1,0,1,0)
  21. chat_bubble.BackgroundTransparency = 0.5
  22. chat_bubble.BackgroundColor3 = bubble_color
  23.  
  24.  
  25. local text_label = Instance.new("TextBox",chat_bubble)
  26. text_label.Text = message
  27. text_label.Size = UDim2.new(1,0,1,0)
  28. text_label.TextColor3 = chat_color
  29. text_label.TextSize = 20
  30. text_label.Font = "Arcade"
  31. text_label.BackgroundTransparency = 1
  32.  
  33. wait(seconds)
  34. gui:Destroy()
  35. chat_bubbles = chat_bubbles - 1
  36. end
  37.  
  38. player.chatted:connect(function(msg)
  39. chat = coroutine.wrap(createChatBubble)
  40. chat((#msg/5)+2,msg)
  41. end)
Add Comment
Please, Sign In to add comment