Advertisement
1zxyuuki

Al

Jan 9th, 2025
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.86 KB | None | 0 0
  1. --[[
  2. K
  3. / \
  4. / \
  5. / \
  6. | | |
  7. | | |
  8. \ /
  9. \ /
  10. E
  11. S
  12. T
  13.  
  14. ]]
  15.  
  16. local printc = {
  17. " K ",
  18. " / \\ ",
  19. " / \\ ",
  20. " / \\ ",
  21. "| | | ",
  22. "| | | ",
  23. " \\ / ",
  24. " \\ / ",
  25. " E ",
  26. " S ",
  27. " T "
  28. }
  29.  
  30. for _, line in ipairs(printc) do
  31. print(line)
  32. end
  33.  
  34. --//[START OF MAIN SCRIPT]\\--
  35.  
  36. --//[BOOLEAN TO BREAK LOOP]\\--
  37. local allTexturesDestroyed = false
  38. local allMaterialsChanged = false
  39. --//[WAIT TILL GAME IS LOADED]\\--
  40. if (not game:IsLoaded()) then
  41. game.Loaded:Wait();
  42. wait(1.5)
  43. end
  44. --//[CREDIT]\\--
  45. game.StarterGui:SetCore("SendNotification", {
  46. Title = "Anti-lag";
  47. Text = "Made by Kaermest"
  48. })
  49. --//[ANTI-LAG MAIN]\\--
  50. local function changeTexturesAndMaterials()
  51. --//[]\\--
  52. local texturesDestroyed = true
  53. local materialsChanged = true
  54. --//[REMOVE TEXTURE AND CHANGE MATERIAL]\\--
  55. for _, descendant in pairs(game.Workspace:GetDescendants()) do
  56. --//[TEXTURE]\\--
  57. if descendant.ClassName == "Texture" then
  58. descendant:Destroy()
  59. print("DESTROYED TEXTURE")
  60. --//[MATERIAL]\\--
  61. elseif descendant:IsA("Part") then
  62. if descendant.Material ~= Enum.Material.SmoothPlastic then
  63. descendant.Material = Enum.Material.SmoothPlastic
  64. print("CHANGED MATERIAL")
  65. materialsChanged = false
  66. end
  67. end
  68. end
  69.  
  70. if texturesDestroyed and not allTexturesDestroyed then
  71. allTexturesDestroyed = true
  72. print("All textures have been destroyed.")
  73. end
  74.  
  75. if materialsChanged and not allMaterialsChanged then
  76. allMaterialsChanged = true
  77. print("All materials have been changed to SmoothPlastic.")
  78. end
  79. end
  80. --//[MAIN LOOP]\\--
  81. while true do
  82. warn("Script is running...")
  83.  
  84. changeTexturesAndMaterials()
  85.  
  86. if allTexturesDestroyed and allMaterialsChanged then
  87. break
  88. end
  89.  
  90. wait(0.25)
  91. end
  92. --//[END OF SCRIPT]\\--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement