Advertisement
scriptingtales

Roblox ChatBillBoard

Jun 2nd, 2023 (edited)
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.83 KB | None | 0 0
  1. local billboard = Instance.new("BillboardGui", owner.Character.Head)
  2. local textLabel = Instance.new("TextBox", billboard)
  3.  
  4. textLabel.Visible = false
  5. textLabel.Size = UDim2.new(5, 0, 1, 0)
  6. textLabel.BackgroundTransparency = 0
  7. textLabel.Font = Enum.Font.Arcade
  8. textLabel.TextScaled = true
  9. textLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  10. textLabel.BorderSizePixel = 5
  11. textLabel.BorderColor3 = Color3.new(1, 1, 1)
  12. textLabel.TextColor3 = Color3.new(0, 0, 0)
  13.  
  14. billboard.Adornee = owner.Character.Torso
  15. billboard.Size = UDim2.new(2, 0, 2, 0)
  16. billboard.StudsOffset = Vector3.new(-4, 2, 0)
  17. billboard.ExtentsOffset = Vector3.new(0,3,0)
  18.  
  19. owner.Chatted:Connect(function(msg)
  20.     textLabel.Visible = true
  21.     for txt = 1, #msg do
  22.         textLabel.Text = string.sub(msg, 1, txt)
  23.     end
  24.     wait(5)
  25.     textLabel.Visible = false
  26. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement