local library = {} if game.CoreGui:FindFirstChild("Factory Simulator") then game.CoreGui:FindFirstChild("Factory Simulator"):Destroy() end function library:CreateWindow(name) local ScreenGui = Instance.new("ScreenGui") local Background = Instance.new("ImageLabel") local BackGroundFrame = Instance.new("ImageLabel") local GameName = Instance.new("TextLabel") local Line = Instance.new("TextLabel") local Frames = Instance.new("Folder") local UIAspectRatioConstraint_2 = Instance.new("UIAspectRatioConstraint") local ButtonFrame = Instance.new("Frame") local UIAspectRatioConstraint_3 = Instance.new("UIAspectRatioConstraint") local CloseButton = Instance.new("ImageButton") local DaggersploitText = Instance.new("ImageLabel") local Frame = Instance.new("ImageLabel") local UIGradient = Instance.new("UIGradient") local Frame2 = Instance.new("Frame") local GridLayout = Instance.new("UIGridLayout") local AspectRatio = Instance.new("UIAspectRatioConstraint") local toggle = true ScreenGui.Parent = game.CoreGui ScreenGui.Name = name Frames.Name = "Frames" Frames.Parent = Background Frame2.Name = "Frame2" Frame2.Parent = BackGroundFrame Frame2.BackgroundColor3 = Color3.fromRGB(255, 255, 255) Frame2.BackgroundTransparency = 1.000 Frame2.Position = UDim2.new(0.023999963, 0, 0.687385201, 0) Frame2.Size = UDim2.new(0.973047376, 0, 0.188058212, 0) GridLayout.Name = "GridLayout" GridLayout.Parent = Frame2 GridLayout.SortOrder = Enum.SortOrder.LayoutOrder GridLayout.CellPadding = UDim2.new(0.0399999991, 0, 0, 0) GridLayout.CellSize = UDim2.new(0.300000012, 0, 1, 0) AspectRatio.Name = "AspectRatio" AspectRatio.Parent = Frame2 AspectRatio.AspectRatio = 8.690 Background.Name = "Background" Background.Parent = ScreenGui Background.BackgroundColor3 = Color3.fromRGB(255, 255, 255) Background.BackgroundTransparency = 1.000 Background.ClipsDescendants = true Background.Position = UDim2.new(0.404569894, 0, 0.194103211, 0) Background.Size = UDim2.new(0.156957656, 0, 0.585207164, 0) Background.ZIndex = 0 Background.Image = "http://www.roblox.com/asset/?id=6633319751" Background.ImageTransparency = 1.000 Background.ScaleType = Enum.ScaleType.Fit Background.Draggable = true Background.Active = true Background.Selectable = true BackGroundFrame.Name = "BackGroundFrame" BackGroundFrame.Parent = Background BackGroundFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255) BackGroundFrame.BackgroundTransparency = 1.000 BackGroundFrame.ClipsDescendants = true BackGroundFrame.Position = UDim2.new(0, 0, -0.00200000009, 0) BackGroundFrame.Size = UDim2.new(1.00000024, 0, 0.330311149, 0) BackGroundFrame.Image = "http://www.roblox.com/asset/?id=6632346041" BackGroundFrame.ScaleType = Enum.ScaleType.Fit GameName.Name = "Game Name" GameName.Parent = BackGroundFrame GameName.BackgroundColor3 = Color3.fromRGB(255, 255, 255) GameName.BackgroundTransparency = 1.000 GameName.BorderColor3 = Color3.fromRGB(27, 42, 53) GameName.Position = UDim2.new(0.171468347, 0, 0.337365478, 0) GameName.Size = UDim2.new(0.654375672, 0, 0.287634462, 0) GameName.Font = Enum.Font.SourceSans GameName.Text = name GameName.TextColor3 = Color3.fromRGB(255, 255, 255) GameName.TextScaled = true GameName.TextSize = 14.000 GameName.TextWrapped = true Line.Name = "Line" Line.Parent = BackGroundFrame Line.BackgroundColor3 = Color3.fromRGB(52, 62, 87) Line.BorderSizePixel = 0 Line.Position = UDim2.new(0, 0, 0.69078958, 0) Line.Size = UDim2.new(1, 0, 0.0131578948, 0) Line.Font = Enum.Font.SourceSans Line.Text = "" Line.TextColor3 = Color3.fromRGB(0, 0, 0) Line.TextSize = 14.000 DaggersploitText.Name = "Daggersploit Text" DaggersploitText.Parent = Background DaggersploitText.BackgroundColor3 = Color3.fromRGB(255, 255, 255) DaggersploitText.BackgroundTransparency = 1.000 DaggersploitText.Position = UDim2.new(0.274131328, 0, 0.0211648904, 0) DaggersploitText.Size = UDim2.new(0.451737463, 0, 0.156159669, 0) DaggersploitText.Image = "http://www.roblox.com/asset/?id=6632350246" DaggersploitText.ScaleType = Enum.ScaleType.Fit Frame.Name = "Frame" Frame.Parent = Background Frame.BackgroundColor3 = Color3.fromRGB(255, 255, 255) Frame.BackgroundTransparency = 1.000 Frame.Position = UDim2.new(-2.35675046e-07, 0, 0.0677276477, 0) Frame.Size = UDim2.new(1.00000012, 0, 0.932272375, 0) Frame.ZIndex = 0 Frame.Image = "rbxassetid://3570695787" Frame.ScaleType = Enum.ScaleType.Slice Frame.SliceCenter = Rect.new(100, 100, 100, 100) Frame.SliceScale = 0.100 UIGradient.Color = ColorSequence.new { ColorSequenceKeypoint.new(0.00, Color3.fromRGB(38, 41, 62)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(70, 77, 119)) } UIGradient.Rotation = 240 UIGradient.Parent = Frame CloseButton.Name = "CloseButton" CloseButton.Parent = Background CloseButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255) CloseButton.BackgroundTransparency = 1.000 CloseButton.Position = UDim2.new(0.0540539585, 0, 0.0888299197, 0) CloseButton.Rotation = 1.000 CloseButton.Selectable = false CloseButton.Size = UDim2.new(0.0308880303, 0, 0.0192789733, 0) CloseButton.Image = "http://www.roblox.com/asset/?id=6632351462" CloseButton.MouseButton1Down:Connect( function() if toggle == true then CloseButton.Rotation = 270 for i, v in pairs(Frames:GetChildren()) do v:TweenPosition(UDim2.new(-1, 0, 0.318, 0), "InOut", "Sine", .3) end wait(.3) BackGroundFrame:TweenPosition(UDim2.new(1.1, 0, -0.002, 0), "InOut", "Sine", .3) wait(.3) Frame:TweenSize(UDim2.new(1, 0, 0.058, 0), "InOut", "Sine", .3) toggle = false else CloseButton.Rotation = 0 Frame:TweenSize(UDim2.new(1, 0, 0.932, 0), "InOut", "Sine", .3) wait(.3) BackGroundFrame:TweenPosition(UDim2.new(0, 0, -0.002, 0), "InOut", "Sine", .3) wait(.3) for i, v in pairs(Frames:GetChildren()) do v:TweenPosition(UDim2.new(0.024, 0, 0.318, 0), "InOut", "Sine", .3) end toggle = true end end ) local DaggerLibrary = {} function DaggerLibrary:CreateTab(buttontext) local TitleButton = Instance.new("TextButton") local ButtonFrame = Instance.new("Frame") local UIGridLayout = Instance.new("UIGridLayout") local UIAspectRatioConstraint = Instance.new("UIAspectRatioConstraint") buttontext = buttontext or "Tab" TitleButton.Name = "TitleButton" TitleButton.Parent = Frame2 TitleButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255) TitleButton.BackgroundTransparency = 1.000 TitleButton.Position = UDim2.new(0.34362936, 0, 0.0880705714, 0) TitleButton.Size = UDim2.new(0.312741309, 0, 0.789824069, 0) TitleButton.Font = Enum.Font.SourceSans TitleButton.Text = buttontext TitleButton.TextColor3 = Color3.fromRGB(255, 255, 255) TitleButton.TextScaled = true TitleButton.TextSize = 14.000 TitleButton.TextWrapped = true ButtonFrame.Name = buttontext .. " Frame" ButtonFrame.Parent = Frames ButtonFrame.Visible = false ButtonFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255) ButtonFrame.BackgroundTransparency = 1.000 ButtonFrame.ClipsDescendants = true ButtonFrame.Position = UDim2.new(0.0240000002, 0, 0.317999989, 0) ButtonFrame.Size = UDim2.new(0.967623889, 0, 0.649021745, 0) UIGridLayout.Parent = ButtonFrame UIGridLayout.SortOrder = Enum.SortOrder.LayoutOrder UIGridLayout.CellPadding = UDim2.new(0, 5, 0, 0) UIGridLayout.CellSize = UDim2.new(0.987999976, 0, 0.140000001, 0) TitleButton.MouseButton1Down:Connect( function() for i, v in next, Frames:GetChildren() do v.Visible = false end ButtonFrame.Visible = true end ) local tabcontent = {} function tabcontent:CreateToggle(Text, callback) local actions = {} ButtonName = ButtonName or "New Toggle" callback = callback or function() end local Button = Instance.new("ImageLabel") local Off = Instance.new("TextButton") local On = Instance.new("TextButton") local ButtonLabel = Instance.new("TextLabel") local Ball = Instance.new("ImageLabel") local OnOffBackground = Instance.new("ImageButton") local OnOffBackground2 = Instance.new("ImageButton") Button.Name = "Button" Button.Parent = ButtonFrame Button.BackgroundColor3 = Color3.fromRGB(255, 255, 255) Button.BackgroundTransparency = 1.000 Button.Position = UDim2.new(-1.04551017, 0, 0, 0) Button.Size = UDim2.new(0.987999976, 0, 0.140000001, 0) Button.Image = "http://www.roblox.com/asset/?id=6632811239" Button.ScaleType = Enum.ScaleType.Fit Off.Name = "Off" Off.Parent = Button Off.BackgroundColor3 = Color3.fromRGB(255, 255, 255) Off.BackgroundTransparency = 1.000 Off.Position = UDim2.new(0.831463456, 0, 0.224557132, 0) Off.Size = UDim2.new(0.125126943, 0, 0.532838583, 0) Off.ZIndex = 3 Off.Font = Enum.Font.SourceSans Off.Text = "OFF" Off.TextColor3 = Color3.fromRGB(255, 255, 255) Off.TextScaled = true Off.TextSize = 14.000 Off.TextWrapped = true On.Name = "On" On.Parent = Button On.BackgroundColor3 = Color3.fromRGB(255, 255, 255) On.BackgroundTransparency = 1.000 On.Position = UDim2.new(0.708225846, 0, 0.252043724, 0) On.Size = UDim2.new(0.123237655, 0, 0.50535208, 0) On.Visible = false On.ZIndex = 3 On.Font = Enum.Font.SourceSans On.Text = "ON" On.TextColor3 = Color3.fromRGB(255, 255, 255) On.TextScaled = true On.TextSize = 14.000 On.TextWrapped = true ButtonLabel.Name = "ButtonLabel" ButtonLabel.Parent = Button ButtonLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255) ButtonLabel.BackgroundTransparency = 1.000 ButtonLabel.Position = UDim2.new(0.0326529928, 0, 0.151197791, 0) ButtonLabel.Size = UDim2.new(0.44587937, 0, 0.655976653, 0) ButtonLabel.ZIndex = 3 ButtonLabel.Font = Enum.Font.SourceSans ButtonLabel.Text = Text ButtonLabel.TextColor3 = Color3.fromRGB(255, 255, 255) ButtonLabel.TextScaled = true ButtonLabel.TextSize = 14.000 ButtonLabel.TextWrapped = true ButtonLabel.TextXAlignment = Enum.TextXAlignment.Left Ball.Name = "Ball" Ball.Parent = Button Ball.BackgroundColor3 = Color3.fromRGB(255, 255, 255) Ball.BackgroundTransparency = 1.000 Ball.Position = UDim2.new(0.731577039, 0, 0.274335861, 0) Ball.Size = UDim2.new(0.0803225711, 0, 0.409690827, 0) Ball.ZIndex = 3 Ball.Image = "http://www.roblox.com/asset/?id=6637040636" Ball.ScaleType = Enum.ScaleType.Fit OnOffBackground.Name = "OnOffBackground" OnOffBackground.Parent = Button OnOffBackground.BackgroundColor3 = Color3.fromRGB(255, 255, 255) OnOffBackground.BackgroundTransparency = 1.000 OnOffBackground.Position = UDim2.new(0.694450617, 0, 0.0699115396, 0) OnOffBackground.Size = UDim2.new(0.304583728, 0, 0.788873851, 0) OnOffBackground.ZIndex = 2 OnOffBackground.Image = "http://www.roblox.com/asset/?id=6636977694" OnOffBackground.ScaleType = Enum.ScaleType.Fit OnOffBackground2.Name = "OnOffBackground2" OnOffBackground2.Parent = Button OnOffBackground2.BackgroundColor3 = Color3.fromRGB(255, 255, 255) OnOffBackground2.BackgroundTransparency = 1.000 OnOffBackground2.Position = UDim2.new(0.694450855, 0, -0.398229659, 0) OnOffBackground2.Size = UDim2.new(0.304583728, 0, 1.79203343, 0) OnOffBackground2.Image = "http://www.roblox.com/asset/?id=6636978401" OnOffBackground2.ScaleType = Enum.ScaleType.Fit local debounce = false local function ToggleOn() if Off.Visible == true and debounce == false then Off.Visible = false On.Visible = true OnOffBackground.ImageTransparency = 1 Ball:TweenPosition(UDim2.new(0.901, 0, 0.274, 0), "InOut", "Sine", .3) wait(.5) debounce = true pcall(callback, debounce) elseif On.Visible == true and debounce == true then On.Visible = false Off.Visible = true OnOffBackground.ImageTransparency = 0 Ball:TweenPosition(UDim2.new(0.71, 0, 0.274, 0), "InOut", "Sine", .3) wait(.5) debounce = false pcall(callback, debounce) end end OnOffBackground.MouseButton1Down:Connect(ToggleOn) end function tabcontent:CreateButton(Text, callback) local Button = Instance.new("ImageLabel") local ButtonLabel = Instance.new("TextLabel") local OnOffBackground = Instance.new("ImageButton") local ButtonLabel_2 = Instance.new("TextLabel") local Icon = Instance.new("ImageLabel") Button.Name = "Button" Button.Parent = ButtonFrame Button.BackgroundColor3 = Color3.fromRGB(255, 255, 255) Button.BackgroundTransparency = 1.000 Button.Position = UDim2.new(-1.04551017, 0, 0, 0) Button.Size = UDim2.new(0.987999976, 0, 0.140000001, 0) Button.Image = "http://www.roblox.com/asset/?id=6632811239" Button.ScaleType = Enum.ScaleType.Fit ButtonLabel.Name = "ButtonLabel" ButtonLabel.Parent = Button ButtonLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255) ButtonLabel.BackgroundTransparency = 1.000 ButtonLabel.Position = UDim2.new(0.0326529928, 0, 0.151197791, 0) ButtonLabel.Size = UDim2.new(0.44587937, 0, 0.655976653, 0) ButtonLabel.ZIndex = 3 ButtonLabel.Font = Enum.Font.SourceSans ButtonLabel.Text = Text ButtonLabel.TextColor3 = Color3.fromRGB(255, 255, 255) ButtonLabel.TextScaled = true ButtonLabel.TextSize = 14.000 ButtonLabel.TextWrapped = true OnOffBackground.Name = "OnOffBackground" OnOffBackground.Parent = Button OnOffBackground.BackgroundColor3 = Color3.fromRGB(255, 255, 255) OnOffBackground.BackgroundTransparency = 1.000 OnOffBackground.Position = UDim2.new(0.694450617, 0, 0.0668773055, 0) OnOffBackground.Size = UDim2.new(0.304583728, 0, 0.858785331, 0) OnOffBackground.ZIndex = 2 OnOffBackground.Image = "http://www.roblox.com/asset/?id=6636977694" OnOffBackground.ScaleType = Enum.ScaleType.Fit OnOffBackground.MouseButton1Down:Connect( function() pcall(callback) end ) ButtonLabel_2.Name = "ButtonLabel" ButtonLabel_2.Parent = Button ButtonLabel_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255) ButtonLabel_2.BackgroundTransparency = 1.000 ButtonLabel_2.Position = UDim2.new(0.719613492, 0, 0.173490226, 0) ButtonLabel_2.Size = UDim2.new(0.180855557, 0, 0.611391783, 0) ButtonLabel_2.ZIndex = 3 ButtonLabel_2.Font = Enum.Font.SourceSans ButtonLabel_2.Text = "Click" ButtonLabel_2.TextColor3 = Color3.fromRGB(255, 255, 255) ButtonLabel_2.TextScaled = true ButtonLabel_2.TextSize = 14.000 ButtonLabel_2.TextWrapped = true Icon.Name = "Icon" Icon.Parent = Button Icon.BackgroundColor3 = Color3.fromRGB(255, 255, 255) Icon.BackgroundTransparency = 1.000 Icon.Position = UDim2.new(0.902071595, 0, 0.200631917, 0) Icon.Size = UDim2.new(0, 22, 0, 25) Icon.ZIndex = 3 Icon.Image = "http://www.roblox.com/asset/?id=6640466716" Icon.ScaleType = Enum.ScaleType.Fit Icon.SliceScale = 0.000 end return tabcontent end return DaggerLibrary end local ERA = library:CreateWindow("Factory Simulator") local Main = ERA:CreateTab("Main") Main:CreateButton("Script 1", function(script1) loadstring(game:HttpGet(('https://raw.githubusercontent.com/kilav3rm/Scripts/main/Factory%20Simulator'),true))() end ) Main:CreateButton("Script 2", function(script1) loadstring(game:HttpGet(("https://dosage.wtf/files/factorysim.lua"), true))() end ) -- Other Shit return library