Advertisement
Dark_EccentricYT

Untitled

Jun 19th, 2017
1,247
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 34.28 KB | None | 0 0
  1. Player = game:GetService("Players").LocalPlayer
  2. Character = Player.Character
  3. PlayerGui = Player.PlayerGui
  4. Backpack = Player.Backpack
  5. Torso = Character.Torso
  6. Head = Character.Head
  7. LeftArm = Character["Left Arm"]
  8. LeftLeg = Character["Left Leg"]
  9. RightArm = Character["Right Arm"]
  10. RightLeg = Character["Right Leg"]
  11. LS = Torso["Left Shoulder"]
  12. LH = Torso["Left Hip"]
  13. RS = Torso["Right Shoulder"]
  14. RH = Torso["Right Hip"]
  15. attack = false
  16. attackdebounce = false
  17. combo = 0
  18. mana = 400
  19. mouse = nil
  20. necko=CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  21. lightning = false
  22. restoring = false
  23. Style = "Normal"
  24. idleanimdelay = false
  25. fly = false
  26. seeing = true
  27. --player
  28. player = nil
  29. --save shoulders
  30. RSH, LSH = nil, nil
  31. --welds
  32. RW, LW = Instance.new("Weld"), Instance.new("Weld")
  33. --what anim
  34. anim = "none"
  35.  
  36. if Character:findFirstChild("Present Tosser",true) ~= nil then
  37. Character:findFirstChild("Present Tosser",true).Parent = nil
  38. end
  39. if Player.PlayerGui:findFirstChild("manaGUI",true) ~= nil then
  40. Player.PlayerGui:findFirstChild("manaGUI",true).Parent = nil
  41. end
  42.  
  43.  
  44. local modelzorz = Instance.new("Model")
  45. modelzorz.Name = "Present Tosser"
  46. modelzorz.Parent = Character
  47.  
  48. local prt1 = Instance.new("Part")
  49. prt1.formFactor = 3
  50. prt1.Parent = modelzorz
  51. prt1.CanCollide = false
  52. prt1.BrickColor = BrickColor.new("Really Navy blue")
  53. prt1.Name = "Blade1"
  54. prt1.Transparency = 0
  55. prt1.Reflectance = 0.1
  56. prt1.Size = Vector3.new(1,1,1)
  57. prt1.CFrame = Torso.CFrame
  58.  
  59. local tprt1 = Instance.new("Part")
  60. tprt1.formFactor = 3
  61. tprt1.Parent = modelzorz
  62. tprt1.CanCollide = false
  63. tprt1.BrickColor = BrickColor.new("Navy blue")
  64. tprt1.Name = "Blade1"
  65. tprt1.Transparency = 0
  66. tprt1.Reflectance = 0.1
  67. tprt1.Size = Vector3.new(2,2,1)
  68. tprt1.CFrame = Torso.CFrame
  69.  
  70. local prt25 = Instance.new("Part")
  71. prt25.formFactor = 3
  72. prt25.Parent = modelzorz
  73. prt25.CanCollide = false
  74. prt25.BrickColor = BrickColor.new("Navy blue")
  75. prt25.Name = "Blade1"
  76. prt25.Transparency = 0
  77. prt25.Reflectance = 0.1
  78. prt25.Size = Vector3.new(1,1,1)
  79. prt25.CFrame = Torso.CFrame
  80.  
  81. local fprt1 = Instance.new("Part")
  82. fprt1.formFactor = 3
  83. fprt1.Parent = modelzorz
  84. fprt1.CanCollide = false
  85. fprt1.BrickColor = BrickColor.new("Brick yellow")
  86. fprt1.Name = "Blade1"
  87. fprt1.Transparency = 0
  88. fprt1.Reflectance = 0.1
  89. fprt1.Size = Vector3.new(1,1,1)
  90. fprt1.CFrame = Torso.CFrame
  91.  
  92. local fprt25 = Instance.new("Part")
  93. fprt25.formFactor = 3
  94. fprt25.Parent = modelzorz
  95. fprt25.CanCollide = false
  96. fprt25.BrickColor = BrickColor.new("Really Navy blue")
  97. fprt25.Name = "Blade1"
  98. fprt25.Transparency = 0
  99. fprt25.Reflectance = 0.1
  100. fprt25.Size = Vector3.new(1,1,1)
  101. fprt25.CFrame = Torso.CFrame
  102.  
  103. local rprt1 = Instance.new("Part")
  104. rprt1.formFactor = 3
  105. rprt1.Parent = modelzorz
  106. rprt1.CanCollide = false
  107. rprt1.BrickColor = BrickColor.new("Brick yellow")
  108. rprt1.Name = "Blade1"
  109. rprt1.Transparency = 0
  110. rprt1.Reflectance = 0.1
  111. rprt1.Size = Vector3.new(1,1,1)
  112. rprt1.CFrame = Torso.CFrame
  113.  
  114. local rprt25 = Instance.new("Part")
  115. rprt25.formFactor = 3
  116. rprt25.Parent = modelzorz
  117. rprt25.CanCollide = false
  118. rprt25.BrickColor = BrickColor.new("Navy blue")
  119. rprt25.Name = "Blade1"
  120. rprt25.Transparency = 0
  121. rprt25.Reflectance = 0.1
  122. rprt25.Size = Vector3.new(1,1,1)
  123. rprt25.CFrame = Torso.CFrame
  124.  
  125. local frprt1 = Instance.new("Part")
  126. frprt1.formFactor = 3
  127. frprt1.Parent = modelzorz
  128. frprt1.CanCollide = false
  129. frprt1.BrickColor = BrickColor.new("Brick yellow")
  130. frprt1.Name = "Blade1"
  131. frprt1.Transparency = 0
  132. frprt1.Reflectance = 0.1
  133. frprt1.Size = Vector3.new(1,1,1)
  134. frprt1.CFrame = Torso.CFrame
  135.  
  136. local frprt25 = Instance.new("Part")
  137. frprt25.formFactor = 3
  138. frprt25.Parent = modelzorz
  139. frprt25.CanCollide = false
  140. frprt25.BrickColor = BrickColor.new("Really Navy blue")
  141. frprt25.Name = "Blade1"
  142. frprt25.Transparency = 0
  143. frprt25.Reflectance = 0.1
  144. frprt25.Size = Vector3.new(1,1,1)
  145. frprt25.CFrame = Torso.CFrame
  146. modelzorz:BreakJoints()
  147.  
  148. local msh25 = Instance.new("BlockMesh")
  149. msh25.Parent = prt1
  150. msh25.Scale = Vector3.new(1,1,1)
  151.  
  152. local tmsh25 = Instance.new("BlockMesh")
  153. tmsh25.Parent = tprt1
  154. tmsh25.Scale = Vector3.new(1,1,1)
  155.  
  156. local msh1 = Instance.new("BlockMesh")
  157. msh1.Parent = prt25
  158. msh1.Scale = Vector3.new(1,1,1)
  159.  
  160. local fmsh25 = Instance.new("BlockMesh")
  161. fmsh25.Parent = fprt1
  162. fmsh25.Scale = Vector3.new(1,1,1)
  163.  
  164. local fmsh1 = Instance.new("BlockMesh")
  165. fmsh1.Parent = fprt25
  166. fmsh1.Scale = Vector3.new(1,1,1)
  167.  
  168. local rmsh25 = Instance.new("BlockMesh")
  169. rmsh25.Parent = rprt1
  170. rmsh25.Scale = Vector3.new(1,1,1)
  171.  
  172. local rmsh1 = Instance.new("BlockMesh")
  173. rmsh1.Parent = rprt25
  174. rmsh1.Scale = Vector3.new(1,1,1)
  175.  
  176. local frmsh25 = Instance.new("BlockMesh")
  177. frmsh25.Parent = frprt1
  178. frmsh25.Scale = Vector3.new(1,1,1)
  179.  
  180. local frmsh1 = Instance.new("BlockMesh")
  181. frmsh1.Parent = frprt25
  182. frmsh1.Scale = Vector3.new(1,1,1)
  183.  
  184. local wld1 = Instance.new("Weld")
  185. wld1.Parent = prt1
  186. wld1.Part0 = prt1
  187. wld1.Part1 = LeftArm
  188. wld1.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,.5,0)
  189. wld1.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  190. local wld25 = Instance.new("Weld")
  191. wld25.Parent = prt25
  192. wld25.Part0 = prt25
  193. wld25.Part1 = LeftArm
  194. wld25.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-.5,0)
  195. wld25.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  196.  
  197. local twld1 = Instance.new("Weld")
  198. twld1.Parent = tprt1
  199. twld1.Part0 = tprt1
  200. twld1.Part1 = Torso
  201. twld1.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  202. twld1.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  203.  
  204. local fwld1 = Instance.new("Weld")
  205. fwld1.Parent = fprt1
  206. fwld1.Part0 = fprt1
  207. fwld1.Part1 = LeftLeg
  208. fwld1.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,.5,0)
  209. fwld1.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  210. local fwld25 = Instance.new("Weld")
  211. fwld25.Parent = fprt25
  212. fwld25.Part0 = fprt25
  213. fwld25.Part1 = LeftLeg
  214. fwld25.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-.5,0)
  215. fwld25.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  216.  
  217. local rwld1 = Instance.new("Weld")
  218. rwld1.Parent = rprt1
  219. rwld1.Part0 = rprt1
  220. rwld1.Part1 = RightArm
  221. rwld1.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,.5,0)
  222. rwld1.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  223. local rwld25 = Instance.new("Weld")
  224. rwld25.Parent = rprt25
  225. rwld25.Part0 = rprt25
  226. rwld25.Part1 = RightArm
  227. rwld25.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-.5,0)
  228. rwld25.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  229.  
  230. local frwld1 = Instance.new("Weld")
  231. frwld1.Parent = frprt1
  232. frwld1.Part0 = frprt1
  233. frwld1.Part1 = RightLeg
  234. frwld1.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,.5,0)
  235. frwld1.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  236. local frwld25 = Instance.new("Weld")
  237. frwld25.Parent = frprt25
  238. frwld25.Part0 = frprt25
  239. frwld25.Part1 = RightLeg
  240. frwld25.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-.5,0)
  241. frwld25.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  242. local gairo = Instance.new("BodyGyro")
  243. gairo.Parent = nil
  244. gairo.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge
  245. gairo.P = 20e+003
  246.  
  247. if (script.Parent.className ~= "HopperBin") then
  248. Tool = Instance.new("HopperBin")
  249. Tool.Parent = Backpack
  250. Tool.Name = "Present Tosser"
  251. script.Parent = Tool
  252. end
  253. Bin = script.Parent
  254.  
  255. function ThrowSpam2(mouse)
  256. for i = 0,1,0.1 do
  257. wait()
  258. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,3.14*i,1.57) * CFrame.new(0,1,0)
  259. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  260. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1+3.04*i,0,0)
  261. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  262. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  263. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  264. end
  265. wait(0.1)
  266. ss(1)
  267. coroutine.resume(coroutine.create(function()
  268. for i = 1,30 do
  269. wait(0.1)
  270. coroutine.resume(coroutine.create(function()
  271. shoottrail(mouse)
  272. end))
  273. end
  274. coroutine.resume(coroutine.create(function()
  275. for i = 0,1,0.2 do
  276. wait()
  277. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  278. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1+0.57-2+1.5+2-3*i,0,0)
  279. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  280. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57-1.77,0,1.4-1.4)
  281. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  282. end
  283. end))
  284. prt1.CanCollide = true
  285. shoottrail(mouse)
  286. --ShootArrow(mouse.hit.p, 200, mouse.Target)
  287. wait(1)
  288. prt1.Anchored = false
  289. wld1.Parent = prt1
  290. wld1.Part0 = prt1
  291. wld1.Part1 = LeftArm
  292. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,3.14,1.57) * CFrame.new(0,1,0)
  293. wld1.C1 = CFrame.new(0,0,0)
  294. if heromode == false then
  295. else
  296. wait(4)
  297. end
  298. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,0,1.57) * CFrame.new(0,1,0)
  299. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1,0,0)
  300. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  301. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  302. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  303. attack = false
  304. rangepower = 10
  305. end))
  306. end
  307.  
  308. spread2 = 500
  309. range2 = 1000
  310. rangepower = 10
  311. function shoottrail2(mouse)
  312. local spreadvector = (Vector3.new(math.random(-spread2,spread2),math.random(-spread2,spread2),math.random(-spread2,spread2)) / 100) * (prt1.Position-mouse.Hit.p).magnitude/100
  313. local dir = CFrame.new((prt1.Position+mouse.Hit.p)/2,mouse.Hit.p+spreadvector)
  314. local hit2,pos = rayCast(prt1.Position,dir.lookVector,10,Character)
  315. local rangepos = range2
  316. local function drawtrail(From,To)
  317. local effectsmsh = Instance.new("CylinderMesh")
  318. effectsmsh.Scale = Vector3.new(1,1,1)
  319. effectsmsh.Name = "Mesh"
  320. local effectsg = Instance.new("Part")
  321. effectsg.formFactor = 3
  322. effectsg.CanCollide = false
  323. effectsg.Name = "Eff"
  324. effectsg.Locked = true
  325. effectsg.Anchored = true
  326. effectsg.Size = Vector3.new(2,0.2,2)
  327. effectsg.Parent = Character
  328. effectsmsh.Parent = effectsg
  329. if heromode == true then
  330. effectsg.BrickColor = BrickColor.new("New Yeller")
  331. else
  332. if RAEG == true then
  333. effectsg.BrickColor = BrickColor.new("Bright red")
  334. else
  335. effectsg.BrickColor = BrickColor.new("white")
  336. end
  337. end
  338. effectsg.Reflectance = 0.25
  339. local LP = From
  340. local point1 = To
  341. local mg = (LP - point1).magnitude
  342. effectsmsh.Scale = Vector3.new(1,mg*5,1)
  343. effectsg.CFrame = CFrame.new((LP+point1)/2,point1) * CFrame.Angles(math.rad(90),0,0)
  344. coroutine.resume(coroutine.create(function()
  345. for i = 0 , 1 , 0.2 do
  346. wait()
  347. effectsg.Transparency = 1*i
  348. effectsmsh.Scale = Vector3.new(1-1*i,mg*5,1-1*i)
  349. end
  350. effectsg.Parent = nil
  351. end))
  352. end
  353. local newpos = prt1.Position
  354. local inc = rangepower
  355. repeat
  356. wait()
  357. rangepos = rangepos - 10
  358. dir = dir * CFrame.Angles(math.rad(-1),0,0)
  359. hit2,pos = rayCast(newpos,dir.lookVector,inc,Character)
  360. drawtrail(newpos,pos)
  361. newpos = newpos + (dir.lookVector * inc)
  362. if inc >= 20 then
  363. inc = inc - 10
  364. end
  365. if hit2 ~= nil then
  366. rangepos = 0
  367. end
  368. until rangepos <= 0
  369. if hit2 ~= nil then
  370. local effectsmsh = Instance.new("SpecialMesh")
  371. effectsmsh.MeshId = "http://www.roblox.com/asset/?id=15887356"
  372. --effectsmsh.Scale = Vector3.new(1,1,2.5)
  373. effectsmsh.Scale = Vector3.new(3,3,3)
  374. local effectsg = Instance.new("Part")
  375. effectsg.formFactor = 3
  376. effectsg.CanCollide = false
  377. effectsg.Name = "Arrow"
  378. effectsg.Locked = true
  379. effectsg.Size = Vector3.new(0.2,0.2,0.2)
  380. effectsg.Parent = modelzorz
  381. if heromode == true then
  382. effectsg.BrickColor = BrickColor.new("New Yeller")
  383. else
  384. if RAEG == true then
  385. effectsg.BrickColor = BrickColor.new("Bright red")
  386. else
  387. effectsg.BrickColor = BrickColor.new("white")
  388. end
  389. end
  390. effectsmsh.Parent = effectsg
  391. effectsg.CFrame = CFrame.new(newpos,pos) + CFrame.new(newpos,pos).lookVector*2.5*2
  392. local efwel = Instance.new("Weld")
  393. efwel.Parent = effectsg
  394. efwel.Part0 = effectsg
  395. efwel.Part1 = hit2
  396. local HitPos = effectsg.Position + CFrame.new(newpos,pos).lookVector*0.75
  397. --local HitPos = prt1.Position + CFrame.new(newpos,pos).lookVector*0.75
  398. --local HitPos = prt1.Position + (prt1.CFrame.lookVector * .5)
  399. local CJ = CFrame.new(HitPos)
  400. local C0 = effectsg.CFrame:inverse() * CJ
  401. local C1 = hit2.CFrame:inverse() * CJ
  402. efwel.C0 = C0
  403. efwel.C1 = C1
  404. efwel.Parent = effectsg
  405. Damg = 20
  406. if RAEG == true then
  407. Damg=Damg+5
  408. end
  409. hs(0.8)
  410. if heromode == true then
  411. magicsound(0.7)
  412. local c = game.Workspace:GetChildren();
  413. for i = 1, #c do
  414. local hum = c[i]:findFirstChild("Humanoid")
  415. if hum ~= nil and hum.Health ~= 0 then
  416. local head = c[i]:findFirstChild("Head");
  417. if head ~= nil then
  418. local targ = head.Position - effectsg.Position;
  419. local mag = targ.magnitude;
  420. if mag <= 15 and c[i].Name ~= Player.Name then
  421. wait()
  422. DBHit(head,effectsg,5)
  423. end
  424. end
  425. end
  426. end
  427. local msh1 = Instance.new("SpecialMesh") --Messy Script incoming >_>
  428. msh1.Scale = Vector3.new(0.01,0.01,0.01)
  429. msh1.MeshType = "Sphere"
  430. S=Instance.new("Part")
  431. S.Name="Effect"
  432. S.formFactor=0
  433. S.Size=Vector3.new(3,3,3)
  434. S.BrickColor=BrickColor.new("New Yeller")
  435. S.Reflectance = 0
  436. S.TopSurface=0
  437. S.BottomSurface=0
  438. S.Transparency=0
  439. S.Anchored=true
  440. S.CanCollide=false
  441. S.CFrame=effectsg.CFrame*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  442. S.Parent=workspace
  443. msh1.Parent = S
  444. r=Instance.new("Part")
  445. r.Anchored=true
  446. r.Name="Ring"
  447. r.CanCollide=false
  448. r.TopSurface=0
  449. r.BottomSurface=0
  450. r.CFrame=effectsg.CFrame*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(1,0,0)
  451. r.Parent=workspace
  452. local ring = Instance.new("SpecialMesh")
  453. ring.Parent = r
  454. ring.MeshId = "http://www.roblox.com/asset/?id=3270017"
  455. ring.Name = "RingMesh"
  456. r.RingMesh.Scale=Vector3.new(0.1,0.1,0.1)
  457. r.BrickColor=BrickColor.new("New Yeller")
  458. coroutine.resume(coroutine.create(function(par) for i=1, 9 do par.Transparency=i/9 par.RingMesh.Scale=par.RingMesh.Scale+Vector3.new(3,3,3) wait() end par.Parent=nil end),r)
  459. r=Instance.new("Part")
  460. r.Anchored=true
  461. r.Name="Ring"
  462. r.CanCollide=false
  463. r.TopSurface=0
  464. r.BottomSurface=0
  465. r.CFrame=effectsg.CFrame*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(-1,0,0)
  466. r.Parent=workspace
  467. local ring = Instance.new("SpecialMesh")
  468. ring.Parent = r
  469. ring.MeshId = "http://www.roblox.com/asset/?id=3270017"
  470. ring.Name = "RingMesh"
  471. r.RingMesh.Scale=Vector3.new(0.1,0.1,0.1)
  472. r.BrickColor=BrickColor.new("New Yeller")
  473. coroutine.resume(coroutine.create(function(par) for i=1, 9 do par.Transparency=i/9 par.RingMesh.Scale=par.RingMesh.Scale+Vector3.new(3,3,3) wait() end par.Parent=nil end),r)
  474. coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + Vector3.new(0.4,0.4,0.4) Part.CFrame=Part.CFrame*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50)) Part.Transparency=Part.Transparency+0.1 wait() end Part.Parent=nil end),S,S.CFrame)
  475.  
  476. local msh1 = Instance.new("SpecialMesh")
  477. msh1.Scale = Vector3.new(0.01,0.01,0.01)
  478. msh1.MeshType = "Sphere"
  479. S=Instance.new("Part")
  480. S.Name="Effect"
  481. S.formFactor=0
  482. S.Size=Vector3.new(3,3,3)
  483. S.BrickColor=BrickColor.new("New Yeller")
  484. S.Reflectance = 0
  485. S.TopSurface=0
  486. S.BottomSurface=0
  487. S.Transparency=0
  488. S.Anchored=true
  489. S.CanCollide=false
  490. S.CFrame=effectsg.CFrame*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  491. S.Parent=Character
  492. msh1.Parent = S
  493. coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + Vector3.new(0.3,0.3,0.3) Part.CFrame=Part.CFrame*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50)) Part.Transparency=Part.Transparency+0.1 wait() end Part.Parent=nil end),S,S.CFrame)
  494.  
  495. local msh1 = Instance.new("SpecialMesh")
  496. msh1.Scale = Vector3.new(1,0.5,1)
  497. msh1.MeshType = "Sphere"
  498. S=Instance.new("Part")
  499. S.Name="Effect"
  500. S.formFactor=0
  501. S.Size=Vector3.new(8,8,8)
  502. S.BrickColor=BrickColor.new("New Yeller")
  503. S.Reflectance = 0
  504. S.TopSurface=0
  505. S.BottomSurface=0
  506. S.Transparency=0
  507. S.Anchored=true
  508. S.CanCollide=false
  509. S.CFrame=effectsg.CFrame*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(0,0,0)
  510. S.Parent=workspace
  511. msh1.Parent = S
  512. coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + Vector3.new(0.15,0.3,0.15) Part.Transparency=i*.1 wait() end Part.Parent=nil end),S,S.CFrame)
  513. end
  514. coroutine.resume(coroutine.create(function()
  515. wait(3)
  516. effectsg.Parent = nil
  517. end))
  518. if hit2.Parent:FindFirstChild("Humanoid") ~= nil then
  519. hum = hit2.Parent.Humanoid
  520. attackdebounce = false
  521. Damagefunc1(hit2,Damg,15)
  522. elseif hit2.Parent.Parent ~= nil and hit2.Parent.Parent:FindFirstChild("Humanoid") ~= nil then
  523. hum = hit2.Parent.Parent.Humanoid
  524. attackdebounce = false
  525. Damagefunc1(hit2,Damg,15)
  526. end
  527. end
  528. end
  529.  
  530. function BouncingSpear(mouse)
  531. attack = true
  532. for i = 0,1,0.1 do
  533. wait()
  534. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,3.14*i,1.57) * CFrame.new(0,1,0)
  535. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  536. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1+3.04*i,0,0)
  537. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  538. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  539. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  540. end
  541. wait(0.1)
  542. ss(1)
  543. coroutine.resume(coroutine.create(function()
  544. for i = 0,1,0.2 do
  545. wait()
  546. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  547. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1+0.57-2+1.5+2-3*i,0,0)
  548. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  549. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57-1.77,0,1.4-1.4)
  550. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  551. end
  552. end))
  553. Bouncing = true
  554. prt1.CanCollide = true
  555. spread2 = 100000
  556. cloning = 0
  557. wait()
  558. attack = true
  559. while wld1.Parent ~= nil and Bouncing == true and attack == true do
  560. if wld1.Parent == nil then
  561. Bouncing = false
  562. end
  563. cloning = cloning + 1
  564. if cloning == 5 and heromode == false then
  565. cloning = 0
  566. for i = 1,2 do
  567. coroutine.resume(coroutine.create(function()
  568. shoottrail2(mouse)
  569. end))
  570. end
  571. end
  572. shoottrail(mouse)
  573. --ShootArrow(mouse.hit.p, 200, mouse.Target)
  574. if heromode == true then
  575. rangepower = 40
  576. spread = 2000
  577. spread2 = 2500
  578. --spread2 = 100000
  579. --spread = 100000
  580. range = 30
  581. range2 = 200
  582. elseif heromode == false then
  583. rangepower = 10
  584. spread = 2000
  585. spread2 = 2500
  586. --spread2 = 100000
  587. --spread = 100000
  588. range = 50
  589. range2 = 200
  590. end
  591. wait(0)
  592. end
  593. wait(1)
  594. rangepower = 10
  595. spread = 0
  596. range = 1000
  597. range2 = 1000
  598. spread2 = 500
  599. cloning = 0
  600. Bouncing = false
  601. prt1.Anchored = false
  602. wld1.Parent = prt1
  603. wld1.Part0 = prt1
  604. wld1.Part1 = LeftArm
  605. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,3.14,1.57) * CFrame.new(0,1,0)
  606. wld1.C1 = CFrame.new(0,0,0)
  607. if heromode == false then
  608. else
  609. wait(4)
  610. end
  611. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,0,1.57) * CFrame.new(0,1,0)
  612. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1,0,0)
  613. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  614. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  615. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  616. attack = false
  617. rangepower = 10
  618. end
  619.  
  620. function Smack()
  621. attack = true
  622. for i = 0,1,0.1 do
  623. wait()
  624. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,3.14*i,1.57) * CFrame.new(0,.5,0)
  625. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  626. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1+3.04*i,0,0)
  627. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  628. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  629. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  630. end
  631. wait(0.1)
  632. ss(1)
  633. coroutine.resume(coroutine.create(function()
  634. for i = 0,1,0.2 do
  635. wait()
  636. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  637. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1+0.57-2+1.5+2-3*i,0,0)
  638. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  639. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57-1.77,0,1.4-1.4)
  640. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  641. end
  642. end))
  643. con1=prt1.Touched:connect(function(hit) Damagefunc1(hit,20,15) end)
  644. --ShootArrow(mouse.hit.p, 200, mouse.Target)
  645. wait(1)
  646. prt1.Anchored = false
  647. wld1.Parent = prt1
  648. wld1.Part0 = prt1
  649. wld1.Part1 = LeftArm
  650. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,3.14,1.57) * CFrame.new(0,.5,0)
  651. wld1.C1 = CFrame.new(0,0,0)
  652. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,0,1.57) * CFrame.new(0,.5,0)
  653. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1,0,0)
  654. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  655. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  656. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  657. attack = false
  658. con1:disconnect()
  659. end
  660.  
  661. function BodyThrow(mouse)
  662. attack = true
  663. for i = 0,1,0.1 do
  664. wait()
  665. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,3.14*i,1.57) * CFrame.new(0,.5,0)
  666. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  667. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1+3.04*i,0,0)
  668. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  669. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  670. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  671. end
  672. wait(0.1)
  673. ss(1)
  674. coroutine.resume(coroutine.create(function()
  675. for i = 0,1,0.2 do
  676. wait()
  677. Torso.Neck.C0=necko*CFrame.fromEulerAnglesXYZ(0,0,0)
  678. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1+0.57-2+1.5+2-3*i,0,0)
  679. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  680. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1.57-1.77,0,1.4-1.4)
  681. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  682. end
  683. end))
  684. prt1.CanCollide = true
  685. shoottrail(mouse)
  686. --ShootArrow(mouse.hit.p, 200, mouse.Target)
  687. wait(1)
  688. prt1.Anchored = false
  689. wld1.Parent = prt1
  690. wld1.Part0 = prt1
  691. wld1.Part1 = LeftArm
  692. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,3.14,1.57) * CFrame.new(0,.5,0)
  693. wld1.C1 = CFrame.new(0,0,0)
  694. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,0,1.57) * CFrame.new(0,.5,0)
  695. LW.C0 = CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(1,0,0)
  696. LW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  697. RW.C0 = CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  698. RW.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0,0,0)
  699. attack = false
  700. rangepower = 10
  701. prt1.CanCollide = false
  702. end
  703.  
  704. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  705. return game.Workspace:FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  706. end
  707.  
  708. spread = 0
  709. range = 1000
  710. rangepower = 10
  711. function shoottrail(mouse)
  712. local spreadvector = (Vector3.new(math.random(-spread,spread),math.random(-spread,spread),math.random(-spread,spread)) / 100) * (prt1.Position-mouse.Hit.p).magnitude/100
  713. local dir = CFrame.new((prt1.Position+mouse.Hit.p)/2,mouse.Hit.p+spreadvector)
  714. local hit,pos = rayCast(prt1.Position,dir.lookVector,10,Character)
  715. local rangepos = range
  716. local function drawtrail(From,To)
  717. local effectsmsh = Instance.new("CylinderMesh")
  718. effectsmsh.Scale = Vector3.new(1,1,1)
  719. effectsmsh.Name = "Mesh"
  720. local effectsg = Instance.new("Part")
  721. effectsg.formFactor = 3
  722. effectsg.CanCollide = false
  723. effectsg.Name = "Eff"
  724. effectsg.Locked = true
  725. effectsg.Anchored = true
  726. effectsg.Size = Vector3.new(2,0.5,2)
  727. effectsg.Parent = workspace
  728. effectsmsh.Parent = effectsg
  729. effectsg.BrickColor = BrickColor.new("Navy blue")
  730. effectsg.Reflectance = 0.25
  731. local LP = From
  732. local point1 = To
  733. local mg = (LP - point1).magnitude
  734. effectsmsh.Scale = Vector3.new(1,mg*5,1)
  735. effectsg.CFrame = CFrame.new((LP+point1)/2,point1) * CFrame.Angles(math.rad(90),0,0)
  736. --prt25.CFrame = effectsg.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(180),1.57,0)
  737. prt25.CFrame = effectsg.CFrame * CFrame.fromEulerAnglesXYZ(-1.57,0,1.57)
  738. wld1.Part0 = prt25
  739. wld1.Part1 = effectsg
  740. --wld1.C0 = CFrame.new(0,0,0) * CFrame.fromEulerAnglesXYZ(1.57,0,-1.57)
  741. wld1.C0 = CFrame.new(0,0,0) * CFrame.fromEulerAnglesXYZ(1.57,0,-1.57)
  742. wld1.C1 = CFrame.new(0,0,0)
  743. coroutine.resume(coroutine.create(function()
  744. for i = 0 , 1 , 0.1 do
  745. wait()
  746. prt1.CFrame = effectsg.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(180),1.57,0)
  747. effectsg.Transparency = 1*i
  748. effectsmsh.Scale = Vector3.new(1-1*i,mg*5,1-1*i)
  749. end
  750. effectsg.Parent = nil
  751. end))
  752. end
  753. local newpos = prt1.Position
  754. local inc = rangepower
  755. repeat
  756. wait()
  757. rangepos = rangepos - 10
  758. dir = dir * CFrame.Angles(math.rad(-1),0,0)
  759. hit,pos = rayCast(newpos,dir.lookVector,inc,Character)
  760. drawtrail(newpos,pos)
  761. newpos = newpos + (dir.lookVector * inc)
  762. if inc >= 20 then
  763. inc = inc - 10
  764. end
  765. if hit ~= nil then
  766. rangepos = 0
  767. end
  768. until rangepos <= 0
  769. if hit ~= nil then
  770. local effectsmsh = Instance.new("SpecialMesh")
  771. effectsmsh.MeshId = "http://www.roblox.com/asset/?id=15887356"
  772. effectsmsh.TextureId = "http://www.roblox.com/asset/?id=15886781"
  773. effectsmsh.Scale = Vector3.new(1,1,2.5)
  774. local effectsg = Instance.new("Part")
  775. effectsg.formFactor = 3
  776. effectsg.CanCollide = false
  777. effectsg.Name = "Arrow"
  778. effectsg.Locked = true
  779. effectsg.Size = Vector3.new(0.2,0.2,0.2)
  780. effectsg.Parent = nil
  781. effectsmsh.Parent = effectsg
  782. effectsg.CFrame = CFrame.new(newpos,pos) + CFrame.new(newpos,pos).lookVector*2.5*2
  783. prt1.CFrame = effectsg.CFrame
  784. wld1.Part0 = prt1
  785. wld1.Part1 = hit
  786. --local HitPos = effectsg.Position + CFrame.new(newpos,pos).lookVector*0.75
  787. --local HitPos = prt1.Position + CFrame.new(newpos,pos).lookVector*0.75
  788. local HitPos = prt1.Position + (prt1.CFrame.lookVector * .5)
  789. prt1.CFrame = CFrame.new(HitPos) * CFrame.fromEulerAnglesXYZ(0,1.57,0)
  790. local CJ = CFrame.new(HitPos)
  791. local C0 = prt1.CFrame:inverse() * CJ
  792. local C1 = hit.CFrame:inverse() * CJ
  793. wld1.C0 = C0
  794. wld1.C1 = C1
  795. wld1.Parent = prt1
  796. Damg = 40
  797. hs(0.8)
  798. magicsound(0.7)
  799. local c = game.Workspace:GetChildren();
  800. for i = 1, #c do
  801. local hum = c[i]:findFirstChild("Humanoid")
  802. if hum ~= nil and hum.Health ~= 0 then
  803. local head = c[i]:findFirstChild("Head");
  804. if head ~= nil then
  805. local targ = head.Position - prt25.Position;
  806. local mag = targ.magnitude;
  807. if mag <= 15 and c[i].Name ~= Player.Name then
  808. wait()
  809. DBHit(head,prt25,30)
  810. end
  811. end
  812. end
  813. end
  814. coroutine.resume(coroutine.create(function()
  815. wait(15)
  816. effectsg.Parent = nil
  817. end))
  818. if hit.Parent:FindFirstChild("Humanoid") ~= nil then
  819. hum = hit.Parent.Humanoid
  820. Damagefunc1(hit,Damg,15)
  821. elseif hit.Parent.Parent ~= nil and hit.Parent.Parent:FindFirstChild("Humanoid") ~= nil then
  822. hum = hit.Parent.Parent.Humanoid
  823. Damagefunc1(hit,Damg,15)
  824. end
  825. end
  826. end
  827.  
  828. function Jump()
  829. attack=true
  830. local vel2 = Instance.new("BodyVelocity")
  831. vel2.Parent = Player.Character.Torso
  832. vel2.maxForce = Vector3.new(4e+005,4e+005,4e+005)*1
  833. vel2.velocity = Vector3.new(0,1,0) * 100
  834. wait(0.1)
  835. vel2.Parent=nil
  836. attack=false
  837. end
  838.  
  839. Damagefunc1=function(hit,Damage,Knockback)
  840. if attackdebounce == false then
  841. attackdebounce = true
  842. coroutine.resume(coroutine.create(function()
  843. wait(0.1)
  844. attackdebounce = false
  845. end))
  846. if hit.Parent==nil then
  847. return
  848. end
  849. CPlayer=Bin
  850. h=hit.Parent:FindFirstChild("Humanoid")
  851. if h==nil then
  852. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  853. end
  854. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  855. if mana < 400 then
  856. mana = mana + math.random(20,30)
  857. end
  858. if mana > 400 then
  859. mana = 400
  860. end
  861. Damage=Damage
  862. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil or game.Players:GetPlayerFromCharacter(hit.Parent.Parent)~=nil then
  863. return
  864. end]]
  865. c=Instance.new("ObjectValue")
  866. c.Name="creator"
  867. c.Value=game.Players.LocalPlayer
  868. c.Parent=h
  869. game:GetService("Debris"):AddItem(c,.5)
  870. -- print(c.Value)
  871. if math.random(0,99)+math.random()<=5 then
  872. CRIT=true
  873. Damage=Damage*1.5
  874. --[[ Knockback=Knockback*2
  875. r=Instance.new("BodyAngularVelocity")
  876. r.P=3000
  877. r.maxTorque=Vector3.new(500000000,50000000000,500000000)*50000
  878. r.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  879. r.Parent=hit.Parent.Torso]]
  880. critsound(2)
  881.  
  882. end
  883. Damage=Damage+math.random(0,10)
  884. -- Blood(hit.CFrame*CFrame.new(math.random(-10,10)/10,math.random(-10,10)/10,0),math.floor(Damage/2))
  885. h:TakeDamage(Damage)
  886. showDamage(hit.Parent,Damage,.5)
  887. vp=Instance.new("BodyVelocity")
  888. vp.P=500
  889. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  890. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  891. vp.velocity=Torso.CFrame.lookVector*Knockback+Torso.Velocity/1.05
  892. if Knockback>0 then
  893. vp.Parent=hit.Parent.Torso
  894. end
  895. game:GetService("Debris"):AddItem(vp,.25)
  896. --[[ r=Instance.new("BodyAngularVelocity")
  897. r.P=3000
  898. r.maxTorque=Vector3.new(500000000,50000000000,500000000)*50000
  899. r.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  900. r.Parent=hit.Parent.Torso]]
  901. game:GetService("Debris"):AddItem(r,.5)
  902. c=Instance.new("ObjectValue")
  903. c.Name="creator"
  904. c.Value=Player
  905. c.Parent=h
  906. game:GetService("Debris"):AddItem(c,.5)
  907. CRIT=false
  908. hitDeb=true
  909. AttackPos=6
  910. end
  911. end
  912. end
  913.  
  914. function ss(pitch)
  915.  
  916. local SlashSound = Instance.new("Sound")
  917. --SlashSound.SoundId = "rbxasset://sounds\\swordslash.wav"
  918. SlashSound.SoundId = "http://roblox.com/asset/?id=10209645"
  919. SlashSound.Parent = workspace
  920. SlashSound.Volume = .7
  921. SlashSound.Pitch = pitch
  922. SlashSound.PlayOnRemove = true
  923. coroutine.resume(coroutine.create(function()
  924. wait(0)
  925. SlashSound.Parent = nil
  926. end))
  927. end
  928.  
  929. function hs(pitch)
  930. local SlashSound = Instance.new("Sound")
  931. SlashSound.SoundId = "http://roblox.com/asset/?id=10209590"
  932. SlashSound.Parent = workspace
  933. SlashSound.Volume = .5
  934. SlashSound.Pitch = pitch
  935. SlashSound.PlayOnRemove = true
  936. coroutine.resume(coroutine.create(function()
  937. wait(0)
  938. SlashSound.Parent = nil
  939. end))
  940. end
  941.  
  942. function magicsound(pitch)
  943.  
  944. local SlashSound = Instance.new("Sound")
  945. SlashSound.SoundId = "http://www.roblox.com/asset/?id=2248511"
  946. SlashSound.Parent = workspace
  947. SlashSound.Volume = .5
  948. SlashSound.Pitch = pitch
  949. SlashSound.PlayOnRemove = true
  950. coroutine.resume(coroutine.create(function()
  951. wait(0)
  952. SlashSound.Parent = nil
  953. end))
  954. end
  955.  
  956. DBHit=function(hit,DB,Dmg) --credits to turdulator for making this function :D
  957. if hit.Parent==nil then
  958. return
  959. end
  960. h=hit.Parent:FindFirstChild("Humanoid")
  961. if h==nil then
  962. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  963. end
  964. t=hit.Parent:FindFirstChild("Torso")
  965. if h~=nil and t~=nil then
  966. if h.Parent==Character then
  967. return
  968. end
  969. Damage=Dmg+math.random(2,10)
  970. h:TakeDamage(Damage)
  971. c=Instance.new("ObjectValue")
  972. c.Name="creator"
  973. c.Value=game.Players.LocalPlayer
  974. c.Parent=h
  975. game:GetService("Debris"):AddItem(c,.5)
  976. showDamage(hit.Parent,Damage,.5)
  977. vl=Instance.new("BodyVelocity")
  978. vl.P=4500
  979. vl.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  980. vl.velocity=Vector3.new(Torso.Velocity.x,0,Torso.Velocity.z)*1.05+Vector3.new(0,3,0)
  981. vl.Parent=t
  982. game:GetService("Debris"):AddItem(vl,.2)
  983. rl=Instance.new("BodyAngularVelocity")
  984. rl.P=3000
  985. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  986. rl.angularvelocity=Vector3.new(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  987. rl.Parent=t
  988. game:GetService("Debris"):AddItem(rl,.2)
  989. else
  990. if hit.CanCollide==false then
  991. return
  992. end
  993. MagicCom:disconnect()
  994. -- DBExplode(DB)
  995. end
  996. end
  997.  
  998. function ob1d(mouse)
  999. if attack == true then return end
  1000. hold = true
  1001. Smack()
  1002. end
  1003.  
  1004. function ob1u(mouse)
  1005. hold = false
  1006. end
  1007.  
  1008. function Key(key,mouse)
  1009. if key == "u" then
  1010. coroutine.resume(coroutine.create(function()
  1011. wait(0.1)
  1012. wld1.Parent = prt1
  1013. wld1.Part0 = prt1
  1014. wld1.Part1 = LeftArm
  1015. wld1.C0 = CFrame.fromEulerAnglesXYZ(1.57,0,1.57) * CFrame.new(0,.5,0)
  1016. wld1.C1 = CFrame.new(0,0,0)
  1017. attack = false
  1018. end))
  1019. end
  1020. if key == " " then
  1021. Jump(mouse)
  1022. end
  1023. if key == "r" then
  1024. hold = true
  1025. BodyThrow(mouse)
  1026. end
  1027. if key == "t" then
  1028. ThrowSpam2(mouse)
  1029. end
  1030. if key == "y" then
  1031. BouncingSpear(mouse)
  1032. end
  1033. end
  1034.  
  1035. function s(mouse)
  1036. mouse.Button1Down:connect(function() ob1d(mouse) end)
  1037. mouse.Button1Up:connect(function() ob1u(mouse) end)
  1038. mouse.KeyDown:connect(function(key) Key(key,mouse) end)
  1039. --mouse.KeyDown:connect(key,mouse)
  1040. mouse.KeyUp:connect(key2,mouse)
  1041. player = Player
  1042. ch = Character
  1043. RSH = ch.Torso["Right Shoulder"]
  1044. LSH = ch.Torso["Left Shoulder"]
  1045. --
  1046. RW.Part0 = ch.Torso
  1047. RW.C0 = CFrame.new(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  1048. RW.C1 = CFrame.new(0, 0.5, 0)
  1049. RW.Part1 = ch["Right Arm"]
  1050. RW.Parent = ch.Torso
  1051. --_G.R = RW
  1052. --
  1053. LW.Part0 = ch.Torso
  1054. LW.C0 = CFrame.new(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  1055. LW.C1 = CFrame.new(0, 0.5, 0)
  1056. LW.Part1 = ch["Left Arm"]
  1057. LW.Parent = ch.Torso
  1058. --_G.L = LW
  1059. --
  1060. end
  1061.  
  1062. function ds(mouse)
  1063. RW.Parent = nil
  1064. LW.Parent = nil
  1065. RSH.Parent = player.Character.Torso
  1066. LSH.Parent = player.Character.Torso
  1067. end
  1068.  
  1069. Bin.Selected:connect(s)
  1070. Bin.Deselected:connect(ds)
  1071.  
  1072. while true do
  1073. wait(0)
  1074. LeftArm.Transparency = 1
  1075. RightArm.Transparency = 1
  1076. LeftLeg.Transparency = 1
  1077. RightLeg.Transparency = 1
  1078. Torso.Transparency = 1
  1079. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement