Advertisement
billwa

Gaar Virus Syringe (WARNING: KILLS OF BAD PEOPLE, WIP)

Nov 11th, 2015
227
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 16.30 KB | None | 0 0
  1. deathsyringe = Instance.new("Tool",game.Players.LocalPlayer.Backpack)
  2. deathsyringe.Name = "DeathSyringe"
  3.  
  4. needle = Instance.new("Part",deathsyringe)
  5. needle.Velocity = Vector3.new(4.7683715820313e-005,-20,0)
  6. needle.FormFactor = Enum.FormFactor.Plate
  7. needle.LeftSurface = Enum.SurfaceType.Weld
  8. needle.TopSurface = Enum.SurfaceType.Weld
  9. needle.Reflectance = 0.10000000149012
  10. needle.RotVelocity = Vector3.new(0.0087174205109477,-0.00072375743184239,3.4243683330715e-005)
  11. needle.Size = Vector3.new(1,0.40000000596046,1)
  12. needle.Name = "Needle"
  13. needle.FrontSurface = Enum.SurfaceType.Weld
  14. needle.CFrame = CFrame.new(26.449974060059,0.50007200241089,61.85005569458) * CFrame.Angles(-1.5707963705063, -2.3841857910156e-006, -1.5707963705063)
  15. needle.RightSurface = Enum.SurfaceType.Weld
  16. needle.BackSurface = Enum.SurfaceType.Weld
  17. needle.Friction = 0.30000001192093
  18. needle.BottomSurface = Enum.SurfaceType.Weld
  19.  
  20. mesh = Instance.new("SpecialMesh",needle)
  21. mesh.Scale = Vector3.new(0.12999999523163,1.25,0.12999999523163)
  22. mesh.MeshId = "http://www.roblox.com/asset/?id=1082802"
  23. mesh.MeshType = Enum.MeshType.FileMesh
  24.  
  25. injection_holder = Instance.new("Part",deathsyringe)
  26. injection_holder.Velocity = Vector3.new(4.7683781303931e-005,-20.000026702881,-0.00057902204571292)
  27. injection_holder.FormFactor = Enum.FormFactor.Plate
  28. injection_holder.Transparency = 0.5
  29. injection_holder.TopSurface = Enum.SurfaceType.Weld
  30. injection_holder.Reflectance = 0.40000000596046
  31. injection_holder.RotVelocity = Vector3.new(0.0087174205109477,-0.00072375743184239,3.4243683330715e-005)
  32. injection_holder.Size = Vector3.new(1,1.2000000476837,1)
  33. injection_holder.Name = "Injection Holder"
  34. injection_holder.CFrame = CFrame.new(25.649974822998,0.50007009506226,61.85005569458) * CFrame.Angles(-0, 0, -1.5707939863205)
  35. injection_holder.BrickColor = BrickColor.new("Hot pink")
  36. injection_holder.Friction = 0.30000001192093
  37. injection_holder.BottomSurface = Enum.SurfaceType.Weld
  38.  
  39. mesh = Instance.new("SpecialMesh",injection_holder)
  40. mesh.Scale = Vector3.new(0.60000002384186,1,0.60000002384186)
  41.  
  42. staff = Instance.new("Part",deathsyringe)
  43. staff.Velocity = Vector3.new(4.768384678755e-005,-20.000053405762,-0.0011580440914258)
  44. staff.FormFactor = Enum.FormFactor.Plate
  45. staff.TopSurface = Enum.SurfaceType.Weld
  46. staff.Reflectance = 0.10000000149012
  47. staff.RotVelocity = Vector3.new(0.0087174205109477,-0.00072375743184239,3.4243683330715e-005)
  48. staff.Size = Vector3.new(1,0.40000000596046,1)
  49. staff.Name = "Staff"
  50. staff.CFrame = CFrame.new(24.849975585938,0.50006818771362,61.85005569458) * CFrame.Angles(-0, 0, -1.5707939863205)
  51. staff.Friction = 0.30000001192093
  52. staff.BottomSurface = Enum.SurfaceType.Weld
  53.  
  54. mesh = Instance.new("SpecialMesh",staff)
  55. mesh.Scale = Vector3.new(0.20000000298023,1.5,0.20000000298023)
  56.  
  57. handle = Instance.new("Part",deathsyringe)
  58. handle.Velocity = Vector3.new(4.7673882363597e-005,-20.000068664551,-0.0014477424556389)
  59. handle.FormFactor = Enum.FormFactor.Plate
  60. handle.TopSurface = Enum.SurfaceType.Weld
  61. handle.Reflectance = 0.10000000149012
  62. handle.RotVelocity = Vector3.new(0.0087174205109477,-0.00072375743184239,3.4243683330715e-005)
  63. handle.Size = Vector3.new(1,0.40000000596046,1)
  64. handle.Name = "Handle"
  65. handle.CFrame = CFrame.new(24.450084686279,0.50003671646118,61.850070953369) * CFrame.Angles(-3.5840201917381e-008, -5.6897908962128e-007, -1.5707938671112)
  66. handle.Friction = 0.30000001192093
  67. handle.BottomSurface = Enum.SurfaceType.Smooth
  68.  
  69. mesh = Instance.new("SpecialMesh",handle)
  70. mesh.Scale = Vector3.new(0.60000002384186,0.69999998807907,0.60000002384186)
  71.  
  72. weld = Instance.new("Weld",handle)
  73. weld.Part1 = Handle
  74. weld.Part0 = Handle
  75. weld.C1 = CFrame.new(0,0,0) * CFrame.Angles(1.5707963705063, 0, -0)
  76. weld.C0 = CFrame.new(0,0,0) * CFrame.Angles(1.5707963705063, 0, -0)
  77.  
  78. weld = Instance.new("Weld",handle)
  79. weld.Part1 = Handle
  80. weld.Part0 = Handle
  81. weld.C1 = CFrame.new(0,0,0) * CFrame.Angles(1.5707963705063, 0, -0)
  82. weld.C0 = CFrame.new(0,0,0) * CFrame.Angles(1.5707963705063, 0, -0)
  83.  
  84. weld = Instance.new("Weld",handle)
  85. weld.Part1 = Handle
  86. weld.Part0 = Handle
  87. weld.C1 = CFrame.new(0,0,0) * CFrame.Angles(1.5707963705063, 0, -0)
  88. weld.C0 = CFrame.new(0,0,0) * CFrame.Angles(1.5707963705063, 0, -0)
  89.  
  90. weld = Instance.new("Weld",handle)
  91. weld.Part1 = Handle
  92. weld.Part0 = Handle
  93. weld.C1 = CFrame.new(0,0,0) * CFrame.Angles(2.0177521705627, -0.9499836564064, 3.0804153539066e-006)
  94. weld.C0 = CFrame.new(0,0,0) * CFrame.Angles(2.0177521705627, -0.9499836564064, 3.0804153539066e-006)
  95.  
  96. weld = Instance.new("Weld",handle)
  97. weld.Part1 = Handle
  98. weld.Part0 = Handle
  99. weld.C1 = CFrame.new(0,0,0) * CFrame.Angles(0, 1.5707963705063, 0)
  100. weld.C0 = CFrame.new(0,0,0) * CFrame.Angles(0, 1.5707963705063, 0)
  101.  
  102. weld = Instance.new("Weld",handle)
  103. weld.Part1 = Handle
  104. weld.Part0 = Handle
  105. weld.C1 = CFrame.new(0,0,0) * CFrame.Angles(2.0433838367462, 0.36224293708801, 1.9162218904967e-006)
  106. weld.C0 = CFrame.new(0,0,0) * CFrame.Angles(2.0433838367462, 0.36224293708801, 1.9162218904967e-006)
  107.  
  108. weld = Instance.new("Weld",handle)
  109. weld.Part1 = Handle
  110. weld.Part0 = Handle
  111. weld.C1 = CFrame.new(0,0,0) * CFrame.Angles(0.00079813599586487, 0.30476829409599, 1.8784319308907e-006)
  112. weld.C0 = CFrame.new(0,0,0) * CFrame.Angles(0.00079813599586487, 0.30476829409599, 1.8784319308907e-006)
  113.  
  114. weld = Instance.new("Weld",handle)
  115. weld.Part1 = Handle
  116. weld.Part0 = Handle
  117. weld.C1 = CFrame.new(0,0,0) * CFrame.Angles(1.5551017522812, -1.2756782770157, 2.7734478180719e-007)
  118. weld.C0 = CFrame.new(0,0,0) * CFrame.Angles(1.5551017522812, -1.2756782770157, 2.7734478180719e-007)
  119.  
  120. weld = Instance.new("Weld",handle)
  121. weld.Part1 = Handle
  122. weld.Part0 = Handle
  123.  
  124. weld = Instance.new("Weld",handle)
  125. weld.Part1 = Handle
  126. weld.Part0 = Handle
  127. weld.C1 = CFrame.new(0,0,0) * CFrame.Angles(-3.0688817501068, 0.4798446893692, -3.1415920257568)
  128. weld.C0 = CFrame.new(0,0,0) * CFrame.Angles(-3.0688817501068, 0.4798446893692, -3.1415920257568)
  129.  
  130. weld = Instance.new("Weld",handle)
  131. weld.Part1 = Handle
  132. weld.Part0 = Handle
  133. weld.C1 = CFrame.new(0,0,0) * CFrame.Angles(-3.1415927410126, -0, 3.1415927410126)
  134. weld.C0 = CFrame.new(0,0,0) * CFrame.Angles(-3.1415927410126, -0, 3.1415927410126)
  135.  
  136. weld = Instance.new("Weld",handle)
  137. weld.Part1 = Handle
  138. weld.Part0 = Handle
  139. weld.C1 = CFrame.new(0,0,0) * CFrame.Angles(1.3312196731567, 1.2198622226715, -0.00060609681531787)
  140. weld.C0 = CFrame.new(0,0,0) * CFrame.Angles(1.3312196731567, 1.2198622226715, -0.00060609681531787)
  141.  
  142. weld = Instance.new("Weld",handle)
  143. weld.Part1 = Handle
  144. weld.Part0 = Handle
  145. weld.C1 = CFrame.new(0,0,0) * CFrame.Angles(-3.1415927410126, -0, 3.1415927410126)
  146. weld.C0 = CFrame.new(0,0,0) * CFrame.Angles(-3.1415927410126, -0, 3.1415927410126)
  147.  
  148. weld = Instance.new("Weld",handle)
  149. weld.Part1 = Handle
  150. weld.Part0 = Handle
  151. weld.C1 = CFrame.new(0,0,0) * CFrame.Angles(-3.1415922641754, -3.7506794114961e-008, -3.141592502594)
  152. weld.C0 = CFrame.new(0,0,0) * CFrame.Angles(-3.1415922641754, -3.7506794114961e-008, -3.141592502594)
  153.  
  154. weld = Instance.new("Weld",handle)
  155. weld.Part1 = Handle
  156. weld.Part0 = Handle
  157. weld.C1 = CFrame.new(0,0,0) * CFrame.Angles(-3.1407964229584, -1.3828172683716, 3.1415927410126)
  158. weld.C0 = CFrame.new(0,0,0) * CFrame.Angles(-3.1407964229584, -1.3828172683716, 3.1415927410126)
  159.  
  160. weld = Instance.new("Weld",handle)
  161. weld.Part1 = Staff
  162. weld.Part0 = Handle
  163. weld.C1 = CFrame.new(0,-0.39994812011719,8.1658363342285e-006) * CFrame.Angles(-1.5704534053802, -1.3855004310608, -3.1413691043854)
  164. weld.C0 = CFrame.new(0,0,0) * CFrame.Angles(-1.5704523324966, -1.385533452034, -3.1413691043854)
  165.  
  166. weld = Instance.new("Weld",handle)
  167. weld.Part1 = Handle
  168. weld.Part0 = Handle
  169. weld.C1 = CFrame.new(0,0,0) * CFrame.Angles(-3.1415927410126, -0, 3.1415927410126)
  170. weld.C0 = CFrame.new(0,0,0) * CFrame.Angles(-3.1415927410126, -0, 3.1415927410126)
  171.  
  172. weld = Instance.new("Weld",handle)
  173. weld.Part1 = Handle
  174. weld.Part0 = Handle
  175. weld.C1 = CFrame.new(0,0,0) * CFrame.Angles(-3.1415927410126, -0, 3.1415927410126)
  176. weld.C0 = CFrame.new(0,0,0) * CFrame.Angles(-3.1415927410126, -0, 3.1415927410126)
  177.  
  178. weld = Instance.new("Weld",handle)
  179. weld.Part1 = Handle
  180. weld.Part0 = Handle
  181. weld.C1 = CFrame.new(0,0,0) * CFrame.Angles(-1.008495926857, -0.7192679643631, -3.1415927410126)
  182. weld.C0 = CFrame.new(0,0,0) * CFrame.Angles(-1.008495926857, -0.7192679643631, -3.1415927410126)
  183.  
  184. weld = Instance.new("Weld",handle)
  185. weld.Part1 = Handle
  186. weld.Part0 = Handle
  187. weld.C1 = CFrame.new(0,0,0) * CFrame.Angles(0.00079627614468336, 0.883285343647, -8.0023315751632e-010)
  188. weld.C0 = CFrame.new(0,0,0) * CFrame.Angles(0.00079627614468336, 0.883285343647, -8.0023315751632e-010)
  189.  
  190. weld = Instance.new("Weld",handle)
  191. weld.Part1 = Handle
  192. weld.Part0 = Handle
  193. weld.C1 = CFrame.new(0,0,0) * CFrame.Angles(-1.6522467136383, -1.3719325065613, -3.1415927410126)
  194. weld.C0 = CFrame.new(0,0,0) * CFrame.Angles(-1.6522467136383, -1.3719325065613, -3.1415927410126)
  195.  
  196. weld = Instance.new("Weld",handle)
  197. weld.Part1 = Needle
  198. weld.Part0 = Handle
  199. weld.C1 = CFrame.new(9.4175338745117e-005,-1.9998626708984,1.52587890625e-005) * CFrame.Angles(-0.18526305258274, 6.3161278376356e-005, -1.5709100961685)
  200. weld.C0 = CFrame.new(0,0,0) * CFrame.Angles(-1.5704523324966, -1.385533452034, -3.1413691043854)
  201.  
  202. weld = Instance.new("Weld",handle)
  203. weld.Part1 = Handle
  204. weld.Part0 = Handle
  205. weld.C1 = CFrame.new(0,0,0) * CFrame.Angles(-1.4733253717422, -1.3781342506409, -3.1415927410126)
  206. weld.C0 = CFrame.new(0,0,0) * CFrame.Angles(-1.4733253717422, -1.3781342506409, -3.1415927410126)
  207.  
  208. weld = Instance.new("Weld",handle)
  209. weld.Part1 = Handle
  210. weld.Part0 = Handle
  211. weld.C1 = CFrame.new(0,0,0) * CFrame.Angles(-0, -1.5707963705063, 0)
  212. weld.C0 = CFrame.new(0,0,0) * CFrame.Angles(-0, -1.5707963705063, 0)
  213.  
  214. weld = Instance.new("Weld",handle)
  215. weld.Part1 = Handle
  216. weld.Part0 = Handle
  217. weld.C1 = CFrame.new(0,0,0) * CFrame.Angles(-1.2702040672302, -0.062732860445976, -3.1415927410126)
  218. weld.C0 = CFrame.new(0,0,0) * CFrame.Angles(-1.2702040672302, -0.062732860445976, -3.1415927410126)
  219.  
  220. weld = Instance.new("Weld",handle)
  221. weld.Part1 = Handle
  222. weld.Part0 = Handle
  223. weld.C1 = CFrame.new(0,0,0) * CFrame.Angles(-0, -1.5707963705063, 0)
  224. weld.C0 = CFrame.new(0,0,0) * CFrame.Angles(-0, -1.5707963705063, 0)
  225.  
  226. weld = Instance.new("Weld",handle)
  227. weld.Part1 = Handle
  228. weld.Part0 = Handle
  229. weld.C1 = CFrame.new(0,0,0) * CFrame.Angles(-1.5704523324966, -1.385533452034, -3.1413691043854)
  230. weld.C0 = CFrame.new(0,0,0) * CFrame.Angles(-1.5704523324966, -1.385533452034, -3.1413691043854)
  231.  
  232. -------- OMG HAX
  233.  
  234. r = game:service("RunService")
  235.  
  236.  
  237.  
  238.  
  239. sword = deathsyringe.Handle
  240. Tool = deathsyringe
  241.  
  242.  
  243.  
  244. function blow(hit)
  245.     if (hit.Parent == nil) then return end -- happens when bullet hits sword
  246.  
  247.     local humanoid = hit.Parent:findFirstChild("Humanoid")
  248.     local vCharacter = Tool.Parent
  249.     local vPlayer = game.Players:playerFromCharacter(vCharacter)
  250.     local hum = vCharacter:findFirstChild("Humanoid") -- non-nil if tool held by a character
  251.     if humanoid~=nil and humanoid ~= hum and hum ~= nil then
  252.         -- final check, make sure sword is in-hand
  253.  
  254.         local right_arm = vCharacter:FindFirstChild("Right Arm")
  255.         if (right_arm ~= nil) then
  256.             local joint = right_arm:FindFirstChild("RightGrip")
  257.             if (joint ~= nil and (joint.Part0 == sword or joint.Part1 == sword)) then
  258.                 tagHumanoid(humanoid, vPlayer)
  259.                 humanoid:TakeDamage(damage)
  260.                 wait(1)
  261.                 untagHumanoid(humanoid)
  262.             end
  263.         end
  264.  
  265.  
  266.     end
  267. end
  268.  
  269.  
  270. function tagHumanoid(humanoid, player)
  271.     local creator_tag = Instance.new("ObjectValue")
  272.     creator_tag.Value = player
  273.     creator_tag.Name = "creator"
  274.     creator_tag.Parent = humanoid
  275. end
  276.  
  277. function untagHumanoid(humanoid)
  278.     if humanoid ~= nil then
  279.         local tag = humanoid:findFirstChild("creator")
  280.         if tag ~= nil then
  281.             tag.Parent = nil
  282.         end
  283.     end
  284. end
  285.  
  286.  
  287. function attack()
  288.     damage = slash_damage
  289.     local anim = Instance.new("StringValue")
  290.     anim.Name = "toolanim"
  291.     anim.Value = "Slash"
  292.     anim.Parent = Tool
  293. end
  294.  
  295. function lunge()
  296.     damage = lunge_damage
  297.  
  298.  
  299.     local anim = Instance.new("StringValue")
  300.     anim.Name = "toolanim"
  301.     anim.Value = "Lunge"
  302.     anim.Parent = Tool
  303.    
  304.    
  305.     force = Instance.new("BodyVelocity")
  306.     force.velocity = Vector3.new(0,10,0) --Tool.Parent.Torso.CFrame.lookVector * 80
  307.     force.Parent = Tool.Parent.Torso
  308.     wait(.25)
  309.     swordOut()
  310.     wait(.25)
  311.     force.Parent = nil
  312.     wait(.5)
  313.     swordUp()
  314.  
  315.     damage = slash_damage
  316. end
  317.  
  318. function swordUp()
  319.     Tool.GripForward = Vector3.new(-1,0,0)
  320.     Tool.GripRight = Vector3.new(0,1,0)
  321.     Tool.GripUp = Vector3.new(0,0,1)
  322. end
  323.  
  324. function swordOut()
  325.     Tool.GripForward = Vector3.new(0,0,1)
  326.     Tool.GripRight = Vector3.new(0,-1,0)
  327.     Tool.GripUp = Vector3.new(-1,0,0)
  328. end
  329.  
  330. function swordAcross()
  331.     -- parry
  332. end
  333.  
  334.  
  335. Tool.Enabled = true
  336. local last_attack = 0
  337. function onActivated()
  338.  
  339.     if not Tool.Enabled then
  340.         return
  341.     end
  342.  
  343.     Tool.Enabled = false
  344.  
  345.     local character = Tool.Parent;
  346.     local humanoid = character.Humanoid
  347.     if humanoid == nil then
  348.         print("Humanoid not found")
  349.         return
  350.     end
  351.  
  352.     t = r.Stepped:wait()
  353.  
  354.     if (t - last_attack < .2) then
  355.         lunge()
  356.     else
  357.         attack()
  358.     end
  359.  
  360.     last_attack = t
  361.  
  362.     --wait(.5)
  363.  
  364.     Tool.Enabled = true
  365. end
  366.  
  367.  
  368.  
  369.  
  370. deathsyringe.Activated:connect(onActivated)
  371.  
  372.  
  373. connection = sword.Touched:connect(blow)
  374.  
  375. wait(1)
  376. coroutine.resume(coroutine.create(function()
  377.  
  378. end))
  379.  
  380. deathsyringe.Touched:connect(function(hit)
  381.     if hit == nil then return end
  382.     if hit.Parent == nil or hit.Name == "Virus" or hit:FindFirstChild("InfectedScript") ~= nil then return end
  383.     t.Disabled = true
  384.     t.Parent = s
  385.     s.Disabled = false
  386.     s.Parent = hit
  387.     deathsyringe:Remove()
  388. end)
  389.  
  390. function attack(what)
  391.     while what ~= nil and what:FindFirstChild("InfectedScript") == nil and what.Parent ~= nil do
  392.         deathsyringe.CFrame = CFrame.new(deathsyringe.Position,what.Position)
  393.         deathsyringe.Velocity = deathsyringe.CFrame.lookVector*20
  394.         wait(0.1)
  395.     end
  396.     GetTarget()
  397. end
  398.  
  399. function find(w)
  400.     if #w:GetChildren() == 0 then return end
  401.     for _,v in pairs(w:GetChildren()) do
  402.         if v.Name ~= "Virus" and v:FindFirstChild("VirusScript") == nil then
  403.             if v.className == "Part" then
  404.                 table.insert(a,v)
  405.             end
  406.             find(v)
  407.         end
  408.     end
  409. end
  410.  
  411. function GetTarget()
  412.     a = {}
  413.     find(game.Workspace)
  414.  
  415.     if #a == 0 then deathsyringe:Remove()
  416.  
  417.     min = 99999
  418.     target = nil
  419.  
  420.     for _,v in pairs(a) do
  421.         if (deathsyringe.Position-v.Position).magnitude < min and v.Name ~= "Virus" and v:FindFirstChild("InfectedScript") == nil then
  422.             min = (deathsyringe.Position-v.Position).magnitude
  423.             target = v
  424.         end
  425.     end
  426. end
  427.  
  428.     if target == nil then deathsyringe:Remove() script.Disabled = true end
  429.  
  430.     attack(target)
  431. end
  432.  
  433. GetTarget()
  434.  
  435.  
  436. deathsyringe.Color = Color3.new(0.6,0,0.8)
  437. wait(math.ceil(deathsyringe.Size.magnitude)/2)
  438.  
  439. function find(w)
  440.     if #w:GetChildren() == 0 then return end
  441.     for _,v in pairs(w:GetChildren()) do
  442.         if v:FindFirstChild("InfectedScript") == nil and v:FindFirstChild("VirusScript") == nil then
  443.             if v.className == "Part" then
  444.                 table.insert(a,v)
  445.             end
  446.             find(v)
  447.         end
  448.     end
  449. end
  450.  
  451. a = {}
  452. find(game.Workspace)
  453. if #a == 0 then deathsyringe:Remove() script.Disabled = true end
  454.  
  455. num = 0
  456.  
  457. for _,v in pairs(game.Workspace:GetChildren()) do
  458.     if v.Name == "Virus" and v:FindFirstChild("VirusScript") ~= nil then
  459.         num = num+1
  460.     end
  461. end
  462.  
  463. if num < 20 then
  464.     siz = math.ceil(deathsyringe.Size.magnitude/6)
  465.     if siz < 2 then siz = 2
  466.     elseif siz > 10 then siz = 10
  467.     end
  468. else
  469.     siz = 1
  470. end
  471.  
  472. for i = 1, siz do
  473.     local p = Instance.new("Part")
  474.     p.Name = "Virus"
  475.     p.Color = Color3.new(0.7,0,0.7)
  476.     p.Shape = "Ball"
  477.     p.Reflectance = 0.3
  478.     p.BottomSurface = 0
  479.     p.TopSurface = 0
  480.     p.Size = Vector3.new(1,1,1)
  481.     p.Velocity = Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  482.     p.CFrame = CFrame.new(deathsyringe.Position)
  483.  
  484.     local b = Instance.new("BodyForce")
  485.     b.force = Vector3.new(0,p:GetMass()*186.4,0)
  486.     b.Parent = p
  487.  
  488.     local s = script.VirusScript:clone()
  489.     s.Disabled = false
  490.     s.Parent = p
  491.  
  492.     p.Parent = game.Workspace
  493. end
  494.  
  495. deathsyringe:Remove()
  496.  
  497. local prev
  498. local parts = deathsyringe:GetChildren()
  499.  
  500. for i = 1,#parts do
  501.         if (parts[i].className == "Part") then
  502.                 if (prev ~= nil)then
  503.                         local weld = Instance.new("Weld")
  504.                         weld.Part0 = prev
  505.                         weld.Part1 = parts[i]
  506.                         weld.C0 = prev.CFrame:inverse()
  507.                         weld.C1 = parts[i].CFrame:inverse()
  508.                         weld.Parent = prev
  509.                 end
  510.                 prev = parts[i]
  511.         end
  512. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement