Advertisement
lafur

Untitled

Jan 9th, 2019
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.20 KB | None | 0 0
  1. local plr = game:GetService("Players").LocalPlayer
  2. local char = plr.Character
  3. local hum = char:FindFirstChildOfClass("Humanoid")
  4. local mou = plr:GetMouse()
  5. local tor = char:FindFirstChild("Torso") or char:FindFirstChild("UpperTorso")
  6. local head = char:FindFirstChild("Head")
  7. local face = head:FindFirstChildOfClass("Decal")
  8. local neck = tor:FindFirstChild("Neck")
  9. local larm = char:FindFirstChild("Left Arm") or char:FindFirstChild("LeftUpperArm")
  10. local rarm = char:FindFirstChild("Right Arm") or char:FindFirstChild("RightUpperArm")
  11. local rleg = char:FindFirstChild("Right Leg") or char:FindFirstChild("RightUpperLeg")
  12. local lleg = char:FindFirstChild("Left Leg") or char:FindFirstChild("LeftUpperLeg")
  13. local ls = tor:FindFirstChild("Left Shoulder")
  14. local rs = tor:FindFirstChild("Right Shoulder")
  15. local punching = false
  16. local attack = false
  17. local out = false
  18.  
  19.  
  20.  
  21. char.Archivable = true
  22. local Schar = char:Clone()
  23. local Slarm = Schar:FindFirstChild("Left Arm")
  24. local Srarm = Schar:FindFirstChild("Right Arm")
  25. Schar.Parent = char
  26. Schar:MoveTo(tor.Position + Vector3.new(0, -5, 0))
  27. Schar.Name = char.Name.."'s (crappy) Stand"
  28. local Shum = Schar:FindFirstChildOfClass("Humanoid")
  29. local Stor = Schar:FindFirstChild("Torso") or Schar:FindFirstChild("UpperTorso")
  30. Stor.Anchored = true
  31. local Shead = Schar:FindFirstChild("Head")
  32. local Sface = Shead:FindFirstChildOfClass("Decal")
  33. Sface:Destroy()
  34. local Sls = Stor:FindFirstChild("Left Shoulder")
  35. local Srs = Stor:FindFirstChild("Right Shoulder")
  36. local Slleg = Schar:FindFirstChild("Left Leg")
  37. local Srleg = Schar:FindFirstChild("Right Leg")
  38. local Slsstart = Sls.C1
  39. local Srsstart = Srs.C1
  40. local Slsstart2 = Sls.C1 * CFrame.Angles(0, 0, math.rad(90))
  41. local Srsstart2 = Srs.C1 * CFrame.Angles(0, 0, math.rad(-90))
  42. local finish = tor.CFrame * CFrame.new(0, 1.5, 3)
  43. local finish2 = tor.CFrame * CFrame.new(0, 2, 3)
  44. local Slsfinish = Sls.C1 * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, math.rad(0))
  45. local Slsfinish2 = Sls.C1 * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, math.rad(0))
  46. local Srsfinish = Srs.C1 * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, math.rad(0))
  47. local Srsfinish2 = Srs.C1 * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, math.rad(0))
  48. Shead.CanCollide = false
  49. Stor.CanCollide = false
  50. Slarm.CanCollide = true
  51. Srarm.CanCollide = true
  52. char.Archivable = false
  53. for i,v in pairs(Schar:GetChildren()) do
  54. if v:IsA("Part") then
  55. v.Transparency = 0.0
  56. v.Material = "Neon"
  57. v.CanCollide = true
  58. end
  59. if v:IsA("Accessory") then
  60. v.Handle.Anchored = false
  61. end
  62. end
  63.  
  64.  
  65. function down(key)
  66. if key == "e" then
  67. punching = true
  68. wait()
  69. Sls.C1 = Slsstart2
  70. Srs.C1 = Srsstart2
  71. local aSlsstart = Sls.C1
  72. local aSrsstart = Srs.C1
  73. while punching == true do
  74. local hit1 = Slarm:GetConnectedParts()
  75. if hit1.Parent and hit1.Parent.Name ~= char.Name and hit1.Parent:FindFirstChildOfClass("Humanoid") then
  76. local owhum = hit1.Parent:FindFirstChild("Humanoid")
  77. owhum.Health = owhum.Health -10
  78. end
  79. local hit2 = Slarm:GetConnectedParts()
  80. if hit2.Parent and hit2.Parent.Name ~= char.Name and hit2.Parent:FindFirstChildOfClass("Humanoid") then
  81. local owhum2 = hit2.Parent:FindFirstChild("Humanoid")
  82. owhum2.Health = owhum2.Health -10
  83. end
  84. wait()
  85. attack = true
  86. finish2 = tor.CFrame * CFrame.new(0, 0.5, -4)
  87. finish = tor.CFrame * CFrame.new(0, 0.5, -4)
  88. Sls.C1 = aSlsstart * CFrame.new(1, 0, 0)
  89. Srs.C1 = aSrsstart
  90. wait()
  91. Sls.C1 = aSlsstart
  92. Srs.C1 = aSrsstart * CFrame.new(-1, 0, 0)
  93. wait()
  94. end
  95. wait()
  96. end
  97. end
  98.  
  99. function up(key)
  100. if key == "e" then
  101. punching = false
  102. wait()
  103. while punching == false do
  104. wait()
  105. attack = false
  106. Sls.C1 = Slsstart
  107. Srs.C1 = Srsstart
  108. Slsfinish = Slsstart
  109. Slsfinish2 = Slsstart
  110. Srsfinish = Srsstart
  111. Srsfinish2 = Srsstart
  112. finish2 = tor.CFrame * CFrame.new(0, 2.5, 3)
  113. finish = tor.CFrame * CFrame.new(0, 2.5, 3)
  114. end
  115. wait()
  116. end
  117. end
  118.  
  119. mou.KeyDown:connect(down)
  120. mou.KeyUp:connect(up)
  121.  
  122. while true do
  123. wait()
  124. for i = 0,1,.1 do
  125. local start = Stor.CFrame
  126. Stor.CFrame = start:lerp(finish, i)
  127. wait()
  128. end
  129. for i = 0,1,.1 do
  130. local start = Stor.CFrame
  131. Stor.CFrame = start:lerp(finish2, i)
  132. wait()
  133. end
  134. wait()
  135. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement