Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[ Trioxide's Anti-Cheat Wall
- Just take it, I don't care, you won't make it work the way you like.
- 27/05/2013
- ]]
- wait(2)
- Player = game.Players.LocalPlayer
- Torso = Player.Character.Torso
- WallInUse = false
- Left = 481.5
- Right = 500.5
- Down = 490
- CreatePart = function()
- local part = Instance.new("Part",game.Workspace.CurrentCamera)
- part.FormFactor = "Custom"
- part.Transparency = 0.3
- -- part.BrickColor = BrickColor.new("Medium stone grey")
- part.BrickColor = BrickColor.new("Bright blue")
- part.Anchored = true
- part.Position = Vector3.new(Torso.Position.X-2,100,Torso.Position.Z)
- part.Size = Vector3.new(1,1,1)
- part.BackSurface = "Universal"
- part.BottomSurface = "Universal"
- part.FrontSurface = "Universal"
- part.LeftSurface = "Universal"
- part.RightSurface = "Universal"
- part.TopSurface = "Universal"
- return part
- end
- MovePart_01 = function(part)
- use = true
- repeat
- wait(1/30)
- x, y, z, R00, R01, R02, R10, R11, R12, R20, R21, R22 = part.CFrame:components()
- part.Size = Vector3.new(1,7,(Torso.Position.Z-(Left+2))*-1+2)
- 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)
- if Torso.Position.Z > Left+2 or Torso.Position.X >= Down then
- part:Destroy()
- use = false
- end
- until use == false
- WallInUse = false
- end
- MovePart_02 = function(part)
- local use = true
- repeat
- wait(1/30)
- x, y, z, R00, R01, R02, R10, R11, R12, R20, R21, R22 = part.CFrame:components()
- part.Size = Vector3.new(1,7,-(Torso.Position.Z-(Right-2))*-1+2)
- 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)
- if Torso.Position.Z < Right-2 or Torso.Position.X >= Down then
- part:Destroy()
- use = false
- end
- until use == false
- WallInUse = false
- end
- while wait(1/30) do
- repeat wait(1/30) until (Torso.Position.Z <= Left+2 or Torso.Position.Z >= Right-2) and Torso.Position.X <= Down
- WallInUse = true
- p = CreatePart()
- if Torso.Position.Z <= Left+2 then
- MovePart_01(p)
- else
- MovePart_02(p)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement