Advertisement
kikot

dark deadpool test 1

Jun 19th, 2018
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 109.42 KB | None | 0 0
  1. local ContentProvider = game:GetService("ContentProvider")
  2.  
  3. local function LoadAssets(AssetList)
  4. -- Takes an asset list and preloads it. Will not wait for them to load.
  5.  
  6. for _, AssetId in pairs(AssetList) do
  7. ContentProvider:Preload("http://www.roblox.com/asset/?id=" .. AssetId)
  8. end
  9. end
  10.  
  11. LoadAssets({11442510,30956707})
  12. local Gibs = game.Workspace
  13.  
  14. function Kill(Character)
  15. Character.Humanoid.Health = 0
  16. local poo = Instance.new("IntValue",Character)
  17. poo.Name = "haha nope"
  18. local svch = Character
  19. local hum = Character:findFirstChild("Humanoid")
  20. Character.Archivable = true
  21. local chrclone = Character:clone()
  22. Character.Archivable = false
  23.  
  24. local ch = chrclone:GetChildren()
  25. local i
  26. for i = 1,#ch do
  27. if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" or ch[i].ClassName == "Script" then
  28. ch[i]:remove()
  29. end
  30. end
  31. local function Scan(ch)
  32. local e
  33. for e = 1,#ch do
  34. Scan(ch[e]:GetChildren())
  35. if ch[e].ClassName == "Weld" or ch[e].ClassName == "Motor6D" then
  36. ch[e]:remove()
  37. end
  38. end
  39. end
  40. Scan(chrclone:GetChildren())
  41.  
  42. local hum2 = chrclone:findFirstChild("Humanoid")
  43.  
  44.  
  45. if hum2 ~= nil then
  46. hum2.Name = "Humanoid2"
  47. hum2.PlatformStand = true
  48. hum2.Sit = true
  49. hum2.MaxHealth = 0
  50. hum2.Health = 0
  51. end
  52.  
  53. local ch = Character:GetChildren()
  54. local i
  55. for i = 1,#ch do
  56. if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then
  57. ch[i]:remove()
  58. end
  59. end
  60.  
  61. wait(0.2)
  62.  
  63. local ch = Character:GetChildren()
  64. local i
  65. for i = 1,#ch do
  66. if ch[i].ClassName == "Part" or ch[i].ClassName == "Hat" or ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then
  67. ch[i]:remove()
  68. end
  69. end
  70. Character = chrclone
  71. local Torso = Character.Torso
  72. local movevector = Vector3.new()
  73.  
  74. if Torso then
  75. local Head = Character:FindFirstChild("Head")
  76. local Limb = Character:FindFirstChild("Right Arm")
  77. if Limb then
  78.  
  79. Limb.CFrame = Torso.CFrame * CFrame.new(1.5, 0, 0)
  80. local Joint = Instance.new("Glue")
  81. Joint.Name = "RightShoulder"
  82. Joint.Part0 = Torso
  83. Joint.Part1 = Limb
  84. Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  85. Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  86. Joint.Parent = Torso
  87.  
  88. local B = Instance.new("Part")
  89. B.TopSurface = 0
  90. B.BottomSurface = 0
  91. B.formFactor = "Symmetric"
  92. B.Size = Vector3.new(1, 1, 1)
  93. B.Transparency = 1
  94. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  95. B.Parent = Character
  96. local W = Instance.new("Weld")
  97. W.Part0 = Limb
  98. W.Part1 = B
  99. W.C0 = CFrame.new(0, -0.5, 0)
  100. W.Parent = Limb
  101.  
  102. end
  103. local Limb = Character:FindFirstChild("Left Arm")
  104. if Limb then
  105.  
  106. Limb.CFrame = Torso.CFrame * CFrame.new(-1.5, 0, 0)
  107. local Joint = Instance.new("Glue")
  108. Joint.Name = "LeftShoulder"
  109. Joint.Part0 = Torso
  110. Joint.Part1 = Limb
  111. Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  112. Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  113. Joint.Parent = Torso
  114.  
  115. local B = Instance.new("Part")
  116. B.TopSurface = 0
  117. B.BottomSurface = 0
  118. B.formFactor = "Symmetric"
  119. B.Size = Vector3.new(1, 1, 1)
  120. B.Transparency = 1
  121. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  122. B.Parent = Character
  123. local W = Instance.new("Weld")
  124. W.Part0 = Limb
  125. W.Part1 = B
  126. W.C0 = CFrame.new(0, -0.5, 0)
  127. W.Parent = Limb
  128.  
  129. end
  130. local Limb = Character:FindFirstChild("Right Leg")
  131. if Limb then
  132.  
  133. Limb.CFrame = Torso.CFrame * CFrame.new(0.5, -2, 0)
  134. local Joint = Instance.new("Glue")
  135. Joint.Name = "RightHip"
  136. Joint.Part0 = Torso
  137. Joint.Part1 = Limb
  138. Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  139. Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  140. Joint.Parent = Torso
  141.  
  142. local B = Instance.new("Part")
  143. B.TopSurface = 0
  144. B.BottomSurface = 0
  145. B.formFactor = "Symmetric"
  146. B.Size = Vector3.new(1, 1, 1)
  147. B.Transparency = 1
  148. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  149. B.Parent = Character
  150. local W = Instance.new("Weld")
  151. W.Part0 = Limb
  152. W.Part1 = B
  153. W.C0 = CFrame.new(0, -0.5, 0)
  154. W.Parent = Limb
  155.  
  156. end
  157. local Limb = Character:FindFirstChild("Left Leg")
  158. if Limb then
  159.  
  160. Limb.CFrame = Torso.CFrame * CFrame.new(-0.5, -2, 0)
  161. local Joint = Instance.new("Glue")
  162. Joint.Name = "LeftHip"
  163. Joint.Part0 = Torso
  164. Joint.Part1 = Limb
  165. Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  166. Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  167. Joint.Parent = Torso
  168.  
  169. local B = Instance.new("Part")
  170. B.TopSurface = 0
  171. B.BottomSurface = 0
  172. B.formFactor = "Symmetric"
  173. B.Size = Vector3.new(1, 1, 1)
  174. B.Transparency = 1
  175. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  176. B.Parent = Character
  177. local W = Instance.new("Weld")
  178. W.Part0 = Limb
  179. W.Part1 = B
  180. W.C0 = CFrame.new(0, -0.5, 0)
  181. W.Parent = Limb
  182.  
  183. end
  184. --[
  185. local Bar = Instance.new("Part")
  186. Bar.TopSurface = 0
  187. Bar.BottomSurface = 0
  188. Bar.formFactor = "Symmetric"
  189. Bar.Size = Vector3.new(1, 1, 1)
  190. Bar.Transparency = 1
  191. Bar.CFrame = Torso.CFrame * CFrame.new(0, 0.5, 0)
  192. Bar.Parent = Character
  193. local Weld = Instance.new("Weld")
  194. Weld.Part0 = Torso
  195. Weld.Part1 = Bar
  196. Weld.C0 = CFrame.new(0, 0.5, 0)
  197. Weld.Parent = Torso
  198. --]]
  199. end
  200. Character.Parent = Gibs
  201. game.Debris:AddItem(Character, 12)
  202. if movevector ~= Vector3.new() then
  203. for i = 1,10 do
  204. wait()
  205. Torso.Velocity = Vector3.new(0,0,-100)
  206. Head.Velocity = movevector * 200
  207. end
  208. end
  209. local duh = Torso
  210. ee = Instance.new("Part")
  211. ee.Anchored = false
  212. ee.CanCollide = false
  213. ee.Parent = duh
  214. ee.Transparency =1
  215. ee.Size = Vector3.new(0.15, 0.15, 0.15)
  216. wee = Instance.new("Weld")
  217. wee.Parent = duh
  218. wee.Part0 = duh
  219. wee.Part1 = ee
  220. wee.C0 = CFrame.new(0, 1, 0)
  221. ge = Instance.new('ParticleEmitter')
  222. ge.Parent = ee
  223. ge.Texture = "rbxassetid://29712167"
  224. ge.Size = NumberSequence.new(0.2,0.05)
  225. ge.Acceleration = Vector3.new(0, -20, 0)
  226. ge.Rate = 100000
  227. ge.Speed = NumberRange.new(7,8)
  228. ge.Lifetime = NumberRange.new(3,4)
  229. ge.VelocitySpread = 10
  230. ge.VelocityInheritance = 0.3
  231. ea = Instance.new("Part")
  232. ea.Anchored = false
  233. ea.CanCollide = false
  234. ea.Parent = Character.Head
  235. ea.Transparency =1
  236. ea.Size = Vector3.new(0.15, 0.15, 0.15)
  237. wea = Instance.new("Weld")
  238. wea.Parent = Character.Head
  239. wea.Part0 = Character.Head
  240. wea.Part1 = ea
  241. wea.C0 = CFrame.new(0, -0.7, 0)
  242. ga = Instance.new('ParticleEmitter')
  243. ga.Parent = ea
  244. ga.Texture = "rbxassetid://29712167"
  245. ga.Size = NumberSequence.new(0.2,0.05)
  246. ga.Acceleration = Vector3.new(0, -20, 0)
  247. ga.Rate = 100000
  248. ga.Speed = NumberRange.new(7,8)
  249. ga.Lifetime = NumberRange.new(3,4)
  250. ga.VelocitySpread = 10
  251. ga.VelocityInheritance = 0.3
  252. ga.EmissionDirection = Enum.NormalId.Bottom
  253. end
  254.  
  255. local plr = game.Players.LocalPlayer
  256. local chr = plr.Character
  257. local mouse = plr:GetMouse()
  258. local intro = coroutine.wrap(function()
  259. local gui = Instance.new('ScreenGui',plr.PlayerGui)
  260. gui.Name = "Intro"
  261. local fr = Instance.new('Frame',gui)
  262. fr.Size = UDim2.new(0.4,0,0,0)
  263. fr.Position = UDim2.new(0.3,0,-0.1,0)
  264. fr.BorderColor3 = Color3.fromRGB(198, 45, 45)
  265. fr.BorderSizePixel = 5
  266. fr.BackgroundColor3 = Color3.fromRGB(38, 38, 38)
  267. local title = Instance.new('TextLabel',fr)
  268. title.Size = UDim2.new(1,0,0.4,0)
  269. title.Position = UDim2.new(0,0,0.1,0)
  270. title.BackgroundTransparency = 1
  271. title.TextColor3 = Color3.fromRGB(198, 45, 45)
  272. title.TextScaled = true
  273. title.Text = 'Deadpool Script'
  274. local desc = Instance.new('TextLabel',fr)
  275. desc.Size = UDim2.new(1,0,0.5,0)
  276. desc.Position = UDim2.new(0,0,0.5,0)
  277. desc.BackgroundTransparency = 1
  278. desc.TextColor3 = Color3.fromRGB(198, 45, 45)
  279. desc.TextScaled = true
  280. desc.Text = ''
  281. wait(1)
  282. fr:TweenSize(UDim2.new(0.4,0,0.5,0),Enum.EasingDirection.Out,Enum.EasingStyle.Bounce,2)
  283. wait(2)
  284. local str = 'Hotkey to equip katana is N. Use Z to stab and X to slice heads off. Created by mustardfoot.'
  285. local leng = string.len(str)
  286. for i = 1,leng do
  287. desc.Text = string.sub(str,1,i)
  288. wait()
  289. end
  290. wait(2)
  291. fr:TweenSize(UDim2.new(0.4,0,0,0),Enum.EasingDirection.Out,Enum.EasingStyle.Bounce,0.8)
  292. wait(2)
  293. gui:Destroy()
  294. end)
  295. intro()
  296.  
  297.  
  298. wait(2)
  299. local tors = chr.Torso
  300. chr.Head.Transparency = 1
  301. for i,v in pairs(chr:GetChildren()) do
  302. if v.ClassName == "CharacterMesh" then
  303. v:Destroy()
  304. end
  305. end
  306. local humroot = chr.HumanoidRootPart:Clone()
  307. local torsclone = tors:Clone()
  308. local anim = chr.Animate:Clone()
  309. local hum = chr.Humanoid:Clone()
  310. local head = chr.Head:Clone()
  311. local neck = chr.Torso.Neck:Clone()
  312. local rightarm = chr["Right Arm"]:Clone()
  313. local leftarm = chr["Left Arm"]:Clone()
  314. local leftleg = chr["Left Leg"]:Clone()
  315. local rightleg = chr["Right Leg"]:Clone()
  316. local rightshoulder = tors["Right Shoulder"]:Clone()
  317. local leftshoulder = tors["Left Shoulder"]:Clone()
  318. local righthip = tors["Right Hip"]:Clone()
  319. local lefthip = tors["Left Hip"]:Clone()
  320. local shirt = nil
  321. local pants = nil
  322. local hats = {}
  323. local lastpos = CFrame.new(0,0,0)
  324. local on = true
  325. local doing = false
  326. local stabbing = false
  327. local slicing = false
  328. local toolz = Instance.new('Tool',plr.Backpack)
  329. toolz.Name = "Katana"
  330. toolz.RequiresHandle = false
  331. toolz.CanBeDropped = false
  332. local partz = Instance.new('Part',toolz)
  333. partz.Size = Vector3.new(0.2,0.2,3)
  334. partz.CanCollide = false
  335. local meshz = Instance.new('SpecialMesh',partz)
  336. meshz.MeshId = 'rbxassetid://11442510'
  337. meshz.TextureId = 'rbxassetid://30956707'
  338. meshz.VertexColor = Vector3.new(0,0,0)
  339.  
  340. toolz.Equipped:connect(function(mouse)
  341. if chr:FindFirstChild('Right Arm') then
  342. local weld = Instance.new('Weld',partz)
  343. weld.Part0 = partz
  344. weld.Part1 = chr["Right Arm"]
  345. weld.C0 = CFrame.new(0.9,0,-1.25)*CFrame.Angles(math.pi,0,-math.pi/2)
  346. end
  347. mouse.KeyDown:connect(function(key)
  348. if doing == false then
  349. if key == 'z' then
  350. if chr:FindFirstChild('Right Arm') and chr:FindFirstChild('Torso') then
  351. doing = true
  352. local weld = Instance.new('Weld',chr["Right Arm"])
  353. weld.Part0 = chr["Right Arm"]
  354. weld.Part1 = chr.Torso
  355. weld.C0 = CFrame.new(-1.5,0,0)
  356. for i=1,25 do
  357. weld.C0 = weld.C0:lerp(CFrame.new(-1.5,1,0.9)*CFrame.Angles(math.pi/2.5,0,-math.pi/2.5),i/25)
  358. wait()
  359. end
  360. wait()
  361. stabbing = true
  362. for i=1,10 do
  363. weld.C0 = weld.C0:lerp(CFrame.new(-1.5,0.8,0)*CFrame.Angles(-math.pi/4,0,-math.pi/6),i/10)
  364. wait()
  365. end
  366. wait()
  367. for i=1,25 do
  368. weld.C0 = weld.C0:lerp(CFrame.new(-1.5,0,0),i/25)
  369. wait()
  370. end
  371. chr["Right Arm"]:Destroy()
  372. doing = false
  373. stabbing = false
  374. end
  375. elseif key == 'x' then
  376. if chr:FindFirstChild('Right Arm') and chr:FindFirstChild('Torso') then
  377. doing = true
  378. local weld = Instance.new('Weld',chr["Right Arm"])
  379. weld.Part0 = chr["Right Arm"]
  380. weld.Part1 = chr.Torso
  381. weld.C0 = CFrame.new(-1.5,0,0)
  382. for i=1,25 do
  383. weld.C0 = weld.C0:lerp(CFrame.new(-0.5,0.7,-0.5)*CFrame.Angles(math.pi/8,math.pi/1,math.pi/1.5),i/25)
  384. wait()
  385. end
  386. wait()
  387. slicing = true
  388. for i=1,5 do
  389. weld.C0 = weld.C0:lerp(CFrame.new(-1.5,0.8,0)*CFrame.Angles(-math.pi/8,0,-math.pi/4),i/5)
  390. wait()
  391. end
  392. wait()
  393. for i=1,12.5 do
  394. weld.C0 = weld.C0:lerp(CFrame.new(-1.5,0,0),i/12.5)
  395. wait()
  396. end
  397. chr["Right Arm"]:Destroy()
  398. doing = false
  399. slicing = false
  400. end
  401. end
  402. end
  403. end)
  404. end)
  405.  
  406. partz.Touched:connect(function(hit)
  407. if hit.Parent:FindFirstChild('Humanoid') and stabbing and hit.Parent ~= chr then
  408. hit.Parent.Humanoid.Health = 0
  409. elseif hit.Parent:FindFirstChild('heck') == nil and slicing then
  410. local he = Instance.new('IntValue',hit.Parent)
  411. he.Name = "heck"
  412. Kill(hit.Parent)
  413. end
  414. end)
  415.  
  416. toolz.Unequipped:connect(function(mouse)
  417. if partz:FindFirstChildOfClass('Weld') then
  418. partz:FindFirstChildOfClass('Weld'):Destroy()
  419. end
  420. end)
  421. toolz.AncestryChanged:connect(function(child, parent)
  422. if parent ~= chr and parent ~= plr.Backpack then
  423. wait()
  424. toolz.Parent = plr.Backpack
  425. end
  426. end)
  427.  
  428. mouse.KeyDown:connect(function(key)
  429. if key == "n" then
  430. wait()
  431. toolz:Equip()
  432. end
  433. end)
  434. if chr:FindFirstChildOfClass('Shirt') then
  435. shirt = chr:FindFirstChildOfClass('Shirt'):Clone()
  436. end
  437. if chr:FindFirstChildOfClass('Pants') then
  438. pants = chr:FindFirstChildOfClass('Pants'):Clone()
  439. end
  440. for i,v in pairs(chr:GetChildren()) do
  441. if v.ClassName == "Accessory" then
  442. table.insert(hats,v:Clone())
  443. end
  444. end
  445. local rootjoint = chr.HumanoidRootPart.RootJoint:Clone()
  446. chr.Humanoid:Destroy()
  447. local gui = Instance.new('ScreenGui')
  448. gui.Parent = game.Players.LocalPlayer.PlayerGui
  449. gui.Name = "Deadpool"
  450. gui.ResetOnSpawn = false
  451. local frame = Instance.new('Frame',gui)
  452. frame.Size = UDim2.new(0.2,0,0.2,0)
  453. frame.Position = UDim2.new(0,0,0.9,0)
  454. frame.BackgroundColor3 = Color3.fromRGB(38, 38, 38)
  455. frame.BorderSizePixel = 4
  456. frame.BorderColor3 = Color3.fromRGB(198, 45, 45)
  457. frame.Active = true
  458. frame.Draggable = true
  459. local txt = Instance.new('TextLabel',frame)
  460. txt.Text = "Deadpool Gui"
  461. txt.TextColor3 = Color3.fromRGB(198, 45, 45)
  462. txt.Size = UDim2.new(1,0,0.3,0)
  463. txt.TextScaled = true
  464. txt.BackgroundTransparency = 1
  465. local but = Instance.new('TextButton',frame)
  466. but.Text = "Toggle Suit"
  467. but.TextColor3 = Color3.fromRGB(38, 38, 38)
  468. but.Size = UDim2.new(0.7,0,0.3,0)
  469. but.Position = UDim2.new(0.15,0,0.5,0)
  470. but.BorderSizePixel = 0
  471. but.TextScaled = true
  472. but.BackgroundColor3 = Color3.fromRGB(198, 45, 45)
  473. but.MouseButton1Down:connect(function()
  474. on = not on
  475. end)
  476. game:GetService('RunService').Stepped:connect(function()
  477. if chr.Parent == nil then
  478. chr.RobloxLocked = false
  479. chr.Parent = game.Workspace
  480. end
  481. if chr:FindFirstChildOfClass('Humanoid') == nil then
  482. hum:Clone().Parent = chr
  483. chr.Animate:Destroy()
  484. anim:Clone().Parent = chr
  485. end
  486. if chr:FindFirstChild('HumanoidRootPart') == nil then
  487. humroot:Clone().Parent = chr
  488. humroot.CFrame = lastpos
  489. chr.Humanoid:Destroy()
  490. hum:Clone().Parent = chr
  491. chr.Animate:Destroy()
  492. anim:Clone().Parent = chr
  493. chr.HumanoidRootPart.RootJoint:Destroy()
  494. end
  495. if chr:FindFirstChild('Torso') == nil then
  496. chr.Humanoid:Destroy()
  497. local tor = tors:Clone()
  498. tor.Parent = chr
  499. hum:Clone().Parent = chr
  500. chr.Animate:Destroy()
  501. anim:Clone().Parent = chr
  502. end
  503. if chr.HumanoidRootPart:FindFirstChild('RootJoint') == nil then
  504. local rtj = rootjoint:Clone()
  505. rtj.Parent = chr.HumanoidRootPart
  506. rtj.Part0 = chr.HumanoidRootPart
  507. rtj.Part1 = chr.Torso
  508. end
  509. if chr:FindFirstChild('Head') == nil then
  510. chr.Humanoid:Destroy()
  511. head:Clone().Parent = chr
  512. hum:Clone().Parent = chr
  513. chr.Animate:Destroy()
  514. anim:Clone().Parent = chr
  515. end
  516. if chr.Torso:FindFirstChild('Neck') == nil then
  517. chr.Humanoid:Destroy()
  518. local hec = neck:Clone()
  519. hec.Parent = chr.Torso
  520. hec.Part0 = chr.Torso
  521. hec.Part1 = chr.Head
  522. hum:Clone().Parent = chr
  523. chr.Animate:Destroy()
  524. anim:Clone().Parent = chr
  525. end
  526. if chr:FindFirstChild('Right Leg') == nil then
  527. rightleg:Clone().Parent = chr
  528. local fi = righthip:Clone()
  529. fi.Parent = chr.Torso
  530. fi.Part0 = chr.Torso
  531. fi.Part1 = chr["Right Leg"]
  532. end
  533. if chr:FindFirstChild('Right Arm') == nil then
  534. rightarm:Clone().Parent = chr
  535. local fi = rightshoulder:Clone()
  536. fi.Parent = chr.Torso
  537. fi.Part0 = chr.Torso
  538. fi.Part1 = chr["Right Arm"]
  539. end
  540. if chr:FindFirstChild('Left Leg') == nil then
  541. leftleg:Clone().Parent = chr
  542. local fi = lefthip:Clone()
  543. fi.Parent = chr.Torso
  544. fi.Part0 = chr.Torso
  545. fi.Part1 = chr["Left Leg"]
  546. end
  547. if chr:FindFirstChild('Left Arm') == nil then
  548. leftarm:Clone().Parent = chr
  549. local fi = leftshoulder:Clone()
  550. fi.Parent = chr.Torso
  551. fi.Part0 = chr.Torso
  552. fi.Part1 = chr["Left Arm"]
  553. end
  554. for i,v in pairs(chr:GetChildren()) do
  555. if v.Name == "Mask" or v.ClassName == "Accessory" or v.ClassName == "Shirt" or v.ClassName == "Pants" or v.Name == "KatanaHolder" then
  556. v:Destroy()
  557. end
  558. end
  559. chr.Humanoid.Health = chr.Humanoid.MaxHealth
  560. if partz:FindFirstChild('Weld') == nil and toolz.Parent == chr then
  561. local weld = Instance.new('Weld',partz)
  562. weld.Part0 = partz
  563. weld.Part1 = chr["Right Arm"]
  564. weld.C0 = CFrame.new(0.9,0,-1.25)*CFrame.Angles(math.pi,0,-math.pi/2)
  565. end
  566. lastpos = chr.HumanoidRootPart.CFrame
  567. local kat = Instance.new('Part',chr)
  568. kat.Size = Vector3.new(0.4,3,0.2)
  569. kat.Name = "KatanaHolder"
  570. kat.Material = Enum.Material.SmoothPlastic
  571. kat.BrickColor = BrickColor.new('Really black')
  572. kat.CanCollide = false
  573. local we = Instance.new('Weld',kat)
  574. we.Part0 = kat
  575. we.Part1 = chr.Torso
  576. we.C0 = CFrame.new(0,0,-0.5)*CFrame.Angles(0,0,0.5)
  577. if on == true then
  578. local shirt = Instance.new('Shirt',chr)
  579. shirt.ShirtTemplate = 'rbxassetid://379545459'
  580. local pants = Instance.new('Pants',chr)
  581. pants.PantsTemplate = 'rbxassetid://379545671'
  582. local mask = Instance.new('Part',chr)
  583. mask.Name = "Mask"
  584. mask.Size = Vector3.new(2,1,1)
  585. mask.BrickColor = BrickColor.new('Bright red')
  586. local mesh = Instance.new('SpecialMesh',mask)
  587. mesh.Scale = Vector3.new(1.3,1.3,1.3)
  588. local weld = Instance.new('Weld',mask)
  589. weld.Part0 = mask
  590. weld.Part1 = chr.Head
  591. local eyesurround = Instance.new('Part',mask)
  592. eyesurround.BrickColor = BrickColor.new('Really black')
  593. eyesurround.Size = Vector3.new(0.3,0.5,0.2)
  594. local mesh2 = Instance.new('SpecialMesh',eyesurround)
  595. mesh2.MeshType = Enum.MeshType.Sphere
  596. mesh2.Scale = Vector3.new(1,1,0.5)
  597. local weld2 = Instance.new('Weld',eyesurround)
  598. weld2.Part0 = eyesurround
  599. weld2.Part1 = mask
  600. weld2.C0 = CFrame.new(0.1,-0.22,0.58)*CFrame.Angles(0,0,-0.2)
  601. local eyesurround2 = Instance.new('Part',mask)
  602. eyesurround2.BrickColor = BrickColor.new('Really black')
  603. eyesurround2.Size = Vector3.new(0.3,0.5,0.2)
  604. local mesh3 = Instance.new('SpecialMesh',eyesurround2)
  605. mesh3.MeshType = Enum.MeshType.Sphere
  606. mesh3.Scale = Vector3.new(1,1,0.5)
  607. local weld3 = Instance.new('Weld',eyesurround2)
  608. weld3.Part0 = eyesurround2
  609. weld3.Part1 = mask
  610. weld3.C0 = CFrame.new(-0.1,-0.22,0.58)*CFrame.Angles(0,0,0.2)
  611. local eye = Instance.new('Part',mask)
  612. eye.BrickColor = BrickColor.new('Institutional white')
  613. eye.Size = Vector3.new(0.2,0.2,0.2)
  614. local mesh4 = Instance.new('SpecialMesh',eye)
  615. mesh4.MeshType = Enum.MeshType.Sphere
  616. mesh4.Scale = Vector3.new(1,1,0.5)
  617. local weld4 = Instance.new('Weld',eye)
  618. weld4.Part0 = eye
  619. weld4.Part1 = mask
  620. weld4.C0 = CFrame.new(0.1,-0.22,0.59)*CFrame.Angles(0,0,-0.2)
  621. local eye2 = Instance.new('Part',mask)
  622. eye2.BrickColor = BrickColor.new('Institutional white')
  623. eye2.Size = Vector3.new(0.2,0.2,0.2)
  624. local mesh5 = Instance.new('SpecialMesh',eye2)
  625. mesh5.MeshType = Enum.MeshType.Sphere
  626. mesh5.Scale = Vector3.new(1,1,0.5)
  627. local weld5 = Instance.new('Weld',eye2)
  628. weld5.Part0 = eye2
  629. weld5.Part1 = mask
  630. weld5.C0 = CFrame.new(-0.1,-0.22,0.59)*CFrame.Angles(0,0,0.2)
  631. else
  632. chr.Head.Transparency = 0
  633. if shirt ~= nil then
  634. shirt:Clone().Parent = chr
  635. end
  636. if pants ~= nil then
  637. pants:Clone().Parent = chr
  638. end
  639. for i,v in pairs(hats) do
  640. v:Clone().Parent = chr
  641. end
  642. end
  643. end)
  644.  
  645.  
  646.  
  647.  
  648.  
  649. plr = game.Players.LocalPlayer
  650. mouse = plr:GetMouse()
  651. part = nil
  652. bp = nil
  653. particles = nil
  654. function clerp(a,b,c,d)
  655. for i = 0,d,.01 do
  656. a.CFrame = CFrame.new(b:lerp(c,i))
  657. wait()
  658. end
  659. end
  660. function slerp(a2,b2,c2,d2)
  661. for i2 = 0,d2,.01 do
  662. a2.CFrame = CFrame.new(b2:lerp(c2,i2))
  663. wait()
  664. end
  665. end
  666. mouse.KeyDown:connect(function(key)
  667. if key == "e" and plr.Character.Parent == workspace then
  668. plr.Character.Parent = workspace.Camera
  669. plr.Character.Archivable = true
  670. Instance.new("ForceField",plr.Character).Visible = false
  671. for y,t in pairs(plr.Character:GetChildren()) do
  672. if t:IsA("Part") and t.Name ~= "HumanoidRootPart" then
  673. t.Transparency = 1
  674. if t.Name == "Head" and t:FindFirstChild("face") then
  675. t.face.Transparency = 1
  676. end
  677. elseif t:IsA("Accessory") and t:FindFirstChild("Handle") then
  678. t.Handle.Transparency = 1
  679. end
  680. end
  681. elseif key == "z" and plr.Character.Parent == workspace.Camera and part == nil then
  682. plr.Character.Torso.CFrame = CFrame.new(Vector3.new(mouse.hit.p.X,mouse.hit.p.Y+1.5,mouse.hit.p.Z),plr.Character.Torso.CFrame.p)
  683. elseif key == "x" and plr.Character.Parent == workspace.Camera and part == nil then
  684. if plr.Character.Torso.Anchored == true then
  685. for y,t in pairs(plr.Character:GetChildren()) do
  686. if t:IsA("Part") then
  687. t.Anchored = false
  688. end
  689. end
  690. else
  691. for y,t in pairs(plr.Character:GetChildren()) do
  692. if t:IsA("Part") then
  693. t.Anchored = true
  694. end
  695. end
  696. end
  697. elseif key == "c" and plr.Character.Parent == workspace.Camera and part ~= nil then
  698. local clone = part:Clone()
  699. clone.Parent = workspace
  700. clone.Anchored = false
  701. clone:ClearAllChildren()
  702. clone.CanCollide = true
  703. bp.Parent = clone
  704. particles.Parent = clone
  705. if part.Parent:FindFirstChildOfClass("Humanoid") then
  706. part.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = false
  707. end
  708. part:Destroy()
  709. part = clone
  710. elseif key == "t" and plr.Character.Parent == workspace.Camera and part == nil then
  711. plr.Character.Parent = workspace
  712. plr.Character.Archivable = false
  713. plr.Character:FindFirstChildOfClass("ForceField"):Remove()
  714. for y,t in pairs(plr.Character:GetChildren()) do
  715. if t:IsA("Part") and t.Name ~= "HumanoidRootPart" then
  716. t.Transparency = 0
  717. if t.Name == "Head" and t:FindFirstChild("face") then
  718. t.face.Transparency = 0
  719. end
  720. elseif t:IsA("Accessory") and t:FindFirstChild("Handle") then
  721. t.Handle.Transparency = 0
  722. end
  723. end
  724. end
  725. end)
  726. mouse.Button1Down:connect(function()
  727. if plr.Character.Parent == workspace.Camera then
  728. if mouse ~= nil then
  729. if mouse.Target ~= nil then
  730. part = mouse.Target
  731. bp = Instance.new("BodyPosition",part)
  732. bp.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  733. bp.Position = part.Position
  734. particles = Instance.new("ParticleEmitter",part)
  735. particles.Color = ColorSequence.new(Color3.new(0,0,0))
  736. particles.Size = NumberSequence.new(1)
  737. particles.Texture = "rbxassetid://292289455"
  738. particles.VelocitySpread = 360
  739. particles.Speed = NumberRange.new(0)
  740. particles.RotSpeed = NumberRange.new(0)
  741. particles.Rotation = NumberRange.new(0)
  742. particles.Rate = 250
  743. particles.Lifetime = NumberRange.new(.2,.4)
  744. particles.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(.12,.688,0),NumberSequenceKeypoint.new(.891,.887,0),NumberSequenceKeypoint.new(1,1,0)})
  745. dwn = true
  746. end
  747. end
  748. while dwn == true do
  749. wait()
  750. bp.Position = mouse.hit.p
  751. if part then
  752. if part.Parent:FindFirstChildOfClass("Humanoid") then
  753. part.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = true
  754. end
  755. end
  756. end
  757. end
  758. end)
  759. mouse.Button1Up:connect(function()
  760. dwn = false
  761. if part then if part.Parent:FindFirstChildOfClass("Humanoid") then part.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = false end part = nil end
  762. if bp then bp:Destroy() end
  763. if particles then particles:Destroy() end
  764. end)
  765. base = Instance.new("ScreenGui",plr.PlayerGui)
  766. bbg = Instance.new("BillboardGui",plr.Character.Head)
  767. bbg.Size = UDim2.new(0,200,0,50)
  768. bbg.StudsOffset = Vector3.new(0,3,0)
  769. bbgTl = Instance.new("TextLabel",bbg)
  770. bbgTl.BackgroundTransparency = 1
  771. bbgTl.Size = UDim2.new(10,0,1,0)
  772. bbgTl.Position = UDim2.new(-4.5,0,0,0)
  773. bbgTl.Font = "Code"
  774. bbgTl.Text = " "
  775. bbgTl.TextSize = 25
  776. bbgTl.TextStrokeColor3 = Color3.new(1,1,1)
  777. bbgTl.TextColor3 = Color3.new(0,0,0)
  778. bbgTl.TextStrokeTransparency = 0
  779. bbgTl.TextWrapped = true
  780. plr.Chatted:connect(function(msg)
  781. bbgTl.Text = msg
  782. wait(5)
  783. if bbgTl.Text == msg then
  784. bbgTl.Text = " "
  785. end
  786. end)
  787. touchCounter = 0
  788. while wait() do
  789. if plr.Character.Parent == workspace.Camera then
  790. local c = plr.Character:Clone()
  791. c:MakeJoints()
  792. for y,t in pairs(c:GetChildren()) do
  793. if t:IsA("Part") then
  794. t.CanCollide = false
  795. t.Anchored = true
  796. t.Transparency = .5
  797. t.TopSurface = "Smooth"
  798. t.BottomSurface = "Smooth"
  799. t.RightSurface = "Smooth"
  800. t.LeftSurface = "Smooth"
  801. t.FrontSurface = "Smooth"
  802. t.BackSurface = "Smooth"
  803. t.BrickColor = BrickColor.new("Really black")
  804. if t.Name == "Head" and t:FindFirstChild("face") then
  805. t.face:Remove()
  806. elseif t.Name == "Torso" and t:FindFirstChild("roblox") then
  807. t.roblox:Remove()
  808. elseif t.Name == "HumanoidRootPart" then
  809. t:Remove()
  810. end
  811. else
  812. t:Remove()
  813. end
  814. end
  815. c.Parent = workspace
  816. game.Debris:AddItem(c,.05)
  817. end
  818. end
  819.  
  820.  
  821.  
  822.  
  823. for i, v in pairs(game.Players.LocalPlayer.Backpack:children()) do
  824. if v.className == "HopperBin" and v.Name == "PPATTA's Trap Script" then
  825. v:Destroy()
  826. end
  827. end
  828.  
  829. local player = game:service("Players").LocalPlayer
  830. local mouse = player:GetMouse()
  831. local char = player.Character
  832. local Torsoz = char:findFirstChild("Torso")
  833. local RA = char:findFirstChild("Right Arm")
  834. local LA = char:findFirstChild("Left Arm")
  835. local RL = char:findFirstChild("Right Leg")
  836. local LL = char:findFirstChild("Left Leg")
  837. local H = char:findFirstChild("Head")
  838. local RS = Torsoz:findFirstChild("Right Shoulder")
  839. local LS = Torsoz:findFirstChild("Left Shoulder")
  840. local RH = Torsoz:findFirstChild("Right Hip")
  841. local LH = Torsoz:findFirstChild("Left Hip")
  842. local N = Torsoz:findFirstChild("Neck")
  843. local NV = Vector3.new()
  844. local Main
  845. local Traps = {}
  846. local Projectiles = {}
  847. local Bolts = {}
  848.  
  849. local bin = Instance.new("HopperBin")
  850. bin.Name = "PPATTA's Trap Script"
  851. bin.Parent = player.Backpack
  852.  
  853. local P = Instance.new("Part")
  854. P.Anchored = false
  855. P.CanCollide = false
  856. P.Name = "Part"
  857. P.formFactor = "Custom"
  858. P.Size = Vector3.new(0.2,0.2,0.2)
  859. P.BrickColor = BrickColor.new("Black")
  860. P.Locked = true
  861. P.TopSurface = 10
  862. P.BottomSurface = 10
  863. P.FrontSurface = 10
  864. P.BackSurface = 10
  865. P.LeftSurface = 10
  866. P.RightSurface = 10
  867.  
  868. local AnimJoints = {}
  869.  
  870. function GetWeld(weld)
  871. local obj
  872. for i, v in pairs(AnimJoints) do
  873. if v[1] == weld then
  874. obj = v
  875. break
  876. end
  877. end
  878. if not obj then
  879. obj = {weld,NV}
  880. table.insert(AnimJoints,obj)
  881. end
  882. return weld.C0.p, obj[2]
  883. end
  884.  
  885. function SetWeld(weld, i, loops, origpos,origangle, nextpos,nextangle,smooth)
  886. smooth = smooth or 1
  887. local obj
  888. for i, v in pairs(AnimJoints) do
  889. if v[1] == weld then
  890. obj = v
  891. break
  892. end
  893. end
  894. if not obj then
  895. obj = {weld,NV}
  896. table.insert(AnimJoints,obj)
  897. end
  898.  
  899. local perc = (smooth == 1 and math.sin((math.pi/2)/loops*i)) or i/loops
  900.  
  901. local tox,toy,toz = 0,0,0
  902. tox = math.abs(origangle.x - nextangle.x) *perc
  903. toy = math.abs(origangle.y - nextangle.y) *perc
  904. toz = math.abs(origangle.z - nextangle.z) *perc
  905. tox = (origangle.x > nextangle.x and -tox) or tox
  906. toy = (origangle.y > nextangle.y and -toy) or toy
  907. toz = (origangle.z > nextangle.z and -toz) or toz
  908.  
  909. local tox2,toy2,toz2 = 0,0,0
  910. tox2 = math.abs(origpos.x - nextpos.x) *perc
  911. toy2 = math.abs(origpos.y - nextpos.y) *perc
  912. toz2 = math.abs(origpos.z - nextpos.z) *perc
  913. tox2 = (origpos.x > nextpos.x and -tox2) or tox2
  914. toy2 = (origpos.y > nextpos.y and -toy2) or toy2
  915. toz2 = (origpos.z > nextpos.z and -toz2) or toz2
  916.  
  917. obj[2] = Vector3.new(origangle.x + tox, origangle.y + toy, origangle.z + toz)
  918. weld.C0 = CFrame.new(origpos.x + tox2,origpos.y + toy2,origpos.z + toz2) * CFrame.Angles(origangle.x + tox,origangle.y + toy,origangle.z + toz)
  919. end
  920.  
  921. function RAY(pos, dir, collidedlist, startpos, endpos, distleft)
  922. collidedlist = collidedlist or {char}
  923. startpos = startpos or pos
  924. distleft = distleft or dir.unit * dir.magnitude
  925. endpos = endpos or pos + distleft
  926. local ray = Ray.new(pos, distleft)
  927. local hitz,enz = workspace:FindPartOnRayWithIgnoreList(ray, collidedlist)
  928. if hitz ~= nil and not hitz.Parent:findFirstChild("Humanoid") then
  929. if hitz.CanCollide == false then
  930. table.insert(collidedlist, hitz)
  931. local newpos = enz
  932. local newdistleft = distleft - (dir.unit * (pos - newpos).magnitude)
  933. if newdistleft ~= NV then
  934. return RAY(newpos-(dir*0.01), dir, collidedlist, startpos, endpos, newdistleft+(dir*0.01))
  935. end
  936. end
  937. end
  938. return hitz, enz, ray
  939. end
  940.  
  941. function FindSurface(part, position)
  942. local obj = part.CFrame:pointToObjectSpace(position)
  943. local siz = part.Size/2
  944. for i,v in pairs(Enum.NormalId:GetEnumItems()) do
  945. local vec = Vector3.FromNormalId(v)
  946. local wvec = part.CFrame:vectorToWorldSpace(vec)
  947. local vz = (obj)/(siz*vec)
  948. if (math.abs(vz.X-1) < 0.01 or math.abs(vz.Y-1) < 0.01 or math.abs(vz.Z-1) < 0.01) then
  949. return wvec,vec
  950. end
  951. end
  952. if part.className == "WedgePart" then
  953. local pos = (part.CFrame * CFrame.new(0,part.Size.y/2,part.Size.z/2)).p
  954. local apos = (part.CFrame * CFrame.Angles(-math.atan2(part.CFrame:pointToObjectSpace(pos).y,part.CFrame:pointToObjectSpace(pos).z),0,0) * CFrame.new(0,1,0)).p
  955. local wvec,vec = (apos - part.Position).unit, part.CFrame:pointToObjectSpace(apos)
  956. return wvec,vec
  957. elseif part.className == "Part" and (part.Shape == Enum.PartType.Ball or part.Shape == Enum.PartType.Cylinder) then
  958. return (position - part.Position).unit, part.CFrame:vectorToObjectSpace((position - part.Position).unit)
  959. end
  960. end
  961.  
  962. function CreateTrap(target,pos)
  963. local m = Instance.new("Model", char)
  964. m.Name = "Trap"
  965.  
  966. local cframe = CFrame.new()
  967. local anchor = true
  968.  
  969. if not target:IsA("Terrain") then
  970. local wvec,vec = FindSurface(target,pos)
  971. cframe = CFrame.new(NV,wvec) * CFrame.Angles(-math.pi/2,0,0)
  972. anchor = target.Anchored
  973. end
  974.  
  975. local c = P:Clone()
  976. c.Parent = m
  977. c.Anchored = anchor
  978. c.CanCollide = true
  979. c.CFrame = (cframe +pos) * CFrame.Angles(0,math.rad(math.random(1,360)),0)
  980. c.BrickColor = BrickColor.new("Dark stone grey")
  981. local light = Instance.new("PointLight", c)
  982. light.Brightness = 2
  983. light.Range = 7
  984. light.Color = Color3.new(1,0.8,0.1)
  985. local mesh = Instance.new("CylinderMesh",c)
  986. mesh.Scale = Vector3.new(0.2,0.4,0.2) *5
  987. if not anchor then
  988. local newpos = target.CFrame:toObjectSpace(c.CFrame)
  989. local w = Instance.new("Weld",c)
  990. w.Part0 = target
  991. w.Part1 = c
  992. w.C0 = newpos
  993. end
  994.  
  995. local tabl = {}
  996. for i = 1, 3 do
  997. local p = P:Clone()
  998. p.Parent = m
  999. p.Anchored = anchor
  1000. p.CFrame = c.CFrame * CFrame.Angles(0,math.pi*2/3*i,0) * CFrame.new(0,0.04,-0.12) * CFrame.Angles(-math.pi/2 +0.05,0,0) * CFrame.new(0,0.55,0)
  1001. local mesh = Instance.new("SpecialMesh",p)
  1002. mesh.MeshType = "Wedge"
  1003. mesh.Scale = Vector3.new(0.15,1.2,0.16) *5
  1004. if not anchor then
  1005. local w = Instance.new("Weld",p)
  1006. w.Part0 = c
  1007. w.Part1 = p
  1008. w.C0 = CFrame.Angles(0,math.pi*2/3*i,0) * CFrame.new(0,0.04,-0.12) * CFrame.Angles(-math.pi/2 +0.05,0,0) * CFrame.new(0,0.55,0)
  1009. end
  1010.  
  1011. for j = -1,1,2 do
  1012. local p = P:Clone()
  1013. p.Parent = m
  1014. p.Anchored = anchor
  1015. p.Transparency = 0.6
  1016. p.BrickColor = BrickColor.new("Bright yellow")
  1017. p.CFrame = c.CFrame * CFrame.new(0,0.2,0) * CFrame.Angles(0,math.pi*2/3*i,0) * CFrame.new(0.32*j,0,-0.55) * CFrame.Angles(0.06,0,-math.pi/2*j)
  1018. local mesh = Instance.new("SpecialMesh",p)
  1019. mesh.MeshType = "Wedge"
  1020. mesh.Scale = Vector3.new(0.03,0.6,1.1) *5
  1021. if not anchor then
  1022. local w = Instance.new("Weld",p)
  1023. w.Part0 = c
  1024. w.Part1 = p
  1025. w.C0 = CFrame.new(0,0.2,0) * CFrame.Angles(0,math.pi*2/3*i,0) * CFrame.new(0.32*j,0,-0.55) * CFrame.Angles(0.06,0,-math.pi/2*j)
  1026. end
  1027. table.insert(tabl,p)
  1028. end
  1029. end
  1030.  
  1031. table.insert(Traps,{m,c,tabl,0,light})
  1032. end
  1033.  
  1034. function Build()
  1035. for i, v in pairs(char:children()) do
  1036. if v.className == "Model" and (v.Name == "" or v.Name == "Trap" or v.Name == "TrapProjectile") then
  1037. v:Destroy()
  1038. end
  1039. end
  1040. local mdl = Instance.new("Model", char)
  1041. mdl.Name = ""
  1042.  
  1043. end
  1044. Build()
  1045.  
  1046. function Throw(aim)
  1047. local mdl = Instance.new("Model",char)
  1048. mdl.Name = "TrapProjectile"
  1049. local p = P:Clone()
  1050. p.Parent = mdl
  1051. p.Anchored = true
  1052. p.Size = Vector3.new(0.5,0.5,1.5)
  1053. p.CFrame = CFrame.new(Torsoz.Position,Torsoz.Position+aim)
  1054. table.insert(Projectiles,{mdl,p,aim,0.05})
  1055. end
  1056.  
  1057. function JumbleBolt(bolt)
  1058. local lastpos = bolt[2][3]
  1059. for i, v in pairs(bolt) do
  1060. if i == 1 then
  1061. bolt[1] = bolt[1] - 1
  1062. else
  1063. local point = v[4] * CFrame.new(math.random(-100,100)*v[5]/200,math.random(-100,100)*v[5]/200,0)
  1064. v[1].CFrame = CFrame.new((lastpos+point.p)/2,point.p)
  1065. v[2].Scale = Vector3.new(0.1,0.1,(lastpos-point.p).magnitude) *5
  1066. lastpos = point.p
  1067. end
  1068. end
  1069. end
  1070.  
  1071. function Bolt(par,start,endpos,jumble)
  1072. jumble = jumble or 8
  1073. local dist = (start - endpos).magnitude
  1074. if dist < 200 then
  1075. local tab = {jumble}
  1076. local dir = (endpos - start).unit
  1077. local jump = dist/math.floor(dist)
  1078. local lastpos = start
  1079. local lastraw
  1080. for i = 1, math.floor(dist) do
  1081. local rawpoint = CFrame.new(start,endpos) + dir*jump*i
  1082. local point = rawpoint
  1083. if i ~= math.floor(dist) then
  1084. point = point * CFrame.new(math.random(-100,100)*jump/200,math.random(-100,100)*jump/200,0)
  1085. end
  1086. local p = P:Clone()
  1087. p.Parent = par
  1088. p.Anchored = true
  1089. p.BrickColor = BrickColor.new("Royal purple")
  1090. p.CFrame = CFrame.new((lastpos+point.p)/2,point.p)
  1091. local mesh = Instance.new("BlockMesh",p)
  1092. mesh.Scale = Vector3.new(0.1,0.1,(lastpos-point.p).magnitude) *5
  1093. game:GetService("Debris"):AddItem(p,5)
  1094. table.insert(tab,{p,mesh,start,rawpoint,jump})
  1095. lastpos = point.p
  1096. lastraw = rawpoint
  1097. end
  1098. table.insert(Bolts,tab)
  1099. end
  1100. end
  1101.  
  1102. function Explode(pos,bolts)
  1103. local mdl = Instance.new("Model",char)
  1104. mdl.Name = "Explosion"
  1105. local p = P:Clone()
  1106. p.Parent = mdl
  1107. p.Anchored = true
  1108. p.CanCollide = false
  1109. p.CFrame = CFrame.new(pos)
  1110. local l = Instance.new("PointLight",p)
  1111. l.Color = Color3.new(0.5,0.1,1)
  1112. l.Range = 10
  1113. l.Brightness = 2
  1114. game:GetService("Debris"):AddItem(mdl,0.7)
  1115. for i, v in pairs(game:GetService("Players"):GetChildren()) do
  1116. if v.Character ~= nil then
  1117. if v.Character:findFirstChild("Torso") and v.Character:findFirstChild("Humanoid") then
  1118. if (v.Character.Torso.Position - pos).magnitude < 6.5 then
  1119. v.Character.Humanoid:TakeDamage(math.random(30,45))
  1120. end
  1121. end
  1122. end
  1123. end
  1124. for i = 1, bolts do
  1125. local dist = math.random(38,64) /10
  1126. local dir = Vector3.new(math.random(-50,50),math.random(-50,50),math.random(-50,50)).unit
  1127. Bolt(mdl,pos,pos+dir*dist)
  1128. end
  1129. end
  1130.  
  1131. function Detonate()
  1132. for i, v in pairs(Traps) do
  1133. Explode(v[2].Position,10)
  1134. v[1]:Destroy()
  1135. Traps[i] = nil
  1136. end
  1137. end
  1138.  
  1139. function B1D(mouse)
  1140. --[[if mouse.Target and #Traps < 6 then
  1141. CreateTrap(mouse.Hit.p,mouse.Target)
  1142. end ]]
  1143. if #Traps + #Projectiles < 6 then
  1144. Throw((mouse.Hit.p - Torsoz.Position).unit)
  1145. end
  1146. --Bolt(char,Torsoz.Position,mouse.Hit.p)
  1147. --Explode(mouse.Hit.p,10)
  1148. end
  1149.  
  1150. function KD(key, mouse)
  1151. if key == "e" then
  1152. Detonate()
  1153. --[[elseif key == "r" then
  1154. for i, v in pairs(Traps) do
  1155. v[1]:Destroy()
  1156. Traps[i] = nil
  1157. end ]]
  1158. end
  1159. end
  1160.  
  1161. function Equip()
  1162. end
  1163.  
  1164. function Unequip()
  1165. end
  1166.  
  1167. bin.Selected:connect(function(mouse)
  1168. mouse.Icon = "rbxasset://textures\\GunCursor.png"
  1169. mouse.Button1Down:connect(function() B1D(mouse) end)
  1170. mouse.KeyDown:connect(function(key) KD(key, mouse) end)
  1171. end)
  1172.  
  1173. bin.Deselected:connect(function()
  1174. end)
  1175.  
  1176. local jumpcount = 0
  1177. game:GetService("RunService").Stepped:connect(function()
  1178. jumpcount = (jumpcount%2) + 1
  1179. for i, trap in pairs(Traps) do
  1180. trap[4] = (trap[4] + 1) %2
  1181. if trap[4] == 0 then
  1182. local randum = math.random()
  1183. local zaptrans = 0.3 + 0.45*randum
  1184. trap[5].Brightness = 0.8 + 2.8*randum --math.random(-65,60)/100
  1185. for j, v in pairs(trap[3]) do
  1186. v.Transparency = zaptrans
  1187. end
  1188. end
  1189. end
  1190.  
  1191. for i, proj in pairs(Projectiles) do
  1192. local spd = (proj[3]*3) + Vector3.new(0,proj[4],0)
  1193. local hitz,enz = RAY(proj[2].Position,spd)
  1194. if hitz then
  1195. proj[1]:Destroy()
  1196. CreateTrap(hitz,enz)
  1197. table.remove(Projectiles,i)
  1198. else
  1199. proj[2].CFrame = CFrame.new(NV,spd) + proj[2].Position + spd
  1200. proj[4] = proj[4] - 0.05
  1201. end
  1202. end
  1203.  
  1204. if jumpcount == 1 then
  1205. for i, bolt in pairs(Bolts) do
  1206. JumbleBolt(bolt)
  1207. if bolt[1] <= 0 then
  1208. for j, v in pairs(bolt) do
  1209. if j ~= 1 then
  1210. v[1]:Destroy()
  1211. end
  1212. end
  1213. table.remove(Bolts,i)
  1214. end
  1215. end
  1216. end
  1217. end)
  1218.  
  1219.  
  1220.  
  1221.  
  1222. local asin = math.asin
  1223. local atan2 = math.atan2
  1224. local rad = math.rad
  1225. local sin = math.sin
  1226. local abs = math.abs
  1227. local ceil = math.ceil
  1228. local cos = math.cos
  1229. local pi = math.pi
  1230. local rclcount = 0
  1231. local rcl = 0
  1232. local rclcounttime = 50
  1233. local rclcountspeed = 1
  1234. local player = game.Players.LocalPlayer
  1235. local pchar = player.Character
  1236. local torso = pchar.Torso
  1237. local mouse = player:GetMouse()
  1238. local attack = false
  1239. local combo = 0
  1240. pchar.Archivable=true
  1241. Cols={"Black","Really black","Royal purple","Alder","Magenta"}
  1242.  
  1243.  
  1244. function stick(x, y)
  1245. weld = Instance.new("Motor")
  1246. weld.Name='mot'
  1247. weld.Part0 = x
  1248. weld.Part1 = y
  1249. local HitPos = x.Position
  1250. local CJ = CFrame.new(HitPos)
  1251. local C0 = x.CFrame:inverse() *CJ
  1252. local C1 = y.CFrame:inverse() * CJ
  1253. weld.C0 = C0
  1254. weld.C1 = C1
  1255. weld.Parent = x
  1256. end
  1257.  
  1258. do
  1259. local function QuaternionFromCFrame(cf) local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() local trace = m00 + m11 + m22 if trace > 0 then local s = math.sqrt(1 + trace) local recip = 0.5/s return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 else local i = 0 if m11 > m00 then i = 1 end if m22 > (i == 0 and m00 or m11) then i = 2 end if i == 0 then local s = math.sqrt(m00-m11-m22+1) local recip = 0.5/s return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip elseif i == 1 then local s = math.sqrt(m11-m22-m00+1) local recip = 0.5/s return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip elseif i == 2 then local s = math.sqrt(m22-m00-m11+1) local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip end end end
  1260. local function QuaternionToCFrame(px, py, pz, x, y, z, w) local xs, ys, zs = x + x, y + y, z + z local wx, wy, wz = w*xs, w*ys, w*zs local xx = x*xs local xy = x*ys local xz = x*zs local yy = y*ys local yz = y*zs local zz = z*zs return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy)) end
  1261. local function QuaternionSlerp(a, b, t) local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] local startInterp, finishInterp; if cosTheta >= 0.0001 then if (1 - cosTheta) > 0.0001 then local theta = math.acos(cosTheta) local invSinTheta = 1/math.sin(theta) startInterp = math.sin((1-t)*theta)*invSinTheta finishInterp = math.sin(t*theta)*invSinTheta else startInterp = 1-t finishInterp = t end else if (1+cosTheta) > 0.0001 then local theta = math.acos(-cosTheta) local invSinTheta = 1/math.sin(theta) startInterp = math.sin((t-1)*theta)*invSinTheta finishInterp = math.sin(t*theta)*invSinTheta else startInterp = t-1 finishInterp = t end end return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp end
  1262.  
  1263. function clerp(a,b,t)
  1264. local qa = {QuaternionFromCFrame(a)}
  1265. local qb = {QuaternionFromCFrame(b)}
  1266. local ax, ay, az = a.x, a.y, a.z
  1267. local bx, by, bz = b.x, b.y, b.z
  1268.  
  1269. local _t = 1-t
  1270. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  1271. end
  1272. end
  1273.  
  1274. Part = function(x,y,z,color,tr,cc,an,parent)
  1275. local p = Instance.new('Part',parent or Weapon)
  1276. p.formFactor = 'Custom'
  1277. p.Size = Vector3.new(x,y,z)
  1278. p.BrickColor = BrickColor.new(color)
  1279. p.CanCollide = cc
  1280. p.Transparency = tr
  1281. p.Anchored = an
  1282. p.TopSurface,p.BottomSurface = 0,0
  1283. p.Locked=true
  1284. p:BreakJoints()
  1285. return p
  1286. end
  1287.  
  1288. wPart = function(x,y,z,color,tr,cc,an,parent)
  1289. local wp = Instance.new('WedgePart',parent or Weapon)
  1290. wp.formFactor = 'Custom'
  1291. wp.Size = Vector3.new(x,y,z)
  1292. wp.BrickColor = BrickColor.new(color)
  1293. wp.CanCollide = cc
  1294. wp.Transparency = tr
  1295. wp.Anchored = an
  1296. wp.TopSurface,wp.BottomSurface = 0,0
  1297. return wp
  1298. end
  1299.  
  1300. local function CFrameFromTopBack(at, top, back)
  1301. local right = top:Cross(back)
  1302. return CFrame.new(at.x, at.y, at.z,
  1303. right.x, top.x, back.x,
  1304. right.y, top.y, back.y,
  1305. right.z, top.z, back.z)
  1306. end
  1307.  
  1308. function Triangle(a, b, c)
  1309. local edg1 = (c-a):Dot((b-a).unit)
  1310. local edg2 = (a-b):Dot((c-b).unit)
  1311. local edg3 = (b-c):Dot((a-c).unit)
  1312. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  1313. a, b, c = a, b, c
  1314. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  1315. a, b, c = b, c, a
  1316. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  1317. a, b, c = c, a, b
  1318. else
  1319. print("unreachable")
  1320. end
  1321. local len1 = (c-a):Dot((b-a).unit)
  1322. local len2 = (b-a).magnitude - len1
  1323. local width = (a + (b-a).unit*len1 - c).magnitude
  1324. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  1325. local list = {}
  1326. if len1 > 0.01 then
  1327. local w1 = wPart(0,0,0,'Really black',0.5,false,true,pchar)
  1328. local sz = Vector3.new(0.2, width, len1)
  1329. w1.Size = sz
  1330. local sp = Mesh(w1,2,0,0,0)
  1331. sp.MeshType='Wedge'
  1332. sp.Scale=Vector3.new(0,1,1)*sz/w1.Size
  1333. w1:BreakJoints()
  1334. w1.Anchored = true
  1335. w1.Transparency = 0.7
  1336. Spawn(function()
  1337. for i=0,1,0.1 do
  1338. wait()
  1339. w1.Transparency=w1.Transparency+0.03
  1340. end
  1341. end)
  1342. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  1343. table.insert(list,w1)
  1344. end
  1345. if len2 > 0.01 then
  1346. local w2 = wPart(0,0,0,'Really black',0.5,false,true,pchar)
  1347. local sz = Vector3.new(0.2, width, len2)
  1348. w2.Size = sz
  1349. local sp = Mesh(w2,2,0,0,0)
  1350. sp.MeshType='Wedge'
  1351. sp.Scale=Vector3.new(0,1,1)*sz/w2.Size
  1352. w2:BreakJoints()
  1353. w2.Anchored = true
  1354. w2.Transparency = 0.7
  1355. Spawn(function()
  1356. for i=0,1,0.1 do
  1357. wait()
  1358. w2.Transparency=w2.Transparency+0.03
  1359. end
  1360. end)
  1361. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  1362. table.insert(list,w2)
  1363. end
  1364. return unpack(list)
  1365. end
  1366.  
  1367. function mgblock(pa,cfr,tm,col1,col2,sz,wa)
  1368. local cols={col1,col2}
  1369. Spawn(function()
  1370. for i=1,tm do
  1371. local a= Part(1,1,1,cols[math.random(1,2)],0,false,true,pchar)
  1372. curre=a
  1373. v1,v2,v3=sz.x,sz.y,sz.z
  1374. local m= Mesh(a,3,v1,v2,v3)
  1375. a.CFrame=pa.CFrame*cfr*CFrame.Angles(math.random(),math.random(),math.random())
  1376. Spawn(function()
  1377. while wait() do
  1378. if a.Transparency >= 1 then a:Destroy() break end
  1379. m.Scale=m.Scale-Vector3.new(.1,0.1,0.1)
  1380. a.CFrame=a.CFrame*CFrame.Angles(math.rad(2),math.rad(2),math.rad(2))+Vector3.new(0,0.1,0)
  1381. a.Transparency=a.Transparency+0.05
  1382. end
  1383. end)
  1384. wait(wa)
  1385. end
  1386. end)
  1387. return curre
  1388. end
  1389.  
  1390. function trail(p,t,h)
  1391. Spawn(function()
  1392. local blcf = p.CFrame
  1393. local scfr = blcf
  1394. for i=1,t do
  1395. local blcf = p.CFrame
  1396. if scfr and (p.Position-scfr.p).magnitude > .1 then
  1397. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  1398. if a then game.Debris:AddItem(a,1) end
  1399. if b then game.Debris:AddItem(b,1) end
  1400. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  1401. if a then game.Debris:AddItem(a,1) end
  1402. if b then game.Debris:AddItem(b,1) end
  1403. scfr = blcf
  1404. elseif not scfr then
  1405. scfr = blcf
  1406. end
  1407. game:service'RunService'.RenderStepped:wait()
  1408. end
  1409. scfr=nil
  1410. end)
  1411. end
  1412.  
  1413. function cloneefx()
  1414. for _,v in pairs(pchar:GetChildren()) do
  1415. if v.ClassName=="Part" then
  1416. local efx=v:Clone()
  1417. efx.CanCollide=true
  1418. efx.Anchored=true
  1419. efx.Parent=workspace
  1420. efx.BrickColor=BrickColor.new("Really black")
  1421. efx:BreakJoints()
  1422. Spawn(function()
  1423. for i=1,10 do wait(.05)
  1424. efx.Transparency=efx.Transparency+.1
  1425. end
  1426. efx:Destroy()
  1427. end)
  1428. end
  1429. end
  1430. end
  1431.  
  1432. so = function(id,par,lo,pi,tm)
  1433. local s = Instance.new("Sound",par)
  1434. s.Looped=lo
  1435. s.Pitch=pi
  1436. s.SoundId = "http://roblox.com/asset/?id="..id
  1437. s:play()
  1438. s.Volume=10
  1439. game.Debris:AddItem(s,tm)
  1440. return s
  1441. end
  1442.  
  1443. function posfix(nom)
  1444. Spawn(function()
  1445. local bg=Instance.new("BodyGyro",pchar.Torso)
  1446. bg.maxTorque=Vector3.new(0,math.huge,0)
  1447. bg.P=5000
  1448. bg.D=100
  1449. bg.cframe=workspace.CurrentCamera.CoordinateFrame*CFrame.Angles(0,nom,0)
  1450. wait(.5)
  1451. bg:Destroy()
  1452. end)
  1453. end
  1454.  
  1455. Weld = function(p0,p1,x,y,z,rx,ry,rz,par)
  1456. local w = Instance.new('Motor',par or p0)
  1457. w.Part0 = p0
  1458. w.Part1 = p1
  1459. w.C1 = CFrame.new(x,y,z)*CFrame.Angles(rx,ry,rz)
  1460. return w
  1461. end
  1462.  
  1463. Mesh = function(par,num,x,y,z)
  1464. local msh = _
  1465. if num == 1 then
  1466. msh = Instance.new("CylinderMesh",par)
  1467. elseif num == 2 then
  1468. msh = Instance.new("SpecialMesh",par)
  1469. msh.MeshType = 3
  1470. elseif num == 3 then
  1471. msh = Instance.new("BlockMesh",par)
  1472. elseif num == 4 then
  1473. msh = Instance.new("SpecialMesh",par)
  1474. msh.MeshType = "Torso"
  1475. elseif type(num) == 'string' then
  1476. msh = Instance.new("SpecialMesh",par)
  1477. msh.MeshId = num
  1478. end
  1479. msh.Scale = Vector3.new(x,y,z)
  1480. return msh
  1481. end
  1482.  
  1483. anglespeed = 1
  1484.  
  1485. angle = 0
  1486.  
  1487. local function getAngles(cf)
  1488. local sx,sy,sz,m00,m01,m02,m10,m11,m12,m20,m21,m22 = cf:components()
  1489. return atan2(-m12,m22),asin(m02),atan2(-m01,m00)
  1490. end
  1491.  
  1492. function explosion(col1,col2,cfr,sz,rng,dmg)
  1493. local a= Part(1,1,1,col1,.5,false,true,pchar)
  1494. local a2= Part(1,1,1,col2,.5,false,true,pchar)
  1495. local a3= Part(1,1,1,col2,.5,false,true,pchar)
  1496. v1,v2,v3=sz.x,sz.y,sz.z
  1497. local m= Mesh(a,'http://www.roblox.com/asset/?id=1185246',v1,v2,v3)
  1498. local m2= Mesh(a2,3,v1/3,v2/3,v3/3)
  1499. local m3= Mesh(a3,3,v1/3,v2/3,v3/3)
  1500. a.CFrame=cfr
  1501. a2.CFrame=cfr*CFrame.Angles(math.random(),math.random(),math.random())
  1502. a3.CFrame=cfr*CFrame.Angles(math.random(),math.random(),math.random())
  1503. for i,v in pairs(workspace:children()) do
  1504. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  1505. if v:findFirstChild("Head") and v:findFirstChild("Torso") then
  1506. if (v:findFirstChild("Torso").Position - a.Position).magnitude < rng and v.Name ~= pchar.Name then
  1507. v.Humanoid.Health=v.Humanoid.Health-dmg
  1508. v.Torso.Velocity=Vector3.new(math.random(-dmg*2,dmg*2),dmg*3,math.random(-dmg*2,dmg*2))
  1509. end
  1510. end
  1511. end
  1512. end
  1513. Spawn(function()
  1514. while true do
  1515. wait()
  1516. if a.Transparency >= 1 then a:Destroy() a2:Destroy() a3:Destroy() break end
  1517. m.Scale=m.Scale+Vector3.new(.1,0.1,0.1)
  1518. m2.Scale=m2.Scale+Vector3.new(.1,0.1,0.1)
  1519. m3.Scale=m3.Scale+Vector3.new(.1,0.1,0.1)
  1520. a2.CFrame=a2.CFrame*CFrame.Angles(math.rad(2),math.rad(2),math.rad(2))
  1521. a3.CFrame=a3.CFrame*CFrame.Angles(-math.rad(2),-math.rad(2),-math.rad(2))
  1522. a.Transparency=a.Transparency+0.05
  1523. a2.Transparency=a2.Transparency+0.05
  1524. a3.Transparency=a3.Transparency+0.05
  1525. end
  1526. end)
  1527. end
  1528.  
  1529. function tmdmg(tm,pa,dmg,rng)
  1530. Spawn(function()
  1531. for i=1,tm do wait()
  1532. for i,v in pairs(workspace:children()) do
  1533. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  1534. if v:findFirstChild("Head") and v:findFirstChild("Torso") then
  1535. if (v:findFirstChild("Torso").Position - pa.Position).magnitude < rng and v.Name ~= pchar.Name then
  1536. v.Humanoid.Health=v.Humanoid.Health-dmg
  1537. end
  1538. end
  1539. end
  1540. end
  1541. end
  1542. end)
  1543. end
  1544.  
  1545. Lerp = {
  1546. Number = function(C1,C2,inc)
  1547. return C1 + (C2 - C1) * inc
  1548. end;
  1549. CFrame = function(a,b,m)
  1550. local c,d={a:components()},{b:components()}
  1551. table.foreach(c,function(a,b)c[a]=c[a]+(d[a]-c[a])*m end)
  1552. return CFrame.new(unpack(c))
  1553. end;
  1554. }
  1555.  
  1556. local function genWeld(a,b)
  1557. local w = Instance.new("Weld",a)
  1558. w.Part0 = a
  1559. w.Part1 = b
  1560. return w
  1561. end
  1562.  
  1563. local Neck = genWeld(pchar.Torso,pchar.Head)
  1564. Neck.C0 = CFrame.new(0,1,0)
  1565. Neck.C1 = CFrame.new(0,-0.5,0)
  1566. local LeftShoulder = genWeld(pchar.Torso,pchar['Left Arm'])
  1567. LeftShoulder.C0 = CFrame.new(-1,0.5,0)
  1568. LeftShoulder.C1 = CFrame.new(0.5,0.5,0)
  1569. local RightShoulder = genWeld(pchar.Torso,pchar['Right Arm'])
  1570. RightShoulder.C0 = CFrame.new(1,0.5,0)
  1571. RightShoulder.C1 = CFrame.new(-0.5,0.5,0)
  1572. local LeftHip = genWeld(pchar.Torso,pchar['Left Leg'])
  1573. LeftHip.C0 = CFrame.new(-1,-1,0)
  1574. LeftHip.C1 = CFrame.new(-0.5,1,0)
  1575. local RightHip = genWeld(pchar.Torso,pchar['Right Leg'])
  1576. RightHip.C0 = CFrame.new(1,-1,0)
  1577. RightHip.C1 = CFrame.new(0.5,1,0)
  1578. local RootJoint = genWeld(pchar.HumanoidRootPart,pchar.Torso)
  1579. RootJoint.C0 = CFrame.new(0,0,0) * CFrame.Angles(-math.pi/2,0,math.pi)
  1580. RootJoint.C1 = CFrame.new(0,0,0) * CFrame.Angles(-math.pi/2,0,math.pi)
  1581.  
  1582. local m = Instance.new("Model")
  1583. m.Name = "Model"
  1584. p1 = Instance.new("Part", m)
  1585. p1.BrickColor = BrickColor.new("Royal purple")
  1586. p1.FormFactor = Enum.FormFactor.Custom
  1587. p1.Size = Vector3.new(0.200000003, 0.400000006, 0.400000006)
  1588. p1.CFrame = CFrame.new(-4.38250017, 5.90899992, 11.0679998, -3.24902021e-006, 9.58114477e-010, -0.999992907, -7.26728331e-006, -0.999994278, -8.0171958e-010, -0.999992251, 7.50569825e-006, 3.24877897e-006)
  1589. p1.Anchored = true
  1590. p1.CanCollide = false
  1591. b1 = Instance.new("SpecialMesh", p1)
  1592. b1.MeshId = "http://www.roblox.com/Asset/?id=9756362"
  1593. b1.TextureId = ""
  1594. b1.MeshType = Enum.MeshType.FileMesh
  1595. b1.Name = "Mesh"
  1596. b1.Scale = Vector3.new(0.0900000036, 1.5, 0.200000003)
  1597. p2 = Instance.new("Part", m)
  1598. p2.BrickColor = BrickColor.new("Really black")
  1599. p2.FormFactor = Enum.FormFactor.Custom
  1600. p2.Size = Vector3.new(0.200000003, 0.400000006, 0.200000003)
  1601. p2.CFrame = CFrame.new(-4.78348494, 1.20046949, 11.0674896, 2.03024854e-007, 0.999994814, 2.68895456e-005, -6.45878536e-005, -2.68897929e-005, 0.999998271, 0.999994814, -2.04498548e-007, 6.45876353e-005)
  1602. p2.Anchored = true
  1603. p2.CanCollide = false
  1604. b2 = Instance.new("SpecialMesh", p2)
  1605. b2.MeshId = "http://www.roblox.com/Asset/?id=9756362"
  1606. b2.TextureId = ""
  1607. b2.MeshType = Enum.MeshType.FileMesh
  1608. b2.Name = "Mesh"
  1609. b2.Scale = Vector3.new(0.100000001, 0.25999999, 0.100000001)
  1610. p3 = Instance.new("Part", m)
  1611. p3.BrickColor = BrickColor.new("Royal purple")
  1612. p3.FormFactor = Enum.FormFactor.Custom
  1613. p3.Size = Vector3.new(0.200000003, 0.400000006, 0.400000006)
  1614. p3.CFrame = CFrame.new(-4.78348494, 1.20046949, 11.0674896, 1.35292976e-005, 0.999994814, 2.33750106e-005, 0.499945492, -2.70082237e-005, 0.866054654, 0.866051197, -3.0624193e-008, -0.499943763)
  1615. p3.Anchored = true
  1616. p3.CanCollide = false
  1617. b3 = Instance.new("SpecialMesh", p3)
  1618. b3.MeshId = "http://www.roblox.com/Asset/?id=9756362"
  1619. b3.TextureId = ""
  1620. b3.MeshType = Enum.MeshType.FileMesh
  1621. b3.Name = "Mesh"
  1622. b3.Scale = Vector3.new(0.100000001, 0.25999999, 0.100000001)
  1623. p4 = Instance.new("Part", m)
  1624. p4.BrickColor = BrickColor.new("Royal purple")
  1625. p4.FormFactor = Enum.FormFactor.Custom
  1626. p4.Size = Vector3.new(0.200000003, 0.200000003, 0.400000006)
  1627. p4.CFrame = CFrame.new(-3.9834733, 1.20044112, 11.0675144, 1.90376704e-005, 0.999994814, 1.91206054e-005, 0.707060516, -2.69822558e-005, 0.707149625, 0.707147956, 5.72263765e-008, -0.707058728)
  1628. p4.Anchored = true
  1629. p4.CanCollide = false
  1630. b4 = Instance.new("SpecialMesh", p4)
  1631. b4.MeshId = "http://www.roblox.com/Asset/?id=9756362"
  1632. b4.TextureId = ""
  1633. b4.MeshType = Enum.MeshType.FileMesh
  1634. b4.Name = "Mesh"
  1635. b4.Scale = Vector3.new(0.100000001, 0.25999999, 0.100000001)
  1636. p5 = Instance.new("Part", m)
  1637. p5.BrickColor = BrickColor.new("Really black")
  1638. p5.FormFactor = Enum.FormFactor.Custom
  1639. p5.Size = Vector3.new(0.200000003, 0.400000006, 0.200000003)
  1640. p5.CFrame = CFrame.new(-3.9834733, 1.20044112, 11.0675144, 2.03024854e-007, 0.999994814, 2.68895456e-005, -6.45878536e-005, -2.68897929e-005, 0.999998271, 0.999994814, -2.04498548e-007, 6.45876353e-005)
  1641. p5.Anchored = true
  1642. p5.CanCollide = false
  1643. b5 = Instance.new("SpecialMesh", p5)
  1644. b5.MeshId = "http://www.roblox.com/Asset/?id=9756362"
  1645. b5.TextureId = ""
  1646. b5.MeshType = Enum.MeshType.FileMesh
  1647. b5.Name = "Mesh"
  1648. b5.Scale = Vector3.new(0.100000001, 0.25999999, 0.100000001)
  1649. p6 = Instance.new("Part", m)
  1650. p6.BrickColor = BrickColor.new("Royal purple")
  1651. p6.Material = Enum.Material.SmoothPlastic
  1652. p6.FormFactor = Enum.FormFactor.Custom
  1653. p6.Size = Vector3.new(0.200000003, 0.600000143, 1)
  1654. p6.CFrame = CFrame.new(-4.38349676, 0.700476408, 11.0674639, 2.03024811e-007, 2.68621734e-005, -0.999994993, -6.45878681e-005, 0.999998331, 2.68624135e-005, 0.999994993, 6.45876644e-005, 2.04505866e-007)
  1655. p6.Anchored = true
  1656. p6.CanCollide = false
  1657. b6 = Instance.new("CylinderMesh", p6)
  1658. b6.Name = "Mesh"
  1659. b6.Scale = Vector3.new(1, 1.5, 0.100000001)
  1660. p7 = Instance.new("Part", m)
  1661. p7.BrickColor = BrickColor.new("Royal purple")
  1662. p7.Material = Enum.Material.SmoothPlastic
  1663. p7.FormFactor = Enum.FormFactor.Custom
  1664. p7.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  1665. p7.CFrame = CFrame.new(-4.38347578, 0.100488186, 11.0674219, 0.999994993, 2.68598014e-005, -2.10421803e-007, -2.68600634e-005, 0.999998331, -6.46428016e-005, 2.08939497e-007, 6.46425033e-005, 0.999994993)
  1666. p7.Anchored = true
  1667. p7.CanCollide = false
  1668. b7 = Instance.new("SpecialMesh", p7)
  1669. b7.MeshId = "http://www.roblox.com/asset/?id=3270017"
  1670. b7.TextureId = ""
  1671. b7.MeshType = Enum.MeshType.FileMesh
  1672. b7.Name = "Mesh"
  1673. b7.Scale = Vector3.new(0.280000001, 0.280000001, 0.5)
  1674. p8 = Instance.new("Part", m)
  1675. p8.BrickColor = BrickColor.new("Really black")
  1676. p8.Material = Enum.Material.SmoothPlastic
  1677. p8.FormFactor = Enum.FormFactor.Custom
  1678. p8.Size = Vector3.new(0.200000003, 0.80000037, 0.200000003)
  1679. p8.CFrame = CFrame.new(-4.44335222, 6.31963682, 11.0678616, -2.03024811e-007, 2.68621734e-005, 0.999994993, 6.45878681e-005, 0.999998331, -2.68624135e-005, -0.999994993, 6.45876644e-005, -2.04505866e-007)
  1680. p8.Anchored = true
  1681. p8.CanCollide = false
  1682. b8 = Instance.new("SpecialMesh", p8)
  1683. b8.MeshType = Enum.MeshType.Wedge
  1684. b8.Name = "Mesh"
  1685. b8.Scale = Vector3.new(0.400000006, 1, 0.600000024)
  1686. p9 = Instance.new("Part", m)
  1687. p9.BrickColor = BrickColor.new("Really black")
  1688. p9.Material = Enum.Material.SmoothPlastic
  1689. p9.FormFactor = Enum.FormFactor.Custom
  1690. p9.Size = Vector3.new(0.200000003, 0.600000024, 0.200000003)
  1691. p9.CFrame = CFrame.new(-4.38343573, 1.70038664, 11.0675249, 2.03024811e-007, 2.68621734e-005, -0.999994993, -6.45878681e-005, 0.999998331, 2.68624135e-005, 0.999994993, 6.45876644e-005, 2.04505866e-007)
  1692. p9.Anchored = true
  1693. p9.CanCollide = false
  1694. b9 = Instance.new("BlockMesh", p9)
  1695. b9.Name = "Mesh"
  1696. b9.Scale = Vector3.new(0.449999988, 1.10000002, 0.150000006)
  1697. handl = Instance.new("Part", m)
  1698. handl.BrickColor = BrickColor.new("Really black")
  1699. handl.Material = Enum.Material.SmoothPlastic
  1700. handl.Name = "handle"
  1701. handl.FormFactor = Enum.FormFactor.Custom
  1702. handl.Size = Vector3.new(0.200000003, 0.600000024, 0.200000003)
  1703. handl.CFrame = CFrame.new(-4.38349676, 0.700476408, 11.0674639, 2.03024811e-007, 2.68621734e-005, -0.999994993, -6.45878681e-005, 0.999998331, 2.68624135e-005, 0.999994993, 6.45876644e-005, 2.04505866e-007)
  1704. handl.Anchored = true
  1705. handl.CanCollide = false
  1706. b10 = Instance.new("BlockMesh", handl)
  1707. b10.Name = "Mesh"
  1708. b10.Scale = Vector3.new(0.5, 1.5, 0.150000006)
  1709. p11 = Instance.new("Part", m)
  1710. p11.BrickColor = BrickColor.new("Really black")
  1711. p11.Material = Enum.Material.SmoothPlastic
  1712. p11.FormFactor = Enum.FormFactor.Custom
  1713. p11.Size = Vector3.new(0.400000006, 0.200000003, 0.200000003)
  1714. p11.CFrame = CFrame.new(-4.3834815, 1.20045376, 11.0674934, 0.000361636019, 0.000304358749, -0.999994814, -0.999998271, -0.000127056977, -0.000361675629, -0.000127166844, 0.999994755, 0.000304312387)
  1715. p11.Anchored = true
  1716. p11.CanCollide = false
  1717. p11.BottomSurface = Enum.SurfaceType.Smooth
  1718. p11.TopSurface = Enum.SurfaceType.Smooth
  1719. b11 = Instance.new("SpecialMesh", p11)
  1720. b11.MeshId = "http://www.roblox.com/asset/?id=16606212"
  1721. b11.TextureId = ""
  1722. b11.MeshType = Enum.MeshType.FileMesh
  1723. b11.Name = "Mesh"
  1724. b11.Scale = Vector3.new(0.0500000007, 0.0599999987, 0.219999999)
  1725. p12 = Instance.new("Part", m)
  1726. p12.BrickColor = BrickColor.new("Royal purple")
  1727. p12.Material = Enum.Material.SmoothPlastic
  1728. p12.FormFactor = Enum.FormFactor.Custom
  1729. p12.Size = Vector3.new(0.600000024, 0.400000036, 0.400000006)
  1730. p12.CFrame = CFrame.new(-4.38352394, 0.900473356, 11.0674744, 0.999994993, -2.10422286e-007, -2.68598014e-005, -2.68600634e-005, -6.46624612e-005, -0.999998331, 2.08939497e-007, 0.999994993, -6.46621702e-005)
  1731. p12.Anchored = true
  1732. p12.CanCollide = false
  1733. b12 = Instance.new("SpecialMesh", p12)
  1734. b12.MeshId = "http://www.roblox.com/asset/?id=3270017"
  1735. b12.TextureId = ""
  1736. b12.MeshType = Enum.MeshType.FileMesh
  1737. b12.Name = "Mesh"
  1738. b12.Scale = Vector3.new(0.200000003, 0.200000003, 0.400000006)
  1739. p13 = Instance.new("Part", m)
  1740. p13.BrickColor = BrickColor.new("Really black")
  1741. p13.Material = Enum.Material.SmoothPlastic
  1742. p13.FormFactor = Enum.FormFactor.Custom
  1743. p13.Size = Vector3.new(0.200000003, 1.79999995, 0.200000003)
  1744. p13.CFrame = CFrame.new(-4.38342142, 3.50038433, 11.0676756, 2.03024811e-007, 2.68621734e-005, -0.999994993, -6.45878681e-005, 0.999998331, 2.68624135e-005, 0.999994993, 6.45876644e-005, 2.04505866e-007)
  1745. p13.Anchored = true
  1746. p13.CanCollide = false
  1747. b13 = Instance.new("BlockMesh", p13)
  1748. b13.Name = "Mesh"
  1749. b13.Scale = Vector3.new(0.400000006, 2.70000005, 1.25)
  1750. p14 = Instance.new("Part", m)
  1751. p14.BrickColor = BrickColor.new("Royal purple")
  1752. p14.Material = Enum.Material.SmoothPlastic
  1753. p14.FormFactor = Enum.FormFactor.Custom
  1754. p14.Size = Vector3.new(0.200000003, 0.800000012, 0.200000003)
  1755. p14.CFrame = CFrame.new(-4.3834815, 1.20045376, 11.0674934, 2.03024854e-007, 0.999994814, 2.68895456e-005, -6.45878536e-005, -2.68897929e-005, 0.999998271, 0.999994814, -2.04498548e-007, 6.45876353e-005)
  1756. p14.Anchored = true
  1757. p14.CanCollide = false
  1758. b14 = Instance.new("CylinderMesh", p14)
  1759. b14.Name = "Mesh"
  1760. b14.Scale = Vector3.new(1, 0.860000014, 0.349999994)
  1761. p15 = Instance.new("Part", m)
  1762. p15.BrickColor = BrickColor.new("Royal purple")
  1763. p15.Material = Enum.Material.SmoothPlastic
  1764. p15.FormFactor = Enum.FormFactor.Custom
  1765. p15.Size = Vector3.new(0.200000003, 0.400000006, 0.200000003)
  1766. p15.CFrame = CFrame.new(-4.38351488, 1.00045681, 11.067482, 0.999994993, -2.10422286e-007, -2.68598014e-005, -2.68600634e-005, -6.46624612e-005, -0.999998331, 2.08939497e-007, 0.999994993, -6.46621702e-005)
  1767. p15.Anchored = true
  1768. p15.CanCollide = false
  1769. b15 = Instance.new("SpecialMesh", p15)
  1770. b15.MeshId = "http://www.roblox.com/asset/?id=3270017"
  1771. b15.TextureId = ""
  1772. b15.MeshType = Enum.MeshType.FileMesh
  1773. b15.Name = "Mesh"
  1774. b15.Scale = Vector3.new(0.200000003, 0.200000003, 0.400000006)
  1775. p16 = Instance.new("Part", m)
  1776. p16.BrickColor = BrickColor.new("Royal purple")
  1777. p16.Material = Enum.Material.SmoothPlastic
  1778. p16.FormFactor = Enum.FormFactor.Custom
  1779. p16.Size = Vector3.new(1, 0.200000003, 0.400000036)
  1780. p16.CFrame = CFrame.new(-4.3834815, 1.20045376, 11.0674934, 0.999994993, 2.10420296e-007, 2.68598014e-005, -2.68600634e-005, 6.45879554e-005, 0.999998331, 2.08939497e-007, -0.999994993, 6.45876644e-005)
  1781. p16.Anchored = true
  1782. p16.CanCollide = false
  1783. b16 = Instance.new("CylinderMesh", p16)
  1784. b16.Name = "Mesh"
  1785. b16.Scale = Vector3.new(1, 0.899999976, 0.899999976)
  1786. p17 = Instance.new("Part", m)
  1787. p17.BrickColor = BrickColor.new("Royal purple")
  1788. p17.Material = Enum.Material.SmoothPlastic
  1789. p17.FormFactor = Enum.FormFactor.Custom
  1790. p17.Size = Vector3.new(0.200000033, 0.200000003, 0.400000006)
  1791. p17.CFrame = CFrame.new(-4.3834815, 1.20045376, 11.0674934, 0.999994993, 1.22376412e-006, 2.79684682e-005, -2.79687956e-005, 6.45115288e-005, 0.999998331, 1.22221331e-006, -0.999994993, 6.45113687e-005)
  1792. p17.Anchored = true
  1793. p17.CanCollide = false
  1794. b17 = Instance.new("CylinderMesh", p17)
  1795. b17.Name = "Mesh"
  1796. b17.Scale = Vector3.new(1, 1.10000002, 0.25)
  1797. p18 = Instance.new("Part", m)
  1798. p18.BrickColor = BrickColor.new("Really black")
  1799. p18.Material = Enum.Material.SmoothPlastic
  1800. p18.FormFactor = Enum.FormFactor.Custom
  1801. p18.Size = Vector3.new(0.600000024, 0.200000003, 0.400000006)
  1802. p18.CFrame = CFrame.new(-4.3834815, 1.20045376, 11.0674934, 0.999994993, 2.10420296e-007, 2.68598014e-005, -2.68600634e-005, 6.45879554e-005, 0.999998331, 2.08939497e-007, -0.999994993, 6.45876644e-005)
  1803. p18.Anchored = true
  1804. p18.CanCollide = false
  1805. b18 = Instance.new("CylinderMesh", p18)
  1806. b18.Name = "Mesh"
  1807. b18.Scale = Vector3.new(1, 1, 0.5)
  1808. p19 = Instance.new("Part", m)
  1809. p19.BrickColor = BrickColor.new("Really black")
  1810. p19.Material = Enum.Material.SmoothPlastic
  1811. p19.FormFactor = Enum.FormFactor.Custom
  1812. p19.Size = Vector3.new(0.200000003, 0.80000037, 0.200000003)
  1813. p19.CFrame = CFrame.new(-4.32335329, 6.31963253, 11.0678616, 1.78813934e-007, 2.67998621e-005, -0.999994993, -6.46066765e-005, 0.999998331, 2.68001022e-005, 0.999994993, 6.46064655e-005, 1.78813934e-007)
  1814. p19.Anchored = true
  1815. p19.CanCollide = false
  1816. b19 = Instance.new("SpecialMesh", p19)
  1817. b19.MeshType = Enum.MeshType.Wedge
  1818. b19.Name = "Mesh"
  1819. b19.Scale = Vector3.new(0.400000006, 1, 0.600000024)
  1820. blade = Instance.new("Part", m)
  1821. blade.BrickColor = BrickColor.new("Royal purple")
  1822. blade.Material = Enum.Material.SmoothPlastic
  1823. blade.Name = "blade"
  1824. blade.FormFactor = Enum.FormFactor.Custom
  1825. blade.Size = Vector3.new(0.200000003, 1.79999995, 0.200000003)
  1826. blade.CFrame = CFrame.new(-4.38342142, 3.50038433, 11.0676756, 2.03024811e-007, 2.68621734e-005, -0.999994993, -6.45878681e-005, 0.999998331, 2.68624135e-005, 0.999994993, 6.45876644e-005, 2.04505866e-007)
  1827. blade.Anchored = true
  1828. blade.CanCollide = false
  1829. b20 = Instance.new("BlockMesh", blade)
  1830. b20.Name = "Mesh"
  1831. b20.Scale = Vector3.new(0.419999987, 2.70000005, 0.5)
  1832. p21 = Instance.new("Part", m)
  1833. p21.BrickColor = BrickColor.new("Royal purple")
  1834. p21.Material = Enum.Material.SmoothPlastic
  1835. p21.FormFactor = Enum.FormFactor.Custom
  1836. p21.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  1837. p21.CFrame = CFrame.new(-4.87347412, 1.20048833, 11.067421, 0.999994993, 2.68597978e-005, -1.63912773e-007, -2.68600634e-005, 0.999998331, -6.46428016e-005, 1.63912773e-007, 6.46424742e-005, 0.999994993)
  1838. p21.Anchored = true
  1839. p21.CanCollide = false
  1840. b21 = Instance.new("SpecialMesh", p21)
  1841. b21.MeshId = "http://www.roblox.com/asset/?id=3270017"
  1842. b21.TextureId = ""
  1843. b21.MeshType = Enum.MeshType.FileMesh
  1844. b21.Name = "Mesh"
  1845. b21.Scale = Vector3.new(0.280000001, 0.280000001, 0.5)
  1846. p22 = Instance.new("Part", m)
  1847. p22.BrickColor = BrickColor.new("Really black")
  1848. p22.Material = Enum.Material.SmoothPlastic
  1849. p22.FormFactor = Enum.FormFactor.Custom
  1850. p22.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  1851. p22.CFrame = CFrame.new(-4.6434741, 1.36048794, 11.0674219, 0.999994993, 2.68597978e-005, -1.63912773e-007, -2.68600634e-005, 0.999998331, -6.46428016e-005, 1.63912773e-007, 6.46424742e-005, 0.999994993)
  1852. p22.Anchored = true
  1853. p22.CanCollide = false
  1854. b22 = Instance.new("SpecialMesh", p22)
  1855. b22.MeshId = "http://www.roblox.com/asset/?id=3270017"
  1856. b22.TextureId = ""
  1857. b22.MeshType = Enum.MeshType.FileMesh
  1858. b22.Name = "Mesh"
  1859. b22.Scale = Vector3.new(0.280000001, 0.280000001, 0.5)
  1860. p23 = Instance.new("Part", m)
  1861. p23.BrickColor = BrickColor.new("Really black")
  1862. p23.Material = Enum.Material.SmoothPlastic
  1863. p23.FormFactor = Enum.FormFactor.Custom
  1864. p23.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  1865. p23.CFrame = CFrame.new(-4.6434741, 1.05048847, 11.0674219, 0.999994993, 2.68597978e-005, -1.63912773e-007, -2.68600634e-005, 0.999998331, -6.46428016e-005, 1.63912773e-007, 6.46424742e-005, 0.999994993)
  1866. p23.Anchored = true
  1867. p23.CanCollide = false
  1868. b23 = Instance.new("SpecialMesh", p23)
  1869. b23.MeshId = "http://www.roblox.com/asset/?id=3270017"
  1870. b23.TextureId = ""
  1871. b23.MeshType = Enum.MeshType.FileMesh
  1872. b23.Name = "Mesh"
  1873. b23.Scale = Vector3.new(0.280000001, 0.280000001, 0.5)
  1874. p24 = Instance.new("Part", m)
  1875. p24.BrickColor = BrickColor.new("Really black")
  1876. p24.FormFactor = Enum.FormFactor.Custom
  1877. p24.Size = Vector3.new(0.200000003, 0.400000006, 0.400000006)
  1878. p24.CFrame = CFrame.new(-4.38800001, 3.43899989, 11.0679998, -3.24902021e-006, 9.58114477e-010, -0.999992907, -7.26728331e-006, -0.999994278, -8.0171958e-010, -0.999992251, 7.50569825e-006, 3.24877897e-006)
  1879. p24.Anchored = true
  1880. p24.CanCollide = false
  1881. b24 = Instance.new("SpecialMesh", p24)
  1882. b24.MeshId = "http://www.roblox.com/Asset/?id=9756362"
  1883. b24.TextureId = ""
  1884. b24.MeshType = Enum.MeshType.FileMesh
  1885. b24.Name = "Mesh"
  1886. b24.Scale = Vector3.new(0.100000001, 1.5, 0.100000001)
  1887. p25 = Instance.new("Part", m)
  1888. p25.BrickColor = BrickColor.new("Really black")
  1889. p25.Material = Enum.Material.SmoothPlastic
  1890. p25.FormFactor = Enum.FormFactor.Custom
  1891. p25.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  1892. p25.CFrame = CFrame.new(-4.12346935, 1.36048794, 11.0674219, -0.999994993, -2.6859796e-005, 1.78813934e-007, -2.68600634e-005, 0.999998331, -6.46428016e-005, -1.78813934e-007, -6.46425033e-005, -0.999994993)
  1893. p25.Anchored = true
  1894. p25.CanCollide = false
  1895. b25 = Instance.new("SpecialMesh", p25)
  1896. b25.MeshId = "http://www.roblox.com/asset/?id=3270017"
  1897. b25.TextureId = ""
  1898. b25.MeshType = Enum.MeshType.FileMesh
  1899. b25.Name = "Mesh"
  1900. b25.Scale = Vector3.new(0.280000001, 0.280000001, 0.5)
  1901. p26 = Instance.new("Part", m)
  1902. p26.BrickColor = BrickColor.new("Royal purple")
  1903. p26.Material = Enum.Material.SmoothPlastic
  1904. p26.FormFactor = Enum.FormFactor.Custom
  1905. p26.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  1906. p26.CFrame = CFrame.new(-3.89346814, 1.20048833, 11.0674229, -0.999994993, -2.6859796e-005, 1.78813934e-007, -2.68600634e-005, 0.999998331, -6.46428016e-005, -1.78813934e-007, -6.46425033e-005, -0.999994993)
  1907. p26.Anchored = true
  1908. p26.CanCollide = false
  1909. b26 = Instance.new("SpecialMesh", p26)
  1910. b26.MeshId = "http://www.roblox.com/asset/?id=3270017"
  1911. b26.TextureId = ""
  1912. b26.MeshType = Enum.MeshType.FileMesh
  1913. b26.Name = "Mesh"
  1914. b26.Scale = Vector3.new(0.280000001, 0.280000001, 0.5)
  1915. p27 = Instance.new("Part", m)
  1916. p27.BrickColor = BrickColor.new("Really black")
  1917. p27.Material = Enum.Material.SmoothPlastic
  1918. p27.FormFactor = Enum.FormFactor.Custom
  1919. p27.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  1920. p27.CFrame = CFrame.new(-4.12346935, 1.05048847, 11.0674219, -0.999994993, -2.6859796e-005, 1.78813934e-007, -2.68600634e-005, 0.999998331, -6.46428016e-005, -1.78813934e-007, -6.46425033e-005, -0.999994993)
  1921. p27.Anchored = true
  1922. p27.CanCollide = false
  1923. b27 = Instance.new("SpecialMesh", p27)
  1924. b27.MeshId = "http://www.roblox.com/asset/?id=3270017"
  1925. b27.TextureId = ""
  1926. b27.MeshType = Enum.MeshType.FileMesh
  1927. b27.Name = "Mesh"
  1928. b27.Scale = Vector3.new(0.280000001, 0.280000001, 0.5)
  1929. p28 = Instance.new("Part", m)
  1930. p28.BrickColor = BrickColor.new("Really black")
  1931. p28.Material = Enum.Material.SmoothPlastic
  1932. p28.FormFactor = Enum.FormFactor.Custom
  1933. p28.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  1934. p28.CFrame = CFrame.new(-4.12346935, 1.36048794, 11.0674219, -0.999994993, -2.6859796e-005, 1.78813934e-007, -2.68600634e-005, 0.999998331, -6.46428016e-005, -1.78813934e-007, -6.46425033e-005, -0.999994993)
  1935. p28.Anchored = true
  1936. p28.CanCollide = false
  1937. b28 = Instance.new("SpecialMesh", p28)
  1938. b28.MeshId = "http://www.roblox.com/asset/?id=3270017"
  1939. b28.TextureId = ""
  1940. b28.MeshType = Enum.MeshType.FileMesh
  1941. b28.Name = "Mesh"
  1942. b28.Scale = Vector3.new(0.280000001, 0.280000001, 0.5)
  1943. c = m:children()
  1944. for n = 1, #c do
  1945. if (c[n].className == "Part") then
  1946. if (c[n].Name ~= "handle") then
  1947. stick(c[n], m.handle)
  1948. wait()
  1949. c[n].Anchored = false
  1950. end
  1951. end
  1952. end
  1953. for _,v in pairs(pchar:GetChildren()) do if v.ClassName=="Hat" then v:remove() end end
  1954. handl.Anchored=false
  1955. mwl= Weld(handl,pchar.Torso,-1,0,-1,rad(120),0,0,m)
  1956. m.Parent = pchar
  1957. hp=Instance.new('HopperBin',player.Backpack)
  1958. hp.Name='Despira'
  1959.  
  1960. local hat=Part(.5,1,1.02,'Really black',0,false,false,pchar)
  1961. Mesh(hat,'http://www.roblox.com/asset/?id=16952952',1.05,1.05,1.05)
  1962. Weld(pchar.Head,hat,0,-.25,0,0,0,0,p)
  1963. -- cape mesh cause lazy :p
  1964. local cpw=Part(.2,.2,.2,'White',1,false,false,pchar)
  1965. Weld(torso,cpw,0,-1,-.5,0,0,0,p)
  1966. local cp=Part(.1,.1,.1,'Really black',0,false,false,pchar)
  1967. Mesh(cp,'http://www.roblox.com/asset/?id=114046169',1.3,1.3,1.3)
  1968. cape = Weld(cpw,cp,0,1.2,0,0,0,0,p)
  1969.  
  1970. local function newLerpTo(weld)
  1971. return {
  1972. Weld = weld;
  1973. To = weld.C0;
  1974. Cache = weld.C0;
  1975. Speed = 0.2;
  1976. }
  1977. end
  1978.  
  1979. Used={Head=false,RightArm=false,LeftArm=false,RightLeg=false,LeftLeg=false,Torso=false}
  1980.  
  1981. function SetAnimData(IF_DATA_IS_USED)
  1982. Used = IF_DATA_IS_USED
  1983. end
  1984.  
  1985. function CheckAnimData(ANIM_TAB,DO_ANIM)
  1986. anglespeed=Anims[ANIM_TAB][DO_ANIM].speed or 1
  1987. if Used.Head == true then
  1988. LerpTo.Neck.To = LerpTo.Neck.Cache * Anims[ANIM_TAB][DO_ANIM].Head
  1989. end
  1990. if Used.RightArm == true then
  1991. LerpTo.RightArm.To = LerpTo.RightArm.Cache * Anims[ANIM_TAB][DO_ANIM].RightArm
  1992. end
  1993. if Used.LeftArm == true then
  1994. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * Anims[ANIM_TAB][DO_ANIM].LeftArm
  1995. end
  1996. if Used.RightLeg == true then
  1997. LerpTo.RightLeg.To = LerpTo.RightLeg.Cache * Anims[ANIM_TAB][DO_ANIM].RightLeg
  1998. end
  1999. if Used.LeftLeg == true then
  2000. LerpTo.LeftLeg.To = LerpTo.LeftLeg.Cache * Anims[ANIM_TAB][DO_ANIM].LeftLeg
  2001. end
  2002. if Used.Torso == true then
  2003. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * Anims[ANIM_TAB][DO_ANIM].Torso
  2004. end
  2005. LerpTo.cape.To = LerpTo.cape.Cache * Anims[ANIM_TAB][DO_ANIM].Cape
  2006. end
  2007.  
  2008.  
  2009. function UpdateAnims()
  2010. Anims = {
  2011. ["Idle"] = {
  2012. ["Stance"] = {
  2013. speed=.25,
  2014. Head = CFrame.Angles(cos(angle)*0.01,0,0),
  2015. RightArm = CFrame.Angles(cos(angle)*0.1,0,0),
  2016. LeftArm = CFrame.Angles(-cos(angle)*0.1,0,0),
  2017. RightLeg = CFrame.Angles(cos(angle)*0.1,0,0),
  2018. LeftLeg = CFrame.Angles(-cos(angle)*0.1,0,0),
  2019. Torso = CFrame.Angles(0,0,0),
  2020. Cape = CFrame.Angles(0,0,0)
  2021. },
  2022. ["Walk"] = {
  2023. speed=2,
  2024. Head = CFrame.Angles(0,0,cos(angle)*0.05),
  2025. RightArm = CFrame.Angles(-cos(angle)*1,0,0),
  2026. LeftArm = CFrame.Angles(cos(angle)*1,0,0),
  2027. RightLeg = CFrame.Angles(cos(angle)*1,0,0),
  2028. LeftLeg = CFrame.Angles(-cos(angle)*1,0,0),
  2029. Torso = CFrame.Angles(0,0,0),
  2030. Cape =CFrame.Angles(-rad(40)+sin(angle)*.1,0,0)
  2031. },
  2032. ["Jump"] = {
  2033. speed=2,
  2034. Head = CFrame.Angles(0,0,0),
  2035. RightArm = CFrame.Angles(rad(-20),0,0),
  2036. LeftArm = CFrame.Angles(rad(-20),0,0),
  2037. RightLeg = CFrame.new(0,.5,-.5)*CFrame.Angles(rad(-20),0,0),
  2038. LeftLeg = CFrame.Angles(0,0,0),
  2039. Torso = CFrame.Angles(rad(10),0,0),
  2040. Cape = CFrame.Angles(-rad(70)+sin(angle)*.4,0,0)
  2041. }
  2042. },
  2043. ["Holding"] = {
  2044. ["Stance"] = {
  2045. speed=.25,
  2046. Head = CFrame.Angles(cos(angle)*0.01,0,0),
  2047. RightArm = CFrame.Angles(cos(angle)*0.1,0,rad(10)),
  2048. LeftArm = CFrame.Angles(-cos(angle)*0.1,0,-rad(10)),
  2049. RightLeg = CFrame.Angles(cos(angle)*0.1,0,0),
  2050. LeftLeg = CFrame.Angles(-cos(angle)*0.1,0,0),
  2051. Torso = CFrame.Angles(0,0,0),
  2052. Cape = CFrame.Angles(0,0,0)
  2053. },
  2054. ["Walk"] = {
  2055. speed=2,
  2056. Head = CFrame.Angles(0,0,cos(angle)*0.05),
  2057. RightArm = CFrame.Angles(-cos(angle)*.3,0,rad(10)),
  2058. LeftArm = CFrame.Angles(cos(angle)*.3,0,-rad(10)),
  2059. RightLeg = CFrame.Angles(cos(angle)*1,0,0),
  2060. LeftLeg = CFrame.Angles(-cos(angle)*1,0,0),
  2061. Torso = CFrame.Angles(0,0,0),
  2062. Cape =CFrame.Angles(-rad(40)+sin(angle)*.1,0,0)
  2063. },
  2064. ["Jump"] = {
  2065. speed=2,
  2066. Head = CFrame.Angles(0,0,0),
  2067. RightArm = CFrame.Angles(rad(-20),0,0),
  2068. LeftArm = CFrame.Angles(rad(-20),0,0),
  2069. RightLeg = CFrame.new(0,.5,-.5)*CFrame.Angles(rad(-20),0,0),
  2070. LeftLeg = CFrame.Angles(0,0,0),
  2071. Torso = CFrame.Angles(rad(10),0,0),
  2072. Cape = CFrame.Angles(-rad(70)+sin(angle)*.4,0,0)
  2073. }
  2074. }
  2075. }
  2076. end
  2077.  
  2078.  
  2079.  
  2080.  
  2081. LerpTo = {
  2082. Neck = newLerpTo(Neck);
  2083. LeftArm = newLerpTo(LeftShoulder);
  2084. RightArm = newLerpTo(RightShoulder);
  2085. LeftLeg = newLerpTo(LeftHip);
  2086. RightLeg = newLerpTo(RightHip);
  2087. RootJoint = newLerpTo(RootJoint);
  2088. hndl = newLerpTo(mwl);
  2089. cape = newLerpTo(cape);
  2090. }
  2091. LerpTo.hndl.Cache=CFrame.new(0,-0.3,0)*CFrame.Angles(0,0,rad(90))
  2092. hitdeb=false
  2093. hp.Selected:connect(function(mouse)
  2094. local jmptimer = 0
  2095. mouse.Button1Down:connect(function()
  2096. if attack == true then return end
  2097. if combo==0 then
  2098. attack=true
  2099. tmdmg(10,blade,5,3)
  2100. SetAnimData({Head=false,RightArm=false,LeftArm=true,RightLeg=true,LeftLeg=true,Torso=false})
  2101. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(120),rad(40),-rad(50))*CFrame.new(0,-.5,0)
  2102. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,rad(30))
  2103. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,-rad(30),0)
  2104. wait(.1)
  2105. trail(blade,10,5)
  2106. so('161006212',torso,false,1)
  2107. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(0,0,rad(50))*CFrame.new(0,-.5,0)
  2108. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,-rad(30))
  2109. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,rad(30),0)
  2110. wait(.2)
  2111. attack=false
  2112. combo=1
  2113. elseif combo==1 then
  2114. attack=true
  2115. tmdmg(10,blade,5,3)
  2116. SetAnimData({Head=false,RightArm=false,LeftArm=true,RightLeg=true,LeftLeg=true,Torso=false})
  2117. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(150),0,rad(120))*CFrame.new(-.5,0,0)
  2118. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,-rad(30))
  2119. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,rad(30),0)
  2120. wait(.1)
  2121. trail(blade,10,5)
  2122. so('161006212',torso,false,.8)
  2123. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(70),0,-rad(50))*CFrame.new(.5,0,-0.5)*CFrame.Angles(0,-rad(90),0)
  2124. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,rad(70))
  2125. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,-rad(70),0)
  2126. wait(.2)
  2127. attack=false
  2128. combo=2
  2129. elseif combo==2 then
  2130. attack=true
  2131. trail(blade,35,5)
  2132. tmdmg(10,blade,5,3)
  2133. so('160069154',torso,false,1)
  2134. SetAnimData({Head=false,RightArm=false,LeftArm=false,RightLeg=true,LeftLeg=true,Torso=false})
  2135. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,0,0)
  2136. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(90),0,-rad(40))*CFrame.new(0,-.5,0)
  2137. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(rad(90),0,rad(40))*CFrame.new(0,-.5,0)
  2138. LerpTo.hndl.To = CFrame.new(0,-0.3,0)*CFrame.Angles(rad(90),0,0)
  2139. local spn=0
  2140. for i=1,15 do
  2141. spn=spn+30
  2142. wait(i/1000)
  2143. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,-rad(spn)+rad(70))
  2144. end
  2145. attack=false
  2146. combo=3
  2147. end
  2148. Spawn(function()
  2149. wait(0.6)
  2150. if attack==false then
  2151. attack=true
  2152. SetAnimData({Head=true,RightArm=true,LeftArm=true,RightLeg=true,LeftLeg=true,Torso=true})
  2153. LerpTo.hndl.To = LerpTo.hndl.Cache
  2154. wait(.2)
  2155. attack=false
  2156. combo=0
  2157. end
  2158. end)
  2159. end)
  2160. mouse.KeyDown:connect(function(ke)
  2161. if attack==true then return end
  2162. key=ke:lower()
  2163. if key=="e" then attack=true
  2164. SetAnimData({Head=false,RightArm=false,LeftArm=false,RightLeg=true,LeftLeg=true,Torso=false})
  2165. posfix(-rad(90))
  2166. LerpTo.hndl.To = CFrame.new(0,-0.3,0)
  2167. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(90),0,rad(30))
  2168. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(0,0,-rad(90))*CFrame.new(0.5,-.5,0)
  2169. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,-rad(90))
  2170. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,rad(90),0)
  2171. wait(.3)
  2172. mgblock(pchar['Left Arm'],CFrame.new(0,-1,0),7,'Really black','Royal purple',Vector3.new(1.5,1.5,1.5),.1)
  2173. so('28257433',pchar.Torso,false,.8)
  2174. local efx= Part(1,1,1,'Black',0,false,true,pchar)
  2175. local m= Mesh(efx,'http://www.roblox.com/asset/?id=51177741',2,2,2)
  2176. efx.CFrame=pchar['Left Arm'].CFrame*CFrame.Angles(-rad(90),0,rad(90))
  2177. local cb=Part(1,1,1,'Black',0,false,true,pchar)
  2178. Mesh(cb,1,1,1,1)
  2179. for i=1,20 do wait()
  2180. efx.CFrame=clerp(efx.CFrame,efx.CFrame*CFrame.new(0,0,-50),.1)
  2181. local p=Part(1,1,1,Cols[math.random(1,#Cols)],0,false,true,pchar)
  2182. Mesh(p,3,1.5,1.5,1.5)
  2183. p.CFrame=efx.CFrame
  2184. cb.Size = Vector3.new(.5, (pchar['Left Arm'].Position - efx.Position).magnitude, .5)
  2185. cb.CFrame = CFrame.new((pchar['Left Arm'].Position + efx.Position)/2, pchar['Left Arm'].Position) * CFrame.Angles(math.pi/2, 0, 0)
  2186. coroutine.resume(coroutine.create(function(part,spin)
  2187. for i=1, 15 do
  2188. part.Mesh.Scale=part.Mesh.Scale+Vector3.new(.3,.3,.3)
  2189. part.Transparency=i/15
  2190. part.CFrame=part.CFrame*CFrame.new(math.random(-10,10)/3,math.random(-10,10)/3,math.random(-10,10)/3)*spin
  2191. wait()
  2192. end
  2193. part.Parent=nil
  2194. end),p,CFrame.fromEulerAnglesXYZ(math.random(-50,50)/500,math.random(-50,50)/500,math.random(-50,50)/500))
  2195. if hitdeb==false then
  2196. for i,v in pairs(workspace:children()) do
  2197. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  2198. if v:findFirstChild("Head") and v:findFirstChild("Torso") then
  2199. if (v:findFirstChild("Torso").Position - efx.Position).magnitude < 7 and v.Name ~= pchar.Name then
  2200. damg=math.random(100,100)
  2201. v.Humanoid:TakeDamage(damg)
  2202. v.Humanoid.PlatformStand=true
  2203. local lock=Weld(efx,v.Torso,0,0,0,0,0,0,v)
  2204. local asd=true
  2205. Spawn(function()
  2206. while asd do wait()
  2207. efx.CFrame=clerp(efx.CFrame,pchar.HumanoidRootPart.CFrame*CFrame.new(0,0,-7),.2)
  2208. cb.Size = Vector3.new(.5, (pchar['Left Arm'].Position - efx.Position).magnitude, .5)
  2209. cb.CFrame = CFrame.new((pchar['Left Arm'].Position + efx.Position)/2, pchar['Left Arm'].Position) * CFrame.Angles(math.pi/2, 0, 0)
  2210. end
  2211. end)
  2212. wait(.1)
  2213. for i=1,10 do wait()
  2214. efx.Transparency=efx.Transparency+.1
  2215. end
  2216. trail(blade,35,5)
  2217. tmdmg(10,blade,5,3)
  2218. so('160069154',torso,false,1.1)
  2219. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(rad(90),0,rad(45))
  2220. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,-rad(90))
  2221. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,-rad(90),0)
  2222. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(90),0,rad(90))*CFrame.new(-0.5,-.5,0)
  2223. LerpTo.hndl.To = CFrame.new(0,-0.3,0)*CFrame.Angles(rad(90),0,rad(90))
  2224. wait(.05)
  2225. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(0,0,-rad(90))*CFrame.new(0.5,-.5,0)
  2226. mgblock(pchar['Left Arm'],CFrame.new(0,-1,0),7,'Really black','Royal purple',Vector3.new(1.5,1.5,1.5),.1)
  2227. local spn=0
  2228. for i=1,12 do
  2229. spn=spn+30
  2230. wait()
  2231. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,-rad(spn)-rad(90))
  2232. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,rad(spn)+rad(90),0)
  2233. end
  2234. wait(.3)
  2235. asd=false
  2236. so('28144425',torso,false,.265)
  2237. so('2697431',torso,false,.2)
  2238. local splos= Part(1,1,1,'Really black',.5,false,true,pchar)
  2239. local m= Mesh(splos,'http://www.roblox.com/asset/?id=20329976',3,1,3)
  2240. splos.CFrame=torso.CFrame*CFrame.new(-3,0,0)*CFrame.Angles(0,0,-pi/2)
  2241. Spawn(function()
  2242. for i=1,10 do wait(.01)
  2243. m.Scale=m.Scale+Vector3.new(1,.2,1)
  2244. splos.Transparency=splos.Transparency+.1
  2245. end
  2246. splos:Destroy()
  2247. end)
  2248. for i=1,3 do
  2249. for i=1,3 do
  2250. mgblock(v.Torso,CFrame.new(math.random(-3,3)/2,math.random(-3,3)/2,math.random(-3,3)/2),2,'Really black','Royal purple',Vector3.new(.1,.1,.1),0)
  2251. end
  2252. end
  2253. efx:Destroy()
  2254. cb:Destroy()
  2255. lock:Destroy()
  2256. mgblock(v.Torso,CFrame.new(math.random(-3,3)/2,math.random(-3,3)/2,math.random(-3,3)/2),20,'Really black','Royal purple',Vector3.new(.1,.1,.1),0)
  2257. local vs = Instance.new("BodyVelocity",v.Torso)
  2258. vs.maxForce = Vector3.new(1,1,1)*9e9
  2259. vs.P = 2000
  2260. vs.velocity = pchar.HumanoidRootPart.CFrame.lookVector*60+Vector3.new(0,150,0)
  2261. wait(.05)
  2262. vs:Destroy()
  2263. Spawn(function()
  2264. wait(2)
  2265. v.Humanoid.PlatformStand=false
  2266. end)
  2267. v.Humanoid.Health=v.Humanoid.Health-30
  2268. SetAnimData({Head=true,RightArm=true,LeftArm=true,RightLeg=true,LeftLeg=true,Torso=true})
  2269. LerpTo.hndl.To = LerpTo.hndl.Cache
  2270. attack=false
  2271. return
  2272. end
  2273. end
  2274. end
  2275. end
  2276. end
  2277. end
  2278. for i=1,10 do wait()
  2279. efx.CFrame=clerp(efx.CFrame,pchar['Left Arm'].CFrame*CFrame.Angles(-rad(90),0,rad(90)),.2)
  2280. cb.Size = Vector3.new(.5, (pchar['Left Arm'].Position - efx.Position).magnitude, .5)
  2281. cb.CFrame = CFrame.new((pchar['Left Arm'].Position + efx.Position)/2, pchar['Left Arm'].Position) * CFrame.Angles(math.pi/2, 0, 0)
  2282. end
  2283. efx:Destroy()
  2284. cb:Destroy()
  2285. SetAnimData({Head=true,RightArm=true,LeftArm=true,RightLeg=true,LeftLeg=true,Torso=true})
  2286. LerpTo.hndl.To = LerpTo.hndl.Cache
  2287. attack=false
  2288. elseif key=="z" then
  2289. elseif key=="x" then
  2290. attack=true
  2291. local tapdeb=false
  2292. for i,x in pairs(workspace:children()) do
  2293. if x:IsA("Model") and x:findFirstChild("Humanoid") then
  2294. if x:findFirstChild("Head") and x:findFirstChild("Torso") then
  2295. if (x:findFirstChild("Torso").Position - mouse.Hit.p).magnitude < 4 and x.Name ~= pchar.Name then
  2296. if tapdeb==false then
  2297. SetAnimData({Head=false,RightArm=false,LeftArm=true,RightLeg=true,LeftLeg=true,Torso=false})
  2298. cloneefx()
  2299. pchar.Torso.CFrame=x.Torso.CFrame*CFrame.new(0,0,-4)*CFrame.Angles(0,pi/1,0)
  2300. tmdmg(10,blade,3,3)
  2301. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(120),rad(40),-rad(50))*CFrame.new(0,-.5,0)
  2302. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,rad(30))
  2303. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,-rad(30),0)
  2304. wait(.1)
  2305. trail(blade,3,5)
  2306. so('161006212',torso,false,1)
  2307. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(0,0,rad(50))*CFrame.new(0,-.5,0)
  2308. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,-rad(30))
  2309. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,rad(30),0)
  2310. wait(.2)
  2311. cloneefx()
  2312. pchar.Torso.CFrame=x.Torso.CFrame*CFrame.new(-4,0,0)*CFrame.Angles(0,-pi/2,0)
  2313. tmdmg(10,blade,4,3)
  2314. SetAnimData({Head=false,RightArm=false,LeftArm=true,RightLeg=true,LeftLeg=true,Torso=false})
  2315. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(150),0,rad(120))*CFrame.new(-.5,0,0)
  2316. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,-rad(30))
  2317. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,rad(30),0)
  2318. wait(.1)
  2319. trail(blade,3,5)
  2320. so('161006212',torso,false,.8)
  2321. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(70),0,-rad(50))*CFrame.new(.5,0,-0.5)*CFrame.Angles(0,-rad(90),0)
  2322. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,rad(70))
  2323. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,-rad(70),0)
  2324. wait(.2)
  2325. cloneefx()
  2326. pchar.Torso.CFrame=x.Torso.CFrame*CFrame.new(0,0,4)*CFrame.Angles(0,0,0)
  2327. tmdmg(10,blade,4,3)
  2328. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(120),rad(40),-rad(50))*CFrame.new(0,-.5,0)
  2329. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,rad(30))
  2330. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,-rad(30),0)
  2331. wait(.1)
  2332. trail(blade,3,5)
  2333. so('161006212',torso,false,1)
  2334. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(0,0,rad(50))*CFrame.new(0,-.5,0)
  2335. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,-rad(30))
  2336. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,rad(30),0)
  2337. wait(.2)
  2338. cloneefx()
  2339. pchar.Torso.CFrame=x.Torso.CFrame*CFrame.new(4,0,0)*CFrame.Angles(0,pi/2,0)
  2340. tmdmg(10,blade,4,3)
  2341. SetAnimData({Head=false,RightArm=false,LeftArm=true,RightLeg=true,LeftLeg=true,Torso=false})
  2342. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(150),0,rad(120))*CFrame.new(-.5,0,0)
  2343. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,-rad(30))
  2344. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,rad(30),0)
  2345. wait(.1)
  2346. trail(blade,3,5)
  2347. so('161006212',torso,false,.8)
  2348. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(70),0,-rad(50))*CFrame.new(.5,0,-0.5)*CFrame.Angles(0,-rad(90),0)
  2349. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,rad(70))
  2350. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,-rad(70),0)
  2351. wait(.2)
  2352. so('161006212',torso,false,.5)
  2353. cloneefx()
  2354. tmdmg(10,blade,5,3)
  2355. trail(blade,3,7)
  2356. pchar.Torso.CFrame=x.Torso.CFrame*CFrame.new(0,0,-6)*CFrame.Angles(0,pi/1,0)
  2357. LerpTo.hndl.To = CFrame.new(0,-0.3,0)
  2358. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(90),0,rad(30))
  2359. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(0,0,-rad(90))*CFrame.new(0.5,-.5,0)
  2360. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,-rad(90))
  2361. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,rad(90),0)
  2362. wait(.1)
  2363. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,0)
  2364. wait(.1)
  2365. LerpTo.hndl.To = CFrame.new(0,-0.3,0)*CFrame.Angles(rad(90),0,rad(90))
  2366. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,rad(90))
  2367. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(90),0,rad(90))*CFrame.new(-.5,-.5,0)
  2368. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,-rad(90),0)
  2369. wait(.4)
  2370. SetAnimData({Head=true,RightArm=true,LeftArm=true,RightLeg=true,LeftLeg=true,Torso=true})
  2371. LerpTo.hndl.To = LerpTo.hndl.Cache
  2372. attack=false
  2373. return
  2374. end
  2375. end
  2376. end
  2377. end
  2378. end
  2379. attack=false
  2380. elseif key=="c" then
  2381. attack=true
  2382. SetAnimData({Head=false,RightArm=false,LeftArm=false,RightLeg=true,LeftLeg=true,Torso=false})
  2383. posfix(-rad(90))
  2384. LerpTo.hndl.To = CFrame.new(0,-0.3,0)
  2385. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(90),0,rad(30))
  2386. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(0,0,-rad(90))*CFrame.new(0.5,-.5,0)
  2387. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,-rad(90))
  2388. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,rad(90),0)
  2389. wait(.1)
  2390. so('62339698',torso,false,.35)
  2391. Spawn(function()
  2392. for i=1,3 do wait()
  2393. local efx= Part(1,1,1,'Really black',.5,false,true,m)
  2394. local m= Mesh(efx,'http://www.roblox.com/asset/?id=20329976',3,1,3)
  2395. efx.CFrame=torso.CFrame*CFrame.Angles(pi/2,0,-rad(90))
  2396. Spawn(function()
  2397. for i=1,7 do wait()
  2398. m.Scale=m.Scale+Vector3.new(1,.1,1)
  2399. end
  2400. efx:Destroy()
  2401. end)
  2402. end
  2403. end)
  2404. Spawn(function()
  2405. for i=1,4 do wait()
  2406. mgblock(torso,CFrame.new(0,0,0),4,'Really black','Really black',Vector3.new(2,2,2),.1)
  2407. end
  2408. end)
  2409. local v = Instance.new("BodyVelocity",torso)
  2410. v.maxForce = Vector3.new(1,1,1)*9e9
  2411. v.P = 2000
  2412. local cfx=torso.CFrame*CFrame.Angles(0,rad(90),0)
  2413. v.velocity = cfx.lookVector*60
  2414. local tapdeb=false
  2415. for i=1,10 do wait()
  2416. for i,x in pairs(workspace:children()) do
  2417. if x:IsA("Model") and x:findFirstChild("Humanoid") then
  2418. if x:findFirstChild("Head") and x:findFirstChild("Torso") then
  2419. if (x:findFirstChild("Torso").Position - torso.Position).magnitude < 7 and x.Name ~= pchar.Name then
  2420. if tapdeb==false then
  2421. tmdmg(15,blade,3,5)
  2422. v:Destroy()
  2423. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(0,0,-rad(40))*CFrame.new(0.5,-.5,0)
  2424. so('10209645',torso,false,.8)
  2425. for i=1,3 do wait()
  2426. x.Humanoid.PlatformStand=true
  2427. x.Torso.CFrame=pchar['Left Arm'].CFrame*CFrame.new(0,-1,0)*CFrame.Angles(rad(90),0,0)
  2428. end
  2429. so('46153268',torso,false,.5)
  2430. wait(.4)
  2431. SetAnimData({Head=false,RightArm=false,LeftArm=false,RightLeg=false,LeftLeg=false,Torso=false})
  2432. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,0,0)
  2433. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(90),0,-rad(40))* CFrame.new(-.2,-.25,0)
  2434. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(rad(90),0,rad(40))* CFrame.new(.2,-.25,0)
  2435. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,0) * CFrame.new(0,0,-1)
  2436. LerpTo.LeftLeg.To = LerpTo.LeftLeg.Cache * CFrame.Angles(0,0,0) * CFrame.new(0,1,-1)
  2437. LerpTo.RightLeg.To = LerpTo.RightLeg.Cache * CFrame.Angles(-rad(50),0,0) * CFrame.new(0,0.5,0)
  2438. LerpTo.hndl.To = CFrame.new(0,-0.3,0)*CFrame.Angles(0,0,-rad(90))*CFrame.Angles(-rad(130),0,0)
  2439. so('169310515',torso,false,.6)
  2440. wait(.4)
  2441. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(rad(150),0,0)
  2442. mgblock(pchar['Left Arm'],CFrame.new(0,-1,0),30,'Really black','Really black',Vector3.new(2,2,2),.1)
  2443. mgblock(x.Torso,CFrame.new(0,0,0),30,'Really black','Really black',Vector3.new(2,2,2),.1)
  2444. local vs = Instance.new("BodyVelocity",x.Torso)
  2445. vs.maxForce = Vector3.new(1,1,1)*9e9
  2446. vs.P = 2000
  2447. vs.velocity = Vector3.new(0,6,0)
  2448. local efx= Part(1,1,1,'Really black',1,false,true,m)
  2449. local m= Mesh(efx,'http://www.roblox.com/asset/?id=1185246',10,10,10)
  2450. Spawn(function()
  2451. for i=1,7 do wait()
  2452. efx.Transparency=efx.Transparency-.1
  2453. end
  2454. end)
  2455. for i=1,100 do
  2456. efx.CFrame=x.Torso.CFrame
  2457. wait()
  2458. end
  2459. vs:Destroy()
  2460. x.Torso.Anchored=true
  2461. local bp=Instance.new("BodyPosition",torso)
  2462. bp.maxForce=Vector3.new(10000,10000,10000)
  2463. bp.position=x.Torso.Position+Vector3.new(5,0,0)
  2464. so('160069154',torso,false,1.1)
  2465. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(rad(90),0,rad(45))
  2466. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,-rad(90))
  2467. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,-rad(90),0)
  2468. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(90),0,rad(90))*CFrame.new(-0.5,-.5,0)
  2469. LerpTo.hndl.To = CFrame.new(0,-0.3,0)*CFrame.Angles(rad(90),0,rad(90))
  2470. trail(blade,35,5)
  2471. local spn=0
  2472. for i=1,12 do
  2473. spn=spn+30
  2474. wait()
  2475. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,-rad(spn))
  2476. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,rad(spn),0)
  2477. end
  2478. bp:Destroy()
  2479. efx:Destroy()
  2480. so('138122923',torso,false,.8)
  2481. x.Humanoid.Health=x.Humanoid.Health-20
  2482. for i=1,14 do
  2483. local efx= Part(1,1,1,'Really black',0,false,false,pchar)
  2484. local m= Mesh(efx,3,math.random(1,10)/10,math.random(1,10)/10,math.random(1,10)/10)
  2485. efx.CFrame=x.Torso.CFrame
  2486. efx.Velocity=Vector3.new(math.random(-20,20),0,math.random(-20,20))
  2487. Spawn(function()
  2488. for i=1,10 do wait(.1)
  2489. efx.Transparency=efx.Transparency+.1
  2490. end
  2491. end)
  2492. end
  2493. x.Torso.Anchored=false
  2494. x.Humanoid.PlatformStand=false
  2495. SetAnimData({Head=true,RightArm=true,LeftArm=true,RightLeg=true,LeftLeg=true,Torso=true})
  2496. LerpTo.hndl.To = LerpTo.hndl.Cache
  2497. attack=false
  2498. return
  2499. end
  2500. end
  2501. end
  2502. end
  2503. end
  2504. end
  2505. SetAnimData({Head=true,RightArm=true,LeftArm=true,RightLeg=true,LeftLeg=true,Torso=true})
  2506. LerpTo.hndl.To = LerpTo.hndl.Cache
  2507. v:Destroy()
  2508. attack=false
  2509. elseif key=="v" then
  2510. elseif key==" " then
  2511. tim = game:service'RunService'.Stepped:wait()
  2512. if (tim - jmptimer < .2) then
  2513. attack=true
  2514. Spawn(function()
  2515. for i=1,3 do wait()
  2516. local efx= Part(1,1,1,'Really black',.5,false,true,m)
  2517. local m= Mesh(efx,'http://www.roblox.com/asset/?id=20329976',3,1,3)
  2518. efx.CFrame=torso.CFrame
  2519. Spawn(function()
  2520. for i=1,7 do wait()
  2521. m.Scale=m.Scale+Vector3.new(1,.2,1)
  2522. efx.Transparency=efx.Transparency+.12
  2523. end
  2524. efx:Destroy()
  2525. end)
  2526. end
  2527. end)
  2528. local vs = Instance.new("BodyVelocity",pchar.Torso)
  2529. vs.maxForce = Vector3.new(1,1,1)*9e9
  2530. vs.P = 2000
  2531. vs.velocity = pchar.Torso.CFrame.lookVector*60+Vector3.new(0,150,0)
  2532. wait(.025)
  2533. vs:Destroy()
  2534. trail(blade,35,5)
  2535. so('160069154',torso,false,.8)
  2536. SetAnimData({Head=false,RightArm=false,LeftArm=false,RightLeg=true,LeftLeg=true,Torso=false})
  2537. LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,0,0)
  2538. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(90),0,-rad(40))*CFrame.new(0,-.5,0)
  2539. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(rad(90),0,rad(40))*CFrame.new(0,-.5,0)
  2540. LerpTo.hndl.To = CFrame.new(0,-0.3,0)*CFrame.Angles(0,rad(90),0)*CFrame.Angles(rad(130),0,0)
  2541. local spn=0
  2542. for i=1,14 do
  2543. spn=spn+30
  2544. wait(i/1000)
  2545. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(rad(spn),0,0)
  2546. end
  2547. SetAnimData({Head=false,RightArm=false,LeftArm=false,RightLeg=false,LeftLeg=false,Torso=false})
  2548. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(90),0,-rad(40))* CFrame.new(-.2,-.25,0)
  2549. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(rad(90),0,rad(40))* CFrame.new(.2,-.25,0)
  2550. LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,0) * CFrame.new(0,0,-1)
  2551. LerpTo.LeftLeg.To = LerpTo.LeftLeg.Cache * CFrame.Angles(0,0,0) * CFrame.new(0,1,-1)
  2552. LerpTo.RightLeg.To = LerpTo.RightLeg.Cache * CFrame.Angles(-rad(50),0,0) * CFrame.new(0,0.5,0)
  2553. LerpTo.hndl.To = CFrame.new(0,-0.3,0)*CFrame.Angles(0,0,-rad(90))*CFrame.Angles(-rad(130),0,0)
  2554. hitted=false
  2555. local hp=blade.Touched:connect(function(hit)
  2556. if hitted == true or hit.Parent.Name==pchar.Name then return end
  2557. so('157878578',torso,false,1)
  2558. hitted=true
  2559. explosion('Really black','Royal purple',torso.CFrame,Vector3.new(40,40,40),30,40)
  2560. for i=1, 30 do
  2561. local p= Part(math.random(2,7),math.random(2,7),math.random(2,7),workspace.Base.BrickColor.Color,0,false,false,m)
  2562. p.Material=workspace.Base.Material
  2563. p.CFrame=CFrame.new(torso.CFrame.x+math.random(-i,i),0,torso.CFrame.z+math.random(-i,i))*CFrame.Angles(math.random(-10,10)/30,math.random(-10,10)/30,math.random(-10,10)/30)*CFrame.Angles(pi/2,0,0)
  2564. p.Velocity=Vector3.new(math.random(-100,100),math.random(30,100),math.random(-100,100))
  2565. game.Debris:AddItem(p,2)
  2566. Spawn(function()
  2567. for i=1,10 do wait(.01)
  2568. p.Transparency=p.Transparency+.1
  2569. end
  2570. end)
  2571. end
  2572. end)
  2573. repeat wait() until hitted
  2574. hp:disconnect()
  2575. wait(.5)
  2576. SetAnimData({Head=true,RightArm=true,LeftArm=true,RightLeg=true,LeftLeg=true,Torso=true})
  2577. LerpTo.hndl.To = LerpTo.hndl.Cache
  2578. attack=false
  2579. end
  2580. else
  2581. wait(.2)
  2582. end
  2583. jmptimer = tim
  2584. end)
  2585. SetAnimData({Head=true,RightArm=false,LeftArm=false,RightLeg=true,LeftLeg=true,Torso=true})
  2586. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(70),rad(20),-rad(70))*CFrame.new(0,-1,0)
  2587. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(0,0,-rad(30))
  2588. wait(.01)
  2589. mwl.Part1=pchar['Right Arm']
  2590. mwl.C1=CFrame.new(0,-1,0)*CFrame.Angles(-rad(90),0,rad(90))
  2591. wait(.2)
  2592. CurrentActiveAnim="Holding"
  2593. LerpTo.hndl.To = LerpTo.hndl.Cache
  2594. SetAnimData({Head=true,RightArm=true,LeftArm=true,RightLeg=true,LeftLeg=true,Torso=true})
  2595. end)
  2596.  
  2597. hp.Deselected:connect(function()
  2598. SetAnimData({Head=true,RightArm=false,LeftArm=false,RightLeg=true,LeftLeg=true,Torso=true})
  2599. LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(70),rad(20),-rad(70))*CFrame.new(0,-1,0)
  2600. LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(0,0,-rad(30))
  2601. LerpTo.hndl.To = CFrame.new(0,-0.3,0)*CFrame.Angles(0,0,0)
  2602. wait(.1)
  2603. mwl.Part1=pchar.Torso
  2604. mwl.C1=CFrame.new(-1,0,-1)*CFrame.Angles(rad(120),0,0)
  2605. wait(.1)
  2606. CurrentActiveAnim="Idle"
  2607. SetAnimData({Head=true,RightArm=true,LeftArm=true,RightLeg=true,LeftLeg=true,Torso=true})
  2608. end)
  2609.  
  2610. UpdateAnims()
  2611. SetAnimData({Head=true,RightArm=true,LeftArm=true,RightLeg=true,LeftLeg=true,Torso=true})
  2612.  
  2613. CurrentActiveAnim="Idle"
  2614.  
  2615. game:service'RunService'.RenderStepped:connect(function()
  2616. UpdateAnims(angle)
  2617. for _,v in pairs(LerpTo) do
  2618. v.Weld.C0 = Lerp.CFrame(v.Weld.C0,v.To,v.Speed)
  2619. end
  2620. rclcount = (rclcount%rclcounttime)+rclcountspeed
  2621. rcl = math.pi*math.sin((math.pi*2)/rclcounttime*rclcount)
  2622. angle = (angle % 100) + anglespeed/10
  2623. if Vector3.new(0, torso.Velocity.y, 0).magnitude > 2 then
  2624. CheckAnimData(CurrentActiveAnim,"Jump")
  2625. elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude < 2 then
  2626. CheckAnimData(CurrentActiveAnim,"Stance")
  2627. elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude > 2 then
  2628. CheckAnimData(CurrentActiveAnim,"Walk")
  2629. end
  2630. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement