Alphashadowgaming

Untitled

Aug 26th, 2016
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. local player = Game.Players.DarkShadow6
  2. local character = player.Character
  3. local bg = Instance.new("BillboardGui")
  4. bg.Parent = player.PlayerGui
  5. bg.Adornee = character.Head
  6. bg.Size = UDim2.new(1.5, 0, 1.0, 0)
  7. bg.StudsOffset = Vector3.new(-0.35, 3, 0)
  8. local frame = Instance.new("Frame")
  9. frame.Parent = bg
  10. frame.Size = UDim2.new(1.5, 0, 1, 0)
  11. frame.BackgroundTransparency = 0.7
  12. frame.BackgroundColor3 = Color3.new(1 / 255, 1 / 255, 1 / 255)
  13. local text = Instance.new("TextLabel")
  14. text.Parent = frame
  15. text.Position = UDim2.new(0, 0, 0.25, 0)
  16. text.Size = UDim2.new(1, 0, 0.5, 0)
  17. text.Text = player.Name.. "'s chatbox"
  18. text.BackgroundColor3 = Color3.new(0, 0, 0)
  19. text.TextColor3 = Color3.new(255 / 255, 255 / 255, 255 / 255)
  20.  
  21.  
  22. function onChatted(msg)
  23. if (string.sub(msg, 1, 8) == "/sc box/") then
  24. text.Text = string.sub(msg, 9)
  25. end
  26. end
  27.  
  28.  
  29. player.Chatted:connect(onChatted)
Advertisement
Add Comment
Please, Sign In to add comment