View difference between Paste ID: G3aZCFxs and Srqg8mYA
SHOW: | | - or go back to the newest paste.
1
local Player = game.Players.localPlayer
2
script.Parent = Player.PlayerGui
3
4
function chatfunc(text)
5
local chat = coroutine.wrap(function()
6
if Character:FindFirstChild("TalkingBillBoard")~= nil then
7
Character:FindFirstChild("TalkingBillBoard"):destroy()
8
end
9
local naeeym2 = Instance.new("BillboardGui",Character)
10
naeeym2.Size = UDim2.new(0,100,0,40)
11
naeeym2.StudsOffset = Vector3.new(0,3,0)
12
naeeym2.Adornee = Head
13
naeeym2.Name = "TalkingBillBoard"
14
local tecks2 = Instance.new("TextLabel",naeeym2)
15
tecks2.BackgroundTransparency = 1
16
tecks2.BorderSizePixel = 0
17
tecks2.Text = ""
18
tecks2.Font = "Fantasy"
19
tecks2.FontSize = "Size24"
20
tecks2.TextStrokeTransparency = 0
21
tecks2.TextColor3 = BrickColor.new(colortwo).Color
22
tecks2.TextStrokeColor3 = BrickColor.new(colorone).Color
23
tecks2.Size = UDim2.new(1,0,0.5,0)
24
local shk = coroutine.wrap(function()
25
while tecks2 ~= nil do
26
wait(.05)
27
tecks2.Position = UDim2.new(0,math.random(-3,3),0,math.random(-3,3))
28
end
29
end)
30
shk()
31
for i = 1,string.len(text),1 do
32
CFuncs.Sound.Create("rbxassetid://358280695", Torso, 2, 0.5)
33
tecks2.Text = string.sub(text,1,i)
34
wait(0.01)
35
end
36
wait(1)
37
for i = 1, 5 do
38
wait(.01)
39
tecks2.Position = tecks2.Position - UDim2.new(0,0,.05,0)
40
tecks2.Rotation = tecks2.Rotation + 2
41
tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.2
42
tecks2.TextTransparency = tecks2.TextTransparency + .2
43
end
44
naeeym2:Destroy()
45
end)
46
chat()
47
end
48
function onChatted(msg)
49
chatfunc(msg)
50
end
51
---Player.Chatted:connect(onChatted)
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
function chatfunc2(text)
68
local chat = coroutine.wrap(function()
69
if Character:FindFirstChild("TalkingBillBoard")~= nil then
70
Character:FindFirstChild("TalkingBillBoard"):destroy()
71
end
72
local naeeym2 = Instance.new("BillboardGui",Character)
73
naeeym2.Size = UDim2.new(0,100,0,40)
74
naeeym2.StudsOffset = Vector3.new(0,3,0)
75
naeeym2.Adornee = Head
76
naeeym2.Name = "TalkingBillBoard"
77
local tecks2 = Instance.new("TextLabel",naeeym2)
78
tecks2.BackgroundTransparency = 1
79
tecks2.BorderSizePixel = 0
80
tecks2.Text = ""
81
tecks2.Font = "Fantasy"
82
tecks2.FontSize = "Size24"
83
tecks2.TextStrokeTransparency = 0
84
tecks2.TextColor3 = BrickColor.new(colortwo).Color
85
tecks2.TextStrokeColor3 = BrickColor.new(colorthree).Color
86
tecks2.Size = UDim2.new(1,0,0.5,0)
87
local shk = coroutine.wrap(function()
88
while tecks2 ~= nil do
89
wait(.05)
90
tecks2.Position = UDim2.new(0,math.random(-3,3),0,math.random(-3,3))
91
end
92
end)
93
shk()
94
for i = 1,string.len(text),1 do
95
CFuncs.Sound.Create("rbxassetid://358280695", Torso, 2, 0.5)
96
tecks2.Text = string.sub(text,1,i)
97
wait(0.01)
98
end
99
wait(1)
100
for i = 1, 5 do
101
wait(.01)
102
tecks2.Position = tecks2.Position - UDim2.new(0,0,.05,0)
103
tecks2.Rotation = tecks2.Rotation + 2
104
tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.2
105
tecks2.TextTransparency = tecks2.TextTransparency + .2
106
end
107
naeeym2:Destroy()
108
end)
109
chat()
110
end
111
function onChatted(msg)
112
chatfunc(msg)
113
end