MaxproGlitcher

Code X Ray .lua

Dec 28th, 2023
11
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. local t=false
  2.  
  3. local function scan(z,t)
  4. for _,i in pairs(z:GetChildren()) do
  5. if i:IsA("BasePart") and not i.Parent:FindFirstChild("Humanoid") and not i.Parent.Parent:FindFirstChild("Humanoid") then
  6. i.LocalTransparencyModifier=t
  7. end
  8.  
  9. scan(i,t)
  10. end
  11. end
  12.  
  13. function x(v)
  14. if v then
  15. scan(workspace,0.5)
  16. else
  17. scan(workspace,0)
  18. end
  19. end
  20.  
  21. game:GetService("UserInputService").InputBegan:connect(function (input)
  22. if input.UserInputType==Enum.UserInputType.Keyboard and input.KeyCode==Enum.KeyCode.X then
  23. t=not t
  24. x(t)
  25. end
  26. end)
Add Comment
Please, Sign In to add comment