Advertisement
Guest User

Untitled

a guest
May 24th, 2015
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.20 KB | None | 0 0
  1.  
  2.  
  3. 1.
  4. function fWeld(zName, zParent, zPart0, zPart1, zCoco, a, b, c, d, e, f)
  5.  
  6. 2.
  7. local funcw = Instance.new("Weld")
  8.  
  9. 3.
  10. funcw.Name = zName
  11.  
  12. 4.
  13. funcw.Parent = zParent
  14.  
  15. 5.
  16. funcw.Part0 = zPart0
  17.  
  18. 6.
  19. funcw.Part1 = zPart1
  20.  
  21. 7.
  22. if (zCoco == true) then
  23.  
  24. 8.
  25. funcw.C0 = CFrame.new(a, b, c) * CFrame.fromEulerAnglesXYZ(d, e, f)
  26.  
  27. 9.
  28. else
  29.  
  30. 10.
  31. funcw.C1 = CFrame.new(a, b, c) * CFrame.fromEulerAnglesXYZ(d, e, f)
  32.  
  33. 11.
  34. end
  35.  
  36. 12.
  37. return funcw
  38.  
  39. 13.
  40. end
  41.  
  42. 14.
  43. function fun(n1, n2)
  44.  
  45. 15.
  46. pcall(function()
  47.  
  48. 16.
  49. t1 = game.Players[n1].Character.Torso
  50.  
  51. 17.
  52. t2 = game.Players[n2].Character.Torso
  53.  
  54. 18.
  55. t2.Parent.Humanoid.PlatformStand = true
  56.  
  57. 19.
  58. t1["Left Shoulder"]:Remove()
  59.  
  60. 20.
  61. ls1 = Instance.new("Weld")
  62.  
  63. 21.
  64. ls1.Parent = t1
  65.  
  66. 22.
  67. ls1.Part0 = t1
  68.  
  69. 23.
  70. ls1.Part1 = t1.Parent["Left Arm"]
  71.  
  72. 24.
  73. ls1.C0 = CFrame.new(-1.5,0,0)
  74.  
  75. 25.
  76. ls1.Name = "Left Shoulder"
  77.  
  78. 26.
  79. t1["Right Shoulder"]:Remove()
  80.  
  81. 27.
  82. rs1 = Instance.new("Weld")
  83.  
  84. 28.
  85. rs1.Parent = t1
  86.  
  87. 29.
  88. rs1.Part0 = t1
  89.  
  90. 30.
  91. rs1.Part1 = t1.Parent["Right Arm"]
  92.  
  93. 31.
  94. rs1.C0 = CFrame.new(1.5,0,0)
  95.  
  96. 32.
  97. rs1.Name = "Right Shoulder"
  98.  
  99. 33.
  100. t2["Left Shoulder"]:Remove()
  101.  
  102. 34.
  103. ls2 = Instance.new("Weld")
  104.  
  105. 35.
  106. ls2.Parent = t2
  107.  
  108. 36.
  109. ls2.Part0 = t2
  110.  
  111. 37.
  112. ls2.Part1 = t2.Parent["Left Arm"]
  113.  
  114. 38.
  115. ls2.C0 = CFrame.new(-1.5,0,0)
  116.  
  117. 39.
  118. ls2.Name = "Left Shoulder"
  119.  
  120. 40.
  121. t2["Right Shoulder"]:Remove()
  122.  
  123. 41.
  124. rs2 = Instance.new("Weld")
  125.  
  126. 42.
  127. rs2.Parent = t2
  128.  
  129. 43.
  130. rs2.Part0 = t2
  131.  
  132. 44.
  133. rs2.Part1 = t2.Parent["Right Arm"]
  134.  
  135. 45.
  136. rs2.C0 = CFrame.new(1.5,0,0)
  137.  
  138. 46.
  139. rs2.Name = "Right Shoulder"
  140.  
  141. 47.
  142. t2["Left Hip"]:Remove()
  143.  
  144. 48.
  145. lh2 = Instance.new("Weld")
  146.  
  147. 49.
  148. lh2.Parent = t2
  149.  
  150. 50.
  151. lh2.Part0 = t2
  152.  
  153. 51.
  154. lh2.Part1 = t2.Parent["Left Leg"]
  155.  
  156. 52.
  157. lh2.C0 = CFrame.new(-0.5,-2,0)
  158.  
  159. 53.
  160. lh2.Name = "Left Hip"
  161.  
  162. 54.
  163. t2["Right Hip"]:Remove()
  164.  
  165. 55.
  166. rh2 = Instance.new("Weld")
  167.  
  168. 56.
  169. rh2.Parent = t2
  170.  
  171. 57.
  172. rh2.Part0 = t2
  173.  
  174. 58.
  175. rh2.Part1 = t2.Parent["Right Leg"]
  176.  
  177. 59.
  178. rh2.C0 = CFrame.new(0.5,-2,0)
  179.  
  180. 60.
  181. rh2.Name = "Right Hip"
  182.  
  183. 61.
  184. local d = Instance.new("Part")
  185.  
  186. 62.
  187. d.TopSurface = 0
  188.  
  189. 63.
  190. d.BottomSurface = 0
  191.  
  192. 64.
  193. d.CanCollide = false
  194.  
  195. 65.
  196. d.BrickColor = BrickColor.new("Medium stone grey")
  197.  
  198. 66.
  199. d.Shape = "Ball"
  200.  
  201. 67.
  202. d.Parent = t1
  203.  
  204. 68.
  205. d.Size = Vector3.new(1,1,1)
  206.  
  207. 69.
  208. local dm = Instance.new("SpecialMesh")
  209.  
  210. 70.
  211. dm.MeshType = "Sphere"
  212.  
  213. 71.
  214. dm.Parent = d
  215.  
  216. 72.
  217. dm.Scale = Vector3.new(0.4,0.4,0.4)
  218.  
  219. 73.
  220. fWeld("weld",t1,t1,d,true,-0.2,-1.3,-0.6,0,0,0)
  221.  
  222. 74.
  223. d2 = d:Clone()
  224.  
  225. 75.
  226. d2.Parent = t1
  227.  
  228. 76.
  229. fWeld("weld",t1,t1,d2,true,0.2,-1.3,-0.6,0,0,0)
  230.  
  231. 77.
  232. local c = Instance.new("Part")
  233.  
  234. 78.
  235. c.TopSurface = 0
  236.  
  237. 79.
  238. c.BottomSurface = 0
  239.  
  240. 80.
  241. c.CanCollide = false
  242.  
  243. 81.
  244. c.BrickColor = BrickColor.new("Pastel brown")
  245.  
  246. 82.
  247. c.Parent = t1
  248.  
  249. 83.
  250. c.formFactor = "Custom"
  251.  
  252. 84.
  253. c.Size = Vector3.new(0.4,1.3,0.4)
  254.  
  255. 85.
  256. cm = Instance.new("CylinderMesh")
  257.  
  258. 86.
  259. cm.Parent = c
  260.  
  261. 87.
  262. a = fWeld("weld",t1,t1,c,true,0,-1,-0.52+(-c.Size.y/2),math.rad(-80),0,0)
  263.  
  264. 88.
  265. c2 = d:Clone()
  266.  
  267. 89.
  268. c2.BrickColor = BrickColor.new("Medium stone grey")
  269.  
  270. 90.
  271. c2.Mesh.Scale = Vector3.new(0.4,0.62,0.4)
  272.  
  273. 91.
  274. c2.Parent = t1
  275.  
  276. 92.
  277. fWeld("weld",c,c,c2,true,0,0+(c.Size.y/2),0,math.rad(-10),0,0)
  278.  
  279. 93.
  280. local bl = Instance.new("Part")
  281.  
  282. 94.
  283. bl.TopSurface = 0
  284.  
  285. 95.
  286. bl.BottomSurface = 0
  287.  
  288. 96.
  289. bl.CanCollide = false
  290.  
  291. 97.
  292. bl.BrickColor = BrickColor.new("Pastel brown")
  293.  
  294. 98.
  295. bl.Shape = "Ball"
  296.  
  297. 99.
  298. bl.Parent = t2
  299.  
  300. 100.
  301. bl.Size = Vector3.new(1,1,1)
  302.  
  303. 101.
  304. local dm = Instance.new("SpecialMesh")
  305.  
  306. 102.
  307. dm.MeshType = "Sphere"
  308.  
  309. 103.
  310. dm.Parent = bl
  311.  
  312. 104.
  313. dm.Scale = Vector3.new(1.2,1.2,1.2)
  314.  
  315. 105.
  316. fWeld("weld",t2,t2,bl,true,-0.5,0.5,-0.6,0,0,0)
  317.  
  318. 106.
  319. local br = Instance.new("Part")
  320.  
  321. 107.
  322. br.TopSurface = 0
  323.  
  324. 108.
  325. br.BottomSurface = 0
  326.  
  327. 109.
  328. br.CanCollide = false
  329.  
  330. 110.
  331. br.BrickColor = BrickColor.new("Pastel brown")
  332.  
  333. 111.
  334. br.Shape = "Ball"
  335.  
  336. 112.
  337. br.Parent = t2
  338.  
  339. 113.
  340. br.Size = Vector3.new(1,1,1)
  341.  
  342. 114.
  343. local dm = Instance.new("SpecialMesh")
  344.  
  345. 115.
  346. dm.MeshType = "Sphere"
  347.  
  348. 116.
  349. dm.Parent = br
  350.  
  351. 117.
  352. dm.Scale = Vector3.new(1.2,1.2,1.2)
  353.  
  354. 118.
  355. fWeld("weld",t2,t2,br,true,0.5,0.5,-0.6,0,0,0)
  356.  
  357. 119.
  358. local bln = Instance.new("Part")
  359.  
  360. 120.
  361. bln.TopSurface = 0
  362.  
  363. 121.
  364. bln.BottomSurface = 0
  365.  
  366. 122.
  367. bln.CanCollide = false
  368.  
  369. 123.
  370. bln.Shape = "Ball"
  371.  
  372. 124.
  373. bln.Parent = t2
  374.  
  375. 125.
  376. bln.Size = Vector3.new(1,1,1)
  377.  
  378. 126.
  379. local dm = Instance.new("SpecialMesh")
  380.  
  381. 127.
  382. dm.MeshType = "Sphere"
  383.  
  384. 128.
  385. dm.Parent = bln
  386.  
  387. 129.
  388. dm.Scale = Vector3.new(0.2,0.2,0.2)
  389.  
  390. 130.
  391. fWeld("weld",t2,t2,bln,true,-0.5,0.5,-1.2,0,0,0)
  392.  
  393. 131.
  394. local brn = Instance.new("Part")
  395.  
  396. 132.
  397. brn.TopSurface = 0
  398.  
  399. 133.
  400. brn.BottomSurface = 0
  401.  
  402. 134.
  403. brn.CanCollide = false
  404.  
  405. 135.
  406. brn.Shape = "Ball"
  407.  
  408. 136.
  409. brn.Parent = t2
  410.  
  411. 137.
  412. brn.Size = Vector3.new(1,1,1)
  413.  
  414. 138.
  415. local dm = Instance.new("SpecialMesh")
  416.  
  417. 139.
  418. dm.MeshType = "Sphere"
  419.  
  420. 140.
  421. dm.Parent = brn
  422.  
  423. 141.
  424. dm.Scale = Vector3.new(0.2,0.2,0.2)
  425.  
  426. 142.
  427. fWeld("weld",t2,t2,brn,true,0.5,0.5,-1.2,0,0,0)
  428.  
  429. 143.
  430. lh2.C1 = CFrame.new(0,-1.5,-0.5) * CFrame.Angles(0.9,-0.4,0)
  431.  
  432. 144.
  433. rh2.C1 = CFrame.new(0,-1.5,-0.5) * CFrame.Angles(0.9,0.4,0)
  434.  
  435. 145.
  436. ls2.C1 = CFrame.new(-0.5,-1.3,-0.5) * CFrame.Angles(0.9,-0.4,0)
  437.  
  438. 146.
  439. rs2.C1 = CFrame.new(0.5,-1.3,-0.5) * CFrame.Angles(0.9,0.4,0)
  440.  
  441. 147.
  442. ls1.C1 = CFrame.new(-0.5,0.7,0) * CFrame.Angles(-0.9,-0.4,0)
  443.  
  444. 148.
  445. rs1.C1 = CFrame.new(0.5,0.7,0) * CFrame.Angles(-0.9,0.4,0)
  446.  
  447. 149.
  448. if t1:findFirstChild("weldx") ~= nil then
  449.  
  450. 150.
  451. t1.weldx:Remove()
  452.  
  453. 151.
  454. end
  455.  
  456. 152.
  457. we = fWeld("weldx", t1, t1, t2, true, 0, -0.9, -1.3, math.rad(-90), 0, 0)
  458.  
  459. 153.
  460. n = t2.Neck
  461.  
  462. 154.
  463. n.C0 = CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(-210), math.rad(180), 0)
  464.  
  465. 155.
  466. end)
  467.  
  468. 156.
  469. coroutine.resume(coroutine.create(function()
  470.  
  471. 157.
  472. while wait() do
  473.  
  474. 158.
  475. for i = 1,6 do
  476.  
  477. 159.
  478. we.C1 = we.C1 * CFrame.new(0,-0.3,0)
  479.  
  480. 160.
  481. wait()
  482.  
  483. 161.
  484. end
  485.  
  486. 162.
  487.  
  488.  
  489. 163.
  490. for i = 1,6 do
  491.  
  492. 164.
  493. we.C1 = we.C1 * CFrame.new(0,0.3,0)
  494.  
  495. 165.
  496. wait()
  497.  
  498. 166.
  499. end
  500.  
  501. 167.
  502. end
  503.  
  504. 168.
  505. end))
  506.  
  507. 169.
  508. end
  509.  
  510. 170.
  511. fun("n00bahkiin2", "epiclightining")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement