Advertisement
BobMe

TextGUI

Apr 21st, 2018
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.54 KB | None | 0 0
  1. --By Memo1332
  2. --this is only used if chat is broken, or feel like being a mute, i may customize my chatvoice to be compatible with this idk
  3. plr = game.Players.LocalPlayer
  4.  
  5. CV="Lapis"
  6. p = game.Players.LocalPlayer
  7. char = p.Character
  8. local txt = Instance.new("BillboardGui", char.Head)
  9. txt.Adornee = char.Head
  10. txt.Name = "_status"
  11. txt.Size = UDim2.new(2, 0, 1.2, 0)
  12. txt.StudsOffset = Vector3.new(-9, 6, 0)
  13. local text = Instance.new("TextLabel", txt)
  14. text.Size = UDim2.new(10, 0, 5, 0)
  15. text.FontSize = "Size18"
  16. text.TextScaled = true
  17. text.TextTransparency = 0
  18. text.BackgroundTransparency = 1
  19. text.TextTransparency = 0
  20. text.TextStrokeTransparency = 0
  21. text.Font = "Cartoon"
  22. text.TextStrokeColor3 = Color3.new(1,.8,1)
  23. text.TextColor3 = Color3.new(1,.5,1)
  24. text.Text = " "
  25.  
  26.  
  27. ScreenGui0 = Instance.new("ScreenGui")
  28. Frame1 = Instance.new("Frame")
  29. TextBox2 = Instance.new("TextBox")
  30. TextButton3 = Instance.new("TextButton")
  31. TextButton4 = Instance.new("TextButton")
  32. ScreenGui0.Parent = game.Players.LocalPlayer.PlayerGui
  33. Frame1.Name = "Body"
  34. Frame1.Parent = ScreenGui0
  35. Frame1.AnchorPoint = Vector2.new(1,1)
  36. Frame1.Transparency = 0.40000000596046
  37. Frame1.Size = UDim2.new(0, 400, 0, 300)
  38. Frame1.Position = UDim2.new(1, -20, 1, -20)
  39. Frame1.BackgroundColor3 = Color3.new(0.996078, 0.803922, 1)
  40. Frame1.BackgroundTransparency = 0.40000000596046
  41. TextBox2.Parent = Frame1
  42. TextBox2.Transparency = 0.30000001192093
  43. TextBox2.Size = UDim2.new(0.949999988, 0, 0, 213)
  44. TextBox2.Text = "Write something... "
  45. TextBox2.Position = UDim2.new(0.5, 0, 0, 8)
  46. TextBox2.AnchorPoint = Vector2.new(0.5,0)
  47. TextBox2.BackgroundColor3 = Color3.new(1, 1, 1)
  48. TextBox2.BackgroundTransparency = 0.30000001192093
  49. TextBox2.Font = Enum.Font.SourceSans
  50. TextBox2.FontSize = Enum.FontSize.Size14
  51. TextBox2.TextScaled = true
  52. TextBox2.ClearTextOnFocus = false
  53. TextBox2.TextWrapped = true
  54. TextButton3.Name = "SendButton"
  55. TextButton3.Parent = Frame1
  56. TextButton3.Size = UDim2.new(0, 200, 0, 50)
  57. TextButton3.Text = "Send"
  58. TextButton3.AnchorPoint = Vector2.new(0.5,1)
  59. TextButton3.Position = UDim2.new(0.5, 0, 1, -20)
  60. TextButton3.BackgroundColor3 = Color3.new(0.980392, 0.396078, 1)
  61. TextButton3.Font = Enum.Font.SourceSans
  62. TextButton3.FontSize = Enum.FontSize.Size14
  63. TextButton3.TextColor3 = Color3.new(1, 1, 1)
  64. TextButton3.TextScaled = true
  65. TextButton3.TextStrokeColor3 = Color3.new(0.666667, 0.666667, 0.666667)
  66. TextButton3.TextStrokeTransparency = 0
  67. TextButton3.TextWrapped = true
  68. TextButton4.Name = "HideButton"
  69. TextButton4.Parent = Frame1
  70. TextButton4.Transparency = 0.40000000596046
  71. TextButton4.Size = UDim2.new(0, 91, 0, 30)
  72. TextButton4.Text = "Hide"
  73. TextButton4.AnchorPoint = Vector2.new(1,1)
  74. TextButton4.Position = UDim2.new(0, 0, 1, 0)
  75. TextButton4.BackgroundColor3 = Color3.new(0.980392, 0.396078, 1)
  76. TextButton4.BackgroundTransparency = 0.40000000596046
  77. TextButton4.Font = Enum.Font.SourceSans
  78. TextButton4.FontSize = Enum.FontSize.Size14
  79. TextButton4.TextColor3 = Color3.new(1, 1, 1)
  80. TextButton4.TextScaled = true
  81. TextButton4.TextStrokeColor3 = Color3.new(0.666667, 0.666667, 0.666667)
  82. TextButton4.TextStrokeTransparency = 0
  83. TextButton4.TextWrapped = true
  84. owie = false
  85.  
  86. TextButton3.MouseButton1Click:connect(function()
  87. text.Text = TextBox2.Text
  88. TextBox2.Text = ""
  89. wait(5)
  90. text.Text = " "
  91. end)
  92. TextButton4.MouseButton1Click:connect(function()
  93. if owie == false then
  94. owie = true
  95. TextButton4.Text = "Show"
  96. Frame1.Position = UDim2.new(1, 400, 1, -20)
  97. else
  98. owie = false
  99. TextButton4.Text = "Hide"
  100. Frame1.Position = UDim2.new(1, -20, 1, -20)
  101. end
  102. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement