Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- wait(0.1)
- local Plr = game.Players.LocalPlayer
- local PChar = Plr.Character
- local HeadID = "329698848"
- local TalkSoundID = "138093607"
- -- New Instances
- local BillGui = Instance.new("BillboardGui", game.Workspace)
- local Frame = Instance.new("Frame", BillGui)
- local ImageFace = Instance.new("ImageLabel", Frame)
- local TextDial = Instance.new("TextLabel", Frame)
- local TalkSound = Instance.new("Sound", BillGui)
- -- SetUp GUI
- BillGui.Size = UDim2.new(0, 200, 0, 52)
- Frame.Position = UDim2.new(0, 0, 0, -50)
- Frame.Size = UDim2.new(0, 200, 0, 52)
- Frame.BackgroundColor3 = Color3.new(0, 0, 0)
- Frame.BorderColor3 = Color3.new(255, 255, 255)
- ImageFace.BackgroundTransparency = 1
- ImageFace.Image = "http://www.roblox.com/asset/?id="..HeadID
- ImageFace.Size = UDim2.new(0, 50, 0, 52)
- TextDial.Text = "Label"
- TextDial.BackgroundTransparency = 1
- TextDial.Position = UDim2.new(0, 52, 0, 0)
- TextDial.Size = UDim2.new(0, 150, 0, 52)
- TextDial.TextColor3 = Color3.new(255, 255, 255)
- TalkSound.SoundId = "http://www.roblox.com/asset/?id="..TalkSoundID
- Frame.Visible = false
- wait(1)
- BillGui.Parent = PChar.Head
- -- Chatted Function
- Plr.Chatted:connect(function(MSG)
- Frame.Visible = true
- TextDial.Text = MSG
- TalkSound:Play()
- wait(3)
- Frame.Visible = false
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement