Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local plr = owner
- bill1 = Instance.new("BillboardGui", owner.Character.Head)
- bill1.Size = UDim2.new(4, 0, 4.5, 0)
- bill1.AlwaysOnTop = true
- bill1.StudsOffset = Vector3.new(-2, 5, 0)
- label1 = Instance.new("TextLabel", bill1)
- label1.Size = UDim2.new(2, 0, 1, 0)
- label1.Position = UDim2.new(-0.5, 0, -0.5, 0)
- label1.BackgroundTransparency = 1
- label1.FontSize = "Size32"
- label1.TextStrokeColor3 = Color3.new(255 ,255 ,255)
- label1.TextStrokeTransparency = 0
- label1.Font = "Arcade"
- label1.Parent = bill1
- textfag1 = label1
- label1.Text = ""
- label1.TextSize = 30
- label1.TextScaled = true
- coroutine.resume(coroutine.create(function()
- while textfag1 ~= nil do
- wait()
- textfag1.Position = UDim2.new(math.random(-.2,.2),math.random(-3,3),.05,math.random(-3,3))
- textfag1.Rotation = math.random(-3,3)
- end
- end))
- plr.Chatted:connect(function(mess)
- mess = string.lower(mess)
- if mess == string.lower('g/test') then -- method 1
- print('TEST!')
- end
- if mess:sub(1, 7)=='g/test2' then -- method 2
- print("TEST2")
- end
- label1.Text = mess
- wait(5)-- what ever time you want to display the text
- label1.Text = ""
- end)
Add Comment
Please, Sign In to add comment