SebTDZ

MISART

May 24th, 2019
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.08 KB | None | 0 0
  1. local player = game:FindFirstChildOfClass("Players").LocalPlayer
  2. local Mouse = player:GetMouse()
  3. local UIS = game:GetService("UserInputService")
  4. Enabled=false
  5. invert=false
  6. Rot=false
  7. UIS.InputBegan:Connect(function(input, arc)
  8.     --Modes
  9.     if input.KeyCode == Enum.KeyCode.Z then
  10.         if Enabled then
  11.             Enabled=false
  12.         else
  13.             Enabled=true
  14.         end
  15.     elseif input.KeyCode == Enum.KeyCode.L then
  16.         if Rot then
  17.             Rot=false
  18.         else
  19.             Rot=true
  20.         end
  21.     elseif input.KeyCode == Enum.KeyCode.P then
  22.         if invert then
  23.             invert=false
  24.         else
  25.             invert=true
  26.         end
  27.     --Actions
  28.     elseif input.KeyCode == Enum.KeyCode.T then
  29.         if Enabled then
  30.             if Mouse.Target then
  31.                 if Rot then
  32.                     if invert then
  33.                         Mouse.Target.Rotation = Mouse.Target.Rotation - Vector3.new(1, 0, 0)
  34.                     else
  35.                         Mouse.Target.Rotation = Mouse.Target.Rotation + Vector3.new(1, 0, 0)
  36.                     end
  37.                 else
  38.                     if invert then
  39.                         Mouse.Target.Position = Mouse.Target.Position - Vector3.new(1, 0, 0)
  40.                     else
  41.                         Mouse.Target.Position = Mouse.Target.Position + Vector3.new(1, 0, 0)
  42.                     end
  43.                 end
  44.             end
  45.         end
  46.     elseif input.KeyCode == Enum.KeyCode.Y then
  47.         if Enabled then
  48.             if Mouse.Target then
  49.                 if Rot then
  50.                     if invert then
  51.                         Mouse.Target.Rotation = Mouse.Target.Rotation - Vector3.new(0, 1, 0)
  52.                     else
  53.                         Mouse.Target.Rotation = Mouse.Target.Rotation + Vector3.new(0, 1, 0)
  54.                     end
  55.                 else
  56.                     if invert then
  57.                         Mouse.Target.Position = Mouse.Target.Position - Vector3.new(0, 1, 0)
  58.                     else
  59.                         Mouse.Target.Position = Mouse.Target.Position + Vector3.new(0, 1, 0)
  60.                     end
  61.                 end
  62.             end
  63.         end
  64.     elseif input.KeyCode == Enum.KeyCode.U then
  65.         if Enabled then
  66.             if Mouse.Target then
  67.                 if Rot then
  68.                     if invert then
  69.                         Mouse.Target.Rotation = Mouse.Target.Rotation - Vector3.new(0, 0, 1)
  70.                     else
  71.                         Mouse.Target.Rotation = Mouse.Target.Rotation + Vector3.new(0, 0, 1)
  72.                     end
  73.                 else
  74.                     if invert then
  75.                         Mouse.Target.Position = Mouse.Target.Position - Vector3.new(0, 0, 1)
  76.                     else
  77.                         Mouse.Target.Position = Mouse.Target.Position + Vector3.new(0, 0, 1)
  78.                     end
  79.                 end
  80.             end
  81.         end
  82.     elseif input.KeyCode == Enum.KeyCode.R then
  83.         if Enabled then
  84.             if Mouse.Target then
  85.                 Mouse.Target:Destroy()
  86.             end
  87.         end
  88.     elseif input.KeyCode == Enum.KeyCode.E then
  89.         if Enabled then
  90.             if Mouse.Target then
  91.                 local Copy = Mouse.Target:Clone()
  92.                 Copy.Parent = Mouse.Target.Parent
  93.             end
  94.         end
  95.     elseif input.KeyCode == Enum.KeyCode.C then
  96.         if Enabled then
  97.             if Mouse.Target then
  98.                 if Mouse.Target.CanCollide then
  99.                     Mouse.Target.CanCollide = false
  100.                 else
  101.                     Mouse.Target.CanCollide = true
  102.                 end
  103.             end
  104.         end
  105.     elseif input.KeyCode == Enum.KeyCode.Q then
  106.         if Enabled then
  107.             if Mouse.Target then
  108.                 if Mouse.Target.Anchored then
  109.                     Mouse.Target.Anchored = false
  110.                 else
  111.                     Mouse.Target.Anchored = true
  112.                 end
  113.             end
  114.         end
  115.     elseif input.KeyCode == Enum.KeyCode.B then
  116.         if Enabled then
  117.             if Mouse.Target then
  118.                 Mouse.Target.CFrame = player.Character.HumanoidRootPart.CFrame + Vector3.new(0, 15, 0)
  119.             end
  120.         end
  121.     end
  122. end)
Add Comment
Please, Sign In to add comment