Advertisement
NukeVsCity

Untitled

Dec 13th, 2024
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.93 KB | None | 0 0
  1. repeat wait() until game:IsLoaded() -- Ensure the game has fully loaded
  2.  
  3. local function deleteProblemAccessory()
  4.     -- Path to the problematic accessory
  5.     local accessoryPath = workspace:FindFirstChild("Camera") and workspace.Camera:FindFirstChild("startup") and workspace.Camera.startup:FindFirstChild("BraidedDevilHorns2")
  6.  
  7.     if accessoryPath then
  8.         print("Problematic accessory found. Attempting to remove it...")
  9.  
  10.         -- Attempt to destroy the accessory
  11.         pcall(function()
  12.             accessoryPath:Destroy()
  13.         end)
  14.  
  15.         -- Confirm removal
  16.         if not workspace.Camera.startup:FindFirstChild("BraidedDevilHorns2") then
  17.             print("Problematic accessory successfully removed.")
  18.         else
  19.             print("Failed to remove problematic accessory.")
  20.         end
  21.     else
  22.         print("No problematic accessory found.")
  23.     end
  24. end
  25.  
  26. -- Execute the function
  27. deleteProblemAccessory()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement