Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- player = game.Players.amazingranma261
- mod = player.character
- head = mod.Head
- gui_height = 5
- max_distance = 60
- chat_active = false
- function createChatBubble(seconds, message)
- chat_active = true
- local gui = Instance.new("BillboardGui",head)
- gui.Adornee = head
- gui.MaxDistance = max_distance
- gui.ExtentsOffsetWorldSpace = Vector3.new(0,gui_height,0)
- gui.Size = UDim2.new(0.2,0,0.8,0)
- local chat_bubble = Instance.new("Frame",gui)
- chat_bubble.Size = UDim2.new(1,0,1,0)
- chat_bubble.BackgroundTransparency = 0.5
- chat_bubble.BackgroundColor3 = Color3.new(0,0,0)
- local text_label = Instance.new("TextLabel",chat_bubble)
- text_label.Size = UDim2.new(1,0,1,0)
- text_label.TextColor3 = Color3.fromRGB(155,212,59)
- text_label.TextSize = 20
- text_label.Font = "Arcade"
- text_label.BackgroundTransparency = 1
- text_label.Text = ""
- for i = 1,string.len(message)+2 do
- text_label.Text = string.sub(message,1,i)
- gui.Size = gui.Size + UDim2.new(.2,0,0,0)
- wait(.1)
- end
- wait(seconds)
- gui:Destroy()
- chat_active = false
- end
- player.chatted:connect(function(msg)
- if(not chat_active) then
- createChatBubble(3,msg)
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment