HostMinecrafter

XRay Script

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