Not a member of Pastebin yet?
                        Sign Up,
                        it unlocks many cool features!                    
                - function new(t,pr)
 - local p = Instance.new(t)
 - if pr then
 - for i,v in next,pr do
 - if i ~= "Parent" then
 - p[i] = v
 - end
 - end
 - p.Parent = pr.Parent
 - end
 - return p
 - end
 - local Msg = new("Frame",{Name = "Message",Size = UDim2.new(1,0,.3,0),AnchorPoint = Vector2.new(.5,1),Position = UDim2.new(.5,0,1,0),BackgroundTransparency = 1})
 - new("Frame",{Parent = Msg,Name = "Center",Size = UDim2.new(.45,0,.7,0),AnchorPoint = Vector2.new(.5,1),Position = UDim2.new(.5,0,.7,0),BackgroundTransparency = 1})
 - new("ImageLabel",{Parent = Msg,Name = "FGColor",Size = UDim2.new(.3,0,.3,0),SizeConstraint = "RelativeYY",AnchorPoint = Vector2.new(.5,1),Position = UDim2.new(.5,0,1,0),BackgroundTransparency = 1,Image = "rbxassetid://382263099",Rotation = 180})
 - new("Frame",{Parent = Msg.Center,Name = "BGColor",BorderSizePixel = 0,Size = UDim2.new(1.1,0,1,0),AnchorPoint = Vector2.new(.5,.5),Position = UDim2.new(.5,0,.5,0),BackgroundColor3 = Color3.new(1,1,1)})
 - new("Frame",{Parent = Msg.Center,Name = "BGColor",BorderSizePixel = 0,Size = UDim2.new(1.187,0,.5,0),AnchorPoint = Vector2.new(.5,.5),Position = UDim2.new(.5,0,.5,0),BackgroundColor3 = Color3.new(1,1,1)})
 - new("Frame",{Parent = Msg.Center,Name = "FGColor",BorderSizePixel = 0,ZIndex = 2,Size = UDim2.new(1.1,0,.125,0),AnchorPoint = Vector2.new(.5,0),Position = UDim2.new(.5,0,0,0),BackgroundColor3 = Color3.new(1,1,1)})
 - new("Frame",{Parent = Msg.Center,Name = "FGColor",BorderSizePixel = 0,ZIndex = 2,Size = UDim2.new(1.1,0,.125,0),AnchorPoint = Vector2.new(.5,1),Position = UDim2.new(.5,0,1,0),BackgroundColor3 = Color3.new(1,1,1)})
 - new("ImageLabel",{Parent = Msg.Center,Name = "BGColor",Size = UDim2.new(.5,0,.5,0),SizeConstraint = "RelativeYY",AnchorPoint = Vector2.new(1,0),Position = UDim2.new(),BackgroundTransparency = 1,Image = "rbxassetid://377517897"})
 - new("ImageLabel",{Parent = Msg.Center,Name = "BGColor",Size = UDim2.new(.5,0,.5,0),SizeConstraint = "RelativeYY",AnchorPoint = Vector2.new(1,1),Position = UDim2.new(0,0,1,0),BackgroundTransparency = 1,Image = "rbxassetid://377517897"})
 - new("ImageLabel",{Parent = Msg.Center,Name = "BGColor",Size = UDim2.new(.5,0,.5,0),SizeConstraint = "RelativeYY",AnchorPoint = Vector2.new(0,0),Position = UDim2.new(1,0,0,0),BackgroundTransparency = 1,Image = "rbxassetid://377517897"})
 - new("ImageLabel",{Parent = Msg.Center,Name = "BGColor",Size = UDim2.new(.5,0,.5,0),SizeConstraint = "RelativeYY",AnchorPoint = Vector2.new(0,1),Position = UDim2.new(1,0,1,0),BackgroundTransparency = 1,Image = "rbxassetid://377517897"})
 - new("ImageLabel",{Parent = Msg.Center,Name = "FGColor",ZIndex = 2,Size = UDim2.new(.5,0,.125,0),SizeConstraint = "RelativeYY",AnchorPoint = Vector2.new(1,0),Position = UDim2.new(),BackgroundTransparency = 1,Image = "rbxassetid://377517897",ImageRectSize = Vector2.new(1000,250)})
 - new("ImageLabel",{Parent = Msg.Center,Name = "FGColor",ZIndex = 2,Size = UDim2.new(.5,0,.125,0),SizeConstraint = "RelativeYY",AnchorPoint = Vector2.new(1,1),Position = UDim2.new(0,0,1,0),BackgroundTransparency = 1,Image = "rbxassetid://377517897",ImageRectSize = Vector2.new(1000,250),ImageRectOffset = Vector2.new(0,750)})
 - new("ImageLabel",{Parent = Msg.Center,Name = "FGColor",ZIndex = 2,Size = UDim2.new(.5,0,.125,0),SizeConstraint = "RelativeYY",AnchorPoint = Vector2.new(0,0),Position = UDim2.new(1,0,0,0),BackgroundTransparency = 1,Image = "rbxassetid://377517897",ImageRectSize = Vector2.new(1000,250)})
 - new("ImageLabel",{Parent = Msg.Center,Name = "FGColor",ZIndex = 2,Size = UDim2.new(.5,0,.125,0),SizeConstraint = "RelativeYY",AnchorPoint = Vector2.new(0,1),Position = UDim2.new(1,0,1,0),BackgroundTransparency = 1,Image = "rbxassetid://377517897",ImageRectSize = Vector2.new(1000,250),ImageRectOffset = Vector2.new(0,750)})
 - new("TextLabel",{Parent = Msg.Center,BackgroundTransparency = 1,ZIndex = 3,Size = UDim2.new(1.1,0,.625,0),AnchorPoint = Vector2.new(.5,.5),Position = UDim2.new(.5,0,.5,0),BackgroundTransparency = 1,TextXAlignment = "Left",TextScaled = true,Font = "SourceSans"})
 - function Color(it,co)
 - if it:IsA("ImageLabel") then
 - it.ImageColor3 = co
 - elseif it:IsA("TextLabel") then
 - it.TextColor3 = co
 - elseif it:IsA("Frame") then
 - it.BackgroundColor3 = co
 - end
 - end
 - local PosEffects = {
 - Wave = function(i,msg,postt)
 - local t = tick() - postt
 - local tp = math.fmod(t,2) * math.pi
 - msg.Center.AnchorPoint = Vector2.new(math.sin(tp)/2 + .5,1)
 - end,
 - Edgy = function(i,msg,postt)
 - local m1 = math.random() * 2 - 1
 - local m2 = math.random() * 2 - 1
 - msg.Center.AnchorPoint = Vector2.new(.5 + m1 * m2/10,1)
 - end,
 - Explode = function(i,msg,postt)
 - local t = tick() - postt
 - local m = (1/(t + .1))
 - local m2 = math.asin(math.max(0,1 - t/5))/math.pi
 - msg.Center.AnchorPoint = Vector2.new(math.sin(m * 2 * math.pi)/2 * m2 + .5,1)
 - end
 - }
 - local ColEffects = {
 - Flash = function(i,msg,postt,t)
 - local lerpm = math.clamp((tick() - postt) * 2 - 1,0,1)
 - local bg = Color3.new(1,1,1):lerp(t.BGColor,lerpm)
 - local fg = Color3.new(1,1,1):lerp(t.FGColor,lerpm)
 - local tc = Color3.new(1,1,1):lerp(t.TC,lerpm)
 - Color(msg.FGColor,fg)
 - for i,v in next,msg.Center:GetChildren() do
 - if v.Name == "FGColor" then
 - Color(v,fg)
 - elseif v.Name == "BGColor" then
 - Color(v,bg)
 - elseif v:IsA("TextLabel") then
 - Color(v,tc)
 - end
 - end
 - end,
 - None = function(_,msg,_,t)
 - Color(msg.FGColor,t.FGColor)
 - for i,v in next,msg.Center:GetChildren() do
 - if v.Name == "FGColor" then
 - Color(v,t.FGColor)
 - elseif v.Name == "BGColor" then
 - Color(v,t.BGColor)
 - elseif v:IsA("TextLabel") then
 - Color(v,t.TC)
 - end
 - end
 - end
 - }
 - local Msgs = {}
 - repeat wait() until game.Players.LocalPlayer.Character
 - Head = game.Players.LocalPlayer.Character:WaitForChild("Head")
 - Gui = new("BillboardGui",{Parent = Head,Name = "Chat",Size = UDim2.new(10,0,4,0),SizeOffset = Vector2.new(0,.5),StudsOffsetWorldSpace = Vector3.new(0,1,0)})
 - local DFBGC = Color3.new(1,1,1)
 - local DFFGC = Color3.fromRGB(200,150,255)
 - local DFTC = Color3.new()
 - local DFPE = nil
 - local DFCE = "None"
 - function HTC(t)
 - if #t ~= 6 then
 - return Color3.new()
 - else
 - local r,g,b = t:sub(1,2),t:sub(3,4),t:sub(5,6)
 - r,g,b = tonumber(r,16),tonumber(g,16),tonumber(b,16)
 - if r and g and b then
 - return Color3.fromRGB(r,g,b)
 - else
 - return Color3.new()
 - end
 - end
 - end
 - function TTP(t)
 - if PosEffects[t] then
 - return t
 - else
 - return nil
 - end
 - end
 - function TTC(t)
 - if ColEffects[t] and t ~= "None" then
 - return t
 - else
 - return nil
 - end
 - end
 - function newMsg(c)
 - if c:sub(1,1) ~= "/" then
 - local msg = Msg:Clone()
 - for i,v in next,Gui:GetChildren() do
 - v.Position = v.Position - UDim2.new(0,0,1/3,0)
 - end
 - msg.Parent = Gui
 - local msgt = {
 - FGColor = DFFGC,
 - BGColor = DFBGC,
 - TC = DFTC,
 - PE = DFPE,
 - CE = DFCE,
 - PT = tick(),
 - Msg = msg
 - }
 - msg.Center.TextLabel.Text = c
 - table.insert(Msgs,1,msgt)
 - if Msgs[4] then
 - Msgs[4].Msg:Destroy()
 - table.remove(Msgs,4)
 - end
 - else
 - if c:sub(1,7) == "/setFG " then
 - DFFGC = HTC(c:sub(8))
 - elseif c:sub(1,7) == "/setBG " then
 - DFBGC = HTC(c:sub(8))
 - elseif c:sub(1,7) == "/setTC " then
 - DFTC = HTC(c:sub(8))
 - elseif c:sub(1,7) == "/setPE " then
 - DFPE = TTP(c:sub(8))
 - elseif c:sub(1,7) == "/setCE " then
 - DFCE = TTC(c:sub(8))
 - end
 - end
 - end
 - game.Players.LocalPlayer.Chatted:connect(newMsg)
 - game:GetService("RunService").RenderStepped:connect(function(dt)
 - for i,v in next,Msgs do
 - if tick() - v.PT > 10 then
 - v.Msg:Destroy()
 - table.remove(Msgs,i)
 - else
 - if v.PE then
 - PosEffects[v.PE](i,v.Msg,v.PT,v)
 - end
 - if v.CE then
 - ColEffects[v.CE](i,v.Msg,v.PT,v)
 - else
 - ColEffects["None"](i,v.Msg,v.PT,v)
 - end
 - end
 - end
 - end)
 
Advertisement
 
                    Add Comment                
                
                        Please, Sign In to add comment