SHOW:
|
|
- or go back to the newest paste.
| 1 | local plr = owner | |
| 2 | bill1 = Instance.new("BillboardGui", owner.Character.Head)
| |
| 3 | bill1.Size = UDim2.new(4, 0, 4.5, 0) | |
| 4 | bill1.AlwaysOnTop = true | |
| 5 | bill1.StudsOffset = Vector3.new(-2, 5, 0) | |
| 6 | label1 = Instance.new("TextLabel", bill1)
| |
| 7 | label1.Size = UDim2.new(2, 0, 1, 0) | |
| 8 | label1.Position = UDim2.new(-0.5, 0, -0.5, 0) | |
| 9 | label1.BackgroundTransparency = 1 | |
| 10 | label1.FontSize = "Size32" | |
| 11 | label1.TextStrokeColor3 = Color3.new(255 ,255 ,255) | |
| 12 | label1.TextStrokeTransparency = 0 | |
| 13 | label1.Font = "Arcade" | |
| 14 | label1.Parent = bill1 | |
| 15 | textfag1 = label1 | |
| 16 | label1.Text = "" | |
| 17 | label1.TextSize = 30 | |
| 18 | label1.TextScaled = true | |
| 19 | coroutine.resume(coroutine.create(function() | |
| 20 | while textfag1 ~= nil do | |
| 21 | wait() | |
| 22 | ||
| 23 | textfag1.Position = UDim2.new(math.random(-.2,.2),math.random(-3,3),.05,math.random(-3,3)) | |
| 24 | textfag1.Rotation = math.random(-3,3) | |
| 25 | end | |
| 26 | end)) | |
| 27 | plr.Chatted:connect(function(mess) | |
| 28 | mess = string.lower(mess) | |
| 29 | if mess == string.lower('g/test') then -- method 1
| |
| 30 | print('TEST!')
| |
| 31 | end | |
| 32 | if mess:sub(1, 7)=='g/test2' then -- method 2 | |
| 33 | print("TEST2")
| |
| 34 | end | |
| 35 | label1.Text = mess | |
| 36 | wait(5)-- what ever time you want to display the text | |
| 37 | label1.Text = "" | |
| 38 | end) |