Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local msgs=0
- function say(msg,speed,tme)
- msgs=msgs+1
- local bg=Instance.new("BillboardGui",char)
- bg.Enabled=true;
- bg.Active=true
- bg.Adornee=hed
- bg.Size=UDim2.new(1,0,1,0)
- bg.StudsOffset=Vector3.new(0,3+msgs,0)
- local txt=Instance.new("TextLabel",bg)
- txt.Position=UDim2.new(0,0,0,0)
- txt.Size=UDim2.new(8,0,1.3,0)
- txt.BackgroundTransparency=1
- txt.BorderSizePixel=0
- txt.Font="Bodoni"
- txt.TextScaled=true;
- txt.TextWrapped=true;
- txt.TextColor3=Color3.new(255,255,255)
- txt.TextStrokeTransparency=0
- txt.TextStrokeColor3=Color3.new(0,0,0)
- txt.Text=""
- if trans == true then
- txt.TextColor3=Color3.new(255,0,0)
- txt.Font="Antique"
- coroutine.wrap(function()
- for i = 1,string.len(msg) do
- print(i)
- if speed>0 then
- wait(speed)
- else
- wait()
- txt.Text=txt.Text..msg:sub(i,i)
Advertisement
Add Comment
Please, Sign In to add comment