Advertisement
lundofett

Untitled

Dec 24th, 2018
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. wait(0.1)
  2. local Plr = game.Players.LocalPlayer
  3. local PChar = Plr.Character
  4. local HeadID = "2675625925"
  5. local TalkSoundID = "920317789"
  6. -- New Instances
  7. local BillGui = Instance.new("BillboardGui", game.Workspace)
  8. local Frame = Instance.new("Frame", BillGui)
  9. local ImageFace = Instance.new("ImageLabel", Frame)
  10. local TextDial = Instance.new("TextLabel", Frame)
  11. local TalkSound = Instance.new("Sound", BillGui)
  12. -- SetUp GUI
  13. BillGui.Size = UDim2.new(0, 200, 0, 52)
  14.  
  15. Frame.Position = UDim2.new(0, 0, 0, -50)
  16. Frame.Size = UDim2.new(0, 200, 0, 52)
  17. Frame.BackgroundColor3 = Color3.new(0, 0, 0)
  18. Frame.BorderColor3 = Color3.new(255, 255, 255)
  19.  
  20. ImageFace.BackgroundTransparency = 1
  21. ImageFace.Image = "http://www.roblox.com/asset/?id="..HeadID
  22. ImageFace.Size = UDim2.new(0, 50, 0, 52)
  23.  
  24. TextDial.Text = "Label"
  25. TextDial.BackgroundTransparency = 1
  26. TextDial.Position = UDim2.new(0, 52, 0, 0)
  27. TextDial.Size = UDim2.new(0, 150, 0, 52)
  28. TextDial.TextColor3 = Color3.new(255, 255, 255)
  29.  
  30. TalkSound.SoundId = "http://www.roblox.com/asset/?id="..TalkSoundID
  31.  
  32. Frame.Visible = false
  33.  
  34. wait(1)
  35.  
  36. BillGui.Parent = PChar.Head
  37. -- Chatted Function
  38. Plr.Chatted:connect(function(MSG)
  39.     Frame.Visible = true
  40.     TextDial.Text = MSG
  41.     TalkSound:Play()
  42.     wait(3)
  43.     Frame.Visible = false
  44. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement