Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if game:GetService("CoreGui"):FindFirstChild("UIGui") then
- game:GetService("CoreGui"):FindFirstChild("UIGui"):Destroy()
- end
- local UIGui = Instance.new("ScreenGui")
- local UserInputService = game:GetService("UserInputService")
- local MainFrame = Instance.new("Frame")
- local UIAspectRatioConstraint = Instance.new("UIAspectRatioConstraint")
- local UICorner = Instance.new("UICorner")
- local TopBarFrame = Instance.new("Frame")
- local UICorner_2 = Instance.new("UICorner")
- local SearchBox = Instance.new("TextBox")
- local UICorner_3 = Instance.new("UICorner")
- local Title = Instance.new("TextLabel")
- local CloseButton = Instance.new("TextButton")
- local UICorner_4 = Instance.new("UICorner")
- local UICorner_5 = Instance.new("UICorner")
- local ScriptAuthor = Instance.new("TextLabel")
- local TopbarBottomCover = Instance.new("Frame")
- local ScriptListFrame = Instance.new("ScrollingFrame")
- local UIPadding = Instance.new("UIPadding")
- local Scripts = Instance.new("Folder")
- local UIGridLayout = Instance.new("UIGridLayout")
- local ScriptFrame = Instance.new("Frame")
- local UICorner_6 = Instance.new("UICorner")
- local ScriptTitle = Instance.new("TextLabel")
- local ExecuteButton = Instance.new("TextButton")
- local UICorner_7 = Instance.new("UICorner")
- local InfoButton = Instance.new("TextButton")
- local UICorner_8 = Instance.new("UICorner")
- local ScriptGame = Instance.new("TextLabel")
- local VerifiedScriptFrame = Instance.new("Frame")
- local UICorner_9 = Instance.new("UICorner")
- local ScriptTitle_2 = Instance.new("TextLabel")
- local VerifiedIcon = Instance.new("ImageLabel")
- local ExecuteButton_2 = Instance.new("TextButton")
- local UICorner_10 = Instance.new("UICorner")
- local InfoButton_2 = Instance.new("TextButton")
- local UICorner_11 = Instance.new("UICorner")
- local ScriptAuthor_2 = Instance.new("TextLabel")
- local ScriptGame_2 = Instance.new("TextLabel")
- local ScriptListBackgroundFrame = Instance.new("Frame")
- local UICorner_12 = Instance.new("UICorner")
- local NoScriptsFound = Instance.new("TextLabel")
- local InfoBox = Instance.new("ScrollingFrame")
- local UIListLayout = Instance.new("UIListLayout")
- local UICorner_13 = Instance.new("UICorner")
- local Info = Instance.new("Frame")
- local PreviewImage = Instance.new("ImageLabel")
- local UIScale = Instance.new("UIScale")
- local UICorner_14 = Instance.new("UICorner")
- local Author = Instance.new("Frame")
- local InfoBoxAuthor = Instance.new("TextLabel")
- local ProfilePicture = Instance.new("ImageLabel")
- local UICorner_15 = Instance.new("UICorner")
- local Title_2 = Instance.new("Frame")
- local InfoBoxTitle = Instance.new("TextLabel")
- local Game = Instance.new("TextLabel")
- local Buttons = Instance.new("Frame")
- local UIListLayout_2 = Instance.new("UIListLayout")
- local Close = Instance.new("TextButton")
- local UICorner_16 = Instance.new("UICorner")
- local CopyScriptBloxLink = Instance.new("TextButton")
- local UICorner_17 = Instance.new("UICorner")
- local CopyScriptButton = Instance.new("TextButton")
- local UICorner_18 = Instance.new("UICorner")
- local ExecuteButton_3 = Instance.new("TextButton")
- local UICorner_19 = Instance.new("UICorner")
- local InfoBoxDescription = Instance.new("TextLabel")
- local Comments = Instance.new("Frame")
- local UICorner_20 = Instance.new("UICorner")
- local Inner = Instance.new("Frame")
- local UICorner_21 = Instance.new("UICorner")
- local Line = Instance.new("Frame")
- local CommentsText = Instance.new("TextLabel")
- local Comments_2 = Instance.new("ScrollingFrame")
- local Comment = Instance.new("Frame")
- local Content = Instance.new("TextLabel")
- local Author_2 = Instance.new("TextLabel")
- local ProfilePicture_2 = Instance.new("ImageLabel")
- local UICorner_22 = Instance.new("UICorner")
- local UIListLayout_3 = Instance.new("UIListLayout")
- local UIInfoBox = Instance.new("UICorner")
- local UIClick = Instance.new("Sound")
- local OpenCloseSearcherButton = Instance.new("TextButton")
- local OpenCloseSearcherButtonUICorner = Instance.new("UICorner")
- local PlayerIcon = Instance.new("ImageLabel")
- local PlayerIconUICorner = Instance.new("UICorner")
- local UIGui = Instance.new("ScreenGui")
- local NotifFrame = Instance.new("Frame")
- local NotifFrameUICorner = Instance.new("UICorner")
- local Label1 = Instance.new("TextLabel")
- local Label2 = Instance.new("TextLabel")
- local DeveloperImage = Instance.new("ImageLabel")
- local DeveloperImageUICorner = Instance.new("UICorner")
- local NotifSound = Instance.new("Sound")
- local DeveloperID = 3323558881
- UIClick.Parent = game.Workspace
- UIClick.SoundId = "rbxassetid://6895079853"
- UIClick.Playing = true
- UIClick.Looped = false
- UIClick.Volume = 1
- UIClick:Stop()
- UIGui.Name = "UIGui"
- UIGui.Parent = game.CoreGui
- UIGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- game.CoreGui.UIGui.Enabled = true
- OpenCloseSearcherButton.Parent = UIGui
- OpenCloseSearcherButton.Size = UDim2.new(0, 32, 0, 32)
- OpenCloseSearcherButton.Position = UDim2.new(0, 105, 0, -32)
- OpenCloseSearcherButton.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- OpenCloseSearcherButton.BackgroundTransparency = 0.5
- OpenCloseSearcherButton.Text = "🔎"
- OpenCloseSearcherButton.TextColor3 = Color3.fromRGB(200, 200, 200)
- OpenCloseSearcherButton.Font = 'Code'
- OpenCloseSearcherButton.TextSize = 20
- OpenCloseSearcherButtonUICorner.Parent = OpenCloseSearcherButton
- OpenCloseSearcherButtonUICorner.CornerRadius = UDim.new(0, 8)
- MainFrame.Visible = false
- MainFrame.Name = "MainFrame"
- MainFrame.Parent = UIGui
- MainFrame.AnchorPoint = Vector2.new(0.5, 0.5)
- MainFrame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- MainFrame.BackgroundTransparency = 0.5
- MainFrame.Position = UDim2.new(0.5, 0, 0.5, 0)
- MainFrame.Size = UDim2.new(0, 400, 0, 400)
- MainFrame.ZIndex = 2
- UIAspectRatioConstraint.Parent = MainFrame
- UIAspectRatioConstraint.AspectRatio = 1.778
- UICorner.CornerRadius = UDim.new(0, 12)
- UICorner.Parent = MainFrame
- TopBarFrame.Name = "TopBarFrame"
- TopBarFrame.Parent = MainFrame
- TopBarFrame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- TopBarFrame.Size = UDim2.new(0, 350, 0, 20)
- TopBarFrame.ZIndex = 2
- OpenCloseSearcherButton.MouseButton1Click:Connect(function()
- if OpenCloseSearcherButton.Text == "🔎" then
- OpenCloseSearcherButton.Text = " 🔎 "
- UIClick:Play()
- MainFrame.Visible = true
- else
- if OpenCloseSearcherButton.Text == " 🔎 " then
- OpenCloseSearcherButton.Text = "🔎"
- UIClick:Play()
- MainFrame.Visible = false
- end
- end
- end)
- UICorner_2.CornerRadius = UDim.new(0, 12)
- UICorner_2.Parent = TopBarFrame
- TopBarFrame.Visible = false
- SearchBox.Name = "SearchBox"
- SearchBox.Parent = MainFrame
- SearchBox.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- SearchBox.BackgroundTransparency = 0.5
- SearchBox.Position = UDim2.new(0, 9, 0, 5)
- SearchBox.Size = UDim2.new(0, 220, 0, 25)
- SearchBox.ClearTextOnFocus = false
- SearchBox.Font = Enum.Font.Code
- SearchBox.PlaceholderText = "ECCS•Searcher"
- SearchBox.Text = ""
- SearchBox.TextColor3 = Color3.fromRGB(255, 255, 255)
- SearchBox.TextTransparency = 0.5
- SearchBox.TextScaled = true
- SearchBox.TextSize = 14.000
- SearchBox.TextWrapped = true
- UICorner_3.CornerRadius = UDim.new(0, 12)
- UICorner_3.Parent = SearchBox
- Title.Name = "Title"
- Title.Parent = MainFrame
- Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Title.BackgroundTransparency = 1
- Title.Size = UDim2.new(0, 300, 0, 40)
- Title.Font = Enum.Font.Code
- Title.Text = ""
- Title.TextColor3 = Color3.fromRGB(255, 255, 255)
- Title.TextSize = 28
- CloseButton.Name = "CloseButton"
- CloseButton.Position = UDim2.new(0.93, 0, 0.02, 0)
- CloseButton.Parent = MainFrame
- CloseButton.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- CloseButton.BackgroundTransparency = 0.5
- CloseButton.LayoutOrder = 1
- CloseButton.Size = UDim2.new(0, 25, 0, 25)
- CloseButton.AutoButtonColor = false
- CloseButton.Font = Enum.Font.Code
- CloseButton.Text = "X"
- CloseButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- CloseButton.TextScaled = true
- CloseButton.TextSize = 14.000
- CloseButton.TextWrapped = true
- UICorner_4.Parent = CloseButton
- PlayerIcon.Name = "PlayerIcon"
- PlayerIcon.Parent = MainFrame
- PlayerIcon.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- PlayerIcon.BackgroundTransparency = 1
- PlayerIcon.Position = UDim2.new(0.575, 0, -0.02, 0)
- PlayerIcon.Size = UDim2.new(0, 35, 0, 35)
- PlayerIcon.Image = "https://www.roblox.com/headshot-thumbnail/image?userId=".. game.Players.LocalPlayer.UserId .."&width=999&height=999&format=png"
- PlayerIconUICorner.Parent = PlayerIcon
- PlayerIconUICorner.CornerRadius = UDim.new(0.5, 0)
- ScriptListFrame.Name = "ScriptListFrame"
- ScriptListFrame.Parent = MainFrame
- ScriptListFrame.Active = true
- ScriptListFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- ScriptListFrame.BackgroundTransparency = 1
- ScriptListFrame.BorderSizePixel = 0
- ScriptListFrame.Position = UDim2.new(0, 0, 0.15, 10)
- ScriptListFrame.Size = UDim2.new(0, 400, 0, 170)
- ScriptListFrame.ZIndex = 2
- ScriptListFrame.CanvasSize = UDim2.new(0, 0, 0, 0)
- ScriptAuthor.Name = "ScriptAuthor"
- ScriptAuthor.Parent = ScriptFrame
- ScriptAuthor.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- ScriptAuthor.BackgroundTransparency = 1.000
- ScriptAuthor.Position = UDim2.new(0, 10, 0, 55)
- ScriptAuthor.Size = UDim2.new(0, 280, 0, 25)
- ScriptAuthor.Font = Enum.Font.Code
- ScriptAuthor.Text = "by ScriptAuthor"
- ScriptAuthor.TextColor3 = Color3.fromRGB(192, 192, 192)
- ScriptAuthor.TextSize = 14.000
- ScriptAuthor.TextWrapped = true
- ScriptAuthor.TextXAlignment = Enum.TextXAlignment.Left
- UIPadding.Parent = ScriptListFrame
- UIPadding.PaddingBottom = UDim.new(0, 10)
- UIPadding.PaddingLeft = UDim.new(0, 25)
- UIPadding.PaddingRight = UDim.new(0, 25)
- UIPadding.PaddingTop = UDim.new(0, 10)
- Scripts.Name = "Scripts"
- Scripts.Parent = ScriptListFrame
- UIGridLayout.Parent = Scripts
- UIGridLayout.SortOrder = Enum.SortOrder.LayoutOrder
- UIGridLayout.CellPadding = UDim2.new(0, 20, 0, 20)
- UIGridLayout.CellSize = UDim2.new(0, 300, 0, 150)
- ScriptFrame.Name = "ScriptFrame"
- ScriptFrame.Parent = Scripts
- ScriptFrame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- ScriptFrame.BackgroundTransparency = 0.5
- ScriptFrame.Size = UDim2.new(0, 200, 0, 100)
- ScriptFrame.Position = UDim2.new(1.5, 0, 0, 0)
- UICorner_6.CornerRadius = UDim.new(0, 12)
- UICorner_6.Parent = ScriptFrame
- ScriptTitle.Name = "ScriptTitle"
- ScriptTitle.Parent = ScriptFrame
- ScriptTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- ScriptTitle.BackgroundTransparency = 1.000
- ScriptTitle.Position = UDim2.new(0, 10, 0, 10)
- ScriptTitle.Size = UDim2.new(0, 180, 0, 40)
- ScriptTitle.Font = Enum.Font.Code
- ScriptTitle.Text = "Script Title"
- ScriptTitle.TextColor3 = Color3.fromRGB(255, 255, 255)
- ScriptTitle.TextScaled = true
- ScriptTitle.TextSize = 14.000
- ScriptTitle.TextWrapped = true
- ScriptTitle.TextXAlignment = Enum.TextXAlignment.Left
- ExecuteButton.Name = "ExecuteButton"
- ExecuteButton.Parent = ScriptFrame
- ExecuteButton.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- ExecuteButton.Position = UDim2.new(0.0399999991, 0, 0.733333349, 0)
- ExecuteButton.Size = UDim2.new(0, 255, 0, 30)
- ExecuteButton.AutoButtonColor = false
- ExecuteButton.Font = Enum.Font.Code
- ExecuteButton.Text = "Execute"
- ExecuteButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- ExecuteButton.TextSize = 14.000
- UICorner_7.CornerRadius = UDim.new(0, 12)
- UICorner_7.Parent = ExecuteButton
- InfoButton.Name = "InfoButton"
- InfoButton.Parent = ScriptFrame
- InfoButton.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- InfoButton.BackgroundTransparency = 0.5
- InfoButton.Position = UDim2.new(0.533333361, 0, 0.733333349, 0)
- InfoButton.Size = UDim2.new(0, 130, 0, 30)
- InfoButton.AutoButtonColor = false
- InfoButton.Font = Enum.Font.Code
- InfoButton.Text = "Info"
- InfoButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- InfoButton.TextSize = 14.000
- UICorner_8.CornerRadius = UDim.new(0, 12)
- UICorner_8.Parent = InfoButton
- InfoButton.Visible = false
- ScriptGame.Name = "ScriptGame"
- ScriptGame.Parent = ScriptFrame
- ScriptGame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- ScriptGame.BackgroundTransparency = 1.000
- ScriptGame.Position = UDim2.new(0, 10, 0, 80)
- ScriptGame.Size = UDim2.new(0, 280, 0, 25)
- ScriptGame.Font = Enum.Font.Code
- ScriptGame.Text = "Game"
- ScriptGame.TextColor3 = Color3.fromRGB(192, 192, 192)
- ScriptGame.TextSize = 14.000
- ScriptGame.TextWrapped = true
- ScriptGame.TextXAlignment = Enum.TextXAlignment.Left
- VerifiedScriptFrame.Name = "VerifiedScriptFrame"
- VerifiedScriptFrame.Parent = Scripts
- VerifiedScriptFrame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- VerifiedScriptFrame.Size = UDim2.new(0, 300, 0, 150)
- UICorner_9.CornerRadius = UDim.new(0, 12)
- UICorner_9.Parent = VerifiedScriptFrame
- ScriptTitle_2.Name = "ScriptTitle"
- ScriptTitle_2.Parent = VerifiedScriptFrame
- ScriptTitle_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- ScriptTitle_2.BackgroundTransparency = 1.000
- ScriptTitle_2.Position = UDim2.new(0, 50, 0, 10)
- ScriptTitle_2.Size = UDim2.new(0, 240, 0, 40)
- ScriptTitle_2.Font = Enum.Font.Code
- ScriptTitle_2.Text = "Script Title"
- ScriptTitle_2.TextColor3 = Color3.fromRGB(255, 255, 255)
- ScriptTitle_2.TextScaled = true
- ScriptTitle_2.TextSize = 14.000
- ScriptTitle_2.TextWrapped = true
- ScriptTitle_2.TextXAlignment = Enum.TextXAlignment.Left
- VerifiedIcon.Name = "VerifiedIcon"
- VerifiedIcon.Parent = VerifiedScriptFrame
- VerifiedIcon.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- VerifiedIcon.BackgroundTransparency = 0
- VerifiedIcon.Position = UDim2.new(0, 10, 0, 15)
- VerifiedIcon.Size = UDim2.new(0, 30, 0, 25)
- VerifiedIcon.Image = "rbxassetid://15621211889"
- VerifiedIcon.BackgroundTransparency = 1
- ExecuteButton_2.Name = "ExecuteButton"
- ExecuteButton_2.Parent = VerifiedScriptFrame
- ExecuteButton_2.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- ExecuteButton_2.BackgroundTransparency = 0.5
- ExecuteButton_2.Position = UDim2.new(0.0399999991, 0, 0.733333349, 0)
- ExecuteButton_2.Size = UDim2.new(0, 255, 0, 30)
- ExecuteButton_2.AutoButtonColor = false
- ExecuteButton_2.Font = Enum.Font.Code
- ExecuteButton_2.Text = "Execute"
- ExecuteButton_2.TextColor3 = Color3.fromRGB(255, 255, 255)
- ExecuteButton_2.TextSize = 14.000
- UICorner_10.CornerRadius = UDim.new(0, 12)
- UICorner_10.Parent = ExecuteButton_2
- InfoButton_2.Name = "InfoButton"
- InfoButton_2.Parent = VerifiedScriptFrame
- InfoButton_2.BackgroundColor3 = Color3.fromRGB(19, 24, 52)
- InfoButton_2.Position = UDim2.new(0.533333361, 0, 0.733333349, 0)
- InfoButton_2.Size = UDim2.new(0, 130, 0, 30)
- InfoButton_2.AutoButtonColor = false
- InfoButton_2.Font = Enum.Font.Code
- InfoButton_2.Text = "Info"
- InfoButton_2.TextColor3 = Color3.fromRGB(255, 255, 255)
- InfoButton_2.TextSize = 14.000
- UICorner_11.CornerRadius = UDim.new(0, 12)
- UICorner_11.Parent = InfoButton_2
- InfoButton_2.Visible = false
- ScriptAuthor_2.Name = "ScriptAuthor"
- ScriptAuthor_2.Parent = VerifiedScriptFrame
- ScriptAuthor_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- ScriptAuthor_2.BackgroundTransparency = 1.000
- ScriptAuthor_2.Position = UDim2.new(0.0399999991, 0, 0.366666675, 0)
- ScriptAuthor_2.Size = UDim2.new(0, 280, 0, 25)
- ScriptAuthor_2.Font = Enum.Font.Code
- ScriptAuthor_2.Text = "by ScriptAuthor"
- ScriptAuthor_2.TextColor3 = Color3.fromRGB(192, 192, 192)
- ScriptAuthor_2.TextSize = 14.000
- ScriptAuthor_2.TextWrapped = true
- ScriptAuthor_2.TextXAlignment = Enum.TextXAlignment.Left
- ScriptGame_2.Name = "ScriptGame"
- ScriptGame_2.Parent = VerifiedScriptFrame
- ScriptGame_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- ScriptGame_2.BackgroundTransparency = 1.000
- ScriptGame_2.Position = UDim2.new(0, 10, 0, 80)
- ScriptGame_2.Size = UDim2.new(0, 280, 0, 25)
- ScriptGame_2.Font = Enum.Font.Code
- ScriptGame_2.Text = "Game"
- ScriptGame_2.TextColor3 = Color3.fromRGB(192, 192, 192)
- ScriptGame_2.TextSize = 14.000
- ScriptGame_2.TextWrapped = true
- ScriptGame_2.TextXAlignment = Enum.TextXAlignment.Left
- ScriptListBackgroundFrame.Name = "ScriptListBackgroundFrame"
- ScriptListBackgroundFrame.Parent = MainFrame
- ScriptListBackgroundFrame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- ScriptListBackgroundFrame.BackgroundTransparency = 0.5
- ScriptListBackgroundFrame.Position = UDim2.new(0, 10, 0.15, 10)
- ScriptListBackgroundFrame.Size = UDim2.new(0, 375, 0, 175)
- UICorner_12.CornerRadius = UDim.new(0, 12)
- UICorner_12.Parent = ScriptListBackgroundFrame
- NoScriptsFound.Name = "No Scripts Found"
- NoScriptsFound.Parent = MainFrame
- NoScriptsFound.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- NoScriptsFound.BackgroundTransparency = 1.000
- NoScriptsFound.Position = UDim2.new(0.51, 0, 0.02, 0)
- NoScriptsFound.Size = UDim2.new(0, 220, 0, 25)
- NoScriptsFound.Visible = false
- NoScriptsFound.ZIndex = 3
- NoScriptsFound.Font = Enum.Font.Code
- NoScriptsFound.Text = "No Scripts!"
- NoScriptsFound.TextColor3 = Color3.fromRGB(255, 255, 255)
- NoScriptsFound.TextSize = 18
- NoScriptsFound.TextWrapped = true
- InfoBox.Name = "InfoBox"
- InfoBox.Parent = MainFrame
- InfoBox.Active = true
- InfoBox.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- InfoBox.BackgroundTransparency = 0.5
- InfoBox.BorderSizePixel = 0
- InfoBox.Position = UDim2.new(0, 20, 0, 50)
- InfoBox.Size = UDim2.new(0, 350, 0, 155)
- InfoBox.ZIndex = 3
- InfoBox.CanvasSize = UDim2.new(0, 0, 0, 0)
- InfoBox.VerticalScrollBarInset = Enum.ScrollBarInset.ScrollBar
- UIInfoBox.Parent = InfoBox
- UIListLayout.Parent = InfoBox
- UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
- UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
- UIListLayout.Padding = UDim.new(0, 10)
- UICorner_13.CornerRadius = UDim.new(0, 12)
- UICorner_13.Parent = InfoBox
- Info.Name = "Info"
- Info.Parent = InfoBox
- Info.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Info.BackgroundTransparency = 1.000
- Info.Size = UDim2.new(0, 150, 0, 150)
- PreviewImage.Name = "PreviewImage"
- PreviewImage.Parent = Info
- PreviewImage.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- PreviewImage.BackgroundTransparency = 1.000
- PreviewImage.Position = UDim2.new(0, 50, 0, 10)
- PreviewImage.Size = UDim2.new(0, 100, 0, 100)
- PreviewImage.Image = "rbxasset://textures/ui/GuiImagePlaceholder.png"
- UIScale.Parent = PreviewImage
- UIScale.Scale = 0.700
- UICorner_14.CornerRadius = UDim.new(0, 24)
- UICorner_14.Parent = PreviewImage
- Author.Name = "Author"
- Author.Parent = Info
- Author.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Author.BackgroundTransparency = 1.000
- Author.Position = UDim2.new(0, 395, 0, 110)
- Author.Size = UDim2.new(0, 250, 0, 40)
- InfoBoxAuthor.Name = "InfoBoxAuthor"
- InfoBoxAuthor.Parent = Author
- InfoBoxAuthor.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- InfoBoxAuthor.BackgroundTransparency = 1.000
- InfoBoxAuthor.BorderSizePixel = 0
- InfoBoxAuthor.Position = UDim2.new(0, 45, 0, 0)
- InfoBoxAuthor.Size = UDim2.new(0, 150, 0, 40)
- InfoBoxAuthor.Font = Enum.Font.Code
- InfoBoxAuthor.Text = "Author"
- InfoBoxAuthor.TextColor3 = Color3.fromRGB(140, 125, 233)
- InfoBoxAuthor.TextSize = 20.000
- InfoBoxAuthor.TextWrapped = true
- InfoBoxAuthor.TextXAlignment = Enum.TextXAlignment.Left
- ProfilePicture.Name = "ProfilePicture"
- ProfilePicture.Parent = Author
- ProfilePicture.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- ProfilePicture.BackgroundTransparency = 1.000
- ProfilePicture.Size = UDim2.new(0, 40, 0, 40)
- ProfilePicture.Image = "rbxasset://textures/ui/GuiImagePlaceholder.png"
- UICorner_15.CornerRadius = UDim.new(1, 0)
- UICorner_15.Parent = ProfilePicture
- Title_2.Name = "Title"
- Title_2.Parent = Info
- Title_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Title_2.BackgroundTransparency = 1.000
- Title_2.Position = UDim2.new(0, 395, 0, 10)
- Title_2.Size = UDim2.new(0, 550, 0, 50)
- InfoBoxTitle.Name = "InfoBoxTitle"
- InfoBoxTitle.Parent = Title_2
- InfoBoxTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- InfoBoxTitle.BackgroundTransparency = 1.000
- InfoBoxTitle.Size = UDim2.new(0, 550, 0, 50)
- InfoBoxTitle.Font = Enum.Font.Code
- InfoBoxTitle.Text = "Script Title"
- InfoBoxTitle.TextColor3 = Color3.fromRGB(255, 255, 255)
- InfoBoxTitle.TextScaled = true
- InfoBoxTitle.TextSize = 14.000
- InfoBoxTitle.TextWrapped = true
- InfoBoxTitle.TextXAlignment = Enum.TextXAlignment.Left
- Game.Name = "Game"
- Game.Parent = Info
- Game.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Game.BackgroundTransparency = 1.000
- Game.Position = UDim2.new(0, 395, 0, 70)
- Game.Size = UDim2.new(0, 250, 0, 25)
- Game.Font = Enum.Font.Gotham
- Game.Text = "Game Name"
- Game.TextColor3 = Color3.fromRGB(255, 255, 255)
- Game.TextSize = 22.000
- Game.TextXAlignment = Enum.TextXAlignment.Left
- Buttons.Name = "Buttons"
- Buttons.Parent = InfoBox
- Buttons.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Buttons.BackgroundTransparency = 1
- Buttons.Position = UDim2.new(0.0100502511, 0, 0.911764622, 0)
- Buttons.Size = UDim2.new(0.2, 0, 1.2, 0)
- UIListLayout_2.Parent = Buttons
- UIListLayout_2.FillDirection = Enum.FillDirection.Horizontal
- UIListLayout_2.HorizontalAlignment = Enum.HorizontalAlignment.Center
- UIListLayout_2.SortOrder = Enum.SortOrder.LayoutOrder
- UIListLayout_2.VerticalAlignment = Enum.VerticalAlignment.Center
- UIListLayout_2.Padding = UDim.new(0, 40)
- Close.Name = "Close"
- Close.Parent = Buttons
- Close.BackgroundColor3 = Color3.fromRGB(19, 24, 52)
- Close.LayoutOrder = 3
- Close.Position = UDim2.new(0, 50, 0, 465)
- Close.Size = UDim2.new(0, 95, 0, 35)
- Close.ZIndex = 2
- Close.AutoButtonColor = false
- Close.Font = Enum.Font.Code
- Close.Text = "Close"
- Close.TextColor3 = Color3.fromRGB(255, 255, 255)
- Close.TextSize = 14.000
- UICorner_16.CornerRadius = UDim.new(0, 12)
- UICorner_16.Parent = Close
- CopyScriptBloxLink.Name = "CopyScriptBloxLink"
- CopyScriptBloxLink.Parent = Buttons
- CopyScriptBloxLink.BackgroundColor3 = Color3.fromRGB(19, 24, 52)
- CopyScriptBloxLink.LayoutOrder = 1
- CopyScriptBloxLink.Position = UDim2.new(0, 400, 0, 465)
- CopyScriptBloxLink.Size = UDim2.new(0, 95, 0, 35)
- CopyScriptBloxLink.AutoButtonColor = false
- CopyScriptBloxLink.Font = Enum.Font.Code
- CopyScriptBloxLink.Text = "Copy Link"
- CopyScriptBloxLink.TextColor3 = Color3.fromRGB(255, 255, 255)
- CopyScriptBloxLink.TextSize = 14.000
- UICorner_17.CornerRadius = UDim.new(0, 12)
- UICorner_17.Parent = CopyScriptBloxLink
- CopyScriptButton.Name = "CopyScriptButton"
- CopyScriptButton.Parent = Buttons
- CopyScriptButton.BackgroundColor3 = Color3.fromRGB(19, 24, 52)
- CopyScriptButton.LayoutOrder = 2
- CopyScriptButton.Position = UDim2.new(0, 270, 0, 465)
- CopyScriptButton.Size = UDim2.new(0, 95, 0, 35)
- CopyScriptButton.AutoButtonColor = false
- CopyScriptButton.Font = Enum.Font.Code
- CopyScriptButton.Text = "Copy Script"
- CopyScriptButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- CopyScriptButton.TextSize = 14.000
- UICorner_18.CornerRadius = UDim.new(0, 12)
- UICorner_18.Parent = CopyScriptButton
- ExecuteButton_3.Name = "ExecuteButton"
- ExecuteButton_3.Parent = Buttons
- ExecuteButton_3.BackgroundColor3 = Color3.fromRGB(19, 24, 52)
- ExecuteButton_3.Position = UDim2.new(0, 250, 0, 465)
- ExecuteButton_3.Size = UDim2.new(0, 95, 0, 35)
- ExecuteButton_3.AutoButtonColor = false
- ExecuteButton_3.Font = Enum.Font.Code
- ExecuteButton_3.Text = "Execute"
- ExecuteButton_3.TextColor3 = Color3.fromRGB(255, 255, 255)
- ExecuteButton_3.TextSize = 14.000
- UICorner_19.CornerRadius = UDim.new(0, 12)
- UICorner_19.Parent = ExecuteButton_3
- InfoBoxDescription.Name = "InfoBoxDescription"
- InfoBoxDescription.Parent = InfoBox
- InfoBoxDescription.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- InfoBoxDescription.BackgroundTransparency = 1.000
- InfoBoxDescription.Size = UDim2.new(0, 150, 0, 0)
- InfoBoxDescription.Font = Enum.Font.Code
- InfoBoxDescription.Text = "This is a pretty cool description!"
- InfoBoxDescription.TextColor3 = Color3.fromRGB(255, 255, 255)
- InfoBoxDescription.TextSize = 20.000
- InfoBoxDescription.TextWrapped = true
- InfoBoxDescription.TextXAlignment = Enum.TextXAlignment.Left
- InfoBoxDescription.TextYAlignment = Enum.TextYAlignment.Top
- Comments.Name = "Comments"
- Comments.Parent = InfoBox
- Comments.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Comments.Size = UDim2.new(0, 250, 0, 200)
- UICorner_20.CornerRadius = UDim.new(0, 12)
- UICorner_20.Parent = Comments
- Inner.Name = "Inner"
- Inner.Parent = Comments
- Inner.AnchorPoint = Vector2.new(0.5, 0.5)
- Inner.BackgroundColor3 = Color3.fromRGB(13, 18, 39)
- Inner.Position = UDim2.new(0.5, 0, 0.5, 0)
- Inner.Size = UDim2.new(0, 189, 0, 96)
- UICorner_21.CornerRadius = UDim.new(0, 12)
- UICorner_21.Parent = Inner
- Line.Name = "Line"
- Line.Parent = Inner
- Line.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Line.BorderSizePixel = 0
- Line.LayoutOrder = 1
- Line.Position = UDim2.new(0, 0, 0, 25)
- Line.Size = UDim2.new(0, 150, 0, 2)
- CommentsText.Name = "CommentsText"
- CommentsText.Parent = Inner
- CommentsText.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- CommentsText.BackgroundTransparency = 1.000
- CommentsText.Size = UDim2.new(0, 150, 0, 25)
- CommentsText.Font = Enum.Font.Code
- CommentsText.Text = "Comments"
- CommentsText.TextColor3 = Color3.fromRGB(255, 255, 255)
- CommentsText.TextSize = 14.000
- Comments_2.Name = "Comments"
- Comments_2.Parent = Inner
- Comments_2.Active = true
- Comments_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Comments_2.BackgroundTransparency = 1.000
- Comments_2.BorderSizePixel = 0
- Comments_2.Position = UDim2.new(0, 5, 0, 30)
- Comments_2.Size = UDim2.new(0, 370, 0, 170)
- Comments_2.CanvasSize = UDim2.new(0, 0, 0, 0)
- Comment.Name = "Comment"
- Comment.Parent = Comments_2
- Comment.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Comment.BackgroundTransparency = 1.000
- Comment.Size = UDim2.new(0, 920, 0, 500)
- Content.Name = "Content"
- Content.Parent = Comment
- Content.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Content.BackgroundTransparency = 1.000
- Content.Position = UDim2.new(0, 50, 0, 30)
- Content.Size = UDim2.new(0, 200, 0, 100)
- Content.Font = Enum.Font.Code
- Content.Text = "Pretty Cool Comment"
- Content.TextColor3 = Color3.fromRGB(255, 255, 255)
- Content.TextSize = 14.000
- Content.TextWrapped = true
- Content.TextXAlignment = Enum.TextXAlignment.Left
- Content.TextYAlignment = Enum.TextYAlignment.Top
- Author_2.Name = "Author"
- Author_2.Parent = Comment
- Author_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Author_2.BackgroundTransparency = 1.000
- Author_2.BorderSizePixel = 0
- Author_2.Position = UDim2.new(0, 50, 0, 5)
- Author_2.Size = UDim2.new(0, 200, 0, 25)
- Author_2.Font = Enum.Font.Code
- Author_2.Text = "Author"
- Author_2.TextColor3 = Color3.fromRGB(255, 255, 255)
- Author_2.TextSize = 20.000
- Author_2.TextWrapped = true
- Author_2.TextXAlignment = Enum.TextXAlignment.Left
- ProfilePicture_2.Name = "ProfilePicture"
- ProfilePicture_2.Parent = Comment
- ProfilePicture_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- ProfilePicture_2.BackgroundTransparency = 1.000
- ProfilePicture_2.Position = UDim2.new(0, 5, 0, 5)
- ProfilePicture_2.Size = UDim2.new(0, 40, 0, 40)
- ProfilePicture_2.Image = "rbxasset://textures/ui/GuiImagePlaceholder.png"
- UICorner_22.CornerRadius = UDim.new(1, 0)
- UICorner_22.Parent = ProfilePicture_2
- UIListLayout_3.Parent = Comments_2
- UIListLayout_3.SortOrder = Enum.SortOrder.LayoutOrder
- UIListLayout_3.Padding = UDim.new(0, 5)
- NotifSound.Parent = game.Workspace
- NotifSound.SoundId = "rbxassetid://5153734608"
- NotifSound.Playing = true
- NotifSound.Looped = false
- NotifSound.Volume = 1
- NotifSound:Stop()
- DeveloperImage.Visible = false
- Label1.Visible = false
- Label2.Visible = false
- NotifFrame.Name = "NotifFrame"
- NotifFrame.Parent = UIGui
- NotifFrame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- NotifFrame.BackgroundTransparency = 0.5
- NotifFrame.Position = UDim2.new(0.3, 0, 0.15, 0)
- NotifFrame.Size = UDim2.new(0, 0, 0, 0)
- NotifFrame.BorderSizePixel = 0
- NotifFrameUICorner.Parent = NotifFrame
- DeveloperImage.Name = "PlayerIcon"
- DeveloperImage.Parent = NotifFrame
- DeveloperImage.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- DeveloperImage.BackgroundTransparency = 0.5
- DeveloperImage.Position = UDim2.new(0.86, 0, 0.78, 0)
- DeveloperImage.Size = UDim2.new(0, 50, 0, 50)
- DeveloperImage.BorderSizePixel = 0
- DeveloperImage.Image = "https://www.roblox.com/headshot-thumbnail/image?userId=3323558881&width=999&height=999&format=png"
- DeveloperImageUICorner.Parent = DeveloperImage
- DeveloperImageUICorner.CornerRadius = UDim.new(0.5, 0)
- Label1.Name = "Label1"
- Label1.Parent = NotifFrame
- Label1.BackgroundTransparency = 1
- Label1.Position = UDim2.new(0.5, 0, 0.05, 0)
- Label1.Size = UDim2.new(0, 1, 0, 1)
- Label1.Font = Enum.Font.SourceSansBold
- Label1.Text = "!WARNING!"
- Label1.TextColor3 = Color3.fromRGB(255, 255, 255)
- Label1.TextSize = 50
- Label2.Name = "Label2"
- Label2.Parent = NotifFrame
- Label2.BackgroundTransparency = 1
- Label2.Position = UDim2.new(0.5, 0, 0.5, 0)
- Label2.Size = UDim2.new(0, 1, 0, 1)
- Label2.Font = Enum.Font.SourceSansBold
- Label2.Text = "The developer \"ERROR_CODE\"\n has joined to the experience. \nDon't swear until he \ngets out of the experience and everything will be fine."
- Label2.TextColor3 = Color3.fromRGB(255, 255, 255)
- Label2.TextSize = 20
- game.Players.PlayerAdded:Connect(function(player)
- if player.UserId == DeveloperID then
- NotifSound:Play()
- NotifFrame:TweenSize(UDim2.new(0, 400, 0, 250), 'Out', 4, true)
- wait(0.5)
- Label2.Text = "The developer \"ERROR_CODE\"\n has joined to the experience. \nDon't swear until he \ngets out of the experience and everything will be fine."
- DeveloperImage.Visible = true
- Label1.Visible = true
- Label2.Visible = true
- wait(4.5)
- DeveloperImage.Visible = false
- Label1.Visible = false
- Label2.Visible = false
- NotifFrame:TweenSize(UDim2.new(0, 0, 0, 0), 'Out', 4, true)
- wait(0.5)
- NotifFrame.Visible = false
- end
- end)
- game.Players.PlayerRemoving:Connect(function(player)
- if player.UserId == DeveloperID then
- NotifSound:Play()
- NotifFrame:TweenSize(UDim2.new(0, 400, 0, 250), 'Out', 4, true)
- wait(0.5)
- Label2.Text = "The developer \"ERROR_CODE\"\n has leaved."
- DeveloperImage.Visible = true
- Label1.Visible = true
- Label2.Visible = true
- wait(4.5)
- DeveloperImage.Visible = false
- Label1.Visible = false
- Label2.Visible = false
- NotifFrame:TweenSize(UDim2.new(0, 0, 0, 0), 'Out', 4, true)
- wait(0.5)
- NotifFrame.Visible = false
- end
- end)
- assert(assert, "Assert couldn't assert itself!")
- function createfolders(path)
- local pathtbl = string.split(path, "/")
- for i, v in pairs(pathtbl) do
- if i == 1 then
- if not isfolder(v) then
- makefolder(v)
- end
- else
- local newpath = pathtbl[1]
- for i2=2, i-1 do
- newpath = newpath.. "/" ..pathtbl[i2]
- end
- newpath = newpath.. "/" ..v
- if not isfolder(newpath) then
- makefolder(newpath)
- end
- end
- end
- end
- if not isfile("ScriptBlox/Searcher/Cache.json") and isfolder("ScriptBlox") then
- delfolder("ScriptBlox")
- end
- createfolders("ScriptBlox/Searcher/ImageCache/Scripts")
- createfolders("ScriptBlox/Searcher/ImageCache/ProfilePictures")
- if not isfile("ScriptBlox/Searcher/Cache.json") then
- writefile("ScriptBlox/Searcher/Cache.json", "{}")
- end
- UIGui.MainFrame.InfoBox.Visible = false
- local getfakeasset = getcustomasset or getsynasset
- local HttpService = game:GetService("HttpService")
- local TweenService = game:GetService("TweenService")
- local TextService = game:GetService("TextService")
- local cache = HttpService:JSONDecode(readfile("ScriptBlox/Searcher/Cache.json"))
- local page = 1
- local gquery = ""
- function tableConcat(t1,t2)
- for i, v in pairs(t2) do
- table.insert(t1, v)
- end
- return t1
- end
- UIGui.MainFrame.Title.RichText = true
- UIGui.MainFrame.ScriptListFrame.AutomaticCanvasSize = Enum.AutomaticSize.Y
- UIGui.MainFrame.InfoBox.InfoBoxDescription.AutomaticSize = Enum.AutomaticSize.Y
- UIGui.MainFrame.ScriptListFrame.ScrollBarImageColor3 = Color3.fromRGB(0, 0, 0)
- UIGui.MainFrame.InfoBox.AutomaticCanvasSize = Enum.AutomaticSize.Y
- UIGui.MainFrame.InfoBox.Comments.Inner.Comments.AutomaticCanvasSize = Enum.AutomaticSize.Y
- UIGui.MainFrame.InfoBox.Comments.Inner.Comments.ScrollBarImageColor3 = Color3.new(0, 0, 0)
- UIGui.MainFrame.InfoBox.ScrollBarImageColor3 = Color3.new(0, 0, 0)
- local VerifiedScript = UIGui.MainFrame.ScriptListFrame.Scripts.VerifiedScriptFrame:Clone()
- local Script = UIGui.MainFrame.ScriptListFrame.Scripts.ScriptFrame:Clone()
- UIGui.MainFrame.ScriptListFrame.Scripts.ScriptFrame:Destroy()
- UIGui.MainFrame.ScriptListFrame.Scripts.VerifiedScriptFrame:Destroy()
- local Comment = UIGui.MainFrame.InfoBox.Comments.Inner.Comments.Comment:Clone()
- UIGui.MainFrame.InfoBox.Comments.Inner.Comments.Comment:Destroy()
- function setHoverTransition(from, to, obj)
- from = from or obj.BackgroundColor3
- obj.MouseEnter:Connect(function()
- TweenService:Create(obj, TweenInfo.new(0.2, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut), {
- BackgroundColor3 = to
- }):Play()
- end)
- obj.MouseLeave:Connect(function()
- TweenService:Create(obj, TweenInfo.new(0.2, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut), {
- BackgroundColor3 = from
- }):Play()
- end)
- end
- setHoverTransition(nil, Color3.new(0, 0, 0), UIGui.MainFrame.InfoBox.Buttons.ExecuteButton)
- setHoverTransition(nil, Color3.new(0, 0, 0), UIGui.MainFrame.InfoBox.Buttons.Close)
- setHoverTransition(nil, Color3.new(0, 0, 0), UIGui.MainFrame.InfoBox.Buttons.CopyScriptBloxLink)
- setHoverTransition(nil, Color3.new(0, 0, 0), UIGui.MainFrame.InfoBox.Buttons.CopyScriptButton)
- function _if(a, b, c)
- if a then return b else return c end
- end
- function fastmodeExec(func)
- if getgenv().fastmode == true then
- task.spawn(func)
- else
- func()
- end
- end
- function fetchScripts(query, page)
- page = page or 1
- query = HttpService:UrlEncode(query)
- local url = _if(query == "", "https://www.scriptblox.com/api/script/fetch?page="..tostring(page), "https://scriptblox.com/api/script/search?q="..query.."&max=100&mode=free&page=".. tostring(page))
- local req = HttpService:JSONDecode(game:HttpGetAsync(url)).result
- return req.scripts
- end
- function fetchComments(scriptId, page)
- page = page or 1
- local url = "https://scriptblox.com/api/comment/" ..scriptId.. "?page=" ..tostring(page).. "&max=20"
- local req = HttpService:JSONDecode(game:HttpGetAsync(url)).result
- return req.comments
- end
- function loadImage(url, id, ispfp)
- ispfp = _if(type(ispfp) == "boolean", ispfp, false)
- local path = "ScriptBlox/Searcher/ImageCache/" .._if(ispfp, "ProfilePictures/", "Scripts/")..id..".png"
- if table.find(string.split(url, "/"), "user-default.png") then
- path = "ScriptBlox/Searcher/ImageCache/ProfilePictures/user-default.png"
- end
- if isfile(path) then
- return getfakeasset(path)
- else
- local img = game:HttpGetAsync(url)
- writefile(path, img)
- return getfakeasset(path)
- end
- end
- function fixScript(scriptObj)
- if not scriptObj["script"] or not scriptObj["owner"] or not scriptObj["features"] then
- local cacheObj = cache[scriptObj["_id"]]
- if cacheObj then
- scriptObj["script"] = _if(scriptObj["script"], scriptObj["script"], cacheObj.script)
- scriptObj["features"] = _if(scriptObj["features"], scriptObj["features"], cacheObj.features)
- scriptObj["owner"] = _if(scriptObj["owner"], scriptObj["owner"], cacheObj.owner)
- else
- local req = HttpService:JSONDecode(game:HttpGetAsync("https://www.scriptblox.com/api/script/".. scriptObj.slug)).script
- scriptObj["script"] = _if(scriptObj["script"], scriptObj["script"], req.script)
- scriptObj["features"] = _if(scriptObj["features"], scriptObj["features"], req.features)
- scriptObj["owner"] = _if(scriptObj["owner"], scriptObj["owner"], req.owner)
- cache[scriptObj["_id"]] = req
- end
- end
- return scriptObj
- end
- function updateCache(newCache)
- cache = newCache
- writefile("ScriptBlox/Searcher/Cache.json", HttpService:JSONEncode(cache))
- end
- function updateInfoBox(scriptObj)
- scriptObj = fixScript(scriptObj)
- UIGui.MainFrame.InfoBox.Info.Author.InfoBoxAuthor.Text = scriptObj.owner.username
- UIGui.MainFrame.InfoBox.Info.Title.InfoBoxTitle.Text = scriptObj.title
- UIGui.MainFrame.InfoBox.Info.Game.Text = scriptObj.game.name
- UIGui.MainFrame.InfoBox.InfoBoxDescription.Text = scriptObj.features or "For features to be displayed, please use the search bar to find this script and then open the info again, this is caused by an API Error that I will fix later."
- task.spawn(function()
- UIGui.MainFrame.InfoBox.Info.Author.ProfilePicture.Image = loadImage("https://scriptblox.com"..scriptObj.owner.profilePicture, scriptObj["owner"]["_id"], true)
- end)
- task.spawn(function()
- UIGui.MainFrame.InfoBox.Info.PreviewImage.Image = loadImage(_if(string.find(scriptObj.game.imageUrl, "rbxcdn.com"), scriptObj.game.imageUrl, "https://scriptblox.com"..scriptObj.game.imageUrl), scriptObj["_id"], false)
- end)
- local ExecuteConnection
- local CopyLinkConnection
- local CopyScriptConnection
- ExecuteConnection = UIGui.MainFrame.InfoBox.Buttons.ExecuteButton.MouseButton1Click:Connect(function()
- loadstring(scriptObj.script)()
- end)
- CopyLinkConnection = UIGui.MainFrame.InfoBox.Buttons.CopyScriptBloxLink.MouseButton1Click:Connect(function()
- setclipboard("https://scriptblox.com/script/".. scriptObj.slug)
- end)
- CopyScriptConnection = UIGui.MainFrame.InfoBox.Buttons.CopyScriptButton.MouseButton1Click:Connect(function()
- setclipboard(scriptObj.script)
- end)
- UIGui.MainFrame.InfoBox.Buttons.Close.MouseButton1Click:Connect(function()
- ExecuteConnection:Disconnect()
- CopyLinkConnection:Disconnect()
- CopyScriptConnection:Disconnect()
- UIGui.MainFrame.InfoBox.Visible = false
- UIGui.MainFrame.ScriptListFrame.Visible = true
- end)
- local commentsUIListLayout = UIGui.MainFrame.InfoBox.Comments.Inner.Comments.UIListLayout:Clone()
- UIGui.MainFrame.InfoBox.Comments.Inner.Comments:ClearAllChildren()
- commentsUIListLayout.Parent = UIGui.MainFrame.InfoBox.Comments.Inner.Comments
- task.spawn(function()
- for _, v in pairs(fetchComments(scriptObj["_id"])) do
- local newComment = Comment:Clone()
- newComment.Parent = UIGui.MainFrame.InfoBox.Comments.Inner.Comments
- newComment.Content.Text = v.text
- newComment.Author.Text = v.commentBy.username
- task.spawn(function()
- newComment.ProfilePicture.Image = loadImage("https://scriptblox.com"..v.commentBy.profilePicture, v.commentBy["_id"], true)
- end)
- end
- end)
- end
- function refreshScripts(scriptTbl)
- if #scriptTbl <= 0 then
- UIGui.MainFrame["No Scripts Found"].Visible = true
- return
- else
- UIGui.MainFrame["No Scripts Found"].Visible = false
- end
- local UIGridLayoutCopy = UIGui.MainFrame.ScriptListFrame.Scripts.UIGridLayout:Clone()
- UIGui.MainFrame.ScriptListFrame.Scripts:ClearAllChildren()
- UIGridLayoutCopy.Parent = UIGui.MainFrame.ScriptListFrame.Scripts
- addScripts(scriptTbl)
- end
- function addScripts(scriptTbl)
- for i, v in pairs(scriptTbl) do
- fastmodeExec(function()
- local newScript
- v = fixScript(v)
- if v.verified == true then
- newScript = VerifiedScript:Clone()
- newScript.ScriptTitle.Text = v.title
- newScript.ScriptAuthor.Text = "by ".. v.owner.username
- newScript.ScriptGame.Text = v.game.name
- newScript.Parent = UIGui.MainFrame.ScriptListFrame.Scripts
- else
- newScript = Script:Clone()
- newScript.ScriptTitle.Text = v.title
- newScript.ScriptAuthor.Text = "by ".. v.owner.username
- newScript.ScriptGame.Text = v.game.name
- newScript.Parent = UIGui.MainFrame.ScriptListFrame.Scripts
- end
- newScript.ExecuteButton.MouseButton1Click:Connect(function()
- UIClick:Play()
- loadstring(v.script)()
- end)
- setHoverTransition(newScript.ExecuteButton.BackgroundColor3, Color3.new(0, 0, 0), newScript.ExecuteButton)
- newScript.InfoButton.MouseButton1Click:Connect(function()
- updateInfoBox(v)
- task.wait()
- ScriptBloxSearcher.MainFrame.InfoBox.Visible = true
- ScriptBloxSearcher.MainFrame.ScriptListFrame.Visible = false
- end)
- setHoverTransition(newScript.InfoButton.BackgroundColor3, Color3.new(0, 0, 0), newScript.InfoButton)
- setHoverTransition(newScript.BackgroundColor3, Color3.new(0, 0, 0), newScript)
- end)
- end
- updateCache(cache)
- pagefetchrunning = false
- end
- UIGui.MainFrame.SearchBox.FocusLost:Connect(function(enterPressed)
- if enterPressed then
- UIClick:Play()
- gquery = UIGui.MainFrame.SearchBox.Text
- page = 1
- local scriptsTbl = fetchScripts(UIGui.MainFrame.SearchBox.Text, 1)
- refreshScripts(scriptsTbl)
- end
- end)
- UIGui.MainFrame.CloseButton.MouseButton1Click:Connect(function()
- UIClick:Play()
- MainFrame:Destroy()
- OpenCloseSearcherButton:Destroy()
- end)
- setHoverTransition(nil, Color3.fromRGB(0, 0, 0), UIGui.MainFrame.CloseButton)
- local gui = MainFrame
- local dragging
- local dragInput
- local dragStart
- local startPos
- local function update(input)
- local delta = input.Position - dragStart
- gui.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
- end
- gui.InputBegan:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
- dragging = true
- dragStart = input.Position
- startPos = gui.Position
- input.Changed:Connect(function()
- if input.UserInputState == Enum.UserInputState.End then
- dragging = false
- end
- end)
- end
- end)
- gui.InputChanged:Connect(function(input)
- if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
- dragInput = input
- end
- end)
- UserInputService.InputChanged:Connect(function(input)
- if input == dragInput and dragging then
- update(input)
- end
- end)
- refreshScripts(fetchScripts(gquery, 1))
- UIGui.MainFrame.ScriptListFrame:GetPropertyChangedSignal("CanvasPosition"):Connect(function()
- if (UIGui.MainFrame.ScriptListFrame.CanvasPosition.Y + UIGui.MainFrame.ScriptListFrame.AbsoluteSize.Y) >= UIGui.MainFrame.ScriptListFrame.AbsoluteCanvasSize.Y -200 and not pagefetchrunning then
- page = page + 1
- pagefetchrunning = true
- addScripts(fetchScripts(gquery, page))
- end
- end)
- while wait() do
- PlayerIcon.Image = "https://www.roblox.com/headshot-thumbnail/image?userId=".. game.Players.LocalPlayer.UserId .."&width=999&height=999&format=png"
- end
Add Comment
Please, Sign In to add comment