Advertisement
xx_g

Roblox Suicide Gun

Dec 1st, 2016
4,600
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.49 KB | None | 0 0
  1. game:GetObjects("rbxassetid://529550427")[1].Parent=game.Players.LocalPlayer.Backpack
  2. game.Players.LocalPlayer.Character.Humanoid:EquipTool(game.Players.LocalPlayer.Backpack.KYS)
  3. wait(0.1)
  4.  
  5. local prev
  6. local parts = game.Players.LocalPlayer.Character.KYS:GetChildren()
  7. for i = 1,#parts do
  8. if ((parts[i].className == "Part") or (parts[i].className == "SpawnLocation") or (parts[i].className == "WedgePart") or (parts[i].className == "Seat") or (parts[i].className == "TrussPart") or (parts[i].className == "VehicleSeat")) then
  9. if (prev ~= nil) then
  10. local weld = Instance.new("Weld")
  11. weld.Part0 = prev
  12. weld.Part1 = parts[i]
  13. weld.C0 = prev.CFrame:inverse()
  14. weld.C1 = parts[i].CFrame:inverse()
  15. weld.Parent = prev
  16. parts[i].Anchored = false
  17. end
  18. prev = parts[i]
  19. end
  20. end
  21.  
  22. Tool = game.Players.LocalPlayer.Character.KYS;
  23. local arms = nil
  24. local torso = nil
  25. local welds = {}
  26.  
  27. function Equip(mouse)
  28. wait(0.01)
  29. arms = {Tool.Parent:FindFirstChild("Left Arm"), Tool.Parent:FindFirstChild("Right Arm")}
  30. torso = Tool.Parent:FindFirstChild("Torso")
  31. if arms ~= nil and torso ~= nil then
  32. local sh = {torso:FindFirstChild("Left Shoulder"), torso:FindFirstChild("Right Shoulder")}
  33. if sh ~= nil then
  34. local yes = true
  35. if yes then
  36. yes = false
  37. sh[1].Part1 = nil
  38. sh[2].Part1 = nil
  39. local weld1 = Instance.new("Weld")
  40. weld1.Part0 = torso
  41. weld1.Parent = torso
  42. weld1.Part1 = arms[1]
  43. weld1.C1 = CFrame.new(1.4,0.6, 0.5) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(40), 0)
  44. welds[1] = weld1
  45. local weld2 = Instance.new("Weld")
  46. weld2.Part0 = torso
  47. weld2.Parent = torso
  48. weld2.Part1 = arms[2]
  49. weld2.C1 = CFrame.new(-1.5, 0.5, 0.5) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(-40), 0)
  50. welds[2] = weld2
  51. end
  52. else
  53. print("sh")
  54. end
  55. else
  56. print("arms")
  57. end
  58. end
  59.  
  60. function Unequip(mouse)
  61. if arms ~= nil and torso ~= nil then
  62. local sh = {torso:FindFirstChild("Left Shoulder"), torso:FindFirstChild("Right Shoulder")}
  63. if sh ~= nil then
  64. local yes = true
  65. if yes then
  66. yes = false
  67. sh[1].Part1 = arms[1]
  68. sh[2].Part1 = arms[2]
  69. welds[1].Parent = nil
  70. welds[2].Parent = nil
  71. end
  72. else
  73. print("sh")
  74. end
  75. else
  76. print("arms")
  77. end
  78. end
  79. Tool.Equipped:connect(Equip)
  80. Tool.Unequipped:connect(Unequip)
  81.  
  82. kek = game.Players.LocalPlayer.Character.KYS
  83. function Shoot()
  84. kek.SmokePart.Shoot:Play()
  85. kek.SmokePart.Transparency = 0.3
  86. game.Players.LocalPlayer.Character.Humanoid.Health = 0
  87. wait(.1)
  88. kek.SmokePart.Transparency = 1
  89. wait(2)
  90. kek:Remove()
  91. end
  92. kek.Activated:connect(Shoot)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement