Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local billboard = Instance.new("BillboardGui", owner.Character.Head)
- local textLabel = Instance.new("TextBox", billboard)
- textLabel.Visible = false
- textLabel.Size = UDim2.new(5, 0, 1, 0)
- textLabel.BackgroundTransparency = 0
- textLabel.Font = Enum.Font.Arcade
- textLabel.TextScaled = true
- textLabel.BackgroundColor3 = Color3.new(1, 1, 1)
- textLabel.BorderSizePixel = 5
- textLabel.BorderColor3 = Color3.new(1, 1, 1)
- textLabel.TextColor3 = Color3.new(0, 0, 0)
- billboard.Adornee = owner.Character.Torso
- billboard.Size = UDim2.new(2, 0, 2, 0)
- billboard.StudsOffset = Vector3.new(-4, 2, 0)
- billboard.ExtentsOffset = Vector3.new(0,3,0)
- owner.Chatted:Connect(function(msg)
- textLabel.Visible = true
- for txt = 1, #msg do
- textLabel.Text = string.sub(msg, 1, txt)
- end
- wait(5)
- textLabel.Visible = false
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement