Advertisement
Newwy

Untitled

Feb 7th, 2018
410
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.26 KB | None | 0 0
  1. me = game.Players.XXUNORIBOASXX
  2. hoppa = Instance.new("HopperBin")
  3. hoppa.Parent = me.Backpack
  4. hoppa.Name = "Steal"
  5. script.Parent = hoppa
  6. function selected(mouse, key)
  7. mouse.Button1Down:connect(function()
  8. if mouse.Target then
  9. local targ = mouse.Target
  10. if targ.Name == "Base" then return end
  11. local too = Instance.new("Tool")
  12. too.Parent = me.Backpack
  13. too.Name = targ.Name
  14. too.GripPos = Vector3.new(0,0,0)
  15. if targ.Size.Y >= 1 then
  16. too.GripPos = Vector3.new(0,-0.5,0)
  17. elseif targ.Size.Y >= 2 then
  18. too.GripPos = Vector3.new(0,-1,0)
  19. elseif targ.Size.Y >= 3 then
  20. too.GripPos = Vector3.new(0,-1.5,0)
  21. elseif targ.Size.Y >= 4 then
  22. too.GripPos = Vector3.new(0,-2,0)
  23. end
  24. local hand = targ
  25. hand.Name = "Handle"
  26. hand.Anchored = false
  27. hand.Parent = too
  28. hand.CanCollide = false
  29. local gee = false
  30. local function touch(hit)
  31. if gee == false then return end
  32. local hum = hit.Parent:findFirstChild("Humanoid")
  33. if hum ~= nil then
  34. hum:TakeDamage(math.random(5,10))
  35. end
  36. end
  37. hand.Touched:connect(touch)
  38. too.Equipped:connect(function()
  39. too.Activated:connect(function()
  40. gee = true
  41. local val = Instance.new("StringValue")
  42. val.Parent = too
  43. val.Name = "toolanim"
  44. val.Value = "Slash"
  45. wait(0.5)
  46. gee = false
  47. end)
  48. end)
  49. end
  50. end)
  51. end
  52.  
  53. script.Parent.Selected:connect(selected)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement