Advertisement
random1754

GhostPlayer's UI Library Script Deobfuscated

Jan 20th, 2025
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 7.32 KB | Cybersecurity | 0 0
  1. if game.CoreGui:FindFirstChild("GhostGui") then
  2.    game.CoreGui:FindFirstChild("GhostGui"):Destroy()
  3. end
  4.  
  5. local ScreenGui1 = Instance.new("ScreenGui")
  6. ScreenGui1.Parent = game.CoreGui
  7. ScreenGui1.Name = "GhostGui"
  8.  
  9. local Frame1 = Instance.new("Frame")
  10. Frame1.Parent = ScreenGui1
  11. Frame1.Name = "MainFrame"
  12. Frame1.BackgroundColor3 = Color3.fromRGB(17,17,17)
  13. Frame1.Position = UDim2.new(0.3,0,0.05)
  14. Frame1.Size = UDim2.new(0.225,0,0.11,0)
  15. Frame1.Active = true
  16. Frame1.Draggable = true
  17.  
  18. local UICorner1 = Instance.new("UICorner")
  19. UICorner1.Parent = Frame1
  20. UICorner1.CornerRadius = UDim.new(0.15,0)
  21.  
  22. local TextLabel1 = Instance.new("TextLabel")
  23. TextLabel1.Parent = Frame1
  24. TextLabel1.Name = "Title"
  25. TextLabel1.BackgroundTransparency = 1
  26. TextLabel1.Position = UDim2.new(0,0,0)
  27. TextLabel1.Size = UDim2.new(1,0,1,0)
  28. TextLabel1.Font = Enum.Font.SourceSansBold
  29. TextLabel1.TextColor3 = Color3.fromRGB(248,248,248)
  30. TextLabel1.Text = "Title Here"
  31. TextLabel1.TextSize = 18
  32. TextLabel1.TextScaled = true
  33. TextLabel1.TextWrapped = false
  34.  
  35. local Frame2 = Instance.new("Frame")
  36. Frame2.Parent = Frame1
  37. Frame2.Name = "ContentsFrame"
  38. Frame2.BackgroundColor3 = Color3.fromRGB(33,33,33)
  39. Frame2.BorderSizePixel = 0
  40. Frame2.Position = UDim2.new(0,0,0.9)
  41. Frame2.Size = UDim2.new(1,0,0.1,0)
  42. Frame2.Visible = false
  43.  
  44. local Frame2UICorner = UICorner1:Clone()
  45. Frame2UICorner.Parent = Frame2
  46.  
  47. local TextButton1 = Instance.new("TextButton")
  48. TextButton1.Parent = Frame1
  49. TextButton1.Name = "Open"
  50. TextButton1.BackgroundTransparency = 1
  51. TextButton1.Position = UDim2.new(0.85,0,0.05)
  52. TextButton1.Size = UDim2.new(0.15,0,0.8,0)
  53. TextButton1.Font = Enum.Font.SourceSansBold
  54. TextButton1.TextColor3 = Color3.fromRGB(248,248,248)
  55. TextButton1.Text = "v"
  56. TextButton1.TextSize = 18
  57. TextButton1.TextScaled = true
  58. TextButton1.TextWrapped = false
  59.  
  60. TextButton1.MouseButton1Click:Connect(function()
  61. if TextButton1.Text == "v" then
  62.    TextButton1.Text = "–"
  63.    Frame2.Visible = true
  64. else
  65.    TextButton1.Text = "v"
  66.    Frame2.Visible = false
  67. end
  68. end)
  69.  
  70. local ContentPositionZ = 0
  71. function AddContent(type, text, script, script2)
  72.  if text == nil then
  73.     text = "Text"
  74.  end
  75.  if script == nil then
  76.     script = ""
  77.  end
  78.  if script2 == nil then
  79.     script2 = ""
  80.  end
  81.  local Frame = Instance.new("Frame")
  82.  Frame.Parent = Frame2
  83.  Frame.BackgroundColor3 = Color3.fromRGB(33,33,33)
  84.  Frame.BorderSizePixel = 0
  85.  Frame.Position = UDim2.new(0,0,ContentPositionZ)
  86.  Frame.Size = UDim2.new(1,0,11,0)
  87.  
  88.  local UICorner = Instance.new("UICorner")
  89.  UICorner.Parent = Frame
  90.  UICorner.CornerRadius = UDim.new(0.15,0)
  91.  
  92.  local RETURN = nil
  93.  if type == "TextLabel" then
  94.     local TextLabel = Instance.new("TextLabel")
  95.     TextLabel.Parent = Frame
  96.     TextLabel.BackgroundTransparency = 1
  97.     TextLabel.Position = UDim2.new(0.1,0,0.15)
  98.     TextLabel.Size = UDim2.new(0.8,0,0.7,0)
  99.     TextLabel.Font = Enum.Font.SourceSansBold
  100.     TextLabel.TextColor3 = Color3.fromRGB(248,248,248)
  101.     TextLabel.Text = text
  102.     TextLabel.TextSize = 18
  103.     TextLabel.TextScaled = true
  104.     TextLabel.TextWrapped = true
  105.     RETURN = TextLabel
  106.  elseif type == "TextBox" then
  107.     local TextBox = Instance.new("TextBox")
  108.     TextBox.Parent = Frame
  109.     TextBox.BackgroundTransparency = 0.25
  110.     TextBox.Position = UDim2.new(0.1,0,0.15)
  111.     TextBox.Size = UDim2.new(0.8,0,0.7,0)
  112.     TextBox.Font = Enum.Font.SourceSansBold
  113.     TextBox.TextColor3 = Color3.fromRGB(248,248,248)
  114.     TextBox.PlaceholderText = text
  115.     TextBox.Text = ""
  116.     TextBox.TextSize = 18
  117.     TextBox.TextScaled = false
  118.     TextBox.TextWrapped = true
  119.  
  120.     local UICorner = Instance.new("UICorner")
  121.     UICorner.Parent = TextButton
  122.     UICorner.CornerRadius = UDim.new(0.15,0)
  123.     RETURN = TextBox
  124.  elseif type == "TextButton" then
  125.     local TextButton = Instance.new("TextButton")
  126.     TextButton.Parent = Frame
  127.     TextButton.BackgroundTransparency = 0
  128.     TextButton.Position = UDim2.new(0.1,0,0.15)
  129.     TextButton.Size = UDim2.new(0.8,0,0.7,0)
  130.     TextButton.Font = Enum.Font.SourceSansBold
  131.     TextButton.TextColor3 = Color3.fromRGB(248,248,248)
  132.     TextButton.Text = text
  133.     TextButton.TextSize = 18
  134.     TextButton.TextScaled = true
  135.     TextButton.TextWrapped = false
  136.  
  137.     local UICorner = Instance.new("UICorner")
  138.     UICorner.Parent = TextButton
  139.     UICorner.CornerRadius = UDim.new(0.15,0)
  140.  
  141.     TextButton.MouseButton1Click:Connect(function()
  142.     loadstring(script)()
  143.     end)
  144.  elseif type == "Toogle" then
  145.     local TextLabel = Instance.new("TextLabel")
  146.     TextLabel.Parent = Frame
  147.     TextLabel.BackgroundTransparency = 1
  148.     TextLabel.Position = UDim2.new(0.1,0,0.15)
  149.     TextLabel.Size = UDim2.new(0.7,0,0.7,0)
  150.     TextLabel.Font = Enum.Font.SourceSansBold
  151.     TextLabel.TextColor3 = Color3.fromRGB(248,248,248)
  152.     TextLabel.TextXAlignment = Enum.TextXAlignment.Left
  153.     TextLabel.Text = text
  154.     TextLabel.TextSize = 18
  155.     TextLabel.TextScaled = true
  156.     TextLabel.TextWrapped = false
  157.  
  158.     local TextButton = Instance.new("TextButton")
  159.     TextButton.Parent = Frame
  160.     TextButton.BackgroundTransparency = 1
  161.     TextButton.Position = UDim2.new(0.805,0,0.15)
  162.     TextButton.Size = UDim2.new(0.15,0,0.7,0)
  163.     TextButton.Font = Enum.Font.SourceSansBold
  164.     TextButton.TextColor3 = Color3.fromRGB(248,248,248)
  165.     TextButton.Text = "□"
  166.     TextButton.TextSize = 24
  167.     TextButton.TextScaled = true
  168.     TextButton.TextWrapped = false
  169.  
  170.     local Toogle = false
  171.     TextButton.MouseButton1Click:Connect(function()
  172.     if TextButton.Text == "□" then
  173.        TextButton.Text = "■"
  174.        TextButton.TextSize = 22
  175.        TextButton.Position = UDim2.new(0.8103,0,0.148)
  176.        Toogle = true
  177.     else
  178.        TextButton.Text = "□"
  179.        TextButton.TextSize = 24
  180.        TextButton.Position = UDim2.new(0.805,0,0.15)
  181.        Toogle = false
  182.     end
  183.     end)
  184.     local BetterLoopOperator = false
  185.     game:GetService("RunService").RenderStepped:Connect(function()
  186.     if Toogle == true and BetterLoopOperator == false then
  187.        BetterLoopOperator = true
  188.        pcall(function()
  189.        loadstring(script)()
  190.        end)
  191.        BetterLoopOperator = false
  192.     end
  193.     end)
  194.  elseif type == "Switch" then
  195.     local TextLabel = Instance.new("TextLabel")
  196.     TextLabel.Parent = Frame
  197.     TextLabel.BackgroundTransparency = 1
  198.     TextLabel.Position = UDim2.new(0.1,0,0.15)
  199.     TextLabel.Size = UDim2.new(0.7,0,0.7,0)
  200.     TextLabel.Font = Enum.Font.SourceSansBold
  201.     TextLabel.TextColor3 = Color3.fromRGB(248,248,248)
  202.     TextLabel.TextXAlignment = Enum.TextXAlignment.Left
  203.     TextLabel.Text = text
  204.     TextLabel.TextSize = 18
  205.     TextLabel.TextScaled = true
  206.     TextLabel.TextWrapped = false
  207.  
  208.     local ImageButton = Instance.new("ImageButton")
  209.     ImageButton.Parent = Frame
  210.     ImageButton.BackgroundTransparency = 1
  211.     ImageButton.Position = UDim2.new(0.785,0,0.05)
  212.     ImageButton.Size = UDim2.new(0.2,0,0.9,0)
  213.     ImageButton.Image = "rbxassetid://85429087203738"
  214.     ImageButton.Rotation = 180
  215.     ImageButton.Draggable = false
  216.     ImageButton.Visible = true
  217.  
  218.     ImageButton.MouseButton1Click:Connect(function()
  219.     if ImageButton.Rotation == 180 then
  220.        ImageButton.Rotation = 0
  221.        loadstring(script)()
  222.     else
  223.        ImageButton.Rotation = 180
  224.        loadstring(script2)()
  225.     end
  226.     end)
  227.  end
  228.  ContentPositionZ += 9.3
  229.  if RETURN ~= nil then
  230.     return RETURN
  231.  end
  232. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement