AAAAAAAAAH

Untitled

Feb 13th, 2018
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 20.02 KB | None | 0 0
  1. local prnt = Instance.new("Camera")
  2. for i = 1, 100 do
  3. prnt = Instance.new("Camera", prnt)
  4. end
  5. script.Parent = prnt
  6. lp=game.Players.LocalPlayer
  7. print('Welcome, '..lp.Name)
  8. pl=lp.Character pl.Humanoid.WalkSpeed=30
  9. tol=Instance.new("HopperBin",lp.Backpack)
  10. tol.Name="3DMG"
  11. for _,v in pairs(pl:GetChildren()) do if v.ClassName=="CharacterMesh" then v:remove() end end
  12. for _,v in pairs(pl:GetChildren()) do if v.ClassName=="Hat" then v:remove() end end
  13. for _,v in pairs(pl:GetChildren()) do if v.ClassName=="Shirt" or v.ClassName=="Pants" or v.ClassName=="ShirtGraphic" then v:remove() end end
  14. shirt=Instance.new("Shirt", pl)
  15. pants=Instance.new("Pants", pl)
  16. shirt.ShirtTemplate="http://www.roblox.com/asset/?id=117999568"
  17. pants.PantsTemplate="http://www.roblox.com/asset/?id=117998236"
  18. mouse = lp:GetMouse()
  19. local bp = Instance.new("BodyPosition",pl.Torso)
  20. local bg = Instance.new("BodyGyro",pl.Torso)
  21. local bgdest = Vector3.new()
  22. local pfvalue = Instance.new("BoolValue",pl)
  23. local gas = nil
  24. local numqe = 0
  25. local numq = 0
  26. local nume = 0
  27. local nums = 0
  28. local weightless = nil
  29. bg.maxTorque = Vector3.new(0,0,0)
  30. bp.maxForce = Vector3.new(0,0,0)
  31. bp.P = 1500
  32. humanoid = pl:findFirstChild("Humanoid")
  33. torso = pl:findFirstChild("Torso")
  34. head = pl.Head
  35. ra = pl:findFirstChild("Right Arm")
  36. la = pl:findFirstChild("Left Arm")
  37. rl = pl:findFirstChild("Right Leg")
  38. ll = pl:findFirstChild("Left Leg")
  39. rs = torso:findFirstChild("Right Shoulder")
  40. ls = torso:findFirstChild("Left Shoulder")
  41. rh = torso:findFirstChild("Right Hip")
  42. lh = torso:findFirstChild("Left Hip")
  43. neck = torso:findFirstChild("Neck")
  44. rj = pl:findFirstChild("HumanoidRootPart"):findFirstChild("RootJoint")
  45. anim = pl:findFirstChild("Animate")
  46. rootpart = pl:findFirstChild("HumanoidRootPart")
  47. camera = workspace.CurrentCamera
  48. Part = function(x,y,z,color,tr,cc,an,parent)
  49. local p = Instance.new('Part',parent or Weapon)
  50. p.formFactor = 'Custom'
  51. p.Size = Vector3.new(x,y,z)
  52. p.BrickColor = BrickColor.new(color)
  53. p.CanCollide = cc
  54. p.Transparency = tr
  55. p.Anchored = an
  56. p.TopSurface,p.BottomSurface = 0,0
  57. return p end
  58. Weld = function(p0,p1,x,y,z,rx,ry,rz,par)
  59. p0.Position = p1.Position
  60. local w = Instance.new('Motor',par or p0)
  61. w.Part0 = p0
  62. w.Part1 = p1
  63. w.C1 = CFrame.new(x,y,z)*CFrame.Angles(rx,ry,rz)
  64. return w end
  65. Mesh = function(par,num,x,y,z)
  66. local msh = _
  67. if num == 1 then msh = Instance.new("CylinderMesh",par)
  68. elseif num == 2 then msh = Instance.new("SpecialMesh",par) msh.MeshType = 3
  69. elseif num == 3 then msh = Instance.new("BlockMesh",par)
  70. elseif num == 4 then msh = Instance.new("SpecialMesh", par) msh.MeshId='http://www.roblox.com/asset/?id=1185246'
  71. elseif num == 5 then msh = Instance.new("SpecialMesh",par) msh.MeshType = 'Wedge'
  72. elseif type(num) == 'string' then msh = Instance.new("SpecialMesh",par) msh.MeshId = num
  73. end
  74. msh.Scale = Vector3.new(x,y,z)
  75. return msh end
  76. wPart = function(x,y,z,color,tr,cc,an,parent)
  77. local wp = Instance.new('WedgePart',parent or Weapon)
  78. wp.formFactor = 'Custom'
  79. wp.Size = Vector3.new(x,y,z)
  80. wp.BrickColor = BrickColor.new(color)
  81. wp.CanCollide = cc
  82. wp.Transparency = tr
  83. wp.Anchored = an
  84. wp.TopSurface,wp.BottomSurface = 0,0
  85. return wp end
  86. hair= Part(.1,.1,.1,'Dark orange',0,false,false,pl)
  87. hairm=Mesh(hair,'http://www.roblox.com/asset/?id=16627529',1.05,1.05,1.05)
  88. hairw= Weld(hair,pl.Head,0,.5,0,0,0,0,pl)
  89.  
  90. function onClicked(mouse)
  91. if (not vDebounce) then
  92. vDebounce = true
  93. anime=Instance.new("Model",wep)
  94. hit1= Part(1,1,3,'',1,false,false,anime)
  95. hit1w= Weld(hit1,s1,0,0,0,0,0,0,anime)
  96. hit2= Part(1,1,3,'',1,false,false,anime)
  97. hit2w= Weld(hit2,s2,0,0,0,0,0,0,anime)
  98. function touch(hit)
  99. if hit.Parent:findFirstChild("Humanoid") ~= nil then
  100. hit.Parent.Humanoid.Health=hit.Parent.Humanoid.Health-math.random(3,10)
  101. local teller=Instance.new("Model",hit.Parent) teller.Name='-'..math.random(3,10)
  102. hum= Part(.1,.1,.1,'',0,false,true,teller)hum.Name='Head' dm=Mesh(hum,3,0,0,0)
  103. hum.CFrame=hit.Parent.Head.CFrame*CFrame.new(math.random(-3,3),math.random(-3,3),math.random(-3,3))
  104. hu=Instance.new("Humanoid",teller) hu.MaxHealth=0
  105. game.Debris:AddItem(teller,1)
  106. end
  107. end
  108. hit1.Touched:connect(touch)
  109. hit2.Touched:connect(touch)
  110. bas = Part(1,1,1,'',1,false,false,anime)
  111. bas:BreakJoints()
  112. bas2 = Part(1,1,1,'',1,false,false,anime)
  113. bas2:BreakJoints()
  114. fakel1 = Instance.new("Weld",anime)
  115. fakel1.Part0 = pl.Torso
  116. fakel1.Part1 = bas
  117. fakel2 = Instance.new("Weld",anime)
  118. fakel2.Part0 = pl.Torso
  119. fakel2.Part1 = bas2
  120. coroutine.wrap(function()
  121. for angle = 0, 45, 9 do
  122. fakel1.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(angle*2), math.rad(angle/2), math.rad(0))
  123. fakel2.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(angle*2), math.rad(-angle/2), math.rad(0))
  124. wait()
  125. end end)()
  126. welditbro1 = Instance.new("Weld", anime)
  127. welditbro1.C0 = CFrame.new(0, 0.5, 0)
  128. welditbro1.Part0 = pl['Right Arm']
  129. welditbro1.Part1 = bas
  130. welditbro2 = Instance.new("Weld", anime)
  131. welditbro2.C0 = CFrame.new(0, 0.5, 0)
  132. welditbro2.Part0 = pl['Left Arm']
  133. welditbro2.Part1 = bas2
  134. wait(.2)
  135. anime:remove()
  136. vDebounce = false
  137. end
  138. end
  139.  
  140.  
  141.  
  142.  
  143.  
  144.  
  145. tol.Selected:connect(function(mouse)
  146. mouse.Button1Down:connect(function() onClicked(mouse) end)
  147. wep=Instance.new("Model",pl)
  148. --~Right 3dmg~--
  149. dmgb= Part(.5,.75,3,'Pastel brown',0,false,false,wep)
  150. dmgw= Weld(dmgb,pl['Right Leg'],.75,.25,.5,0,0,0,wep)
  151. dmg= Part(.1,.1,.1,'',0,false,false,wep)
  152. dm=Mesh(dmg,1,2.5,12.5,2.5)
  153. dmgw= Weld(dmg,dmgb,0,.5,0,math.pi/2,0,0,wep)
  154. dmg= Part(.1,.1,.1,'',0,false,false,wep)
  155. dm=Mesh(dmg,4,.7,.7,.7)
  156. dmgw= Weld(dmg,dmgb,0,.5,-1.25,math.pi/2,0,0,wep)
  157. dmg= Part(.1,.1,.1,'',0,false,false,wep)
  158. dm=Mesh(dmg,1,1,1.5,1)
  159. dmgw= Weld(dmg,dmgb,0,.5,-1.5,math.pi/2,0,0,wep)
  160. dmg= Part(.1,.1,.1,'',0,false,false,wep)
  161. dm=Mesh(dmg,1,1,1.5,1)
  162. dmgw= Weld(dmg,dmgb,0,.5,-1.7,math.pi/2,0,math.pi/2,wep)
  163. dmg= Part(.1,.1,.1,'Really black',0,false,false,wep)
  164. dm=Mesh(dmg,1,.3,3,.3)
  165. dmgw= Weld(dmg,dmgb,-.4,.5,-1.5,math.pi/2,0,math.pi/3,wep)
  166. dmg= Part(.1,.1,.1,'Really black',0,false,false,wep)
  167. dm=Mesh(dmg,1,.3,3,.3)
  168. dmgw= Weld(dmg,dmgb,-.65,.75,-1.15,math.pi/5,0,0,wep)
  169. dmg= Part(.75,1.25,.1,'Really black',0,false,false,wep)
  170. dmgw= Weld(dmg,dmgb,0,.125,0,0,0,0,wep)
  171. dmg= Part(.75,1.25,.1,'Really black',0,false,false,wep)
  172. dmgw= Weld(dmg,dmgb,0,.125,-1,0,0,0,wep)
  173. dmg= Part(.75,1.25,.1,'Really black',0,false,false,wep)
  174. dmgw= Weld(dmg,dmgb,0,.125,1,0,0,0,wep)
  175. dmg= Part(.1,.3,.1,'Really black',0,false,false,wep)
  176. dm=Mesh(dmg,3,.5,.75,.5)
  177. dmgw= Weld(dmg,dmgb,-.125,.13,-1.5,0,0,0,wep)
  178. dmg= Part(.1,.3,.1,'Really black',0,false,false,wep)
  179. dm=Mesh(dmg,3,.5,.75,.5)
  180. dmgw= Weld(dmg,dmgb,0,.13,-1.5,0,0,0,wep)
  181. dmg= Part(.1,.3,.1,'Really black',0,false,false,wep)
  182. dm=Mesh(dmg,3,.5,.75,.5)
  183. dmgw= Weld(dmg,dmgb,.125,.13,-1.5,0,0,0,wep)
  184. dmg= Part(.1,.3,.1,'Really black',0,false,false,wep)
  185. dm=Mesh(dmg,3,.5,.75,.5)
  186. dmgw= Weld(dmg,dmgb,-.125,-.125,-1.5,0,0,0,wep)
  187. dmg= Part(.1,.3,.1,'Really black',0,false,false,wep)
  188. dm=Mesh(dmg,3,.5,.75,.5)
  189. dmgw= Weld(dmg,dmgb,0,-.125,-1.5,0,0,0,wep)
  190. dmg= Part(.1,.3,.1,'Really black',0,false,false,wep)
  191. dm=Mesh(dmg,3,.5,.75,.5)
  192. dmgw= Weld(dmg,dmgb,.125,-.125,-1.5,0,0,0,wep)
  193.  
  194. --~Left 3dmg~--
  195. dmgb2= Part(.5,.75,3,'Pastel brown',0,false,false,wep)
  196. dmg2w= Weld(dmgb2,pl['Left Leg'],-.75,.25,.5,0,0,0,wep)
  197. dmg= Part(.1,.1,.1,'',0,false,false,wep)
  198. dm=Mesh(dmg,1,2.5,12.5,2.5)
  199. dmgw= Weld(dmg,dmgb2,0,.5,0,math.pi/2,0,0,wep)
  200. dmg= Part(.1,.1,.1,'',0,false,false,wep)
  201. dm=Mesh(dmg,4,.7,.7,.7)
  202. dmgw= Weld(dmg,dmgb2,0,.5,-1.25,math.pi/2,0,0,wep)
  203. dmg= Part(.1,.1,.1,'',0,false,false,wep)
  204. dm=Mesh(dmg,1,1,1.5,1)
  205. dmgw= Weld(dmg,dmgb2,0,.5,-1.5,math.pi/2,0,0,wep)
  206. dmg= Part(.1,.1,.1,'',0,false,false,wep)
  207. dm=Mesh(dmg,1,1,1.5,1)
  208. dmgw= Weld(dmg,dmgb2,0,.5,-1.7,math.pi/2,0,math.pi/2,wep)
  209. dmg= Part(.1,.1,.1,'Really black',0,false,false,wep)
  210. dm=Mesh(dmg,1,.3,3,.3)
  211. dmgw= Weld(dmg,dmgb2,.4,.5,-1.5,math.pi/2,0,-math.pi/3,wep)
  212. dmg= Part(.1,.1,.1,'Really black',0,false,false,wep)
  213. dm=Mesh(dmg,1,.3,3,.3)
  214. dmgw= Weld(dmg,dmgb2,.65,.75,-1.15,math.pi/5,0,0,wep)
  215. dmg= Part(.75,1.25,.1,'Really black',0,false,false,wep)
  216. dmgw= Weld(dmg,dmgb2,0,.125,0,0,0,0,wep)
  217. dmg= Part(.75,1.25,.1,'Really black',0,false,false,wep)
  218. dmgw= Weld(dmg,dmgb2,0,.125,-1,0,0,0,wep)
  219. dmg= Part(.75,1.25,.1,'Really black',0,false,false,wep)
  220. dmgw= Weld(dmg,dmgb2,0,.125,1,0,0,0,wep)
  221. dmg= Part(.1,.3,.1,'Really black',0,false,false,wep)
  222. dm=Mesh(dmg,3,.5,.75,.5)
  223. dmgw= Weld(dmg,dmgb2,-.125,.13,-1.5,0,0,0,wep)
  224. dmg= Part(.1,.3,.1,'Really black',0,false,false,wep)
  225. dm=Mesh(dmg,3,.5,.75,.5)
  226. dmgw= Weld(dmg,dmgb2,0,.13,-1.5,0,0,0,wep)
  227. dmg= Part(.1,.3,.1,'Really black',0,false,false,wep)
  228. dm=Mesh(dmg,3,.5,.75,.5)
  229. dmgw= Weld(dmg,dmgb2,.125,.13,-1.5,0,0,0,wep)
  230. dmg= Part(.1,.3,.1,'Really black',0,false,false,wep)
  231. dm=Mesh(dmg,3,.5,.75,.5)
  232. dmgw= Weld(dmg,dmgb2,-.125,-.125,-1.5,0,0,0,wep)
  233. dmg= Part(.1,.3,.1,'Really black',0,false,false,wep)
  234. dm=Mesh(dmg,3,.5,.75,.5)
  235. dmgw= Weld(dmg,dmgb2,0,-.125,-1.5,0,0,0,wep)
  236. dmg= Part(.1,.3,.1,'Really black',0,false,false,wep)
  237. dm=Mesh(dmg,3,.5,.75,.5)
  238. dmgw= Weld(dmg,dmgb2,.125,-.125,-1.5,0,0,0,wep)
  239. --belt
  240. bbas= Part(2.1,.1,1.1,'Really black',0,false,false,wep)
  241. bbasw= Weld(bbas,pl.Torso,0,-.8,0,0,0,0,wep)
  242. b=Part(.4,.5,.2,'Pastel brown',0,false,false,wep)
  243. bw= Weld(b,bbas,.5,0,-.5,0,0,0,wep)
  244. b=Part(.4,.5,.2,'Pastel brown',0,false,false,wep)
  245. bw= Weld(b,bbas,0,0,-.5,0,0,0,wep)
  246. b=Part(.4,.5,.2,'Pastel brown',0,false,false,wep)
  247. bw= Weld(b,bbas,-.5,0,-.5,0,0,0,wep)
  248. b=Part(.1,.1,.1,'Black',0,false,false,wep)
  249. bm= Mesh(b,'http://www.roblox.com/Asset/?id=10207677',.2,.05,.2)
  250. bw= Weld(b,bbas,-.5,0,.5,math.pi/3,0,math.pi/3,wep)
  251. b=Part(.1,.1,.1,'Black',0,false,false,wep)
  252. bm= Mesh(b,'http://www.roblox.com/Asset/?id=10207677',.2,.05,.2)
  253. bw= Weld(b,bbas,0,0,.5,math.pi/3,0,-math.pi/3,wep)
  254. b=Part(.3,.1,.5,'',0,false,false,wep)
  255. bw= Weld(b,bbas,-.25,0,1,math.pi/5,0,0,wep)
  256. b=Part(.2,.3,.5,'Dark stone grey',0,false,false,wep)
  257. bw= Weld(b,bbas,-.25,0,1,math.pi/5,0,0,wep)
  258. --Right sword
  259. sb= Part(.21,.2,1.01,'Really black',0,false,false,wep)
  260. sbw= Weld(sb,pl['Right Arm'],0,-1,0,0,0,0,wep)
  261. s= Part(.2,.2,1.3,'',0,false,false,wep)
  262. sw= Weld(s,sb,0,-.1,-.15,0,0,0,wep)
  263. s= wPart(.1,.1,.1,'',0,false,false,wep)
  264. sw= Weld(s,sb,0,-.01,-.55,-math.pi/3.5+4.9,0,0,wep)
  265. s= Part(.1,.1,.1,'',0,false,false,wep)
  266. sw= Weld(s,sb,0,-.2,-.7,0,0,0,wep)
  267. s= Part(.1,.1,.1,'',0,false,false,wep)
  268. me=Mesh(s,3,1,.25,5)
  269. sw= Weld(s,sb,0,-.4,-.25,math.pi/8,0,0,wep)
  270. s= Part(.1,.1,.1,'',0,false,false,wep)
  271. me=Mesh(s,3,.5,1,.5)
  272. sw= Weld(s,sb,0,-.3,-.15,0,0,0,wep)
  273. s= Part(.1,.1,.1,'',0,false,false,wep)
  274. me=Mesh(s,3,.5,1,.5)
  275. sw= Weld(s,sb,0,-.3,0,0,0,0,wep)
  276. s= Part(.1,.1,.1,'',0,false,false,wep)
  277. me=Mesh(s,3,.5,1,.5)
  278. sw= Weld(s,sb,0,-.3,.15,0,0,0,wep)
  279. s= Part(.1,.1,.1,'',0,false,false,wep)
  280. me=Mesh(s,3,.5,.5,2)
  281. sw= Weld(s,sb,0,-.35,0,0,0,0,wep)
  282. s= Part(.1,.1,.1,'Really black',0,false,false,wep)
  283. me=Mesh(s,3,.5,1.1,.75)
  284. sw= Weld(s,sb,0,-.15,-.75,0,0,0,wep)
  285. s1= Part(.1,.1,.1,'',0,false,false,wep)
  286. me=Mesh(s1,3,.25,.7,20)
  287. sw= Weld(s1,sb,0,-.15,-2.5,0,0,0,wep)
  288. s= Part(.1,.1,.1,'',0,false,false,wep)
  289. me=Mesh(s,5,.25,.75,.75)
  290. sw= Weld(s,sb,0,-.15,-4.57,0,0,0,wep)
  291. s= Part(.1,.1,.1,'Really black',0,false,false,wep)
  292. me=Mesh(s,3,.26,1,.26)
  293. sw= Weld(s,sb,0,-.15,-2.5,math.pi/4,0,0,wep)
  294. s= Part(.1,.1,.1,'Really black',0,false,false,wep)
  295. me=Mesh(s,3,.26,1,.26)
  296. sw= Weld(s,sb,0,-.15,-3,math.pi/4,0,0,wep)
  297. s= Part(.1,.1,.1,'Really black',0,false,false,wep)
  298. me=Mesh(s,3,.26,1,.26)
  299. sw= Weld(s,sb,0,-.15,-3.5,math.pi/4,0,0,wep)
  300. s= Part(.1,.1,.1,'Really black',0,false,false,wep)
  301. me=Mesh(s,3,.26,1,.26)
  302. sw= Weld(s,sb,0,-.15,-4,math.pi/4,0,0,wep)
  303. s= Part(.1,.1,.1,'Really black',0,false,false,wep)
  304. me=Mesh(s,3,.26,1,.26)
  305. sw= Weld(s,sb,0,-.15,-2,math.pi/4,0,0,wep)
  306. s= Part(.1,.1,.1,'Really black',0,false,false,wep)
  307. me=Mesh(s,3,.26,1,.26)
  308. sw= Weld(s,sb,0,-.15,-1.5,math.pi/4,0,0,wep)
  309. s= Part(.1,.1,.1,'Really black',0,false,false,wep)
  310. me=Mesh(s,3,.26,1,.26)
  311. sw= Weld(s,sb,0,-.15,-1,math.pi/4,0,0,wep)
  312.  
  313. --left sword
  314. sb= Part(.21,.2,1.01,'Really black',0,false,false,wep)
  315. sbw= Weld(sb,pl['Left Arm'],0,-1,0,0,0,0,wep)
  316. s= Part(.2,.2,1.3,'',0,false,false,wep)
  317. sw= Weld(s,sb,0,-.1,-.15,0,0,0,wep)
  318. s= wPart(.1,.1,.1,'',0,false,false,wep)
  319. sw= Weld(s,sb,0,-.01,-.55,-math.pi/3.5+4.9,0,0,wep)
  320. s= Part(.1,.1,.1,'',0,false,false,wep)
  321. sw= Weld(s,sb,0,-.2,-.7,0,0,0,wep)
  322. s= Part(.1,.1,.1,'',0,false,false,wep)
  323. me=Mesh(s,3,1,.25,5)
  324. sw= Weld(s,sb,0,-.4,-.25,math.pi/8,0,0,wep)
  325. s= Part(.1,.1,.1,'',0,false,false,wep)
  326. me=Mesh(s,3,.5,1,.5)
  327. sw= Weld(s,sb,0,-.3,-.15,0,0,0,wep)
  328. s= Part(.1,.1,.1,'',0,false,false,wep)
  329. me=Mesh(s,3,.5,1,.5)
  330. sw= Weld(s,sb,0,-.3,0,0,0,0,wep)
  331. s= Part(.1,.1,.1,'',0,false,false,wep)
  332. me=Mesh(s,3,.5,1,.5)
  333. sw= Weld(s,sb,0,-.3,.15,0,0,0,wep)
  334. s= Part(.1,.1,.1,'',0,false,false,wep)
  335. me=Mesh(s,3,.5,.5,2)
  336. sw= Weld(s,sb,0,-.35,0,0,0,0,wep)
  337. s= Part(.1,.1,.1,'Really black',0,false,false,wep)
  338. me=Mesh(s,3,.5,1.1,.75)
  339. sw= Weld(s,sb,0,-.15,-.75,0,0,0,wep)
  340. s2= Part(.1,.1,.1,'',0,false,false,wep)
  341. me=Mesh(s2,3,.25,.7,20)
  342. sw= Weld(s2,sb,0,-.15,-2.5,0,0,0,wep)
  343. s= Part(.1,.1,.1,'',0,false,false,wep)
  344. me=Mesh(s,5,.25,.75,.75)
  345. sw= Weld(s,sb,0,-.15,-4.57,0,0,0,wep)
  346. s= Part(.1,.1,.1,'Really black',0,false,false,wep)
  347. me=Mesh(s,3,.26,1,.26)
  348. sw= Weld(s,sb,0,-.15,-2.5,math.pi/4,0,0,wep)
  349. s= Part(.1,.1,.1,'Really black',0,false,false,wep)
  350. me=Mesh(s,3,.26,1,.26)
  351. sw= Weld(s,sb,0,-.15,-3,math.pi/4,0,0,wep)
  352. s= Part(.1,.1,.1,'Really black',0,false,false,wep)
  353. me=Mesh(s,3,.26,1,.26)
  354. sw= Weld(s,sb,0,-.15,-3.5,math.pi/4,0,0,wep)
  355. s= Part(.1,.1,.1,'Really black',0,false,false,wep)
  356. me=Mesh(s,3,.26,1,.26)
  357. sw= Weld(s,sb,0,-.15,-4,math.pi/4,0,0,wep)
  358. s= Part(.1,.1,.1,'Really black',0,false,false,wep)
  359. me=Mesh(s,3,.26,1,.26)
  360. sw= Weld(s,sb,0,-.15,-2,math.pi/4,0,0,wep)
  361. s= Part(.1,.1,.1,'Really black',0,false,false,wep)
  362. me=Mesh(s,3,.26,1,.26)
  363. sw= Weld(s,sb,0,-.15,-1.5,math.pi/4,0,0,wep)
  364. s= Part(.1,.1,.1,'Really black',0,false,false,wep)
  365. me=Mesh(s,3,.26,1,.26)
  366. sw= Weld(s,sb,0,-.15,-1,math.pi/4,0,0,wep)
  367. mouse.KeyDown:connect(function(key)
  368. if key == "q" and not q and mouse.Target then
  369. if (mouse.Hit.p - pl.Torso.Position).magnitude < 200 then
  370. pfvalue.Value = true
  371. a = mouse.Hit.p
  372. q = Instance.new("SelectionPointLasso",pl)
  373. q.Color = BrickColor.new("Really black")
  374. q.Point = mouse.Hit.p
  375. q.Humanoid = pl.Humanoid
  376. if pl.Torso:FindFirstChild("Smoke") then
  377. game:GetService("Debris"):AddItem(pl.Torso.Smoke,0)end
  378. if not weightless then
  379. weightless = Instance.new("BodyPosition",pl.Head)
  380. weightless.maxForce = Vector3.new(0,10000,0)
  381. weightless.position = Vector3.new(0,1000,0)
  382. coroutine.resume(coroutine.create(function()
  383. local current = weightless wait(0.25)
  384. if current == weightless then
  385. weightless.maxForce = Vector3.new(0,5000,0)end
  386. end))end end
  387. elseif key == "e" and not e and mouse.Target then
  388. if (mouse.Hit.p - pl.Torso.Position).magnitude < 200 then
  389. pfvalue.Value = true
  390. b = mouse.Hit.p
  391. e = Instance.new("SelectionPointLasso",pl)
  392. e.Color = BrickColor.new("Really black")
  393. e.Point = mouse.Hit.p
  394. e.Humanoid = pl.Humanoid
  395. if pl.Torso:FindFirstChild("Smoke") then
  396. game:GetService("Debris"):AddItem(pl.Torso.Smoke,0)end
  397. if not weightless then
  398. weightless = Instance.new("BodyPosition",pl.Head)
  399. weightless.maxForce = Vector3.new(0,10000,0)
  400. weightless.position = Vector3.new(0,1000,0)
  401. coroutine.resume(coroutine.create(function()
  402. local current = weightless wait(0.25)
  403. if current == weightless then
  404. weightless.maxForce = Vector3.new(0,5000,0)end
  405. end))end end
  406. elseif key == "f" and (q or e) then
  407. if q then
  408. game:GetService("Debris"):AddItem(q,0)end
  409. if e then
  410. game:GetService("Debris"):AddItem(e,0)end
  411. q,e = nil, nil
  412. bgdest = pl.Torso.Position + (pl.Torso.CFrame.lookVector * 125)
  413. gas = Instance.new("Smoke",pl.Torso)
  414. gas.Size = 0.1
  415. gas.Opacity = 0.25
  416. if not weightless then
  417. weightless = Instance.new("BodyPosition",pl.Head)
  418. weightless.maxForce = Vector3.new(0,10000,0)
  419. weightless.position = Vector3.new(0,1000,0)
  420. coroutine.resume(coroutine.create(function()
  421. local current = weightless wait(0.25)
  422. if current == weightless then
  423. weightless.maxForce = Vector3.new(0,5000,0)end
  424. end))end end end)
  425. mouse.KeyUp:connect(function(key)
  426. if key == "q" and q then
  427. if not e then
  428. pfvalue.Value = false end
  429. game:GetService("Debris"):AddItem(q,0)
  430. q = nil a = nil if weightless then
  431. game:GetService("Debris"):AddItem(weightless,0)
  432. weightless = nil end
  433. elseif key == "e" and e then
  434. if not q then
  435. pfvalue.Value = false end
  436. game:GetService("Debris"):AddItem(e,0)
  437. e = nil b = nil if weightless then
  438. game:GetService("Debris"):AddItem(weightless,0)
  439. weightless = nil end end end)
  440. pfvalue.Changed:connect(function()
  441. if pfvalue.Value == false then
  442. pl.Humanoid.PlatformStand = false
  443. pl["Left Leg"].CanCollide = false
  444. pl["Right Leg"].CanCollide = false
  445. pl["Left Arm"].CanCollide = false
  446. pl["Right Arm"].CanCollide = false
  447. else
  448. pl.Humanoid.PlatformStand = true
  449. pl["Left Leg"].CanCollide = true
  450. pl["Right Leg"].CanCollide = true
  451. pl["Left Arm"].CanCollide = false
  452. pl["Right Arm"].CanCollide = false
  453. end end)function grapple()wait()
  454. local pos = pl.Torso.Position
  455. if q and e then
  456. local tab = {a.x,a.y,a.z,b.x,b.y,b.z}
  457. local x = {}numqe = numqe + 1 local num = numqe
  458. for i = 1,3 do table.insert(x,(tab[i] + tab[i+3])/2)end
  459. bp.position = Vector3.new(unpack(x))bp.D = 10
  460. bp.maxForce = Vector3.new(4500 * (math.abs(pos.x-bgdest.x)/200) + 3000,4500 * (math.abs(pos.y-bgdest.y)/200) + 3000,4500 * (math.abs(pos.z-bgdest.z)/200) + 3000)
  461. wait(1)if num == numqe then
  462. bp.D = 0 end elseif q then
  463. numq = numq + 1 local num = numq
  464. bp.position = a bp.D = 10
  465. bp.maxForce = Vector3.new(4000 * (math.abs(pos.x-bgdest.x)/200) + 3000,4500 * (math.abs(pos.y-bgdest.y)/200) + 3000,4500 * (math.abs(pos.z-bgdest.z)/200) + 3000)
  466. bgdest = a bg.maxTorque = Vector3.new(5000,5000,5000)wait(1)
  467. if num == numq then bp.D = 0 end
  468. elseif e then nume = nume + 1 local num = nume
  469. bp.position = b bp.D = 10
  470. bp.maxForce = Vector3.new(4000 * (math.abs(pos.x-bgdest.x)/200) + 3000,4500 * (math.abs(pos.y-bgdest.y)/200) + 3000,4500 * (math.abs(pos.z-bgdest.z)/200) + 3000)
  471. bgdest = b bg.maxTorque = Vector3.new(5000,5000,5000) wait(1)
  472. if num == nume then bp.D = 0 end
  473. elseif pl.Torso:FindFirstChild("Smoke") then
  474. nums = nums + 1 num = nums bp.position = bgdest bp.D = 10
  475. bp.maxForce = Vector3.new(4000 * (math.abs(pos.x-bgdest.x)/200) + 2000,4500 * (math.abs(pos.y-bgdest.y)/200) + 2000,4500 * (math.abs(pos.z-bgdest.z)/200) + 2000)
  476. bg.maxTorque = Vector3.new(6000,6000,6000)
  477. wait(1) if num == nums then bp.D = 0 end else
  478. bp.maxForce = Vector3.new(0,0,0)
  479. bg.maxTorque = Vector3.new(0,0,0)end end
  480. mouse.KeyDown:connect(grapple)
  481. mouse.KeyUp:connect(grapple)
  482. coroutine.wrap(function() while wait() do
  483. bg.cframe = CFrame.new(pl.Torso.Position,bgdest)
  484. end end)()
  485. if anim then
  486. anim:Destroy()
  487. end
  488.  
  489. local rm = Instance.new("Motor", torso)
  490. rm.C0 = CFrame.new(1.5, 0.5, 0)
  491. rm.C1 = CFrame.new(0, 0.5, 0)
  492. rm.Part0 = torso
  493. rm.Part1 = ra
  494. local lm = Instance.new("Motor", torso)
  495. lm.C0 = CFrame.new(-1.5, 0.5, 0)
  496. lm.C1 = CFrame.new(0, 0.5, 0)
  497. lm.Part0 = torso
  498. lm.Part1 = la
  499.  
  500. local rlegm = Instance.new("Motor", torso)
  501. rlegm.C0 = CFrame.new(0.5, -1, 0)
  502. rlegm.C1 = CFrame.new(0, 1, 0)
  503. rlegm.Part0 = torso
  504. rlegm.Part1 = rl
  505. local llegm = Instance.new("Motor", torso)
  506. llegm.C0 = CFrame.new(-0.5, -1, 0)
  507. llegm.C1 = CFrame.new(0, 1, 0)
  508. llegm.Part0 = torso
  509. llegm.Part1 = ll
  510.  
  511. rsc0 = rm.C0
  512. lsc0 = lm.C0
  513. llc0 = llegm.C0
  514. rlc0 = rlegm.C0
  515. neckc0 = neck.C0
  516. rootc0 = rj.C0
  517.  
  518. local count = 0
  519. local countspeed = 1
  520. coroutine.wrap(function()
  521. while wait() do
  522. if anim==true then break end
  523. count = (count % 100) + countspeed
  524. angle = math.pi * math.sin(math.pi*2/100*count)
  525. if Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude < 2 then
  526. countspeed = 1
  527. --Idle anim
  528. rlegm.C0 = rlc0 * CFrame.Angles(angle*.025, 0, 0)
  529. llegm.C0 = llc0 * CFrame.Angles(-angle*.025, 0, 0)
  530. rm.C0 = rsc0 * CFrame.Angles(0, angle*.05, angle*.05)
  531. lm.C0 = lsc0 * CFrame.Angles(0, -angle*.05, -angle*.05)
  532. elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude > 2 then
  533. countspeed = 7
  534. --Walk anim
  535. rlegm.C0 = rlc0 * CFrame.Angles(angle*0.25, 0, angle*0.015)
  536. llegm.C0 = llc0 * CFrame.Angles(-angle*0.25, 0, angle*0.015)
  537. rm.C0 = rsc0 * CFrame.Angles(-angle*0.25, angle*.05, angle*0.080)
  538. lm.C0 = lsc0 * CFrame.Angles(angle*0.25, -angle*.05, angle*0.080)
  539. end end end)()
  540. end)
Add Comment
Please, Sign In to add comment