Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local textSound = Instance.new("Sound", owner.Character.Head)
- textSound.SoundId = "rbxassetid://5416525817"
- textSound.Volume = 2
- local billb = Instance.new("BillboardGui")
- billb.Adornee = owner.Character.Head
- billb.ExtentsOffsetWorldSpace = Vector3.new(0, 5, 0)
- billb.LightInfluence = 0
- billb.Size = UDim2.fromScale(20, 1)
- billb.Parent = script
- local texb = Instance.new("TextLabel", billb)
- texb.BackgroundTransparency = 1
- texb.TextScaled = true
- texb.Font = Enum.Font.SciFi
- texb.TextStrokeTransparency = 0
- texb.TextColor3 = Color3.fromRGB(255, 255, 255)
- texb.Size = UDim2.fromScale(1,1)
- texb.Text = ""
- local task_delay = nil
- owner.Chatted:Connect(function(txt)
- for i = 1, #txt, 1 do
- texb.Text = string.sub(txt, 1, i)
- textSound:Play()
- task.wait(0.01)
- end
- if task_delay then
- task.cancel(task_delay)
- end
- task_delay = task.delay(15, function()
- texb.Text = ""
- end)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement