Advertisement
Guest User

Untitled

a guest
Mar 14th, 2015
336
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.72 KB | None | 0 0
  1. repeat wait() until game.Players.LocalPlayer
  2. --------------------------------------------------------------
  3. --Global Variables:
  4. --------------------------------------------------------------
  5. sp = script.Parent
  6. player = game.Players.LocalPlayer
  7. c = player.Character
  8. necko = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  9. tool = script.Parent
  10. handle = script.Parent.Handle
  11. knife = script.Parent.Knife
  12. debounce = false
  13. --------------------------------------------------------------
  14. --Creating the arms function
  15. --------------------------------------------------------------
  16. function makearms()
  17. ------- Weld the knife ------
  18. local w = Instance.new("Weld")
  19. w.Part0 = handle
  20. w.Part1 = knife
  21. w.C0 = CFrame.new(0, 1, 0)
  22. w.C1 = CFrame.new()
  23. w.Parent = handle
  24. -----------------------------
  25. local Player = game:GetService("Players").LocalPlayer
  26. local Cam = game.Workspace.CurrentCamera
  27. local Arms = Instance.new("Model")
  28. Arms.Name = "Arms"
  29. Arms.Parent = Cam
  30. -- scanning player info
  31. local Humanoid = Instance.new("Humanoid")
  32. Humanoid.MaxHealth = 0
  33. Humanoid.Health = 0
  34. Humanoid.Name = ""
  35. Humanoid.Parent = Arms
  36. --Packages bro
  37. for i,v in ipairs(Player.Character:GetChildren()) do
  38. if v.className == "CharacterMesh" or v.className == "Shirt" or v.className == "Pants" then
  39. baws = v:clone()
  40. baws.Parent = Arms
  41. else
  42. end
  43. end
  44. --done scanning and adding
  45.  
  46. -- Making Right Arm
  47. local RightArm = c:FindFirstChild("Right Arm"):clone()
  48. RightArm.Name = "Right Arm"
  49. RightArm.Transparency = 0
  50. RightArm.CanCollide = false
  51. RightArm.TopSurface = 0
  52. RightArm.BottomSurface = 0
  53. -- Welding Right Arm
  54. local w = Instance.new("Weld")
  55. w.Part0 = RightArm
  56. w.Part1 = c:FindFirstChild("Right Arm")
  57. w.C0 = CFrame.new()
  58. w.C1 = CFrame.new()
  59. w.Parent = RightArm
  60. RightArm.Parent = Arms
  61. -- Making Left Arm
  62. local LeftArm = c:FindFirstChild("Left Arm"):clone()
  63. LeftArm.Name = "Left Arm"
  64. LeftArm.Transparency = 0
  65. LeftArm.CanCollide = false
  66. LeftArm.TopSurface = 0
  67. LeftArm.BottomSurface = 0
  68. -- Welding Left Arm
  69. local w = Instance.new("Weld")
  70. w.Part0 = LeftArm
  71. w.Part1 = c:FindFirstChild("Left Arm")
  72. w.C0 = CFrame.new()
  73. w.C1 = CFrame.new()
  74. w.Parent = LeftArm
  75. LeftArm.Parent = Arms
  76. -- Making Left Leg
  77. local LeftLeg = c:FindFirstChild("Left Leg"):clone()
  78. LeftLeg.Name = "Left Leg"
  79. LeftLeg.Transparency = 0
  80. LeftLeg.CanCollide = false
  81. LeftLeg.TopSurface = 0
  82. LeftLeg.BottomSurface = 0
  83. -- Welding Left Leg
  84. local w = Instance.new("Weld")
  85. w.Part0 = LeftLeg
  86. w.Part1 = c:FindFirstChild("Left Leg")
  87. w.C0 = CFrame.new()
  88. w.C1 = CFrame.new()
  89. w.Parent = LeftLeg
  90. LeftLeg.Parent = Arms
  91. -- Making Right Leg
  92. local LeftLeg = c:FindFirstChild("Right Leg"):clone()
  93. LeftLeg.Name = "Right Leg"
  94. LeftLeg.Transparency = 0
  95. LeftLeg.CanCollide = false
  96. LeftLeg.TopSurface = 0
  97. LeftLeg.BottomSurface = 0
  98. -- Welding Right Leg
  99. local w = Instance.new("Weld")
  100. w.Part0 = LeftLeg
  101. w.Part1 = c:FindFirstChild("Right Leg")
  102. w.C0 = CFrame.new()
  103. w.C1 = CFrame.new()
  104. w.Parent = LeftLeg
  105. LeftLeg.Parent = Arms
  106. end
  107. --------------------------------------------------------------
  108. --User Controls
  109. --------------------------------------------------------------
  110. function equippedtool()
  111. if debounce == false then
  112. debounce = true
  113. makearms()
  114. debounce = false
  115. end
  116. end
  117.  
  118. function unequippedtool(mouse)
  119. local Player = game:GetService("Players").LocalPlayer
  120. local Cam = script.Parent
  121. local neck = c.Torso.Neck
  122. neck.C0 = necko * CFrame.fromEulerAnglesXYZ(0,0,0)
  123. for _, Model in pairs(game.Workspace.CurrentCamera:GetChildren()) do
  124. if Model.Name == "Arms" then
  125. Model:remove()
  126. else end
  127. end
  128. end
  129.  
  130. tool.Unequipped:connect(unequippedtool)
  131. tool.Equipped:connect(equippedtool)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement