Advertisement
Aeyao

3209riweui839reiugjhre9igjie9rgjhnrfgiminwee3wraft4ewds

Feb 23rd, 2019
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.32 KB | None | 0 0
  1. local rem = NS([[wait(1)
  2.  
  3. local p = game.Players.asbuff
  4. repeat wait() until p.Character
  5. local c = p.Character
  6.  
  7. local rs = c.Torso:WaitForChild("Right Shoulder")
  8. local ls = c.Torso:WaitForChild("Left Shoulder")
  9. local rl = c.Torso:WaitForChild("Right Hip")
  10. local ll = c.Torso:WaitForChild("Left Hip")
  11. local ra = c.HumanoidRootPart:WaitForChild("RootJoint")
  12. local raco = ra.C0
  13.  
  14. local hum = c.Humanoid
  15. local rarm = c:WaitForChild("Right Arm")
  16. local rp = c:WaitForChild("HumanoidRootPart")
  17. local torso = c.Torso
  18.  
  19. c:WaitForChild("Animate"):Destroy()
  20.  
  21. local re = Instance.new("RemoteEvent",script)
  22. re.Name = "MINECRAFTASBUFF"
  23.  
  24. local hitoffset = CFrame.new()
  25. local rpoffset = CFrame.new()
  26.  
  27. local diamondsword = Instance.new("Part")
  28. diamondsword.Name = "sword"
  29. diamondsword.Color = Color3.new(.1,.6,1)
  30. diamondsword.Material = "Glass"
  31. local weld = Instance.new("Weld",diamondsword)
  32. weld.Part0 = diamondsword
  33. weld.Part1 = rarm
  34. diamondsword.CanCollide = false
  35. local mesh = Instance.new("SpecialMesh",diamondsword)
  36. mesh.MeshId = "rbxassetid://430286233"
  37. mesh.Scale = Vector3.new(.07,.07,.07)
  38. diamondsword.Size = Vector3.new(3.28, 0.05, 3.1)
  39. diamondsword.Parent = c
  40.  
  41. local hsound = Instance.new("Sound",rp)
  42. hsound.SoundId = "rbxassetid://958257111"
  43.  
  44. local hsound2 = Instance.new("Sound",rp)
  45. hsound2.SoundId = "rbxassetid://160432334"
  46.  
  47. local rbodycols = c["Body Colors"]:Clone()
  48. local hbodycols = c["Body Colors"]:Clone()
  49. hbodycols.HeadColor = BrickColor.new("Really red")
  50. hbodycols.LeftArmColor = BrickColor.new("Really red")
  51. hbodycols.RightArmColor = BrickColor.new("Really red")
  52. hbodycols.LeftLegColor = BrickColor.new("Really red")
  53. hbodycols.RightLegColor = BrickColor.new("Really red")
  54.  
  55. local bcols = c["Body Colors"]
  56.  
  57. weld.C0 = CFrame.new(-.1,0,-1.5)*CFrame.Angles(0,(-math.pi/2)-.7,math.pi/2)
  58.  
  59.  
  60.  
  61. local step = game:GetService("RunService").Stepped
  62.  
  63. local lwalk = 0
  64. local rwalk = 0
  65.  
  66. local wtick = 0
  67.  
  68. local attacking = false
  69.  
  70. local animplaying = false
  71.  
  72. local anim = {}
  73. function anim.playanim()
  74. local self = {}
  75. self.stopping = false
  76. function self:stop()
  77. self.stopping = true
  78. end
  79. function self:play()
  80. local old = hitoffset
  81. for i = 1,5 do
  82. if self.stopping == false then
  83. hitoffset = hitoffset:lerp(CFrame.Angles(3,-.1,1),.4)
  84. rpoffset = rpoffset:lerp(CFrame.Angles(0,0,-.2),.4)
  85. step:wait()
  86. end
  87. end
  88. old = hitoffset
  89. for i = 1,5 do
  90. if self.stopping == false then
  91. hitoffset = hitoffset:lerp(CFrame.Angles(1.5,.4,-.5),.4)
  92. rpoffset = rpoffset:lerp(CFrame.Angles(0,0,.2),.4)
  93. step:wait()
  94. end
  95. end
  96. old = hitoffset
  97. for i = 1,5 do
  98. if self.stopping == false then
  99. hitoffset = hitoffset:lerp(CFrame.Angles(0,0,0),.4)
  100. rpoffset = rpoffset:lerp(CFrame.Angles(0,0,0),.4)
  101. step:wait()
  102. end
  103. end
  104. old = hitoffset
  105. return self.stopping
  106. end
  107. return self
  108. end
  109.  
  110. function attack(part,v)
  111. if part.Parent:FindFirstChildOfClass("Humanoid") then
  112. part.Parent:FindFirstChildOfClass("Humanoid").Health = part.Parent:FindFirstChildOfClass("Humanoid").Health - 40
  113. part.Velocity = (v*50)+Vector3.new(0,50,0)
  114. hsound2:Play()
  115. if math.random()>.5 then
  116. part:Destroy()
  117. end
  118. end
  119. end
  120.  
  121. local canim = nil
  122.  
  123. local damaged = false
  124. function dmg()
  125. hsound:Play()
  126. re:FireAllClients("damage")
  127. end
  128.  
  129. local healing = false
  130. re.OnServerEvent:connect(function(plr,w,p,d)
  131. if w == "damage" then
  132. attack(p,d)
  133. elseif w == "heal" then
  134.  
  135. hum.MaxHealth = 4000
  136. healing = not healing
  137. else
  138. if canim then canim:stop() end
  139. attacking = true
  140. canim = anim.playanim()
  141. print("ok")
  142. local stopped = canim:play()
  143. print("yes")
  144. attacking = stopped
  145. end
  146. end)
  147.  
  148. local oh = 100
  149.  
  150. hum.Changed:connect(function()
  151.  
  152. end)
  153. local tock = 0
  154. step:connect(function()
  155. if healing then
  156. hum.Health = hum.Health + 100
  157. end
  158.  
  159. if hum.Health < oh then
  160. print("damaged")
  161. bcols.HeadColor = BrickColor.new("Really red")
  162. bcols.LeftArmColor = BrickColor.new("Really red")
  163. bcols.RightArmColor = BrickColor.new("Really red")
  164. bcols.LeftLegColor = BrickColor.new("Really red")
  165. bcols.RightLegColor = BrickColor.new("Really red")
  166. bcols.TorsoColor = BrickColor.new("Really red")
  167. tock = tick()+.1
  168. oh = hum.Health
  169. dmg()
  170. --damaged = true
  171. else
  172. if tock<tick() then
  173. bcols.HeadColor = rbodycols.HeadColor
  174. bcols.LeftArmColor = rbodycols.LeftArmColor
  175. bcols.RightArmColor = rbodycols.RightArmColor
  176. bcols.LeftLegColor = rbodycols.LeftLegColor
  177. bcols.RightLegColor = rbodycols.RightLegColor
  178. bcols.TorsoColor = rbodycols.TorsoColor
  179. end
  180. -- damaged = false
  181. end
  182.  
  183. rs.C1 = CFrame.new()
  184. ls.C1 = CFrame.new()
  185. rl.C1 = CFrame.new()
  186. ll.C1 = CFrame.new()
  187.  
  188. rl.C0 = CFrame.new(.5,-1,0)*CFrame.Angles(rwalk,0,0)*CFrame.new(0,-1,0)
  189. ll.C0 = CFrame.new(-.5,-1,0)*CFrame.Angles(lwalk,0,0)*CFrame.new(0,-1,0)
  190.  
  191. ls.C0 = CFrame.new(-1.5,.5,0)*CFrame.Angles(rwalk,0,0)*CFrame.new(0,-.5,0)
  192.  
  193. if attacking == false then
  194. rs.C0 = CFrame.new(1.5,.5,0)*CFrame.Angles(lwalk,0,0)*CFrame.new(0,-.5,0)
  195. ra.C0 = ra.C0:lerp(raco,.4)
  196. else
  197. rs.C0 = rs.C0:lerp(CFrame.new(1.5,.5,0)*hitoffset*CFrame.new(0,-.5,0),.7)
  198. ra.C0 = ra.C0:lerp(raco*rpoffset,.4)
  199. end
  200. if attacking == false then
  201. hitoffset = hitoffset:lerp(CFrame.new(),.1)
  202. end
  203.  
  204. local vel = Vector3.new(rp.Velocity.x,0,rp.Velocity.z).magnitude
  205. wtick = wtick + vel*0.015
  206. if vel>0.1 then
  207. rwalk = math.sin(wtick)*.9
  208. lwalk = math.sin(wtick+math.pi)*.9
  209. else
  210. rwalk = rwalk/2
  211. lwalk = lwalk/2
  212. end
  213.  
  214.  
  215. end)
  216.  
  217.  
  218. ]], owner.Character):WaitForChild("MINECRAFTASBUFF")
  219.  
  220.  
  221. wait(1)
  222. local p = game.Players.LocalPlayer
  223. local c = p.Character
  224. local hum = c.Humanoid
  225. local torso = c.Torso
  226. local cam = workspace.CurrentCamera
  227.  
  228. for i,v in next,hum:GetPlayingAnimationTracks() do
  229. v:Stop()
  230. end
  231.  
  232. local uip = game:GetService("UserInputService")
  233.  
  234. rem.OnClientEvent:connect(function(thing)
  235. if thing == "damage" then
  236. print("heck")
  237. torso.Velocity = torso.Velocity + Vector3.new(0,30,0)
  238. end
  239. end)
  240.  
  241. uip.InputBegan:connect(function(a,b)
  242. if not b then
  243. if a.UserInputType == Enum.UserInputType.MouseButton1 then
  244. rem:FireServer("atk")
  245. local h = workspace:FindPartOnRayWithIgnoreList(Ray.new(cam.CFrame.p,cam.CFrame.LookVector*9),{c})
  246.  
  247. if h then rem:FireServer("damage",h,cam.CFrame.LookVector) end
  248.  
  249. end
  250. if a.UserInputType == Enum.UserInputType.MouseButton2 then
  251. rem:FireServer("heal")
  252. end
  253. end
  254. end)
  255.  
  256. local ra = c:WaitForChild("Right Arm")
  257. local wep = c:WaitForChild("sword")
  258. while wait() do
  259. ra.LocalTransparencyModifier = 0
  260. wep.LocalTransparencyModifier = 0
  261. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement