Advertisement
Guest User

Untitled

a guest
Jul 6th, 2015
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.50 KB | None | 0 0
  1. --********************************************************************************************************************************************************
  2. --CONFIG--
  3. User = game.Players.LocalPlayer.Name
  4. SelectionBoxOn = false;
  5. SelectionBoxColor = "Deep blue"
  6. BaseLocked = true
  7.  
  8. LassoKill = false
  9. LassoSpeed = 50
  10. DragSpeed = 500
  11. SmoothDragging = false;
  12. --CONFIG--
  13.  
  14.  
  15.  
  16. --CODE--
  17. Player = game.Players:FindFirstChild(User)
  18.  
  19. local InCam = false
  20. local mc2 = 0
  21. HopperBin = Instance.new("HopperBin",Player.Backpack)
  22. wait()
  23. HopperBin.Name = "Keys"
  24. print("Keys Loaded")
  25. Down = false
  26. wait(2)
  27. Bin = Player.Backpack.Keys
  28.  
  29.  
  30.  
  31.  
  32. function holdmouse(mouse)
  33. if mouse.Target then
  34. t = mouse.Target
  35. Hold = true
  36. wait(3)
  37. if Hold == true then
  38.  
  39.  
  40. if
  41. t.Parent:FindFirstChild("Humanoid") and
  42. game.Players:FindFirstChild(t.Parent.Name) then
  43. print("Getting Player's Properties...")
  44. wait(1)
  45. TargetPlayer = game.Players:FindFirstChild(t.Parent.Name)
  46. Player = game.Players.LocalPlayer
  47. ID = TargetPlayer.userId
  48. wait()
  49. print("")
  50. print("")
  51. print("")
  52. print("")
  53. print("____PLAYER PROPERTIES____")
  54. print("Name: "..(TargetPlayer.Name))
  55. if Player:IsFriendsWith(ID) then
  56. print("__State of Friendship__")
  57. print("Friends")
  58. print("Account age: "..(TargetPlayer.AccountAge))
  59. print("User's Id: "..(TargetPlayer.userId))
  60. print("")
  61. print("")
  62. print("")
  63. else
  64. print("__State of Friendship__")
  65. print("Neutral")
  66. print("Account age: "..(TargetPlayer.AccountAge))
  67. print("User's Id: "..(TargetPlayer.userId))
  68. print("")
  69. print("")
  70. print("")
  71.  
  72.  
  73. end
  74. end
  75. end
  76. end
  77. end
  78.  
  79.  
  80.  
  81. function upmouse(mouse)
  82. Hold = false
  83. end
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102. function click(mouse)
  103. mc2 = mc2 + 1
  104. coroutine.resume(coroutine.create(function()
  105. wait(.5)
  106. mc2 = 0
  107.  
  108. end))
  109.  
  110. if mc2 == 3 then mc2 = 0
  111. elseif mc2 == 2 then
  112.  
  113. if mouse.Target then
  114. t = mouse.Target
  115. if t then
  116. print("")
  117. print("")
  118. print("____PROPERTIES____")
  119.  
  120. print("Name: "..(t.Name))
  121.  
  122. print("Parent: "..(t.Parent.Name))
  123. print("Descendent Of "..(t.Parent.Parent.Name))
  124. if t.Anchored == true then
  125. print("Anchored: True")
  126. else print("Anchored: False")
  127. end
  128. if t.Locked == true then
  129. print("Locked: True")
  130. else print("Locked: False") end
  131. print("__Size__")
  132. print(t.Size)
  133. print("__Position__")
  134. print(t.Position)
  135. print("")
  136. print("")
  137. end
  138. end
  139. end
  140. end
  141.  
  142.  
  143. function selected(mouse)
  144. coroutine.resume(coroutine.create(function()
  145. print("")
  146. print("")
  147. print("____COMMANDS____")
  148. wait(.3)
  149. print("X: Destroy Part") wait(.3)
  150. print("P: Punish Player") wait(.3)
  151. print("K: Kick Player") wait(.3)
  152. print("H: Drain Health") wait(.3)
  153. print("U: Unanchor Part") wait(.3)
  154. print("M: Move Player") wait(.3)
  155. print("Q: Hide Self") wait(.3)
  156. print("Ctrl: Control Player") wait(.3)
  157. print("F2: Config Cmds") wait(.3)
  158. print("DoubleClick: Show Properties") wait(.3)
  159. print("Hold mouse: Show Player Properties") wait(.3)
  160. wait(6)
  161. print("")
  162. wait(.3)
  163. print("")
  164. wait(.3)
  165. print("L: Lag Player")
  166. wait(.3)
  167. print("Alt: Drag Player")
  168. print("F3,F4: Lasso Two Players Together")
  169. end))
  170.  
  171. mouse.KeyDown:connect(function(key)
  172. if key == "l" then
  173. if mouse.Target then
  174. t = mouse.Target
  175. if t.Parent:FindFirstChild("Humanoid") then
  176. t.Parent.Humanoid.WalkSpeed = math.huge
  177. end
  178. end
  179. end
  180. end)
  181. mouse.KeyDown:connect(function(key)
  182. if key == "\50" or key == "\49" then
  183. print("Controlling Player")
  184. if mouse.Target then
  185. t = mouse.Target
  186. if t.Parent:FindFirstChild("Humanoid") then
  187. Player.Character = t.Parent
  188. end
  189. end
  190. end
  191. end)
  192. mouse.KeyDown:connect(function(key)
  193. if key == "q" then
  194. if InCam == false then
  195. m = Instance.new("Hint",Player.PlayerGui)
  196. i = 0
  197. repeat
  198. i = i + 1
  199. wait(.5)
  200. m.Text = "Moving player into Camera."
  201. wait(.5)
  202. m.Text = "Moving player into Camera.."
  203. wait(.5)
  204. m.Text = "Moving player into Camera..."
  205. until i == 3
  206. game.Players.LocalPlayer.Character.Parent = Workspace.CurrentCamera
  207. InCam = true
  208. m.Text = "You are now Invisible"
  209. wait(5)
  210. m:Destroy()
  211. elseif InCam == true then
  212. m = Instance.new("Hint",Player.PlayerGui)
  213. i = 0
  214. repeat
  215. i = i + 1
  216. wait(.5)
  217. m.Text = "Moving player into Workspace."
  218. wait(.5)
  219. m.Text = "Moving player into Workspace.."
  220. wait(.5)
  221. m.Text = "Moving player into Workspace..."
  222. until i == 3
  223. Char = game.Workspace.CurrentCamera:FindFirstChild(game.Players.LocalPlayer.Name)
  224. wait()
  225. Char.Parent = Workspace
  226. wait()
  227. Char:MakeJoints()
  228. InCam = false
  229. m.Text = "You are now Visible!"
  230. wait(5)
  231. m:Destroy()
  232. end
  233. end
  234. end)
  235. mouse.Move:connect(function()
  236. if mouse.Target and SelectionBoxOn == true then
  237. t = mouse.Target
  238. if t.Parent:isA("Model") and t.Parent.Name ~= "Workspace" and t.Parent:FindFirstChild("SelectionBox") == nil then
  239. Select = Instance.new("SelectionBox",Workspace)
  240. Select.Color = BrickColor.new(SelectionBoxColor)
  241. Select.Adornee = t.Parent
  242. else for i, v in pairs(Workspace:GetChildren()) do
  243. if v:isA("SelectionBox") then v:Destroy()
  244. end
  245. end
  246. end
  247. end
  248. end)
  249. mouse.KeyDown:connect(function(key)
  250. Moving = true
  251. if key == "m"
  252. then
  253. Char = mouse.Target.Parent
  254. if Char:isA("Model") and Char:FindFirstChild("Humanoid") then
  255. print("Moving")
  256. repeat
  257. wait()
  258. Char.Torso.CFrame = CFrame.new(mouse.hit.X, 5, mouse.hit.Z)
  259. until Moving == false
  260. end
  261. end
  262. end)
  263. mouse.KeyUp:connect(function(key)
  264. if key == "m" then
  265. print("Stopped Moving")
  266. Moving = false;
  267. end
  268. end)
  269. mouse.KeyDown:connect(function(key)
  270. keydeb = false
  271. if key == "x" then
  272. print("Destroying")
  273. wait()
  274. if mouse.Target then
  275. t = mouse.Target
  276. if t.Name == "Base" and BaseLocked == false then
  277. t:Destroy()
  278. elseif t.Name ~= "Base" then t:Destroy()
  279. wait()
  280. end
  281. end
  282. end
  283. end)
  284. mouse.KeyDown:connect(function(key)
  285. if key == "t" then
  286. print("Teleporting")
  287. if mouse.Target then
  288. t = mouse.Target
  289. if t.Parent:FindFirstChild("Torso") then
  290. Player.Character.Torso.CFrame = CFrame.new(t.Parent.Torso.Position) + Vector3.new(5,0.5,0)
  291. end
  292. end
  293. end
  294. end)
  295. mouse.KeyDown:connect(function(key)
  296. if key == "u" then
  297. print("Unanchoring")
  298. if mouse.Target then
  299. t = mouse.Target
  300. if t.Name == "Base" and BaseLocked == false then
  301. t.Anchored = false
  302. elseif t.Name ~= "Base" then
  303. t.Anchored = false
  304. end
  305. end
  306. end
  307. end)
  308. mouse.KeyDown:connect(function(key)
  309. if key == "p" then
  310. print("Punishing")
  311. if mouse.Target then
  312. t = mouse.Target
  313. if game.Players:FindFirstChild(t.Parent.Name)~= nil then
  314. Player = game.Players:FindFirstChild(t.Parent.Name)
  315. wait()
  316. Player.Character.Parent = game.Lighting
  317. end
  318. end
  319. end
  320. end)
  321. mouse.KeyDown:connect(function(key)
  322. if key == "r" then
  323. Down = true
  324. print("Ray On")
  325. coroutine.resume(coroutine.create(function()
  326. while wait() do
  327. if Down == true then
  328. local part = Instance.new("Part", workspace)
  329. part.Name = "Ray"
  330. part.BrickColor = BrickColor.new("Really red")
  331. part.Anchored = true
  332. part.CFrame = CFrame.new(mouse.hit.X, 1, mouse.hit.Z)
  333. Instance.new("BlockMesh", part)
  334. function ontouched(hit)
  335. if hit.Parent:FindFirstChild("Humanoid") then
  336. h = hit.Parent.Humanoid
  337. h.Health = h.Health - 1
  338. end
  339. end
  340. part.Touched:connect(ontouched)
  341. else
  342. break
  343. end
  344. end
  345. end))
  346. end
  347. end)
  348. mouse.KeyUp:connect(function(key)
  349. if key == "r" then
  350. Down = false
  351. print("Ray Off")
  352. end
  353. end)
  354. mouse.KeyDown:connect(function(key)
  355. if key == "\32" and InCam == true then
  356. wait(.5)
  357. for i, v in pairs(Player.Character:GetChildren()) do
  358. if v:isA("Part") then v.Anchored = true end end
  359. elseif key == "\32" and InCam == false then
  360. for i, v in pairs(Player.Character:GetChildren()) do
  361. if v:isA("Part") then v.Anchored = false end end
  362. end
  363. end)
  364.  
  365. mouse.KeyDown:connect(function(key)
  366. if key == "k" then
  367. print("Kicking")
  368. if mouse.Target then
  369. t = mouse.Target
  370. if game.Players:FindFirstChild(t.Parent.Name)~= nil then
  371. Player = game.Players:FindFirstChild(t.Parent.Name)
  372. wait()
  373. print("Kicked: "..(Player.Name))
  374. Player:Destroy()
  375. end
  376. end
  377. end
  378. end)
  379. mouse.KeyDown:connect(function(key)
  380. if key == "\27" then
  381. print("")
  382. print("")
  383. print("")
  384. print("____SETTINGS____")
  385. print("For each of the below,")
  386. print("Chat these to configurate the Hopperbin.")
  387. print("SelectionBoxOn/Off")
  388. print("Color/Color Name")
  389. print("BaseLockedTrue/False")
  390. print("SmoothDraggingTrue/False")
  391.  
  392. print("LassoKillTrue/False")
  393. print("LassoSpeed/Speed")
  394. print("DragSpeed/Speed")
  395. print("DragKillTrue/False")
  396.  
  397. print("")
  398. print("")
  399.  
  400. end
  401. end)
  402.  
  403.  
  404.  
  405.  
  406.  
  407.  
  408.  
  409.  
  410.  
  411.  
  412.  
  413.  
  414.  
  415.  
  416.  
  417.  
  418.  
  419.  
  420.  
  421.  
  422.  
  423.  
  424.  
  425.  
  426.  
  427. Player.Chatted:connect(function(msg)
  428. if string.lower(msg) == string.lower("DragKillTrue") then DragKill = true
  429. elseif string.lower(msg) == string.lower("DragKillFalse") then
  430. DragKill = false
  431.  
  432. end
  433. end)
  434.  
  435.  
  436.  
  437. Player.Chatted:connect(function(msg1)
  438. local msg = msg1:lower()
  439. if string.sub(msg,1,11) == "lassospeed/" then
  440. LassoSpeed = string.sub(msg,12)
  441. print("LassoSpeed now set to: "..(LassoSpeed))
  442. end
  443. end)
  444.  
  445. Player.Chatted:connect(function(msg)
  446. if string.lower(string.sub(msg,1,10)) == "dragspeed/" then
  447. DragSpeed = string.sub(msg,11)
  448. print("DragSpeed now set to: "..(DragSpeed))
  449. end
  450. end)
  451.  
  452.  
  453. Player.Chatted:connect(function(msg)
  454. local cmd,color = msg:lower():match("(%w+)/(.+)")
  455.  
  456. if cmd == "color" then
  457. color = color:sub(1,1):upper()..color:sub(2):lower()
  458. SelectionBoxColor = BrickColor.new(color) == BrickColor.new("asd") and SelectionBoxColor or color
  459. wait(1)
  460. print("Selection set to: "..(SelectionBoxColor))
  461. end
  462.  
  463. end)
  464.  
  465.  
  466.  
  467. Player.Chatted:connect(function(msg)
  468. if string.lower(msg) == string.lower("LassoKillTrue") then LassoKill = true
  469. elseif string.lower(msg) == string.lower("LassoKillFalse") then
  470. LassoKill = false
  471.  
  472. end
  473. end)
  474.  
  475.  
  476.  
  477. Player.Chatted:connect(function(msg)
  478. if string.lower(msg) == string.lower("SmoothDraggingTrue") then SmoothDragging = true
  479. elseif string.lower(msg) == string.lower("SmoothDraggingFalse") then
  480. SmoothDragging = false
  481.  
  482. end
  483. end)
  484.  
  485.  
  486.  
  487. Player.Chatted:connect(function(msg)
  488. if string.lower(msg) == string.lower("BaseLockedTrue") then BaseLocked = true
  489. elseif string.lower(msg) == string.lower("BaseLockedFalse") then
  490. BaseLocked = false
  491.  
  492. end
  493. end)
  494.  
  495.  
  496. Player.Chatted:connect(function(msg)
  497. if string.lower(msg) == string.lower("SelectionBoxOn") then
  498. SelectionBoxOn = true
  499. end
  500. end)
  501.  
  502.  
  503. Player.Chatted:connect(function(msg)
  504. if string.lower(msg) == string.lower("SelectionBoxOff") then
  505. SelectionBoxOn = false
  506. end
  507. end)
  508.  
  509.  
  510. Player.Chatted:connect(function(msg)
  511. if string.lower(msg) == string.lower("Commands") then
  512. if Player.PlayerGui:FindFirstChild("Cmds") == nil then
  513. m = Instance.new("Hint",Player.PlayerGui)
  514. m.Name = "Cmds"
  515. m.Text = "X: Destroy Part"
  516. wait(3)
  517. m.Text = "P: Punish Player"
  518. wait(3)
  519. m.Text = "K: Kick Player"
  520. wait(3)
  521. m.Text = "H: Drain Player's Health"
  522. wait(3)
  523. m.Text = "U: Unanchor Part"
  524. wait(3)
  525. m.Text = "M: Move Player"
  526. wait(3)
  527. m.Text = "Q: Hide Self"
  528. wait(3)
  529. m.Text = "Ctrl: Control Player"
  530. wait(3)
  531. m.Text = "Alt: Drag Player"
  532. wait(3)
  533. m.Text = "F3,F4: Lasso Start/End"
  534. wait(3)
  535. m.Text = "DoubleClick: Show Properties"
  536. wait(3)
  537. m.Text = "Hold Mouse: Show Player Properties"
  538. wait(3)
  539. m.Text = "L: Lag Player"
  540. wait(3)
  541.  
  542. m.Text = "If the tool breaks, Unselect and Reselect the Tool."
  543. wait(3)
  544. m:Destroy()
  545. end
  546. end
  547. end)
  548.  
  549.  
  550. Player.Chatted:connect(function(msg)
  551. if string.lower(msg) == string.lower("Settings") then
  552. if Player.PlayerGui:FindFirstChild("Settings") == nil then
  553. m = Instance.new("Hint",Player.PlayerGui)
  554. m.Name = "Settings"
  555. m.Text = "Chat these to configurate the hopperbin."
  556. wait(3)
  557. m.Text = "SelectionBoxOn/Off"
  558. wait(3)
  559. m.Text = "Color/Color Name"
  560. wait(3)
  561. m.Text = "BaseLockedTrue/False"
  562. wait(3)
  563. m.Text = "SmoothDraggingTrue/False"
  564. wait(3)
  565. m.Text = "LassoKillTrue/False"
  566. wait(3)
  567. m.Text = "LassoSpeed/Speed"
  568. wait(3)
  569. m.Text = "DragSpeed/Speed"
  570. wait(3)
  571. m.Text = "DragKillTrue/False"
  572. wait(3)
  573.  
  574. m.Text = "If the tool breaks, Unselect and Reselect the Tool."
  575. wait(3)
  576. m:Destroy()
  577. end
  578. end
  579. end)
  580.  
  581.  
  582.  
  583.  
  584.  
  585.  
  586.  
  587.  
  588.  
  589.  
  590.  
  591. mouse.KeyDown:connect(function(key)
  592. if key == "\52" then
  593. alt = true
  594. if mouse.Target then
  595. t = mouse.Target
  596. if t.Parent:FindFirstChild("Humanoid") then
  597. print("Dragging")
  598. p = Instance.new("Part",Workspace)
  599. p.Anchored = true
  600. p.Transparency = 1;
  601. p.CFrame = CFrame.new(mouse.hit.X, 6, mouse.hit.Z)
  602. r = Instance.new("RocketPropulsion")
  603. r.Parent = t.Parent.Torso
  604. r.Target = p
  605. r.MaxThrust = 6000000
  606. r.MaxSpeed = DragSpeed
  607. r.CartoonFactor = 1
  608.  
  609.  
  610.  
  611. t.Parent.Torso.Touched:connect(function(hit)
  612. if hit.Parent:FindFirstChild("Humanoid") and
  613. DragKill == true
  614. and
  615. alt == true then
  616. hit.Parent:BreakJoints()
  617. end
  618. end)
  619.  
  620.  
  621. r:Fire()
  622. repeat
  623. wait()
  624. if SmoothDragging == false then
  625. p.CFrame = CFrame.new(mouse.hit.p)
  626. r.Target = p
  627. r:Fire()
  628. else
  629. p.CFrame = CFrame.new(mouse.hit.X, 5, mouse.hit.Z)
  630. r.Target = p
  631. r:Fire() end
  632.  
  633.  
  634.  
  635. until alt == false
  636. r:Destroy()
  637. p:Destroy()
  638.  
  639. end
  640. end
  641. end
  642. end)
  643.  
  644. mouse.KeyDown:connect(function(key)
  645. if key == "\28" then
  646. if mouse.Target then
  647. t = mouse.Target
  648. if t.Parent:FindFirstChild("Humanoid") then
  649. print("LassoStart")
  650. Lasso = Instance.new("SelectionPartLasso",Workspace)
  651. Player1 = t.Parent
  652. Lasso.Humanoid = Player1.Humanoid
  653.  
  654. end
  655. end
  656. end
  657. end)
  658.  
  659.  
  660. mouse.KeyDown:connect(function(key)
  661. if key == "\29" then
  662. if mouse.Target then
  663. t = mouse.Target
  664. if t.Parent:FindFirstChild("Humanoid") then
  665. print("LassoEnd")
  666.  
  667. Player2 = t.Parent
  668. Lasso.Part = t.Parent.Torso
  669. Player1.Humanoid.Sit = true
  670. Player2.Humanoid.Sit = true
  671. r1 = Instance.new("RocketPropulsion",Player1.Torso)
  672. r2 = Instance.new("RocketPropulsion",Player2.Torso)
  673. r1.MaxThrust = 6000000
  674. r2.MaxThrust = 6000000
  675. r1.CartoonFactor = 1
  676. r2.CartoonFactor = 1
  677. r1.Target = Player2.Torso
  678. r2.Target = Player1.Torso
  679. r1:Fire()
  680. r2:Fire()
  681. r1.MaxSpeed = LassoSpeed
  682. r2.MaxSpeed = LassoSpeed
  683. r1.ReachedTarget:connect(function()
  684.  
  685. Player1.Humanoid.Sit = true
  686. Player2.Humanoid.Sit = true
  687. if LassoKill == true then
  688. Player1.Humanoid.Health = 0
  689. Player2.Humanoid.Health = 0
  690. end
  691. Lasso:Destroy()
  692. r1:Destroy()
  693. r2:Destroy()
  694.  
  695.  
  696. end)
  697. end
  698. end
  699. end
  700. end)
  701.  
  702.  
  703. mouse.KeyUp:connect(function(key)
  704. if key == "\52" then
  705. alt = false
  706. print("Stopped Dragging")
  707. end
  708. end)
  709. mouse.KeyDown:connect(function(key)
  710. if key == "h" then
  711. print("Down")
  712. Down = true
  713. if mouse.Target then
  714. t = mouse.Target
  715.  
  716. if t.Parent:FindFirstChild("Humanoid") then
  717. h = t.Parent:FindFirstChild("Humanoid")
  718. repeat
  719. wait()
  720. h.Health = h.Health - 1
  721. print("Targets Health: "..(h.Health) )
  722. until h.Health < 1 or Down == false
  723. end
  724. end
  725. end
  726. end)
  727. mouse.KeyDown:connect(function()
  728.  
  729. end)
  730. mouse.KeyUp:connect(function(key)
  731. if key == "h" then
  732. print("Up")
  733. Down = false
  734. end
  735. end)
  736. mouse.Button1Down:connect(function()click(mouse) end)
  737. mouse.Button1Down:connect(function()holdmouse(mouse) end)
  738. mouse.Button1Up:connect(function()upmouse(mouse) end)
  739. end
  740. Bin.Selected:connect(selected)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement