Advertisement
Trioxide

Trioxide's Anti-Cheat Wall

May 27th, 2013
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.12 KB | None | 0 0
  1. --[[ Trioxide's Anti-Cheat Wall
  2.     Just take it, I don't care, you won't make it work the way you like.
  3.     27/05/2013
  4.  
  5. ]]
  6.  
  7. wait(2)
  8.  
  9. Player = game.Players.LocalPlayer
  10. Torso = Player.Character.Torso
  11.  
  12. WallInUse = false
  13.  
  14. Left = 481.5
  15. Right = 500.5
  16. Down = 490
  17.  
  18. CreatePart = function()
  19.     local part = Instance.new("Part",game.Workspace.CurrentCamera)
  20.     part.FormFactor = "Custom"
  21.     part.Transparency = 0.3
  22. --  part.BrickColor = BrickColor.new("Medium stone grey")
  23.     part.BrickColor = BrickColor.new("Bright blue")
  24.     part.Anchored = true
  25.     part.Position = Vector3.new(Torso.Position.X-2,100,Torso.Position.Z)
  26.     part.Size = Vector3.new(1,1,1)
  27.    
  28.     part.BackSurface = "Universal" 
  29.     part.BottomSurface = "Universal"   
  30.     part.FrontSurface = "Universal"
  31.     part.LeftSurface = "Universal" 
  32.     part.RightSurface = "Universal"
  33.     part.TopSurface = "Universal"  
  34.  
  35.     return part
  36. end
  37.  
  38. MovePart_01 = function(part)
  39.     use = true
  40.     repeat
  41.         wait(1/30)
  42.         x, y, z, R00, R01, R02, R10, R11, R12, R20, R21, R22 = part.CFrame:components()
  43.         part.Size = Vector3.new(1,7,(Torso.Position.Z-(Left+2))*-1+2)
  44.         part.CFrame = CFrame.new(part.Position.X,Torso.Position.Y,Torso.Position.Z+(part.Size.Z/2)-1.5,R00,R01,R02,R10,R11,R12,R20,R21,R22)
  45.         if Torso.Position.Z > Left+2 or Torso.Position.X >= Down then
  46.             part:Destroy()
  47.             use = false
  48.         end
  49.     until use == false
  50.     WallInUse = false
  51. end
  52.  
  53. MovePart_02 = function(part)
  54.     local use = true
  55.     repeat
  56.         wait(1/30)
  57.         x, y, z, R00, R01, R02, R10, R11, R12, R20, R21, R22 = part.CFrame:components()
  58.         part.Size = Vector3.new(1,7,-(Torso.Position.Z-(Right-2))*-1+2)
  59.         part.CFrame = CFrame.new(part.Position.X,Torso.Position.Y,Torso.Position.Z-(part.Size.Z/2)+1.5,R00,R01,R02,R10,R11,R12,R20,R21,R22)
  60.         if Torso.Position.Z < Right-2 or Torso.Position.X >= Down then
  61.             part:Destroy()
  62.             use = false
  63.         end
  64.     until use == false
  65.     WallInUse = false
  66. end
  67.  
  68.  
  69. while wait(1/30) do
  70.     repeat wait(1/30) until (Torso.Position.Z <= Left+2 or Torso.Position.Z >= Right-2) and Torso.Position.X <= Down
  71.         WallInUse = true
  72.         p = CreatePart()
  73.         if Torso.Position.Z <= Left+2 then
  74.             MovePart_01(p)
  75.         else
  76.             MovePart_02(p)
  77.         end
  78. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement