Advertisement
SekkayGod

DebugFunc

Feb 16th, 2024 (edited)
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.02 KB | None | 0 0
  1. --debugger func
  2.  
  3. local G2L = {};
  4. local funcs = {
  5. String = {},
  6. Table = {},
  7. }
  8.  
  9. G2L["1"] = Instance.new("ScreenGui", game:GetService("Players").LocalPlayer:WaitForChild("PlayerGui"));
  10. G2L["1"]["IgnoreGuiInset"] = true;
  11. G2L["1"]["DisplayOrder"] = 6;
  12. G2L["1"]["AutoLocalize"] = false;
  13. G2L["1"]["ScreenInsets"] = Enum.ScreenInsets.DeviceSafeInsets;
  14. G2L["1"]["Name"] = [[DebugMSG]];
  15. G2L["1"]["ZIndexBehavior"] = Enum.ZIndexBehavior.Sibling;
  16. G2L["1"]["ResetOnSpawn"] = false;
  17.  
  18. G2L["2"] = Instance.new("Frame", G2L["1"]);
  19. G2L["2"]["ZIndex"] = 999999999;
  20. G2L["2"]["BackgroundColor3"] = Color3.fromRGB(18, 18, 18);
  21. G2L["2"]["AnchorPoint"] = Vector2.new(1, 0);
  22. G2L["2"]["Size"] = UDim2.new(1, 0, 0, 48);
  23. G2L["2"]["Position"] = UDim2.new(0.9992360472679138, 0, 0.8754304647445679, 0);
  24. G2L["2"]["Name"] = [[Debugger]];
  25.  
  26. G2L["3"] = Instance.new("UIPadding", G2L["2"]);
  27. G2L["3"]["PaddingTop"] = UDim.new(0, 2);
  28. G2L["3"]["Name"] = [[Padding]];
  29. G2L["3"]["PaddingBottom"] = UDim.new(0, 2);
  30. G2L["3"]["PaddingLeft"] = UDim.new(0, 88);
  31.  
  32. G2L["4"] = Instance.new("UIStroke", G2L["2"]);
  33. G2L["4"]["Color"] = Color3.fromRGB(255, 94, 94);
  34. G2L["4"]["Thickness"] = 4.5;
  35.  
  36. G2L["5"] = Instance.new("LocalScript", G2L["2"]);
  37.  
  38. G2L["6"] = Instance.new("TextButton", G2L["2"]);
  39. G2L["6"]["BorderSizePixel"] = 0;
  40. G2L["6"]["TextXAlignment"] = Enum.TextXAlignment.Left;
  41. G2L["6"]["BackgroundColor3"] = Color3.fromRGB(255, 255, 255);
  42. G2L["6"]["TextSize"] = 13;
  43. G2L["6"]["FontFace"] = Font.new([[rbxasset://fonts/families/GothamSSm.json]], Enum.FontWeight.Medium, Enum.FontStyle.Normal);
  44. G2L["6"]["TextColor3"] = Color3.fromRGB(255, 94, 94);
  45. G2L["6"]["Size"] = UDim2.new(1.1357775926589966, 0, 0, 50);
  46. G2L["6"]["BorderColor3"] = Color3.fromRGB(0, 0, 0);
  47. G2L["6"]["Text"] = [[Debugger]];
  48. G2L["6"]["Position"] = UDim2.new(0, -70, 0, 0);
  49. G2L["6"]["BackgroundTransparency"] = 1;
  50.  
  51. G2L["7"] = Instance.new("UIPadding", G2L["6"]);
  52. G2L["7"]["Name"] = [[Padding]];
  53. G2L["7"]["PaddingLeft"] = UDim.new(0, 10);
  54.  
  55. G2L["2"].Position = UDim2.new(1.012, -16,0.928, 60)
  56.  
  57. function funcs:DebugFalse(name)
  58. G2L["6"].Text = name
  59. G2L["4"]["Color"] = Color3.fromRGB(255, 94, 94);
  60. G2L["6"]["TextColor3"] = Color3.fromRGB(255, 94, 94);
  61. local t = game:GetService("TweenService")
  62. intro = t:Create(G2L["2"], TweenInfo.new(0.1, Enum.EasingStyle.Linear), {Position = UDim2.new(1.012, -10, 0.928, -18)}):Play()
  63. return false
  64. end
  65. function funcs:DebugTrue(name)
  66. G2L["6"].Text = name
  67. G2L["4"]["Color"] = Color3.fromRGB(0, 255, 128);
  68. G2L["6"]["TextColor3"] = Color3.fromRGB(0, 255, 128);
  69. local t = game:GetService("TweenService")
  70. intro = t:Create(G2L["2"], TweenInfo.new(0.1, Enum.EasingStyle.Linear), {Position = UDim2.new(1.012, -10, 0.928, -18)}):Play()
  71. return false
  72. end
  73. local t = game:GetService("TweenService")
  74. G2L["6"].MouseButton1Click:Connect(function()
  75. intro = t:Create(G2L["2"], TweenInfo.new(0.1, Enum.EasingStyle.Linear), {Position = UDim2.new(1.012, -10,0.928, 60)}):Play()
  76. wait(.3)
  77. G2L["1"]:Destroy()
  78. end)
  79. return funcs
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement