Advertisement
LuaExploitz

TELEKINESIS

Oct 4th, 2016
2,050
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 7.78 KB | None | 0 0
  1. --[[
  2.    
  3.   _______   _      _    _                 _    
  4.  |__   __| | |    | |  (_)               (_)    
  5.     | | ___| | ___| | ___ _ __   ___  ___ _ ___
  6.     | |/ _ \ |/ _ \ |/ / | '_ \ / _ \/ __| / __|
  7.     | |  __/ |  __/   <| | | | |  __/\__ \ \__ \
  8.     |_|\___|_|\___|_|\_\_|_| |_|\___||___/_|___/
  9.    
  10.     Made By: astrologicality.
  11.     #1 Edited By: Rocky2u.
  12.     #2 Edited By: KrystalTeam.
  13.    
  14.     Keys:
  15.         Left Mouse Click: Telekinesis.
  16.         E: Spawn Brick At Cursor Location.
  17.         F: Toggle Telekinesis Visibility.
  18.         G: Blow Selected Object.
  19.         H: UnAnchored Selected Object.
  20.         V: 100 Studs Away The Selected Object.
  21.         C: 5 Studs Away The Selected Object.
  22.         X: +5 Studs Away The Selected Object.
  23.         Z: -5 Studs Away The Selected Object.
  24.    
  25. --]]
  26.  
  27. local Players = game.Players
  28.  
  29. local Player = Players.LocalPlayer
  30.  
  31. local Mouse = Player:GetMouse()
  32.    
  33. local dist = 25
  34.  
  35. local trans = 0
  36.  
  37. local dwn=false
  38.  
  39. local Bin = Instance.new("HopperBin")
  40.  
  41. Bin.Name = "Telekinesis"
  42.  
  43. Bin.Parent = Player.Backpack
  44.  
  45.  
  46. local ScreenGUI = Instance.new("ScreenGui", Player.PlayerGui)
  47.  
  48. local Color = Instance.new("Color3Value", ScreenGUI)
  49.  
  50. local ColorValue = Color.Value
  51.  
  52. local Blue = Instance.new("TextButton", ScreenGUI)
  53.  
  54. local Red = Instance.new("TextButton", ScreenGUI)
  55.  
  56. local Green = Instance.new("TextButton", ScreenGUI)
  57.  
  58. local Yellow = Instance.new("TextButton", ScreenGUI)
  59.  
  60. local Pink = Instance.new("TextButton", ScreenGUI)
  61.  
  62. local LightBlue = Instance.new("TextButton", ScreenGUI)
  63.  
  64. local White = Instance.new("TextButton", ScreenGUI)
  65.  
  66. Color.Name = "Color"
  67.  
  68. Blue.BackgroundColor3 = BrickColor.new("Bright blue").Color
  69.  
  70. Blue.Transparency = 0.5
  71.  
  72. Blue.Size = UDim2.new(0.02, 0 ,0, 20)
  73.  
  74. Blue.Position = UDim2.new(1, -35, 1, -35)
  75.  
  76. Blue.Name = "Blue"
  77.  
  78. Blue.Text = ""
  79.  
  80. Blue.Visible = false
  81.  
  82. Red.BackgroundColor3 = BrickColor.new("Bright red").Color
  83.  
  84. Red.Transparency = 0.5
  85.  
  86. Red.Size = UDim2.new(0.02, 0 ,0, 20)
  87.  
  88. Red.Position = UDim2.new(1,-65, 1, -35)
  89.  
  90. Red.Name = "Red"
  91.  
  92. Red.Text = ""
  93.  
  94. Red.Visible = false
  95.  
  96. Green.BackgroundColor3 = BrickColor.new("Bright green").Color
  97.  
  98. Green.Transparency = 0.5
  99.  
  100. Green.Size = UDim2.new(0.02, 0 ,0, 20)
  101.  
  102. Green.Position = UDim2.new(1,-95, 1, -35)
  103.  
  104. Green.Name = "Green"
  105.  
  106. Green.Text = ""
  107.  
  108. Green.Visible = false
  109.  
  110. Yellow.BackgroundColor3 = BrickColor.new("New Yeller").Color
  111.  
  112. Yellow.Transparency = 0.5
  113.  
  114. Yellow.Size = UDim2.new(0.02, 0 ,0, 20)
  115.  
  116. Yellow.Position = UDim2.new(1,-125, 1, -35)
  117.  
  118. Yellow.Name = "Yellow"
  119.  
  120. Yellow.Text = ""
  121.  
  122. Yellow.Visible = false
  123.  
  124. Pink.BackgroundColor3 = BrickColor.new("Hot pink").Color
  125.  
  126. Pink.Transparency = 0.5
  127.  
  128. Pink.Size = UDim2.new(0.02, 0 ,0, 20)
  129.  
  130. Pink.Position = UDim2.new(1,-155, 1, -35)
  131.  
  132. Pink.Name = "Pink"
  133.  
  134. Pink.Text = ""
  135.  
  136. Pink.Visible = false
  137.  
  138. LightBlue.BackgroundColor3 = BrickColor.new("Cyan").Color
  139.  
  140. LightBlue.Transparency = 0.5
  141.  
  142. LightBlue.Size = UDim2.new(0.02, 0 ,0, 20)
  143.  
  144. LightBlue.Position = UDim2.new(1,-185, 1, -35)
  145.  
  146. LightBlue.Name = "LightBlue"
  147.  
  148. LightBlue.Text = ""
  149.  
  150. LightBlue.Visible = false
  151.  
  152. White.BackgroundColor3 = BrickColor.new("White").Color
  153.  
  154. White.Transparency = 0.5
  155.  
  156. White.Size = UDim2.new(0.02, 0 ,0, 20)
  157.  
  158. White.Position = UDim2.new(1,-215, 1, -35)
  159.  
  160. White.Name = "White"
  161.  
  162. White.Text = ""
  163.  
  164. White.Visible = false
  165.  
  166. local bawl = Instance.new("Part", game.Lighting)
  167.  
  168. bawl.Name="TelekinesisGrab"
  169.  
  170. local bp = Instance.new("BodyPosition", bawl)
  171.  
  172. local w = Instance.new("Weld", bawl)
  173.  
  174. function onButton1Down(mouse)
  175.    
  176.     bawl.Size = Vector3.new(2,2,2)
  177.    
  178.     bawl.Material="Neon"
  179.    
  180.     bawl.Shape=0
  181.    
  182.     bawl.Transparency=trans
  183.    
  184.     bawl.Name="TelekinesisGrab"
  185.    
  186.     bawl.CanCollide = false  
  187.    
  188.     bawl.Parent = game.Workspace
  189.    
  190.     w.Parent = bawl
  191.    
  192.     w.Name = "Weld"
  193.    
  194.     bp.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  195.    
  196.     bp.Parent = bawl
  197.    
  198.     bp.Name="lolx"
  199.    
  200.     bawl.Parent = workspace
  201.    
  202.     if mouse ~= nil then
  203.    
  204.         if mouse.Target ~= nil then
  205.    
  206.             w.Part0 = mouse.Target
  207.            
  208.             w.Part1 = bawl
  209.            
  210.             dwn = true
  211.    
  212.             if mouse.Target.Parent:FindFirstChild("Humanoid") then
  213.                
  214.                 mouse.Target.Parent:FindFirstChild("Humanoid").PlatformStand=true
  215.                
  216.             else
  217.                
  218.                 print('no humanoid')
  219.                
  220.             end
  221.    
  222.         end
  223.    
  224.     end
  225.    
  226.     spawn(function()
  227.        
  228.         while dwn == true do
  229.            
  230.             ypcall(function()      
  231.            
  232.                 bp.Parent = bawl
  233.                
  234.                 bp.position = Player.Character.Torso.Position + (mouse.Hit.lookVector*dist)
  235.                
  236.                 wait()
  237.            
  238.             end)
  239.            
  240.         end
  241.    
  242.     end)
  243.    
  244. end
  245.  
  246. function onButton1Up(mouse)
  247.        
  248.     dwn=false
  249.  
  250.     if bawl ~= nil then
  251.            
  252.         bawl.Parent=game.Lighting
  253.            
  254.     else
  255.            
  256.         print('not found')
  257.            
  258.     end
  259.    
  260. end
  261.    
  262. function onKeyDown(key, mouse)
  263.        
  264.     key:lower()
  265.        
  266.     if key == "r" then
  267.            
  268.         if bawl ~= nil then
  269.                
  270.             --bawl.Parent=nil
  271.                
  272.         end
  273.            
  274.     elseif key == "e" then
  275.            
  276.         local p = Instance.new("Part", workspace)
  277.            
  278.         p.Size = Vector3.new(3,3,3)
  279.            
  280.         p.Material = "Neon"
  281.            
  282.         p.Position = mouse.Hit.p + Vector3.new(0,2,0)
  283.            
  284.         p.BrickColor = bawl.BrickColor
  285.            
  286.         p.Shape = "Ball"
  287.            
  288.         p.BottomSurface = "Smooth"
  289.            
  290.         p.TopSurface = "Smooth"
  291.            
  292.     elseif key == "h" then
  293.            
  294.         if bawl ~= nil then
  295.                
  296.             if bawl:FindFirstChild("Weld") ~= nil then
  297.                
  298.                 if bawl:FindFirstChild("Weld").Part0 ~= nil then
  299.                
  300.                     bawl:FindFirstChild("Weld").Part0.Anchored=false
  301.                
  302.                 end
  303.                
  304.             end
  305.                
  306.         end
  307.            
  308.     elseif key == "g" then
  309.            
  310.         if bawl ~= nil then
  311.  
  312.             local x = Instance.new("Explosion",workspace)
  313.  
  314.             x.Position=bawl.Position
  315.                
  316.         else
  317.                
  318.             print('some sort of error')
  319.                
  320.         end
  321.            
  322.     elseif key == "x" then
  323.            
  324.         dist=dist - 5
  325.            
  326.     elseif key == "c" then
  327.            
  328.         dist=15
  329.            
  330.     elseif key == "v" then
  331.            
  332.         dist=100
  333.            
  334.     elseif key == "z" then
  335.            
  336.         dist=dist + 5
  337.            
  338.     end  
  339.        
  340. end
  341.    
  342. Blue.MouseButton1Down:connect(function ()
  343.  
  344.     if bawl ~= nil then
  345.  
  346.         bawl.BrickColor = BrickColor.new("Bright blue")
  347.  
  348.     end
  349.  
  350. end)
  351.    
  352. Red.MouseButton1Down:connect(function ()
  353.        
  354.     if bawl ~= nil then
  355.            
  356.         bawl.BrickColor = BrickColor.new("Bright red")
  357.  
  358.     end
  359.        
  360. end)
  361.    
  362. Green.MouseButton1Down:connect(function ()
  363.  
  364.     if bawl ~= nil then
  365.  
  366.         bawl.BrickColor = BrickColor.new("Bright green")
  367.        
  368.     end
  369.    
  370. end)
  371.    
  372. Yellow.MouseButton1Down:connect(function ()
  373.        
  374.     if bawl ~= nil then
  375.            
  376.         bawl.BrickColor = BrickColor.new("New Yeller")
  377.            
  378.     end
  379.        
  380. end)
  381.    
  382. Pink.MouseButton1Down:connect(function ()
  383.        
  384.     if bawl ~= nil then
  385.            
  386.         bawl.BrickColor = BrickColor.new("Hot pink")
  387.        
  388.     end
  389.        
  390. end)
  391.    
  392. LightBlue.MouseButton1Down:connect(function ()
  393.        
  394.     if bawl ~= nil then
  395.            
  396.         bawl.BrickColor = BrickColor.new("Cyan")
  397.            
  398.     end
  399.        
  400. end)
  401.    
  402.    
  403. White.MouseButton1Down:connect(function ()
  404.  
  405.     if bawl ~= nil then
  406.            
  407.         bawl.BrickColor = BrickColor.new("White")
  408.            
  409.     end
  410.    
  411. end)
  412.  
  413. Bin.Selected:connect(function ()
  414.    
  415.     Player.PlayerGui.ScreenGui.Blue.Visible = true
  416.    
  417.     Player.PlayerGui.ScreenGui.Red.Visible = true
  418.    
  419.     Player.PlayerGui.ScreenGui.Green.Visible = true
  420.    
  421.     Player.PlayerGui.ScreenGui.Yellow.Visible = true
  422.    
  423.     Player.PlayerGui.ScreenGui.Pink.Visible = true
  424.    
  425.     Player.PlayerGui.ScreenGui.LightBlue.Visible = true
  426.    
  427.     Player.PlayerGui.ScreenGui.White.Visible = true
  428.    
  429. end)
  430.  
  431. Bin.Deselected:connect(function ()
  432.    
  433.     Player.PlayerGui.ScreenGui.Blue.Visible = false
  434.    
  435.     Player.PlayerGui.ScreenGui.Red.Visible = false
  436.    
  437.     Player.PlayerGui.ScreenGui.Green.Visible = false
  438.    
  439.     Player.PlayerGui.ScreenGui.Yellow.Visible = false
  440.    
  441.     Player.PlayerGui.ScreenGui.Pink.Visible = false
  442.    
  443.     Player.PlayerGui.ScreenGui.LightBlue.Visible = false
  444.    
  445.     Player.PlayerGui.ScreenGui.White.Visible = false
  446.    
  447. end)
  448.    
  449. Bin.Selected:connect(function(mouse)
  450.    
  451.     mouse.Button1Down:connect(function() onButton1Down(mouse) end)
  452.    
  453.     mouse.Button1Up:connect(function() onButton1Up(mouse) end)
  454.    
  455.     mouse.KeyDown:connect(function(key) onKeyDown(key, mouse) end)
  456.    
  457. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement