tcull48

leash

Jan 8th, 2021 (edited)
24
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.18 KB | None | 0 0
  1. --Converted with ttyyuu12345's model to script plugin v4
  2. function sandbox(var,func)
  3. local env = getfenv(func)
  4. local newenv = setmetatable({},{
  5. __index = function(self,k)
  6. if k=="script" then
  7. return var
  8. else
  9. return env[k]
  10. end
  11. end,
  12. })
  13. setfenv(func,newenv)
  14. return func
  15. end
  16. cors = {}
  17. mas = Instance.new("Model",game:GetService("Lighting"))
  18. WeldConstraint0 = Instance.new("WeldConstraint")
  19. Script1 = Instance.new("Script")
  20. Part2 = Instance.new("Part")
  21. Tool3 = Instance.new("Tool")
  22. Script4 = Instance.new("Script")
  23. Part5 = Instance.new("Part")
  24. WeldConstraint6 = Instance.new("WeldConstraint")
  25. Part7 = Instance.new("Part")
  26. Part8 = Instance.new("Part")
  27. WeldConstraint9 = Instance.new("WeldConstraint")
  28. WeldConstraint9.Parent = Part8
  29. WeldConstraint9.Part0 = Part8
  30. WeldConstraint9.Part1 = Part7
  31. Script4.Parent = Tool3
  32. Part7.Name = "Parttotouch"
  33. Part7.Parent = Tool3
  34. Part7.CFrame = CFrame.new(0, 0.500003994, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  35. Part7.Position = Vector3.new(0, 0.500003994, 0)
  36. Part7.Transparency = 1
  37. Part7.Size = Vector3.new(1.20000005, 1, 1.60000002)
  38. Part7.BottomSurface = Enum.SurfaceType.Smooth
  39. Part7.TopSurface = Enum.SurfaceType.Smooth
  40. Tool3.Name = "Leash"
  41. Tool3.Parent = owner.Backpack
  42.  
  43. Part8.Name = "Handle"
  44. Part8.Parent = Tool3
  45. Part8.CFrame = CFrame.new(0, 0.500003815, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  46. Part8.Position = Vector3.new(0, 0.500003815, 0)
  47. Part8.Transparency = 1
  48. Part8.Size = Vector3.new(1.20000005, 1, 1.60000002)
  49. Part8.BottomSurface = Enum.SurfaceType.Smooth
  50. Part8.TopSurface = Enum.SurfaceType.Smooth
  51. WeldConstraint9.Parent = Part8
  52. WeldConstraint9.Part0 = Part8
  53. WeldConstraint9.Part1 = Part7
  54. Part7.Name = "Parttotouch"
  55. Part7.Parent = Tool3
  56. Part7.CFrame = CFrame.new(0, 0.500003994, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  57. Part7.Position = Vector3.new(0, 0.500003994, 0)
  58. Part7.Transparency = 1
  59. Part7.Size = Vector3.new(1.20000005, 1, 1.60000002)
  60. Part7.BottomSurface = Enum.SurfaceType.Smooth
  61. Part7.TopSurface = Enum.SurfaceType.Smooth
  62. Part8.Name = "Handle"
  63. Part8.Parent = Tool3
  64. Part8.CFrame = CFrame.new(0, 0.500003815, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  65. Part8.Position = Vector3.new(0, 0.500003815, 0)
  66. Part8.Transparency = 1
  67. Part8.Size = Vector3.new(1.20000005, 1, 1.60000002)
  68. Part8.BottomSurface = Enum.SurfaceType.Smooth
  69. Part8.TopSurface = Enum.SurfaceType.Smooth
  70. WeldConstraint9.Parent = Part8
  71. WeldConstraint9.Part0 = Part8
  72. WeldConstraint9.Part1 = Part7
  73.  
  74. NS([[tool = script.Parent
  75. local debounce = false
  76.  
  77. tool.Activated:Connect(function()
  78. if not debounce then
  79. debounce = true
  80.  
  81. local part = script.Parent.Parttotouch
  82. local function onPartTouched(otherPart)
  83. local ropeeee = Instance.new("RopeConstraint", workspace)
  84. local attaty1 = Instance.new("Attachment", otherPart)
  85. local attaty2 = Instance.new("Attachment", part)
  86. ropeeee.Attachment0 = attaty1
  87. ropeeee.Attachment1 = attaty2
  88. ropeeee.Length = 10
  89. ropeeee.Visible = true
  90. wait(5)
  91. debounce = false
  92. end
  93.  
  94. part.Touched:Connect(onPartTouched)
  95. end
  96. end)]],Tool3)
  97.  
  98.  
  99.  
  100. for i,v in pairs(mas:GetChildren()) do
  101. v.Parent = workspace
  102. pcall(function() v:MakeJoints() end)
  103. end
  104. mas:Destroy()
  105. for i,v in pairs(cors) do
  106. spawn(function()
  107. pcall(v)
  108. end)
  109. end
  110.  
Add Comment
Please, Sign In to add comment