Advertisement
SirrVindict

Moons Library UI Fixed

Jul 16th, 2019
6,746
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.60 KB | None | 0 0
  1. -- // All credits to moon. // --
  2.  
  3. do local a=Instance.new("ScreenGui")a.Name="UI"a.Parent=game:GetService("CoreGui")local b=0;function CreateWindow(c)b=b+1;local d=Instance.new("Frame")local e=Instance.new("TextLabel")local f=Instance.new("Frame")local g=Instance.new("UIListLayout")local h=Instance.new("TextButton")local i=Instance.new("Frame")local j=Instance.new("UIPadding")d.Name=c;d.Parent=a;d.Active=true;d.BackgroundColor3=Color3.new(0.207843,0.207843,0.207843)d.BorderSizePixel=0;d.Position=UDim2.new(0,15+200*b-200,0,15)d.Selectable=true;d.Size=UDim2.new(0,170,0,25)e.Name="Title"e.Parent=d;e.BackgroundColor3=Color3.new(1,1,1)e.BackgroundTransparency=1;e.Size=UDim2.new(1,0,0.943665385,0)e.Font=Enum.Font.SourceSansSemibold;e.Text="Title"e.TextColor3=Color3.new(1,1,1)e.TextSize=14;e.TextWrapped=true;f.Name="Container"f.Parent=d;f.BackgroundColor3=Color3.new(0.207843,0.207843,0.207843)f.BackgroundTransparency=0.15000000596046;f.BorderSizePixel=0;f.Position=UDim2.new(0,0,1,0)f.Size=UDim2.new(1,0,0,20)g.Parent=f;g.SortOrder=Enum.SortOrder.LayoutOrder;g.HorizontalAlignment=Enum.HorizontalAlignment.Center;j.Name="Padding"j.PaddingTop=UDim.new(0,5)j.Parent=f;h.Name="Minimize"h.Parent=d;h.BackgroundColor3=Color3.new(1,1,1)h.BackgroundTransparency=1;h.Position=UDim2.new(0.858005404,0,-0.0493890084,0)h.Size=UDim2.new(0.137704566,0,1.03717017,0)h.Font=Enum.Font.SourceSans;h.Text="-"h.TextColor3=Color3.new(1,1,1)h.TextScaled=true;h.TextSize=14;h.TextWrapped=true;i.Name="Line"i.Parent=d;i.BackgroundColor3=Color3.new(1,0,0.0156863)i.BorderSizePixel=0;i.Position=UDim2.new(0,0,1,-1)i.Size=UDim2.new(1,0,0,3)function SCRIPT_CNQY70_FAKESCRIPT()local k=Instance.new('LocalScript')k.Parent=d;function bow(l)return math.acos(math.cos(l*math.pi))/math.pi end;local m=0;local n=game:GetService("Players").LocalPlayer:GetMouse()local o=false;k.Parent.Title.Text=k.Parent.Name;while wait(0.1)do k.Parent.Line.BackgroundColor3=Color3.fromHSV(bow(m),1,1)m=m+0.01 end end;coroutine.resume(coroutine.create(SCRIPT_CNQY70_FAKESCRIPT))function SCRIPT_HXLV67_FAKESCRIPT()local k=Instance.new('LocalScript')k.Parent=h;local p=k.Parent.Parent.Container.Size;local q=true;k.Parent.MouseButton1Click:Connect(function()if q==true then q=nil;k.Parent.Parent.Container.Visible=false;k.Parent.Text="+"q=false else q=nil;k.Parent.Parent.Container.Visible=true;k.Parent.Text="-"q=true end end)end;function SCRIPT_XYPB73_FAKESCRIPT()local k=Instance.new('LocalScript')k.Parent=a;local n=game:GetService("Players").LocalPlayer:GetMouse()local r=game:GetService('UserInputService')local s=game:GetService("RunService").Heartbeat;local o=false;n.KeyDown:connect(function(t)if t=="p"then if o==false then o=true;for u,v in pairs(k.Parent:GetChildren())do if v.ClassName=="Frame"then v.Visible=false end end else o=false;for u,v in pairs(k.Parent:GetChildren())do if v.ClassName=="Frame"then v.Visible=true end end end end end)for u,v in pairs(k.Parent:GetChildren())do local w,x=pcall(function()return v.MouseEnter end)if w then v.Active=true;x:connect(function()local y=v.InputBegan:connect(function(t)if t.UserInputType==Enum.UserInputType.MouseButton1 then local z=Vector2.new(n.X-v.AbsolutePosition.X,n.Y-v.AbsolutePosition.Y)while s:wait()and r:IsMouseButtonPressed(Enum.UserInputType.MouseButton1)do v:TweenPosition(UDim2.new(0,n.X-z.X+v.Size.X.Offset*v.AnchorPoint.X,0,n.Y-z.Y+v.Size.Y.Offset*v.AnchorPoint.Y),'Out','Quad',0.1,true)end end end)local A;A=v.MouseLeave:connect(function()y:disconnect()A:disconnect()end)end)end end end;coroutine.resume(coroutine.create(SCRIPT_XYPB73_FAKESCRIPT))coroutine.resume(coroutine.create(SCRIPT_HXLV67_FAKESCRIPT))return f end;local function B(C)local D=0;for u,E in next,C:GetChildren()do if not E:IsA('UIListLayout')and not E:IsA('UIPadding')then D=D+E.AbsoluteSize.Y end end;return UDim2.new(1,0,0,D+17)end;function Resize(F)local G=B(F)F.ClipsDescendants=true;F.Size=G end;function CreateToggle(H,c)local I=Instance.new("TextLabel")local J=Instance.new("TextButton")I.Parent=H;I.BackgroundColor3=Color3.fromRGB(255,25,25)I.BackgroundTransparency=1;I.Position=UDim2.new(0,0,0,0)I.Size=UDim2.new(1,-10,0,17)I.Font=Enum.Font.SourceSans;I.Text=c;I.TextColor3=Color3.new(1,1,1)I.TextSize=17;I.TextXAlignment=Enum.TextXAlignment.Left;J.Parent=I;J.BackgroundColor3=Color3.new(0.231373,0.231373,0.231373)J.BackgroundTransparency=1;J.Position=UDim2.new(1,-25,0,0)J.Size=UDim2.new(0,25,1,0)J.Font=Enum.Font.SourceSansSemibold;J.Text="OFF"J.TextColor3=Color3.new(1,0,0.0156863)J.TextSize=17;J.TextXAlignment=Enum.TextXAlignment.Right;Resize(H)return J end;function CreateBox(H,K)local L=Instance.new("TextBox")L.Parent=H;L.BackgroundColor3=Color3.new(0.313726,0.313726,0.313726)L.BorderSizePixel=0;L.Position=UDim2.new(0,0,0,0)L.Size=UDim2.new(1,-10,0,17)L.Font=Enum.Font.SourceSans;L.PlaceholderText=K;L.Text=K;L.TextColor3=Color3.new(1,1,1)L.TextScaled=false;L.TextSize=16;L.TextWrapped=true;Resize(H)return L end;function CreateButton(H,K)local M=Instance.new("TextButton")M.Parent=H;M.BackgroundColor3=Color3.new(1,1,1)M.BackgroundTransparency=1;M.BorderSizePixel=0;M.Position=UDim2.new(0,0,0,0)M.Size=UDim2.new(1,-10,0,17)M.Font=Enum.Font.SourceSans;M.Text=K;M.TextColor3=Color3.new(1,1,1)M.TextScaled=false;M.TextSize=16;M.TextWrapped=true;M.TextXAlignment=Enum.TextXAlignment.Left;Resize(H)return M end;function CreateLabel(H,K)local N=Instance.new("TextButton")N.Parent=CFrame;N.BackgroundColor3=Color3.new(1,1,1)N.BackgroundTransparency=1;N.BorderSizePixel=0;N.Position=UDim2.new(0,0,0,0)N.Size=UDim2.new(1,-10,0,17)N.Font=Enum.Font.SourceSans;N.Text=K;N.TextColor3=Color3.new(1,1,1)N.TextScaled=false;N.TextSize=16;N.TextWrapped=true;N.TextXAlignment=Enum.TextXAlignment.Left;Resize(H)return N end end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement