MrWiggles1029

aoiooif

Oct 26th, 2017
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.33 KB | None | 0 0
  1. ply = game:GetService("Players").localPlayer
  2. local char = ply.Character
  3. local torso = char.Torso
  4. local ls = torso["Left Shoulder"]
  5. local rs = torso["Right Shoulder"]
  6. local larm = char["Left Arm"]
  7. local rarm = char["Right Arm"]
  8. rw,lw = Instance.new("Weld"),Instance.new("Weld")
  9. script.Parent = char
  10. attacking = false
  11. holding = false
  12. ndam = -5
  13. dam = ndam
  14.  
  15. ----BLOOD---
  16. function blood(part)
  17. wait(0.000001)
  18. local c = Instance.new("Part",Workspace)
  19. c.formFactor = "Custom"
  20. c.Size = Vector3.new(0.2,0.2,0.2)
  21. c.Position = part.Position + Vector3.new(math.random(-1,1),math.random(-1,1),math.random(-1,1))
  22. c.BrickColor = BrickColor.new("New Yeller")
  23. c.Transparency = 0.5
  24. c.TopSurface = 0
  25. c.BottomSurface = 0
  26. game:GetService("Debris"):AddItem(c,2)
  27. end
  28. ---------------
  29.  
  30. local function damage(hit)
  31. if hit.Parent ~= char then
  32. for i,v in pairs(hit.Parent:GetChildren()) do
  33. if v:IsA("Humanoid") then
  34. v.Health = v.Health-dam
  35. blood(hit)
  36. end
  37. end
  38. end
  39. end
  40.  
  41.  
  42. -----LOCKING FUNCTION----
  43. function lock(a)
  44. if a == 1 then
  45. rw.Parent = torso
  46. rw.Part0 = rs.Part0
  47. rw.Part1 = rs.Part1
  48. rw.C0 = rs.C0
  49. rw.C1 = rs.C1
  50.  
  51. lw.Parent = torso
  52. lw.Part0 = ls.Part0
  53. lw.Part1 = ls.Part1
  54. lw.C0 = ls.C0
  55. lw.C1 = ls.C1
  56.  
  57. ls.Parent = nil
  58. rs.Parent = nil
  59. elseif a == 0 then
  60. ls.Parent = torso
  61. rs.Parent = torso
  62. rw.Parent = nil
  63. lw.Parent = nil
  64. end
  65. end
  66. ----------------------
  67. m = Instance.new("Model",char)
  68. m.Name = "Maul1"
  69.  
  70. ---MAIN---
  71. hdl = Instance.new("Part",m)
  72. hdl.formFactor = "Custom"
  73. hdl.Size = Vector3.new(0.5,5,0.5)
  74. hdl.TopSurface = 0
  75. hdl.BottomSurface = 0
  76. hdl.Color = Color3.new(0,0,0.5)
  77. hdl.CanCollide = false
  78. hdl.Name = "Handle"
  79.  
  80. ball = hdl:Clone()
  81. ball.formFactor = "Custom"
  82. ball.Parent = m
  83. ball.Shape = 0
  84. ball.Size = Vector3.new(2,2,2)
  85. ball.Name = "Tip"
  86. ball.Touched:connect(damage)
  87.  
  88. Instance.new("CylinderMesh",hdl)
  89.  
  90. ball2 = ball:Clone()
  91. ball2.Parent = m
  92. ball2.Size = ball.Size * 1.5
  93. ball2.Transparency = 0.9
  94. ball2.CanCollide = false
  95. ball2.Color = Color3.new(0,0,0)
  96.  
  97. stup = hdl:Clone()
  98. stup.Parent = m
  99. stup.Size = Vector3.new(0.7,0.3,0.7)
  100. stup.BrickColor = BrickColor.new("New Yeller")
  101.  
  102. disc = hdl:Clone()
  103. disc.Parent = m
  104. disc.Size = Vector3.new(ball.Size.x,0,ball.Size.y)*1.1
  105. disc.Color = stup.Color
  106.  
  107. disc2 = disc:Clone()
  108. disc2.Parent = m
  109.  
  110. disc3 = disc:Clone()
  111. disc3.Parent = m
  112.  
  113. for i,v in pairs(m:GetChildren()) do
  114. wait()
  115. v.Position = larm.Position
  116. end
  117.  
  118. w = Instance.new("Weld",disc)
  119. w.Part0 = disc
  120. w.Part1 = ball
  121. w = Instance.new("Weld",disc2)
  122. w.Part0 = disc2
  123. w.Part1 = ball
  124. w.C1 = CFrame.Angles(0,0,math.pi/2)
  125. w = Instance.new("Weld",disc3)
  126. w.Part0 = disc3
  127. w.Part1 = ball
  128. w.C1 = CFrame.Angles(0,math.pi/2,math.pi/2)
  129.  
  130. bw = Instance.new("Weld",ball)
  131. bw.Part0 = ball
  132. bw.Part1 = hdl
  133. bw.C1 = CFrame.new(0,hdl.Size.y/2+ball.Size.y/2.2,0)
  134.  
  135. w = Instance.new("Weld",ball2)
  136. w.Part0 = ball2
  137. w.Part1 = ball
  138.  
  139. w = Instance.new("Weld",stup)
  140. w.Part0 = stup
  141. w.Part1 = hdl
  142. w.C1 = CFrame.new(0,-hdl.Size.y/2-stup.Size.y/2,0) * CFrame.Angles(0,math.pi/2,0)
  143.  
  144. holdpos = CFrame.new(0,-larm.Size.y/2,0) * CFrame.Angles(-math.pi/1.95,math.pi,0)
  145. torsopos = CFrame.new(0,0,torso.Size.z/2)
  146. stabpos = CFrame.new(0,-larm.Size.y/2,0) * CFrame.Angles(0,0,-math.pi)
  147.  
  148. hw = Instance.new("Weld",hdl)
  149. hw.Part0 = hdl
  150. hw.Part1 = torso
  151. hw.C1 = torsopos * CFrame.Angles(0,0,math.pi/4)
  152.  
  153. for i = -hdl.Size.y/2,hdl.Size.y/2 do
  154. c2 = disc:Clone()
  155. c2.Parent = m
  156. c2.Size = Vector3.new(hdl.Size.x,0.2,hdl.Size.y) * 1.1
  157.  
  158. w = Instance.new("Weld",c2)
  159. w.Part0 = c2
  160. w.Part1 = hdl
  161. w.C1 = CFrame.new(0,i,0)
  162. end
  163.  
  164. spar = Instance.new("Sparkles",ball)
  165. spar.SparkleColor = Color3.new(1,1,0)
  166. spar.Enabled = false
  167.  
  168. -----------------------
  169. ---SECOND WEP---
  170. m2 = m:Clone()
  171. m2.Name = "Maul2"
  172. m2.Parent = char
  173. local hdl2 = m2:FindFirstChild("Handle")
  174. local tip2 = m2:FindFirstChild("Tip")
  175. tip2.Touched:connect(damage)
  176. local spar2 = tip2:FindFirstChild("Sparkles")
  177. hw2 = Instance.new("Weld",hdl2)
  178. hw2.Part0 = hdl2
  179. hw2.Part1 = torso
  180. hw2.C1 = torsopos * CFrame.Angles(0,0,-math.pi/4)
  181. --------------
  182.  
  183. function ang(x,y,z)
  184. return CFrame.Angles(math.rad(x),math.rad(y),math.rad(z))
  185. end
  186.  
  187. function wield(a,b)
  188. attacking = true
  189. if b == 1 then
  190. lock(1)
  191.  
  192. for i = 1,120/a do
  193. wait()
  194. lw.C0 = lw.C0 * ang(0,0,-a)
  195. rw.C0 = rw.C0 * ang(0,0,a)
  196. end
  197. hw.Part1 = larm
  198. hw.C1 = holdpos
  199. hw2.Part1 = rarm
  200. hw2.C1 = holdpos
  201. for i = 1,40/a do
  202. wait()
  203. lw.C0 = lw.C0 * ang(0,0,a)
  204. rw.C0 = rw.C0 * ang(0,0,-a)
  205. end
  206.  
  207. elseif b == 0 then
  208. for i = 1,120/a do
  209. wait()
  210. lw.C0 = lw.C0 * ang(0,0,-a)
  211. rw.C0 = rw.C0 * ang(0,0,a)
  212. end
  213. hw.Part1 = torso
  214. hw.C1 = torsopos * CFrame.Angles(0,0,math.pi/4)
  215. hw2.Part1 = torso
  216. hw2.C1 = torsopos * CFrame.Angles(0,0,-math.pi/4)
  217. for i = 1,40/a do
  218. wait()
  219. lw.C0 = lw.C0 * ang(0,0,a)
  220. rw.C0 = rw.C0 * ang(0,0,-a)
  221. end
  222. lock(0)
  223. end
  224. attacking = false
  225. end
  226.  
  227. function slash(a)
  228. attacking = true
  229. spar.Enabled = true spar2.Enabled = true
  230. for i = 1,50/a do
  231. wait()
  232. lw.C0 = lw.C0 * ang(0,-a,0)
  233. end
  234. for i = 1,90/a do
  235. wait()
  236. lw.C0 = lw.C0 * ang(0,0,a)
  237. end
  238.  
  239. for i = 1,90/a do
  240. wait()
  241. lw.C0 = lw.C0 * ang(0,0,-a)
  242. end
  243. for i = 1,50/a do
  244. wait()
  245. lw.C0 = lw.C0 * ang(0,a,0)
  246. end
  247.  
  248. for i = 1,50/a do
  249. wait()
  250. rw.C0 = rw.C0 * ang(0,a,0)
  251. end
  252. for i = 1,90/a do
  253. wait()
  254. rw.C0 = rw.C0 * ang(0,0,-a)
  255. end
  256.  
  257. for i = 1,90/a do
  258. wait()
  259. rw.C0 = rw.C0 * ang(0,0,a)
  260. end
  261. for i = 1,50/a do
  262. wait()
  263. rw.C0 = rw.C0 * ang(0,-a,0)
  264. end
  265. attacking = false
  266. spar.Enabled = false spar2.Enabled = false
  267. end
  268.  
  269. function shine(a)
  270. attaking = true
  271. for i = 1,20/a do
  272. wait()
  273. lw.C0 = lw.C0 * ang(a,0,0)
  274. rw.C0 = rw.C0 * ang(a,0,0)
  275. end
  276. for i = 1,6/3 do
  277. wait()
  278. lw.C0 = lw.C0 * ang(0,-a,0)
  279. rw.C0 = rw.C0 * ang(0,a,0)
  280. end
  281. for i = 1,6/3 do
  282. rw.C0 = rw.C0 * ang(0,0,-a)
  283. end
  284. for i = 1,50 do
  285. wait()
  286. c = Instance.new("Part",m)
  287. c.formFactor = "Custom"
  288. c.Size = Vector3.new(0.3,0.3,math.random(10,20))
  289. c.Anchored = true
  290. c.TopSurface = 0
  291. c.BottomSurface = 0
  292. c.Transparency = 0.5
  293. c.CanCollide = false
  294. c.Color = stup.Color
  295. c.CFrame = torso.CFrame * CFrame.Angles(i,i,i) + torso.CFrame.lookVector * 5
  296. game:GetService("Debris"):AddItem(c,0.3)
  297. end
  298. effect(torso.Position + torso.CFrame.lookVector * 5,10,0)
  299. for i = 1,6/3 do
  300. rw.C0 = rw.C0 * ang(0,0,a)
  301. end
  302. for i = 1,6/3 do
  303. wait()
  304. lw.C0 = lw.C0 * ang(0,a,0)
  305. rw.C0 = rw.C0 * ang(0,-a,0)
  306. end
  307. for i = 1,20/a do
  308. wait()
  309. lw.C0 = lw.C0 * ang(-a,0,0)
  310. rw.C0 = rw.C0 * ang(-a,0,0)
  311. end
  312. attacking = false
  313. end
  314.  
  315. function effect(pos,radius,a)
  316. local ce = Instance.new("Part",m)
  317. ce.Size = Vector3.new(1,1,1)
  318. ce.TopSurface = 0
  319. ce.BottomSurface = 0
  320. ce.Anchored = true
  321. ce.CFrame = CFrame.new(pos)
  322. ce.CanCollide = false
  323. ce.Transparency = 0.5
  324. ce.Color = stup.Color
  325.  
  326. mesh = Instance.new("SpecialMesh",ce)
  327. mesh.MeshType = 3
  328. if a == 1 then
  329. mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  330. end
  331.  
  332. for i = 1,radius do
  333. wait()
  334. mesh.Scale = Vector3.new(i,i,i)
  335. ce.Transparency = i/radius
  336. end
  337. ce:Remove()
  338. end
  339.  
  340. function slash2(a)
  341. attacking = true
  342. dam = 3
  343. for i = 1,30/a do
  344. wait()
  345. lw.C0 = lw.C0 * ang(a,0,0)
  346. end
  347. for i = 1,80/a do
  348. wait()
  349. lw.C0 = lw.C0 * ang(0,0,a)
  350. end
  351. effect(ball2.Position,5,1)
  352. for i = 1,80/a do
  353. wait()
  354. lw.C0 = lw.C0 * ang(0,0,-a)
  355. end
  356. for i = 1,30/a do
  357. wait()
  358. lw.C0 = lw.C0 * ang(-a,0,0)
  359. end
  360.  
  361. for i = 1,25/a do
  362. wait()
  363. rw.C0 = rw.C0 * ang(0,-a,0)
  364. end
  365. for i = 1,80/a do
  366. wait()
  367. rw.C0 = rw.C0 * ang(0,0,-a)
  368. end
  369. effect(tip2.Position,5,1)
  370. for i = 1,80/a do
  371. wait()
  372. rw.C0 = rw.C0 * ang(0,0,a)
  373. end
  374. for i = 1,25/a do
  375. wait()
  376. rw.C0 = rw.C0 * ang(0,a,0)
  377. end
  378. dam = ndam
  379. attacking = false
  380. end
  381.  
  382. function clone(pos,a)
  383. char.archivable = true
  384. local cl = char:Clone()
  385. cl.Parent = Workspace
  386. cl.Torso.CFrame = CFrame.new(pos) + Vector3.new(0,cl.Torso.Size.y*2)
  387. cl.Humanoid.Died:connect(function() cl:Remove() end)
  388. char.archivable = false
  389. if a > 0 then
  390. delay(a,function()Instance.new("Explosion",Workspace).Position = cl.Torso.Position end)
  391. end
  392. return cl
  393. end
  394.  
  395. function clonewave(a)
  396. attacking = true
  397. for i = 1,90/a do
  398. wait()
  399. lw.C0 = lw.C0 * ang(0,0,-a)
  400. end
  401. for i = 1,360/a do
  402. wait()
  403. hw.C0 = hw.C0 * ang(0,0,a)
  404. end
  405.  
  406. effect(hdl.Position,10,0)
  407.  
  408. for i = 1,5 do
  409. clone(torso.Position + torso.CFrame.lookVector * i*5,2)
  410. end
  411.  
  412. for i = 1,90/a do
  413. wait()
  414. lw.C0 = lw.C0 * ang(0,0,a)
  415. end
  416. effect(stup.Position,15,1)
  417. attacking = false
  418. end
  419.  
  420. function drag(tar)
  421. if tar ~= nil then
  422. attacking = true
  423. if tar.Anchored == false then
  424.  
  425. g = Instance.new("SelectionBox",m)
  426. g.Adornee = tar
  427. g.Color = BrickColor.new("New Yeller")
  428.  
  429. b = Instance.new("BodyPosition",tar)
  430. b.maxForce = Vector3.new() * math.huge
  431. holding = true
  432. while holding == true do
  433. wait()
  434. b.position = torso.Position + torso.CFrame.lookVector * 10
  435. end
  436. b:Remove() g:Remove() attacking = false
  437. end
  438. end
  439. end
  440.  
  441. function ray(tar,pos,a)
  442. if tar ~= nil then
  443. local mag = (pos-a).magnitude
  444. local c = Instance.new("Part",Workspace)
  445. c.formFactor = "Custom"
  446. c.Size = Vector3.new(0.6,0.6,mag)
  447. c.TopSurface = 0
  448. c.BottomSurface = 0
  449. c.Transparency = 0.5
  450. c.CanCollide = false
  451. c.Color = stup.Color
  452. c.Anchored = true
  453. c.CFrame = CFrame.new(pos,a) * CFrame.new(0,0,-mag/2)
  454. game:GetService("Debris"):AddItem(c,0.3)
  455. end
  456. end
  457.  
  458. function ragdollbullet(tar,pos)
  459. if tar ~= nil then
  460. for i = 1,120/20 do
  461. wait()
  462. lw.C0 = lw.C0 * ang(0,0,-20)
  463. rw.C0 = rw.C0 * ang(0,0,20)
  464. end
  465.  
  466. local b = Instance.new("BodyPosition",clone(torso.Position+Vector3.new(0,5,0),0).Torso)
  467. b.maxForce = Vector3.new() * math.huge
  468. b.position = pos
  469.  
  470. for i,v in pairs(b.Parent:GetChildren()) do
  471. if v.className == "Part" then v.CanCollide = false
  472. end end
  473.  
  474. for i = 1,120/40 do
  475. wait()
  476. lw.C0 = lw.C0 * ang(0,0,40)
  477. rw.C0 = rw.C0 * ang(0,0,-40)
  478. end
  479. while (b.Parent.Position-pos).magnitude > 3 do wait() end
  480. Instance.new("Explosion",Workspace).Position = b.Parent.Position
  481. end
  482. end
  483.  
  484. function teleport(tar,pos)
  485. attacking = true
  486. if tar ~= nil then
  487. effect(torso.Position,10)
  488. effect(pos,10)
  489. torso.CFrame = CFrame.new(pos) + Vector3.new(0,torso.Size.y*2,0)
  490. end
  491. attacking = false
  492. end
  493. -----------------------
  494.  
  495. ------------TRANSFORM---------
  496. function transform()
  497. mo = Instance.new("Model",Workspace)
  498. mo.Name = "Lunar Creature"
  499. script.Parent = mo
  500.  
  501. body = Instance.new("Part",mo)
  502. body.formFactor = "Custom"
  503. body.Size = Vector3.new(4,3,4)
  504. body.Color = hdl.Color
  505. body.Locked = true
  506. body.TopSurface = 0
  507. body.BottomSurface = 0
  508. Instance.new("SpecialMesh",body)
  509.  
  510. head = body:Clone()
  511. head.Parent = mo
  512. head.Size = Vector3.new(2.5,2.5,2.5)
  513.  
  514. leg = body:Clone()
  515. leg.Parent = mo
  516. leg.Size = Vector3.new(1,3,1)
  517.  
  518. leg2 = leg:Clone()
  519. leg2.Parent = mo
  520.  
  521. leg3 = leg:Clone()
  522. leg3.Parent = mo
  523.  
  524. leg4 = leg:Clone()
  525. leg4.Parent = mo
  526.  
  527. eye = body:Clone()
  528. eye.Parent = mo
  529. eye.Mesh.MeshType = 3
  530. eye.Size = Vector3.new(1,1,1)
  531. eye.Color = stup.Color
  532. eye2 = eye:Clone()
  533. eye2.Parent = mo
  534.  
  535. pup = eye:Clone()
  536. pup.Size = Vector3.new(0.2,0.2,0.2)
  537. pup.Color = Color3.new(0,0,0)
  538. pup.Parent = mo
  539. pup2 = pup:Clone() pup2.Parent = mo
  540.  
  541. hat = eye:Clone()
  542. hat.Parent = head
  543. hat.Size = Vector3.new(3,0.1,3)
  544.  
  545. hatd = hat:Clone()
  546. hatd.Parent = mo
  547. hatd.Size = Vector3.new(2.5,0.2,2.5)
  548. hatd.Color = pup.Color
  549.  
  550. tail = eye:Clone()
  551. tail.Parent = mo
  552. tail.Size = Vector3.new(0.5,4,0.5)
  553.  
  554. fet1 = eye:Clone()
  555. fet1.Parent = mo
  556. fet1.Size = Vector3.new(1.3,1.3,1.3)
  557. fet2 = fet1:Clone() fet2.Parent = mo
  558. fet3 = fet1:Clone() fet3.Parent = mo
  559. fet4 = fet1:Clone() fet4.Parent = mo
  560.  
  561. o = 3.2
  562. e = 1.4
  563. w = Instance.new("Weld",head)
  564. w.Part0 = head
  565. w.Part1 = body
  566. w.C1 = CFrame.new(0,head.Size.y/2+body.Size.y/3,-body.Size.z/2+head.Size.z/3)
  567.  
  568. w = Instance.new("Weld",eye)
  569. w.Part0 = eye
  570. w.Part1 = head
  571. w.C1 = CFrame.new(head.Size.x/3.5,head.Size.y/3.5,-head.Size.z/3.5)
  572. w = Instance.new("Weld",eye)
  573. w.Part0 = eye2
  574. w.Part1 = head
  575. w.C1 = CFrame.new(-head.Size.x/3.5,head.Size.y/3.5,-head.Size.z/3.5)
  576.  
  577. w = Instance.new("Weld",pup)
  578. w.Part0 = pup
  579. w.Part1 = eye
  580. w.C1 = CFrame.new(0,0,-eye.Size.z/2+pup.Size.z/4)
  581.  
  582. w = Instance.new("Weld",pup2)
  583. w.Part0 = pup2
  584. w.Part1 = eye2
  585. w.C1 = CFrame.new(0,0,-eye.Size.z/2+pup.Size.z/4)
  586.  
  587. w = Instance.new("Weld",hat)
  588. w.Part0 = hat
  589. w.Part1 = head
  590. w.C1 = CFrame.new(0,head.Size.y/2,0)
  591. w = Instance.new("Weld",hatd)
  592. w.Part0 = hatd
  593. w.Part1 = hat
  594. w.C1 = CFrame.new(0,0.05,0)
  595.  
  596. w = Instance.new("Weld",tail)
  597. w.Part0 = tail
  598. w.Part1 = body
  599. w.C1 = CFrame.new(0,0.4,body.Size.z/2) * CFrame.Angles(math.pi/4,0,0)
  600.  
  601. -----LEG WELDS-------
  602. w = Instance.new("Weld",leg)
  603. w.Part0 = leg
  604. w.Part1 = body
  605. w.C1 = CFrame.new(body.Size.x/o,-body.Size.y/e,body.Size.x/o)
  606.  
  607. w = Instance.new("Weld",leg2)
  608. w.Part0 = leg2
  609. w.Part1 = body
  610. w.C1 = CFrame.new(-body.Size.x/o,-body.Size.y/e,body.Size.x/o)
  611.  
  612. w = Instance.new("Weld",leg3)
  613. w.Part0 = leg3
  614. w.Part1 = body
  615. w.C1 = CFrame.new(body.Size.x/o,-body.Size.y/e,-body.Size.x/o)
  616.  
  617. w = Instance.new("Weld",leg4)
  618. w.Part0 = leg4
  619. w.Part1 = body
  620. w.C1 = CFrame.new(-body.Size.x/o,-body.Size.y/e,-body.Size.x/o)
  621. -------------------------------
  622.  
  623.  
  624. ------FET WELDS------
  625. w = Instance.new("Weld",mo)
  626. w.Part0 = fet1
  627. w.Part1 = leg
  628. w.C1 = CFrame.new(0,-leg.Size.y/2,0)
  629. w = Instance.new("Weld",mo)
  630. w.Part0 = fet2
  631. w.Part1 = leg2
  632. w.C1 = CFrame.new(0,-leg.Size.y/2,0)
  633. w = Instance.new("Weld",mo)
  634. w.Part0 = fet3
  635. w.Part1 = leg3
  636. w.C1 = CFrame.new(0,-leg.Size.y/2,0)
  637. w = Instance.new("Weld",mo)
  638. w.Part0 = fet4
  639. w.Part1 = leg4
  640. w.C1 = CFrame.new(0,-leg.Size.y/2,0)
  641. ---NAMINGS-------
  642. body.Name = "Torso"
  643. head.Name = "Head"
  644. leg.Name = "Right Leg"
  645. leg2.Name = "Left Leg"
  646. --------------------------
  647.  
  648.  
  649.  
  650. ------------PET-------------
  651. pet = Instance.new("Model",mo)
  652.  
  653. petb = Instance.new("Part",pet)
  654. petb.Size = Vector3.new(2,2,2)
  655. petb.Shape = 0
  656. petb.Locked = true
  657. petb.TopSurface = 0
  658. petb.BottomSurface = 0
  659. petb.CanCollide = false
  660. petb.Position = head.Position + Vector3.new(0,5,0)
  661. petb.Color = body.Color
  662. petb.CanCollide = false
  663.  
  664. petd = petb:Clone()
  665. petd.Parent = pet
  666. petd.formFactor = "Custom"
  667. petd.Shape = 1
  668. petd.Color = eye.Color
  669. petd.Size = Vector3.new(2.6,0.2,2.6)
  670. Instance.new("CylinderMesh",petd)
  671.  
  672. pete = petd:Clone()
  673. pete.Parent = pet
  674. pete.Size = Vector3.new(1,1,0.2)
  675. pete.Color = pup.Color
  676. Instance.new("SpecialMesh",pete).MeshType = 3
  677.  
  678. petw = petb:Clone()
  679. petw.Shape = 1
  680. petw.formFactor = "Custom"
  681. petw.Parent = pet
  682. petw.Size = Vector3.new(2,0.1,2)
  683. petw2 = petw:Clone()
  684. petw2.Parent = pet
  685.  
  686. w = Instance.new("Weld",petd)
  687. w.Part0 = petd
  688. w.Part1 = petb
  689.  
  690. w = Instance.new("Weld",pete)
  691. w.Part0 = pete
  692. w.Part1 = petd
  693. w.C1 = CFrame.new(0,0,petd.Size.z/2)
  694.  
  695. w = Instance.new("Weld",petw)
  696. w.Part0 = petw
  697. w.Part1 = petd
  698. w.C1 = CFrame.new(petd.Size.x/2+petw.Size.x/3,0,0)
  699.  
  700. w = Instance.new("Weld",petw2)
  701. w.Part0 = petw2
  702. w.Part1 = petd
  703. w.C1 = CFrame.new(-petd.Size.x/2-petw.Size.x/3,0,0)
  704.  
  705. bp = Instance.new("BodyPosition",petb)
  706. bp.maxForce = Vector3.new() * math.huge
  707.  
  708. bg = Instance.new("BodyGyro",petb)
  709. bg.maxTorque = Vector3.new(1,0,1) * math.huge
  710.  
  711. follow = coroutine.create(function() while mo ~= nil do wait() bg.cframe = head.CFrame * CFrame.Angles(0,math.pi,0) bp.position = head.Position + head.CFrame.lookVector * -1 + Vector3.new(0,3,0) end end)
  712. coroutine.resume(follow)
  713. dam = 1
  714. for i,v in pairs(mo:GetChildren()) do
  715. if v.className == "Part" then v.Touched:connect(damage)
  716. end
  717. end
  718.  
  719. ----------------------------------------
  720.  
  721. hum = Instance.new("Humanoid",mo)
  722. hum.WalkSpeed = 30
  723. hum.MaxHealth = 1/0
  724. hum.Health = 1/0
  725.  
  726. mo:MoveTo(torso.Position+Vector3.new(0,5,0))
  727. ply.Character = mo
  728.  
  729. end
  730.  
  731. function kd(key,mouse)
  732. if attacking == false then
  733. if key == "x" then m:Remove() m2:Remove() h:Remove() script:Remove() lock(0)
  734. elseif key == "f" then ray(mouse.Target,tip2.Position,mouse.hit.p) ray(mouse.Target,ball.Position,mouse.hit.p) clone(mouse.hit.p,0)
  735. elseif key == "t" then teleport(mouse.Target,mouse.hit.p)
  736. elseif key == "e" then shine(20)
  737. elseif key == "q" then clonewave(20)
  738. elseif key == "c" then ragdollbullet(mouse.Target,mouse.hit.p)
  739. elseif key == "r" then slash2(20)
  740. elseif key == "v" then drag(mouse.Target)
  741. elseif key == "n" then m2:Remove() m:Remove() h:Remove() lock(0) transform()
  742. elseif key == "z" then ray(mouse.Target,tip2.Position,mouse.hit.p) ray(mouse.Target,ball.Position,mouse.hit.p) Instance.new("Explosion",Workspace).Position = mouse.hit.p
  743. end
  744. end
  745. end
  746.  
  747.  
  748.  
  749. function select(mouse)
  750. wield(20,1)
  751. mouse.KeyUp:connect(function(hit) if hit == "v" then holding = false end end)
  752. mouse.Button1Down:connect(function() slash(20) end)
  753. mouse.KeyDown:connect(function(key) kd(key,mouse) end)
  754. end
  755.  
  756. h = Instance.new("HopperBin",ply.Backpack)
  757. h.Name = "Lunar Maces"
  758. script.Parent = h
  759.  
  760. h.Selected:connect(select)
  761. h.Deselected:connect(function() wield(20,0) end)
Add Comment
Please, Sign In to add comment