Advertisement
replic8

Untitled

Jul 2nd, 2016
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 48.45 KB | None | 0 0
  1. Player = game:GetService("Players").LocalPlayer
  2. Character = Player.Character
  3. PlayerGui = Player.PlayerGui
  4. Backpack = Player.Backpack
  5. Torso = Character.Torso
  6. Head = Character.Head
  7. LeftArm = Character["Left Arm"]
  8. LeftLeg = Character["Left Leg"]
  9. RightArm = Character["Right Arm"]
  10. RightLeg = Character["Right Leg"]
  11. LS = Torso["Left Shoulder"]
  12. LH = Torso["Left Hip"]
  13. RS = Torso["Right Shoulder"]
  14. RH = Torso["Right Hip"]
  15. attack = false
  16. attackdebounce = false
  17. sheathed = true
  18. it=Instance.new
  19. vt=Vector3.new
  20. cf=CFrame.new
  21. euler=CFrame.fromEulerAnglesXYZ
  22. angles=CFrame.Angles
  23. mRad=math.rad
  24. mPi=math.pi
  25. act = {key = {}}
  26. walking = false
  27. hold=false
  28. MMouse=nil
  29. equipped=false
  30. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  31. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  32. con1=nil
  33. con2=nil
  34. con3=nil
  35. mana=400
  36. Charging=0
  37. Did=0
  38. colors={"Black","Navy blue"}
  39. random=nil
  40. Combo=""
  41. --player
  42. player = nil
  43. --save shoulders
  44. RSH, LSH = nil, nil
  45. --welds
  46. RW, LW , RWL, LWL = it("Weld"), it("Weld"), it("Weld"), it("Weld")
  47. RW.Name="Right Shoulder"
  48. LW.Name="Left Shoulder"
  49. RWL.Name="Right Hip"
  50. LWL.Name="Left Hip"
  51. RW2, LW2 = it("Weld"), it("Weld")
  52. --what anim
  53. anim = "none"
  54. local gyro = it("BodyGyro")
  55. gyro.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge
  56. gyro.P = 20e+003
  57. bod = it("BodyPosition")
  58. bod.position = Torso.Position
  59. bod.maxForce = vt(4e+080, 4e+080, 4e+080)
  60. Enemy=nil
  61. briefcase=false
  62. object1=false
  63. object2=false
  64. object3=false
  65. object4=false
  66. object5=false
  67. CF=cf(-1.5,0.5,0) * euler(0.7,0,-0.3)
  68. ch=Character
  69. RSH, LSH , RHL, LHL = ch.Torso["Right Shoulder"], ch.Torso["Left Shoulder"] , ch.Torso["Right Hip"] , ch.Torso["Left Hip"]
  70. function RWLFunc()
  71. RWL.Part1 = ch["Right Leg"]
  72. RHL.Part1 = nil
  73. ch["Right Leg"].Name = "RightLeg"
  74. RightLeg.CanCollide = false
  75. end
  76. function LWLFunc()
  77. LWL.Part1 = ch["Left Leg"]
  78. LHL.Part1 = nil
  79. ch["Left Leg"].Name = "LeftLeg"
  80. LeftLeg.CanCollide = true
  81. end
  82. function RWLRem()
  83. RightLeg.Name = "Right Leg"
  84. RWL.Part1 = nil
  85. RHL.Part1 = ch["Right Leg"]
  86. RightLeg.CanCollide = false
  87. end
  88. function LWLRem()
  89. LeftLeg.Name = "Left Leg"
  90. LWL.Part1 = nil
  91. LHL.Part1 = ch["Left Leg"]
  92. LeftLeg.CanCollide = false
  93. end
  94. RWL.Part0 = ch.Torso
  95. RWL.C0 = CFrame.new(1, -1, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  96. RWL.C1 = CFrame.new(0.5, 1, 0)
  97. RWL.Parent = Character
  98. --
  99. LWL.Part0 = ch.Torso
  100. LWL.C0 = CFrame.new(-1, -1, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  101. LWL.C1 = CFrame.new(-0.5, 1, 0)
  102. LWL.Parent = Character
  103.  
  104. if Character:findFirstChild("Suitcase",true) ~= nil then
  105. Character:findFirstChild("Suitcase",true).Parent = nil
  106. end
  107. if Character:findFirstChild("Weapon",true) ~= nil then
  108. Character:findFirstChild("Weapon",true).Parent = nil
  109. end
  110. if Character.Torso:findFirstChild("ChargeGui",true) ~= nil then
  111. Character.Torso:findFirstChild("ChargeGui",true).Parent = nil
  112. end
  113. if Player.PlayerGui:findFirstChild("manaGUI",true) ~= nil then
  114. Player.PlayerGui:findFirstChild("manaGUI",true).Parent = nil
  115. end
  116.  
  117. if PlayerGui:findFirstChild("SuitcaseGUI") ~= nil then
  118. PlayerGui:findFirstChild("SuitcaseGUI").Parent = nil
  119. end
  120. local SG = Instance.new("ScreenGui",PlayerGui)
  121. SG.Name = "SuitcaseGUI"
  122. local frame = Instance.new("Frame",SG)
  123. frame.Size = UDim2.new(0.2,0,0.3,0)
  124. frame.Position = UDim2.new(0.8,0,0.4,0)
  125. frame.BackgroundColor3 = BrickColor.new("Brown").Color
  126. local Ammotext = Instance.new("TextLabel",frame)
  127. Ammotext.Size = UDim2.new(1,0,0.35,0)
  128. Ammotext.BackgroundTransparency = 1
  129. Ammotext.Text = "Suitcase Status"
  130. Ammotext.FontSize = "Size18"
  131. Ammotext.TextColor3 = BrickColor.new("White").Color
  132. local backing1 = Instance.new("ImageLabel",frame)
  133. backing1.Size = UDim2.new(0.4,0,0.15,0)
  134. backing1.Image = "http://www.roblox.com/asset/?id=48965808"
  135. backing1.Position = UDim2.new(0.1,0,0.35,0)
  136. backing1.BackgroundColor3 = BrickColor.new("Black").Color
  137. local img1 = Instance.new("ImageLabel",backing1)
  138. img1.Size = UDim2.new(1,0,1,0)
  139. img1.Image = "http://www.roblox.com/asset/?id=48965808"
  140. img1.Position = UDim2.new(0,0,0,0)
  141. img1.BackgroundColor3 = BrickColor.new("Brown").Color
  142. local backing = Instance.new("ImageLabel",frame)
  143. backing.Size = UDim2.new(0.4,0,0.15,0)
  144. backing.Image = "http://www.roblox.com/asset/?id=48965808"
  145. backing.Position = UDim2.new(0.1,0,0.3,0)
  146. backing.BackgroundColor3 = BrickColor.new("Black").Color
  147. local img = Instance.new("ImageLabel",backing)
  148. img.Size = UDim2.new(1,0,1,0)
  149. img.Image = "http://www.roblox.com/asset/?id=48965808"
  150. img.Position = UDim2.new(0,0,0,0)
  151. img.BackgroundColor3 = BrickColor.new("Brown").Color
  152. local percent = Instance.new("TextLabel",backing)
  153. percent.Size = UDim2.new(1,0,1,0)
  154. percent.BackgroundTransparency = 1
  155. percent.TextColor3 = BrickColor.new("White").Color
  156. percent.Text = "Tesla Coil"
  157. percent.FontSize = "Size14"
  158. --[[local currentam = Instance.new("TextLabel",frame)
  159. currentam.Size = UDim2.new(0.5,0,0.25,0)
  160. currentam.Position = UDim2.new(0,0,1,0)
  161. currentam.BackgroundTransparency = 0
  162. currentam.BackgroundColor3 = BrickColor.new("Brown").Color
  163. currentam.TextColor3 = BrickColor.new("White").Color
  164. currentam.Text = CurrentAmmo
  165. currentam.FontSize = "Size18"]]
  166. bod = it("BodyPosition")
  167. bod.position = Torso.Position
  168. bod.maxForce = vt(4e+080, 4e+080, 4e+080)
  169. local GUI = Instance.new("BillboardGui")
  170. GUI.Adornee = Torso
  171. GUI.Parent = Torso
  172. GUI.Active = true
  173. GUI.Enabled = true
  174. GUI.Size = UDim2.new(1, 0, 1, 0)
  175. GUI.StudsOffset = Vector3.new(0, 4, 0)
  176. GUI.Name="ChargeGui"
  177. local Chat = Instance.new("TextBox")
  178. Chat.Parent = GUI
  179. Chat.FontSize = "Size12"
  180. Chat.BackgroundColor3=Color3.new(0,0,0)
  181. Chat.Position = UDim2.new(-1.5, 0, 0, 0)
  182. Chat.Size = UDim2.new(5,0,0.5,0)
  183. Chat.Visible = false
  184. Chat.Text = " "
  185. local Chat2 = Instance.new("TextBox")
  186. Chat2.Parent = GUI
  187. Chat2.FontSize = "Size12"
  188. Chat2.BackgroundColor3=Color3.new(0,0,0.4)
  189. Chat2.Position = UDim2.new(-1.5, 0, 0, 0)
  190. Chat2.Size = UDim2.new(0,0,0.5,0)
  191. Chat2.Visible = false
  192. Chat2.Text = " "
  193.  
  194.  
  195.  
  196. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  197. local fp = it("Part")
  198. fp.formFactor = formfactor
  199. fp.Parent = parent
  200. fp.Reflectance = reflectance
  201. fp.Transparency = transparency
  202. fp.CanCollide = false
  203. fp.BrickColor = brickcolor
  204. fp.Name = name
  205. fp.Size = size
  206. fp.Position = Torso.Position
  207. fp.BottomSurface="Smooth"
  208. fp.TopSurface="Smooth"
  209. fp.Locked=true
  210. fp:BreakJoints()
  211. return fp
  212. end
  213.  
  214. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  215. local mesh = it(Mesh)
  216. mesh.Parent = part
  217. if Mesh=="SpecialMesh" then
  218. mesh.MeshType = meshtype
  219. mesh.MeshId = meshid
  220. end
  221. mesh.Offset=offset
  222. mesh.Scale=scale
  223. return mesh
  224. end
  225.  
  226. function weld(parent,part0,part1,c0)
  227. local weld = it("Weld")
  228. weld.Parent = parent
  229. weld.Part0 = part0
  230. weld.Part1 = part1
  231. weld.C0 = c0
  232. return weld
  233. end
  234.  
  235. local modelzorz = it("Model")
  236. modelzorz.Name = "Suitcase"
  237. modelzorz.Parent = Character
  238.  
  239. local handle=part(1,modelzorz,0,1,BrickColor.new("Black"),"Handle",vt(1,1,1))
  240. local part1=part(1,modelzorz,0,1,BrickColor.new("Black"),"Part1",vt(1,1,1))
  241. local part2=part(1,modelzorz,0,1,BrickColor.new("Black"),"Part2",vt(1,1,1))
  242. local part3=part(1,modelzorz,0,1,BrickColor.new("Really black"),"Part3",vt(1,1,1))
  243.  
  244. local handlem=mesh("CylinderMesh",handle,"","",vt(0,0,0),vt(0.2,1,0.2))
  245. local mesh1=mesh("CylinderMesh",part1,"","",vt(0,0,0),vt(0.2,0.3,0.2))
  246. local mesh2=mesh("CylinderMesh",part2,"","",vt(0,0,0),vt(0.2,0.3,0.2))
  247. local mesh3=mesh("BlockMesh",part3,"","",vt(0,0,0),vt(0.5,1.2,1.2))
  248.  
  249. local handlew=weld(handle,handle,LeftArm,euler(1.57,0,0)*cf(0,1,0))
  250. local weld1=weld(part1,part1,handle,euler(1.57,0,0)*cf(0,0.4,0.2))
  251. local weld2=weld(part2,part2,handle,euler(1.57,0,0)*cf(0,-0.4,0.2))
  252. local weld3=weld(part3,part3,handle,euler(0,0,0)*cf(0,0,0.8))
  253.  
  254.  
  255. local fengui = it("GuiMain")
  256. fengui.Parent = Player.PlayerGui
  257. fengui.Name = "manaGUI"
  258. local fenframe = it("Frame")
  259. fenframe.Parent = fengui
  260. fenframe.BackgroundColor3 = Color3.new(255,255,255)
  261. fenframe.BackgroundTransparency = 1
  262. fenframe.BorderColor3 = Color3.new(17,17,17)
  263. fenframe.Size = UDim2.new(0.0500000007, 0, 0.100000001, 0)
  264. local fentext = it("TextLabel")
  265. fentext.Parent = fenframe
  266. fentext.Text = "Mana("..mana..")"
  267. fentext.BackgroundTransparency = 1
  268. fentext.SizeConstraint = "RelativeXY"
  269. fentext.TextXAlignment = "Center"
  270. fentext.TextYAlignment = "Center"
  271. fentext.Position = UDim2.new(0,80,1,200)
  272. local fentext2 = it("TextLabel")
  273. fentext2.Parent = fenframe
  274. fentext2.Text = " "
  275. fentext2.BackgroundTransparency = 0
  276. fentext2.BackgroundColor3 = Color3.new(0,0,0)
  277. fentext2.SizeConstraint = "RelativeXY"
  278. fentext2.TextXAlignment = "Center"
  279. fentext2.TextYAlignment = "Center"
  280. fentext2.Position = UDim2.new(0,10,1,170)
  281. fentext2.Size = UDim2.new(2.79999995,0,0.210000306,0)
  282. local fentext3 = it("TextLabel")
  283. fentext3.Parent = fenframe
  284. fentext3.Text = " "
  285. fentext3.BackgroundTransparency = 0
  286. fentext3.BackgroundColor3 = Color3.new(1,1,1)
  287. fentext3.SizeConstraint = "RelativeXY"
  288. fentext3.TextXAlignment = "Center"
  289. fentext3.TextYAlignment = "Center"
  290. fentext3.Position = UDim2.new(0,10,1,170)
  291. fentext3.Size = UDim2.new(mana*0.007,0,0.400000006,0)
  292.  
  293. local bg = it("BodyGyro")
  294. bg.Parent = nil
  295.  
  296. if (script.Parent.className ~= "HopperBin") then
  297. Tool = it("HopperBin")
  298. Tool.Parent = Backpack
  299. Tool.Name = "Suitcase"
  300. script.Parent = Tool
  301. end
  302. Bin = script.Parent
  303. if Bin:findFirstChild("ManaBar",true) ~= nil then
  304. mana=Bin.ManaBar.Value
  305. Bin:findFirstChild("ManaBar",true).Parent = nil
  306. end
  307. local bar=Instance.new("IntValue")
  308. bar.Parent=Bin
  309. bar.Name="ManaBar"
  310. bar.Value=mana
  311.  
  312. function GetCase()
  313. attack=true
  314. for i=0,1,0.1 do
  315. wait()
  316. Torso.Neck.C0=necko*euler(0.5*i,0,0.5*i)
  317. LW.C0 = cf(-1.5,0.5,0) * euler(-0.5*i,0,0.5*i)
  318. LW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  319. RW.C0 = cf(1.5,0.5,0) * euler(0,0,0)
  320. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  321. end
  322. handle.Transparency=0
  323. part1.Transparency=0
  324. part2.Transparency=0
  325. part3.Transparency=0
  326. for i=0,1,0.1 do
  327. wait()
  328. Torso.Neck.C0=necko*euler(0.5-0.5*i,0,0.5-0.5*i)
  329. LW.C0 = cf(-1.5,0.5,0) * euler(-0.5+0.5*i,0,0.5-0.5*i)
  330. LW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  331. RW.C0 = cf(1.5,0.5,0) * euler(0,0,0)
  332. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  333. end
  334. --wait(1)
  335. attack=false
  336. end
  337.  
  338. function Transform()
  339. attack=true
  340. gyro.Parent=Torso
  341. gyro.cframe=Torso.CFrame
  342. local bp = Instance.new("BodyPosition")
  343. bp.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  344. bp.P = bp.P + 10000
  345. local CF = Torso.CFrame
  346. bp.position = CF.p
  347. bp.Parent = Torso
  348. RWLFunc()
  349. LWLFunc()
  350. for i=0,1,0.1 do
  351. wait()
  352. bp.position = CF.p - Vector3.new(0,3,0)
  353. handlew.C0=euler(1.57,1.57*i,0)*cf(-0.8*i,1,0)
  354. handlew.C1=euler(0,0,-0.5*i)*cf(0,0,0)
  355. Torso.Neck.C0=necko*euler(0.5*i,0,0)
  356. LW.C0 = cf(-1.5+0.5*i,0.5,-0.5*i) * euler(1*i,0,0.5*i)
  357. LW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  358. RW.C0 = cf(1.5-0.5*i,0.5,-0.5*i) * euler(1*i,0,-0.5*i)
  359. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  360. RWL.C0 = cf(1, -1, 0)*euler(-1.57*i,0,0)
  361. LWL.C0 = cf(-1, -1+1*i, -1*i)*euler(0,0,0)
  362. end
  363. handlew.C0=euler(1.57,0,0)*cf(0,1,0)
  364. handlew.C1=euler(0,0,0)*cf(0,0,0)
  365. bp.Parent=nil
  366. gyro.Parent=nil
  367. object1=true
  368. local lesentri=Instance.new("Model")
  369. lesentri.Parent=workspace
  370. lesentri.Name="Tesla Coil"
  371. Sentry=part3:Clone()
  372. local sgyro = it("BodyGyro")
  373. sgyro.maxTorque = Vector3.new(4e+005,4e+005,4e+005)*math.huge
  374. sgyro.P = 20e+003
  375. sgyro.Parent=Sentry
  376. sgyro.cframe=cf(0,0,0)*euler(0,0,1.57)
  377. sbod = it("BodyPosition")
  378. sbod.Parent=Sentry
  379. sbod.position = Sentry.Position+Vector3.new(0,-5,0)
  380. sbod.maxForce = vt(8e+080, 8e+080, 8e+080)
  381. bp.P = 10000000
  382. sbod.position=Sentry.Position
  383. Sentry.Parent=lesentri
  384. Sentry.CanCollide=true
  385. Sentry.CFrame=part3.CFrame
  386. coroutine.resume(coroutine.create(function()
  387. wait(1)
  388. Sentry.Anchored=true
  389. local part1=part(1,lesentri,0,0,BrickColor.new("Black"),"Head",vt(1,1,1))
  390. Sentry.Name="Torso"
  391. part1.CFrame=Sentry.CFrame
  392. local mesh1=mesh("BlockMesh",part1,"","",vt(0,0,0),vt(0.5,0.5,0.5))
  393. local weld1=weld(part1,part1,Sentry,euler(0,0,0)*cf(0,0,0))
  394. local h=Instance.new("Humanoid")
  395. h.Parent=lesentri
  396. for i=0,2,0.1 do
  397. wait()
  398. --weld1.C0=cf(10*i,0,0)
  399. Sentry.Mesh.Scale=Sentry.Mesh.Scale+vt(0.3,0.1,0.1)
  400. mesh1.Scale=mesh1.Scale+vt(1,0,0)
  401. end
  402. for i=0,1,0.1 do
  403. wait()
  404. mesh1.Scale=mesh1.Scale+vt(0,0.05,0.05)
  405. end
  406. Sentry.Anchored=false
  407. coroutine.resume(coroutine.create(function()
  408. count=0
  409. Sentry.Anchored=true
  410. for i=1,3 do
  411. wait()
  412. local part=part(1,lesentri,0.5,0,BrickColor.new("Black"),"Part",vt(1,1,1))
  413. part.CFrame=part1.CFrame*CFrame.new(-5-count,0,0)
  414. part.CanCollide=true
  415. local mesh=mesh("SpecialMesh",part,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(0,0,0))
  416. local weld=weld(part,part,part1,euler(0,1.57,0)*cf(-5-count,0,0))
  417. for i=0,1,0.1 do
  418. wait()
  419. mesh.Scale=mesh.Scale+Vector3.new(0.3,0.3,0.3)
  420. end
  421. coroutine.resume(coroutine.create(function(Part)
  422. while Part.Parent~=nil do
  423. wait()
  424. for i=0,1,0.05 do
  425. wait()
  426. Part.Reflectance=Part.Reflectance+0.05
  427. end
  428. for i=0,1,0.05 do
  429. wait()
  430. Part.Reflectance=Part.Reflectance-0.05
  431. end
  432. end
  433. end),part)
  434. count=count+2
  435. end
  436. count=count+2.5
  437. local part=part(1,lesentri,0,0.2,BrickColor.new("White"),"Part",vt(1,1,1))
  438. part.CFrame=part1.CFrame*CFrame.new(-3-count,0,0)
  439. local mesh=mesh("SpecialMesh",part,"Sphere","",vt(0,0,0),vt(0,0,0))
  440. local weld=weld(part,part,part1,euler(0,1.57,0)*cf(-3-count,0,0))
  441. for i=0,1,0.1 do
  442. wait()
  443. mesh.Scale=mesh.Scale+Vector3.new(0.4,0.4,0.4)
  444. end
  445. coroutine.resume(coroutine.create(function(Part)
  446. while Part.Parent~=nil do
  447. wait(0.8)
  448. print("durr")
  449. local c = game.Workspace:GetChildren();
  450. for i = 1, #c do
  451. print("1")
  452. local hum = c[i]:findFirstChild("Humanoid")
  453. if hum ~= nil and hum.Health ~= 0 then
  454. print("2")
  455. local head = c[i]:findFirstChild("Head");
  456. if head ~= nil then
  457. print("3")
  458. local targ = head.Position - Part.Position;
  459. local mag = targ.magnitude;
  460. if mag <= 30 and c[i].Name ~= Player.Name and c[i].Name ~= Part.Parent.Name then
  461. --Lightning(p0,p1,tym,ofs,col,th,tra)
  462. for i=1,5 do
  463. Lightning(Part.Position,head.Parent.Torso.Position,3,2,"White",0.5,0.1)
  464. end
  465. attackdebounce=false
  466. Damagefunc1(head,10,0)
  467. end
  468. end
  469. end
  470. end
  471. end
  472. end),part)
  473. coroutine.resume(coroutine.create(function(Part)
  474. while Part.Parent~=nil do
  475. wait()
  476. for i=0,1,0.05 do
  477. wait()
  478. Part.Reflectance=Part.Reflectance+0.05
  479. end
  480. for i=0,1,0.05 do
  481. wait()
  482. Part.Reflectance=Part.Reflectance-0.05
  483. end
  484. Part.Reflectance=0
  485. end
  486. end),part)
  487. end))
  488. coroutine.resume(coroutine.create(function(Model)
  489. local Humoid=Model.Humanoid
  490. durp=true
  491. --while Humoid.Parent~=nil or Humoid.Health>=0 or object1==true do
  492. while durp==true do
  493. if Humoid.Parent==nil then
  494. durp=false
  495. end
  496. if Model.Parent==nil then
  497. durp=false
  498. end
  499. if Humoid.Health<=0 then
  500. durp=false
  501. end
  502. if object1==false then
  503. durp=false
  504. end
  505. wait()
  506. end
  507. print("dosh")
  508. object1=false
  509. Model:BreakJoints()
  510. local c = Model:GetChildren()
  511. for i=1,#c do
  512. if c[i].className=="Part" then
  513. coroutine.resume(coroutine.create(function(Part)
  514. for i=0,1,0.01 do
  515. wait()
  516. Part.Transparency=Part.Transparency+0.01
  517. end
  518. Model.Parent=nil
  519. Part.Parent=nil
  520. end),c[i])
  521. end
  522. end
  523. end),lesentri)
  524. end))
  525. part3.Transparency=1
  526. for i=0,1,0.1 do
  527. wait()
  528. Torso.Neck.C0=necko*euler(0.5-0.5*i,0,0)
  529. LW.C0 = cf(-1.5+0.5-0.5*i,0.5,-0.5+0.5*i) * euler(1-1*i,0,0.5-0.5*i)
  530. LW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  531. RW.C0 = cf(1.5-0.5+0.5*i,0.5,-0.5+0.5*i) * euler(1-1*i,0,-0.5+0.5*i)
  532. RW.C1 = cf(0, 0.5, 0) * euler(0,0,0)
  533. RWL.C0 = cf(1, -1, 0)*euler(-1.57+1.57*i,0,0)
  534. LWL.C0 = cf(-1, -1+1-1*i, -1+1*i)*euler(0,0,0)
  535. end
  536. wait()
  537. d=handle:Clone()
  538. d.Parent=workspace
  539. game.Debris:AddItem(d,4)
  540. d=part1:Clone()
  541. d.Parent=workspace
  542. game.Debris:AddItem(d,4)
  543. d=part2:Clone()
  544. d.Parent=workspace
  545. game.Debris:AddItem(d,4)
  546. handle.Transparency=1
  547. part1.Transparency=1
  548. part2.Transparency=1
  549. RWLRem()
  550. LWLRem()
  551. attack=false
  552. end
  553.  
  554. function BreakFirst()
  555. object1=false
  556. print(object1)
  557. end
  558.  
  559. function BreakSecond()
  560. object2=false
  561. print(object2)
  562. end
  563.  
  564. function BreakThird()
  565. object3=false
  566. print(object3)
  567. end
  568.  
  569. function BreakFourth()
  570. object4=false
  571. print(object4)
  572. end
  573.  
  574. function BreakFifth()
  575. object5=false
  576. print(object5)
  577. end
  578.  
  579. local RoarSound = it("Sound")
  580. RoarSound.SoundId = "http://www.roblox.com/asset/?id=1089403"
  581. RoarSound.Parent = Head
  582. RoarSound.Volume = 1
  583. RoarSound.Pitch = pitch
  584. RoarSound.PlayOnRemove = true
  585. genroarsound=function(iter,start,conv)
  586. RoarSound.Volume=10/iter
  587. RoarSound.Pitch=start
  588. for k=1, iter do
  589. RoarSound.Pitch=RoarSound.Pitch-conv
  590. RoarSound:Play()
  591. end
  592. end
  593.  
  594. function ray(Pos, Dir,xxz) local xxz2=c if xxz ~= nil then xxz2=nil end return workspace:FindPartOnRay(Ray.new(Pos, Dir.unit *999),xxz2) end
  595. function fade(prt,incr) coroutine.resume(coroutine.create(function() for i=prt.Transparency,1,incr do prt.Transparency=i wait() end prt:Remove'' end)) end
  596.  
  597. function shoottrail2(pos1,Damage)
  598. shot=true
  599. coroutine.resume(coroutine.create(function()
  600. spread2 = 0
  601. range2 = 300
  602. rangepower = 10
  603. local spreadvector = (vt(math.random(-spread2,spread2),math.random(-spread2,spread2),math.random(-spread2,spread2)) / 100) --* (pos1.Position).magnitude/100
  604. --local dir = Head.CFrame.lookVector+spreadvector
  605. --[[print(Head.CFrame.lookVector)
  606. print(MMouse.Hit.p)]]
  607. local pderp=part(1,modelzorz,0,1,BrickColor.new("Black"),"DarkBall",vt(1,1,1))
  608. pderp.CFrame=LeftArm.CFrame*euler(-1.57,0,0)
  609. local dir = pderp.CFrame.lookVector
  610. pderp.Parent=nil
  611. --local dir=MMouse.Hit.p
  612. local ammount = 100
  613. local hit2,pos = rayCast(pos1.Position,dir,10,modelzorz)
  614. local rangepos = range2
  615. local function drawtrail(From,To)
  616. local effectsmsh = it("SpecialMesh")
  617. local Damg = Damage*2
  618. effectsmsh.Scale = vt(1,1,1)
  619. effectsmsh.MeshType="Sphere"
  620. effectsmsh.Name = "Mesh"
  621. local effectsg = it("Part")
  622. --[[local Smok=it("Smoke")
  623. Smok.Parent=effectsg
  624. Smok.Color=Color3.new(0,0,1)
  625. Smok.Opacity=0.2
  626. Smok.RiseVelocity=10
  627. Smok.Size=0.2]]
  628. local Fir=it("Fire")
  629. Fir.Parent=effectsg
  630. Fir.Color=Color3.new(0,0,1)
  631. Fir.SecondaryColor=Color3.new(1,1,1)
  632. Fir.Heat=20
  633. Fir.Size=10
  634. effectsg.formFactor = 3
  635. effectsg.CanCollide = false
  636. effectsg.Name = "Eff"
  637. effectsg.Locked = true
  638. effectsg.Anchored = true
  639. effectsg.Size = vt(5,5,5)
  640. effectsg.Parent = workspace
  641. effectsmsh.Parent = effectsg
  642. effectsg.BrickColor = BrickColor.new("Navy blue")
  643. effectsg.Transparency = 0.5
  644. local LP = From
  645. local point1 = To
  646. local mg = (LP - point1).magnitude
  647. --effectsmsh.Scale = vt(1,mg*5,1)
  648. effectsg.CFrame = cf((LP+point1)/2,point1) * CFrame.Angles(math.rad(90),0,0)
  649. coroutine.resume(coroutine.create(function()
  650. wait()
  651. --Smok.Enabled=false
  652. Fir.Enabled=false
  653. effectsg.Transparency = 1
  654. wait(1)
  655. Fir.Parent=nil
  656. effectsg:Remove()
  657. end))
  658. local effectsmsh = it("SpecialMesh")
  659. local Damg = Damage*2
  660. effectsmsh.Scale = vt(1,1,1)
  661. effectsmsh.MeshType="Sphere"
  662. effectsmsh.Name = "Mesh"
  663. local effectsg = it("Part")
  664. --[[local Smok=it("Smoke")
  665. Smok.Parent=effectsg
  666. Smok.Color=Color3.new(0,0,1)
  667. Smok.Opacity=0.2
  668. Smok.RiseVelocity=10
  669. Smok.Size=0.2]]
  670. local Fir=it("Fire")
  671. Fir.Parent=effectsg
  672. Fir.Color=Color3.new(0,0,1)
  673. Fir.SecondaryColor=Color3.new(1,1,1)
  674. Fir.Heat=20
  675. Fir.Size=10
  676. effectsg.formFactor = 3
  677. effectsg.CanCollide = false
  678. effectsg.Name = "Eff"
  679. effectsg.Locked = true
  680. effectsg.Anchored = true
  681. effectsg.Size = vt(3,3,3)
  682. effectsg.Parent = workspace
  683. effectsmsh.Parent = effectsg
  684. effectsg.BrickColor = BrickColor.new("Black")
  685. effectsg.Transparency = 0.5
  686. local LP = From
  687. local point1 = To
  688. local mg = (LP - point1).magnitude
  689. --effectsmsh.Scale = vt(1,mg*5,1)
  690. effectsg.CFrame = cf((LP+point1)/2,point1) * CFrame.Angles(math.rad(90),0,0)
  691. coroutine.resume(coroutine.create(function()
  692. wait()
  693. --Smok.Enabled=false
  694. Fir.Enabled=false
  695. effectsg.Transparency = 1
  696. wait(1)
  697. Fir.Parent=nil
  698. effectsg:Remove()
  699. end))
  700. end
  701. local newpos = pos1.Position
  702. local inc = rangepower
  703. ammount=100
  704. local Damg = Damage*2
  705. local decr = 0
  706. repeat
  707. wait()
  708. decr = decr + 1
  709. rangepos = rangepos - 10
  710. --dir = dir
  711. ammount=ammount-3
  712. --print(Damg)
  713. if decr == 2 then
  714. Damg = Damg/2
  715. decr=0
  716. end
  717. hit2,pos = rayCast(newpos,dir,inc,modelzorz)
  718. drawtrail(newpos,pos)
  719. newpos = newpos + (dir * inc)
  720. if alt==1 then
  721. inc = 10
  722. if inc >= 20 then
  723. inc = inc - 10
  724. end
  725. end
  726. if hit2 ~= nil then
  727. rangepos = 0
  728. end
  729. until rangepos <= 0
  730. if hit2 ~= nil then
  731. local effectsmsh = it("SpecialMesh")
  732. effectsmsh.MeshId = "http://www.roblox.com/asset/?id=15887356"
  733. --effectsmsh.Scale = vt(1,1,2.5)
  734. effectsmsh.Scale = vt(3,3,3)
  735. local effectsg = it("Part")
  736. effectsg.formFactor = 3
  737. effectsg.CanCollide = false
  738. effectsg.Name = "Arrow"
  739. effectsg.Locked = true
  740. effectsg.Transparency = 1
  741. effectsg.Size = vt(0.2,0.2,0.2)
  742. effectsg.Parent = workspace
  743. effectsg.BrickColor = BrickColor.new("Cyan")
  744. effectsmsh.Parent = effectsg
  745. effectsg.CFrame = cf(newpos,pos) + cf(newpos,pos).lookVector*2.5*2
  746. coroutine.resume(coroutine.create(function()
  747. wait()
  748. effectsg.Parent = nil
  749. end))
  750. effectsg.Anchored = true
  751. MMMAGIC(effectsg,3,3,3,0,0,0,BrickColor.new("Black"))
  752. MMMAGIC(effectsg,5,5,5,0,0,0,BrickColor.new("Navy blue"))
  753. for i=1,5 do
  754. MMMAGIC2(effectsg,1,3,1,0,0,0,BrickColor.new("Black"))
  755. end
  756. if hit2.Parent:FindFirstChild("Humanoid") ~= nil then
  757. hum = hit2.Parent.Humanoid
  758. attackdebounce=false
  759. Damagefunc2(hit2,math.floor(Damg*2),5)
  760. elseif hit2.Parent.Parent ~= nil and hit2.Parent.Parent:FindFirstChild("Humanoid") ~= nil then
  761. hum = hit2.Parent.Parent.Humanoid
  762. attackdebounce=false
  763. Damagefunc2(hit2,math.floor(Damg*2),5)
  764. end
  765. end
  766. end))
  767. end
  768.  
  769.  
  770. --[[function MMMAGIC(part,x1,y1,z1,x2,y2,z2,color)
  771.  
  772. local sword=part(1,modelzorz,0,0.5,BrickColor.new("Navy blue"),"Sword",vt(3,3,3))
  773. local S=part(0,workspace,0,0,color,"Effect",vt(x1,y1,z1))
  774. local msh1=mesh("BlockMesh",S,"","",vt(0,0,0),vt(0.5,0.5,0.5))
  775. S.TopSurface=0
  776. S.BottomSurface=0
  777. S.Anchored=true
  778. S.CFrame=part.CFrame*cf(x2,y2,z2)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  779. coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + vt(0.1,0.1,0.1) Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) Part.Transparency=i*.1 wait() end Part.Parent=nil end),S,S.CFrame)
  780. end ]]
  781. function MMMAGIC(part,x1,y1,z1,x2,y2,z2,color)
  782. local msh1 = Instance.new("BlockMesh")
  783. msh1.Scale = Vector3.new(0.5,0.5,0.5)
  784. S=Instance.new("Part")
  785. S.Name="Effect"
  786. S.formFactor=0
  787. S.Size=Vector3.new(x1,y1,z1)
  788. S.BrickColor=color
  789. S.Reflectance = 0
  790. S.TopSurface=0
  791. S.BottomSurface=0
  792. S.Transparency=0
  793. S.Anchored=true
  794. S.CanCollide=false
  795. S.CFrame=part.CFrame*CFrame.new(x2,y2,z2)*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  796. S.Parent=Character
  797. msh1.Parent = S
  798. coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + Vector3.new(0.1,0.1,0.1) Part.CFrame=Part.CFrame*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50)) Part.Transparency=i*.1 wait() end Part.Parent=nil end),S,S.CFrame)
  799. end
  800.  
  801. function GroundEffect(part,x1,y1,z1,x2,y2,z2,x3,y3,z3,color)
  802. local msh1 = it("SpecialMesh")
  803. msh1.Scale = vt(0.5,0.5,0.5)
  804. msh1.MeshType = "Sphere"
  805. S=it("Part")
  806. S.Name="Effect"
  807. S.formFactor=0
  808. S.Size=vt(1,1,1)
  809. S.BrickColor=color
  810. S.Reflectance = 0
  811. S.TopSurface=0
  812. S.BottomSurface=0
  813. S.Transparency=0
  814. S.Anchored=true
  815. S.CanCollide=false
  816. S.CFrame=CFrame.new(part.Position)*CFrame.new(x2,y2,z2)
  817. -- S.CFrame=part.CFrame*cf(x2,y2,z2)*euler(x3,y3,z3)
  818. S.Parent=workspace
  819. msh1.Parent = S
  820. coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + vt(x1,y1,z1) Part.Transparency=i*.1 wait() end Part.Parent=nil end),S,S.CFrame)
  821. end
  822.  
  823. function MMMAGIC2(part,x1,y1,z1,x2,y2,z2,color)
  824. local msh1 = Instance.new("BlockMesh")
  825. msh1.Scale = Vector3.new(0.5,0.5,0.5)
  826. S=Instance.new("Part")
  827. S.Name="Effect"
  828. S.formFactor=0
  829. S.Size=Vector3.new(x1,1,z1)
  830. S.BrickColor=color
  831. S.Reflectance = 0
  832. S.TopSurface=0
  833. S.BottomSurface=0
  834. S.Transparency=0
  835. S.Anchored=true
  836. S.CanCollide=false
  837. S.CFrame=part.CFrame*CFrame.new(x2,y2,z2)*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  838. S.Parent=Character
  839. msh1.Parent = S
  840. coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + Vector3.new(0,y1,0) Part.CFrame=Part.CFrame Part.Transparency=i*.1 wait() end Part.Parent=nil end),S,S.CFrame)
  841. end
  842.  
  843. function MMMAGIC3(part,x1,y1,z1,x2,y2,z2,x3,y3,z3,color)
  844. local msh1 = Instance.new("BlockMesh")
  845. msh1.Scale = Vector3.new(0.5,0.5,0.5)
  846. S=Instance.new("Part")
  847. S.Name="Effect"
  848. S.formFactor=0
  849. S.Size=Vector3.new(x1,1,z1)
  850. S.BrickColor=color
  851. S.Reflectance = 0
  852. S.TopSurface=0
  853. S.BottomSurface=0
  854. S.Transparency=0
  855. S.Anchored=true
  856. S.CanCollide=false
  857. S.CFrame=part.CFrame*CFrame.new(x2,y2,z2)*CFrame.fromEulerAnglesXYZ(x3,y3,z3)
  858. S.Parent=Character
  859. msh1.Parent = S
  860. coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + Vector3.new(0,y1,0) Part.CFrame=Part.CFrame Part.Transparency=i*.1 wait() end Part.Parent=nil end),S,S.CFrame)
  861. end
  862.  
  863. function WaveEffect(part,x1,y1,z1,x2,y2,z2,x3,y3,z3,color)
  864. local msh1 = Instance.new("SpecialMesh")
  865. msh1.Scale = Vector3.new(x1,y1,z1)
  866. msh1.MeshId = "http://www.roblox.com/asset/?id=20329976"
  867. S=Instance.new("Part")
  868. S.Name="Effect"
  869. S.formFactor=0
  870. S.Size=Vector3.new(1,1,1)
  871. S.BrickColor=color
  872. S.Reflectance = 0
  873. S.TopSurface=0
  874. S.BottomSurface=0
  875. S.Transparency=0
  876. S.Anchored=true
  877. S.CanCollide=false
  878. S.CFrame=part.CFrame*CFrame.fromEulerAnglesXYZ(x3,y3,z3)*CFrame.new(x2,y2,z2)
  879. S.Parent=workspace
  880. msh1.Parent = S
  881. coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + Vector3.new(0.5,-0.1,0.5) Part.Transparency=i*.1 wait() end Part.Parent=nil end),S,S.CFrame)
  882. end
  883.  
  884. function WaveEffect2(part,x1,y1,z1,x2,y2,z2,x3,y3,z3,color)
  885. local msh1 = Instance.new("SpecialMesh")
  886. msh1.Scale = Vector3.new(x1,y1,z1)
  887. msh1.MeshId = "http://www.roblox.com/asset/?id=20329976"
  888. S=Instance.new("Part")
  889. S.Name="Effect"
  890. S.formFactor=0
  891. S.Size=Vector3.new(1,1,1)
  892. S.BrickColor=color
  893. S.Reflectance = 0
  894. S.TopSurface=0
  895. S.BottomSurface=0
  896. S.Transparency=0
  897. S.Anchored=true
  898. S.CanCollide=false
  899. S.CFrame=part.CFrame*CFrame.fromEulerAnglesXYZ(x3,y3,z3)*CFrame.new(x2,y2,z2)
  900. S.Parent=workspace
  901. msh1.Parent = S
  902. coroutine.resume(coroutine.create(function(Part,CF) for i=1, 8 do Part.Mesh.Scale = Part.Mesh.Scale + Vector3.new(2,-1.1,2) Part.Transparency=i*.2 wait() end Part.Parent=nil end),S,S.CFrame)
  903. end
  904.  
  905. function WaveEffect3(part,x1,y1,z1,x2,y2,z2,x3,y3,z3,color)
  906. local msh1 = Instance.new("SpecialMesh")
  907. msh1.Scale = Vector3.new(x1,y1,z1)
  908. msh1.MeshId = "http://www.roblox.com/asset/?id=20329976"
  909. S=Instance.new("Part")
  910. S.Name="Effect"
  911. S.formFactor=0
  912. S.Size=Vector3.new(1,1,1)
  913. S.BrickColor=color
  914. S.Reflectance = 0
  915. S.TopSurface=0
  916. S.BottomSurface=0
  917. S.Transparency=0
  918. S.Anchored=true
  919. S.CanCollide=false
  920. S.CFrame=part.CFrame*CFrame.fromEulerAnglesXYZ(x3,y3,z3)*CFrame.new(x2,y2,z2)
  921. S.Parent=workspace
  922. msh1.Parent = S
  923. coroutine.resume(coroutine.create(function(Part,CF) for i=1, 18 do Part.Mesh.Scale = Part.Mesh.Scale + Vector3.new(0.5,0.2,0.5) Part.Transparency=i*.05 wait() end Part.Parent=nil end),S,S.CFrame)
  924. end
  925.  
  926. function Lightning(p0,p1,tym,ofs,col,th,tra)
  927. local magz = (p0 - p1).magnitude local curpos = p0 local trz = {-ofs,ofs}
  928. for i=1,tym do
  929. local li = Instance.new("Part",workspace) li.TopSurface =0 li.BottomSurface = 0 li.Anchored = true li.Transparency = tra or 0.4 li.BrickColor = BrickColor.new(col)
  930. li.formFactor = "Custom" li.CanCollide = false li.Size = Vector3.new(th,th,magz/tym) local ofz = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)])
  931. local trolpos = CFrame.new(curpos,p1)*CFrame.new(0,0,magz/tym).p+ofz
  932. if tym == i then
  933. local magz2 = (curpos - p1).magnitude li.Size = Vector3.new(th,th,magz2)
  934. li.CFrame = CFrame.new(curpos,p1)*CFrame.new(0,0,-magz2/2)
  935. else
  936. li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/tym/2)
  937. end
  938. curpos = li.CFrame*CFrame.new(0,0,magz/tym/2).p game.Debris:AddItem(li,0.25)
  939. end
  940. end
  941.  
  942. print("Y U NU GIVE CREDIT.")
  943.  
  944. DOHHit=function(hit,Damage,Pos) --credits to turdulator for making this function :D
  945. if hit.Parent==nil then
  946. return
  947. end
  948. h=hit.Parent:FindFirstChild("Humanoid")
  949. t=hit.Parent:FindFirstChild("Torso")
  950. if h~=nil and t~=nil then
  951. if attackdebounce2 == false then
  952. attackdebounce2 = true
  953. coroutine.resume(coroutine.create(function()
  954. wait(0.2)
  955. attackdebounce2 = false
  956. end))
  957. elseif attackdebounce2==true then return end
  958. if h.Parent==Character then
  959. return
  960. end
  961. c=it("ObjectValue")
  962. c.Name="creator"
  963. c.Value=game.Players.LocalPlayer
  964. c.Parent=h
  965. game:GetService("Debris"):AddItem(c,.5)
  966. if math.random(0,99)+math.random()<=7.8 then
  967. --[[ Knockback=Knockback*2
  968. r=it("BodyAngularVelocity")
  969. r.P=3000
  970. r.maxTorque=vt(500000000,50000000000,500000000)*50000
  971. r.angularvelocity=vt(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  972. r.Parent=hit.Parent.Torso]]
  973. s=it("Sound")
  974. s.SoundId="http://www.roblox.com/asset/?id=2801263"
  975. s.Volume=1
  976. s.Pitch=2
  977. s.Parent=hit
  978. s.PlayOnRemove=true
  979. s.Parent=nil
  980.  
  981. end
  982. h:TakeDamage(Damage)
  983. showDamage(hit.Parent,Damage,.5)
  984. game:GetService("Debris"):AddItem(vl,.2)
  985. rl=it("BodyAngularVelocity")
  986. rl.P=3000
  987. rl.maxTorque=vt(500000,500000,500000)*50000000000000
  988. rl.angularvelocity=vt(math.random(-3,3),math.random(-3,3),math.random(-3,3))
  989. rl.Parent=t
  990. game:GetService("Debris"):AddItem(rl,.05)
  991. f=it("BodyPosition")
  992. f.P=800
  993. f.D=100
  994. f.maxForce=vt(math.huge,math.huge,math.huge)
  995. f.position=Pos.Position
  996. f.Parent=t
  997. game:GetService("Debris"):AddItem(f,.1)
  998. else
  999. if hit.CanCollide==false then
  1000. return
  1001. end
  1002. MagicCom:disconnect()
  1003. -- DBExplode(DB)
  1004. end
  1005. end
  1006.  
  1007. Damagefunc1=function(hit,Damage,Knockback)
  1008. if hit.Parent==nil then
  1009. return
  1010. end
  1011. CPlayer=Bin
  1012. h=hit.Parent:FindFirstChild("Humanoid")
  1013. if h~=nil and hit.Parent.Name~="RawFullz0r" and hit.Parent:FindFirstChild("Torso")~=nil then
  1014. if attackdebounce == false then
  1015. attackdebounce = true
  1016. coroutine.resume(coroutine.create(function()
  1017. wait(0.1)
  1018. attackdebounce = false
  1019. end))
  1020. Damage=Damage
  1021. if Enemy==nil then
  1022. Enemy=hit.Parent
  1023. HP=Enemy.Humanoid.Health
  1024. end
  1025. coroutine.resume(coroutine.create(function()
  1026. wait(1)
  1027. if attack==false and Enemy~=nil and Enemy:findFirstChild("Humanoid")~=nil then
  1028. Did=HP-Enemy.Humanoid.Health
  1029. print("Did "..Did.." Damage")
  1030. Enemy=nil
  1031. HP=0
  1032. end
  1033. end))
  1034. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  1035. return
  1036. end]]
  1037. if mana<400 then
  1038. mana=mana+math.random(10,20)
  1039. else
  1040. mana=400
  1041. end
  1042. c=it("ObjectValue")
  1043. c.Name="creator"
  1044. c.Value=game.Players.LocalPlayer
  1045. c.Parent=h
  1046. game:GetService("Debris"):AddItem(c,.5)
  1047. -- print(c.Value)
  1048. if math.random(0,99)+math.random()<=5 then
  1049. CRIT=true
  1050. Damage=Damage*2
  1051. -- critsound(2)
  1052. --[[ Knockback=Knockback*2
  1053. r=it("BodyAngularVelocity")
  1054. r.P=3000
  1055. r.maxTorque=vt(500000000,50000000000,500000000)*50000
  1056. r.angularvelocity=vt(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  1057. r.Parent=hit.Parent.Torso]]
  1058.  
  1059. end
  1060. Damage=Damage+math.random(0,10)
  1061. -- Blood(hit.CFrame*cf(math.random(-10,10)/10,math.random(-10,10)/10,0),math.floor(Damage/2))
  1062. h:TakeDamage(Damage)
  1063. showDamage(hit.Parent,Damage,.5)
  1064. vp=it("BodyVelocity")
  1065. vp.P=500
  1066. vp.maxForce=vt(math.huge,0,math.huge)
  1067. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  1068. vp.velocity=Torso.CFrame.lookVector*Knockback+Torso.Velocity/1.05
  1069. vp.Parent=hit.Parent.Torso
  1070. --[[ if Knockback>0 then
  1071. vp.Parent=hit.Parent.Torso
  1072. end]]
  1073. game:GetService("Debris"):AddItem(vp,.25)
  1074. --[[ r=it("BodyAngularVelocity")
  1075. r.P=3000
  1076. r.maxTorque=vt(500000000,50000000000,500000000)*50000
  1077. r.angularvelocity=vt(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  1078. r.Parent=hit.Parent.Torso]]
  1079. game:GetService("Debris"):AddItem(r,.5)
  1080. c=it("ObjectValue")
  1081. c.Name="creator"
  1082. c.Value=Player
  1083. c.Parent=h
  1084. game:GetService("Debris"):AddItem(c,.5)
  1085. CRIT=false
  1086. hitDeb=true
  1087. AttackPos=6
  1088. end
  1089. end
  1090. end
  1091.  
  1092. Damagefunc2=function(hit,Damage,Knockback)
  1093. if hit.Parent==nil then
  1094. return
  1095. end
  1096. CPlayer=Bin
  1097. h=hit.Parent:FindFirstChild("Humanoid")
  1098. if h~=nil and hit.Parent.Name~="RawFullz0r" and hit.Parent:FindFirstChild("Torso")~=nil then
  1099. if attackdebounce == false then
  1100. attackdebounce = true
  1101. coroutine.resume(coroutine.create(function()
  1102. wait(0.1)
  1103. attackdebounce = false
  1104. end))
  1105. Damage=Damage
  1106. if Enemy==nil then
  1107. Enemy=hit.Parent
  1108. HP=Enemy.Humanoid.Health
  1109. end
  1110. coroutine.resume(coroutine.create(function()
  1111. wait(1)
  1112. if attack==false and Enemy~=nil and Enemy:findFirstChild("Humanoid")~=nil then
  1113. Did=HP-Enemy.Humanoid.Health
  1114. print("Did "..Did.." Damage")
  1115. Enemy=nil
  1116. HP=0
  1117. end
  1118. end))
  1119. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  1120. return
  1121. end]]
  1122. if mana<400 then
  1123. mana=mana+math.random(10,20)
  1124. else
  1125. mana=400
  1126. end
  1127. c=it("ObjectValue")
  1128. c.Name="creator"
  1129. c.Value=game.Players.LocalPlayer
  1130. c.Parent=h
  1131. game:GetService("Debris"):AddItem(c,.5)
  1132. -- print(c.Value)
  1133. if math.random(0,99)+math.random()<=5 then
  1134. CRIT=true
  1135. Damage=Damage*2
  1136. -- critsound(2)
  1137. --[[ Knockback=Knockback*2
  1138. r=it("BodyAngularVelocity")
  1139. r.P=3000
  1140. r.maxTorque=vt(500000000,50000000000,500000000)*50000
  1141. r.angularvelocity=vt(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  1142. r.Parent=hit.Parent.Torso]]
  1143.  
  1144. end
  1145. Damage=Damage+math.random(0,10)
  1146. -- Blood(hit.CFrame*cf(math.random(-10,10)/10,math.random(-10,10)/10,0),math.floor(Damage/2))
  1147. h:TakeDamage(Damage)
  1148. showDamage(hit.Parent,Damage,.5)
  1149. vp=it("BodyVelocity")
  1150. vp.P=500
  1151. vp.maxForce=vt(math.huge,0,math.huge)
  1152. -- vp.velocity=Head.CFrame.lookVector*Knockback
  1153. vp.velocity=Head.CFrame.lookVector*Knockback
  1154. vp.Parent=hit.Parent.Torso
  1155. --[[ if Knockback>0 then
  1156. vp.Parent=hit.Parent.Torso
  1157. end]]
  1158. game:GetService("Debris"):AddItem(vp,.5)
  1159. --[[ r=it("BodyAngularVelocity")
  1160. r.P=3000
  1161. r.maxTorque=vt(500000000,50000000000,500000000)*50000
  1162. r.angularvelocity=vt(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  1163. r.Parent=hit.Parent.Torso]]
  1164. game:GetService("Debris"):AddItem(r,.5)
  1165. c=it("ObjectValue")
  1166. c.Name="creator"
  1167. c.Value=Player
  1168. c.Parent=h
  1169. game:GetService("Debris"):AddItem(c,.5)
  1170. CRIT=false
  1171. hitDeb=true
  1172. AttackPos=6
  1173. end
  1174. end
  1175. end
  1176.  
  1177. Damagefunc3=function(hit,Damage,Knockback)
  1178. if hit.Parent==nil then
  1179. return
  1180. end
  1181. CPlayer=Bin
  1182. h=hit.Parent:FindFirstChild("Humanoid")
  1183. if h~=nil and hit.Parent.Name~="RawFullz0r" and hit.Parent:FindFirstChild("Torso")~=nil then
  1184. if attackdebounce == false then
  1185. attackdebounce = true
  1186. coroutine.resume(coroutine.create(function()
  1187. wait(0.1)
  1188. attackdebounce = false
  1189. end))
  1190. Damage=Damage
  1191. if Enemy==nil then
  1192. Enemy=hit.Parent
  1193. HP=Enemy.Humanoid.Health
  1194. end
  1195. coroutine.resume(coroutine.create(function()
  1196. wait(1)
  1197. if attack==false and Enemy~=nil and Enemy:findFirstChild("Humanoid")~=nil then
  1198. Did=HP-Enemy.Humanoid.Health
  1199. print("Did "..Did.." Damage")
  1200. Enemy=nil
  1201. HP=0
  1202. end
  1203. end))
  1204. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  1205. return
  1206. end]]
  1207. if mana<400 then
  1208. mana=mana+math.random(10,20)
  1209. else
  1210. mana=400
  1211. end
  1212. c=it("ObjectValue")
  1213. c.Name="creator"
  1214. c.Value=game.Players.LocalPlayer
  1215. c.Parent=h
  1216. game:GetService("Debris"):AddItem(c,.5)
  1217. -- print(c.Value)
  1218. if math.random(0,99)+math.random()<=5 then
  1219. CRIT=true
  1220. Damage=Damage*2
  1221. -- critsound(2)
  1222. --[[ Knockback=Knockback*2
  1223. r=it("BodyAngularVelocity")
  1224. r.P=3000
  1225. r.maxTorque=vt(500000000,50000000000,500000000)*50000
  1226. r.angularvelocity=vt(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  1227. r.Parent=hit.Parent.Torso]]
  1228.  
  1229. end
  1230. Damage=Damage+math.random(0,5)
  1231. -- Blood(hit.CFrame*cf(math.random(-10,10)/10,math.random(-10,10)/10,0),math.floor(Damage/2))
  1232. h:TakeDamage(Damage)
  1233. showDamage(hit.Parent,Damage,.5)
  1234. vp=it("BodyVelocity")
  1235. vp.P=500
  1236. vp.maxForce=vt(math.huge,math.huge,math.huge)
  1237. -- vp.velocity=Head.CFrame.lookVector*Knockback
  1238. vp.velocity=(Head.CFrame.lookVector*Knockback+Head.Velocity/2) + Vector3.new(math.random(-30,30),5,math.random(-30,30))
  1239. vp.Parent=hit.Parent.Torso
  1240. --[[ if Knockback>0 then
  1241. vp.Parent=hit.Parent.Torso
  1242. end]]
  1243. game:GetService("Debris"):AddItem(vp,.5)
  1244. r=it("BodyAngularVelocity")
  1245. r.P=3000
  1246. r.maxTorque=vt(500000000,50000000000,500000000)*50000
  1247. r.angularvelocity=vt(math.random(-5,5),math.random(-5,5),math.random(-5,5))
  1248. r.Parent=hit.Parent.Torso
  1249. game:GetService("Debris"):AddItem(r,.5)
  1250. c=it("ObjectValue")
  1251. c.Name="creator"
  1252. c.Value=Player
  1253. c.Parent=h
  1254. game:GetService("Debris"):AddItem(c,.5)
  1255. CRIT=false
  1256. hitDeb=true
  1257. AttackPos=6
  1258. end
  1259. end
  1260. end
  1261.  
  1262. Damagefunc5=function(hit,Damage,Knockback)
  1263. if hit.Parent==nil then
  1264. return
  1265. end
  1266. CPlayer=Bin
  1267. h=hit.Parent:FindFirstChild("Humanoid")
  1268. if h~=nil and hit.Parent.Name~="RawFullz0r" and hit.Parent:FindFirstChild("Torso")~=nil then
  1269. if attackdebounce == false then
  1270. attackdebounce = true
  1271. coroutine.resume(coroutine.create(function()
  1272. wait(0.1)
  1273. attackdebounce = false
  1274. end))
  1275. Damage=Damage
  1276. if Enemy==nil then
  1277. Enemy=hit.Parent
  1278. HP=Enemy.Humanoid.Health
  1279. end
  1280. coroutine.resume(coroutine.create(function()
  1281. wait(1)
  1282. if attack==false and Enemy~=nil and Enemy:findFirstChild("Humanoid")~=nil then
  1283. Did=HP-Enemy.Humanoid.Health
  1284. print("Did "..Did.." Damage")
  1285. Enemy=nil
  1286. HP=0
  1287. end
  1288. end))
  1289. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  1290. return
  1291. end]]
  1292. if mana<400 then
  1293. mana=mana+math.random(10,20)
  1294. else
  1295. mana=400
  1296. end
  1297. c=it("ObjectValue")
  1298. c.Name="creator"
  1299. c.Value=game.Players.LocalPlayer
  1300. c.Parent=h
  1301. game:GetService("Debris"):AddItem(c,.5)
  1302. -- print(c.Value)
  1303. if math.random(0,99)+math.random()<=5 then
  1304. CRIT=true
  1305. Damage=Damage*2
  1306. -- critsound(2)
  1307. --[[ Knockback=Knockback*2
  1308. r=it("BodyAngularVelocity")
  1309. r.P=3000
  1310. r.maxTorque=vt(500000000,50000000000,500000000)*50000
  1311. r.angularvelocity=vt(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  1312. r.Parent=hit.Parent.Torso]]
  1313.  
  1314. end
  1315. Damage=Damage+math.random(0,5)
  1316. -- Blood(hit.CFrame*cf(math.random(-10,10)/10,math.random(-10,10)/10,0),math.floor(Damage/2))
  1317. h:TakeDamage(Damage)
  1318. showDamage(hit.Parent,Damage,.5)
  1319. vp=it("BodyVelocity")
  1320. vp.P=500
  1321. vp.maxForce=vt(math.huge,math.huge,math.huge)
  1322. -- vp.velocity=Head.CFrame.lookVector*Knockback
  1323. vp.velocity=Vector3.new(0,Knockback,0)
  1324. vp.Parent=hit.Parent.Torso
  1325. --[[ if Knockback>0 then
  1326. vp.Parent=hit.Parent.Torso
  1327. end]]
  1328. game:GetService("Debris"):AddItem(vp,.5)
  1329. r=it("BodyAngularVelocity")
  1330. r.P=3000
  1331. r.maxTorque=vt(500000000,50000000000,500000000)*50000
  1332. r.angularvelocity=vt(math.random(-5,5),math.random(-5,5),math.random(-5,5))
  1333. r.Parent=hit.Parent.Torso
  1334. game:GetService("Debris"):AddItem(r,.5)
  1335. c=it("ObjectValue")
  1336. c.Name="creator"
  1337. c.Value=Player
  1338. c.Parent=h
  1339. game:GetService("Debris"):AddItem(c,.5)
  1340. CRIT=false
  1341. hitDeb=true
  1342. AttackPos=6
  1343. end
  1344. end
  1345. end
  1346.  
  1347.  
  1348. Damagefunc4=function(hit,Damage,Knockback)
  1349. if hit.Parent==nil then
  1350. return
  1351. end
  1352. CPlayer=Bin
  1353. h=hit.Parent:FindFirstChild("Humanoid")
  1354. if h~=nil and hit.Parent.Name~="RawFullz0r" and hit.Parent:FindFirstChild("Torso")~=nil then
  1355. if attackdebounce3 == false then
  1356. attackdebounce3 = true
  1357. coroutine.resume(coroutine.create(function()
  1358. wait(0.1)
  1359. attackdebounce3 = false
  1360. end))
  1361. Damage=Damage
  1362. if Enemy==nil then
  1363. Enemy=hit.Parent
  1364. HP=Enemy.Humanoid.Health
  1365. end
  1366. coroutine.resume(coroutine.create(function()
  1367. wait(1)
  1368. if attack==false and Enemy~=nil then
  1369. Did=HP-Enemy.Humanoid.Health
  1370. print("Did "..Did.." Damage")
  1371. Enemy=nil
  1372. HP=0
  1373. end
  1374. end))
  1375. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  1376. return
  1377. end]]
  1378. if mana<400 then
  1379. mana=mana+math.random(10,20)
  1380. else
  1381. mana=400
  1382. end
  1383. c=it("ObjectValue")
  1384. c.Name="creator"
  1385. c.Value=game.Players.LocalPlayer
  1386. c.Parent=h
  1387. game:GetService("Debris"):AddItem(c,.5)
  1388. -- print(c.Value)
  1389. if math.random(0,99)+math.random()<=5 then
  1390. CRIT=true
  1391. Damage=Damage*2
  1392. critsound(2)
  1393. --[[ Knockback=Knockback*2
  1394. r=it("BodyAngularVelocity")
  1395. r.P=3000
  1396. r.maxTorque=vt(500000000,50000000000,500000000)*50000
  1397. r.angularvelocity=vt(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  1398. r.Parent=hit.Parent.Torso]]
  1399.  
  1400. end
  1401. Damage=Damage+math.random(0,10)
  1402. -- Blood(hit.CFrame*cf(math.random(-10,10)/10,math.random(-10,10)/10,0),math.floor(Damage/2))
  1403. h:TakeDamage(Damage)
  1404. showDamage(hit.Parent,Damage,.5)
  1405. vp=it("BodyVelocity")
  1406. vp.P=500
  1407. vp.maxForce=vt(math.huge,math.huge,math.huge)
  1408. -- vp.velocity=Head.CFrame.lookVector*Knockback
  1409. vp.velocity=Vector3.new(0,-40,0)
  1410. vp.Parent=hit.Parent.Torso
  1411. --[[ if Knockback>0 then
  1412. vp.Parent=hit.Parent.Torso
  1413. end]]
  1414. game:GetService("Debris"):AddItem(vp,.2)
  1415. r=it("BodyAngularVelocity")
  1416. r.P=3000
  1417. r.maxTorque=vt(500000000,50000000000,500000000)*50000
  1418. r.angularvelocity=vt(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  1419. r.Parent=hit.Parent.Torso
  1420. game:GetService("Debris"):AddItem(r,.5)
  1421. c=it("ObjectValue")
  1422. c.Name="creator"
  1423. c.Value=Player
  1424. c.Parent=h
  1425. game:GetService("Debris"):AddItem(c,.5)
  1426. CRIT=false
  1427. hitDeb=true
  1428. AttackPos=6
  1429. end
  1430. end
  1431. end
  1432.  
  1433. showDamage=function(Char,Dealt,du)
  1434. m=it("Model")
  1435. m.Name=tostring(Dealt)
  1436. h=it("Humanoid")
  1437. h.Health=0
  1438. h.MaxHealth=0
  1439. h.Parent=m
  1440. c=it("Part")
  1441. c.Transparency=0
  1442. c.BrickColor=BrickColor:Red()
  1443. if CRIT==true then
  1444. c.BrickColor=BrickColor.new("Really red")
  1445. end
  1446. c.Name="Head"
  1447. c.TopSurface=0
  1448. c.BottomSurface=0
  1449. c.formFactor="Plate"
  1450. c.Size=vt(1,.4,1)
  1451. ms=it("CylinderMesh")
  1452. ms.Scale=vt(.8,.8,.8)
  1453. if CRIT==true then
  1454. ms.Scale=vt(1.25,1.5,1.25)
  1455. end
  1456. ms.Parent=c
  1457. c.Reflectance=0
  1458. it("BodyGyro").Parent=c
  1459. c.Parent=m
  1460. c.CFrame=cf(Char["Head"].CFrame.p+vt(0,1.5,0))
  1461. f=it("BodyPosition")
  1462. f.P=2000
  1463. f.D=100
  1464. f.maxForce=vt(math.huge,math.huge,math.huge)
  1465. f.position=c.Position+vt(0,3,0)
  1466. f.Parent=c
  1467. game:GetService("Debris"):AddItem(m,.5+du)
  1468. c.CanCollide=false
  1469. m.Parent=workspace
  1470. c.CanCollide=false
  1471. end
  1472.  
  1473.  
  1474. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , Ignore Descendants
  1475. return game.Workspace:FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  1476. end
  1477.  
  1478.  
  1479. hold = false
  1480. combo=0
  1481.  
  1482. function ob1d(mouse)
  1483. hold = true
  1484. end
  1485.  
  1486. function ob1u(mouse)
  1487. hold = false
  1488. end
  1489.  
  1490. buttonhold = false
  1491.  
  1492. function Key(key,mouse)
  1493. if attack == true then return end
  1494. player = Player
  1495. ch = Character
  1496. RSH = ch.Torso["Right Shoulder"]
  1497. LSH = ch.Torso["Left Shoulder"]
  1498. --
  1499. RSH.Parent = nil
  1500. LSH.Parent = nil
  1501. --[[RHP.C0 = cf(-0.5, -1.5, 0) * euler(0,0,0)
  1502. RHP.C1 = cf(0, 0.5, 0)
  1503. LHP.C0 = cf(0.5, -1.5, 0) * euler(0,0,0)
  1504. LHP.C1 = cf(0, 0.5, 0) ]]
  1505. --
  1506. RW.Part0 = ch.Torso
  1507. RW.C0 = cf(1.5, 0.5, 0) --* euler(1.3, 0, -0.5)
  1508. RW.C1 = cf(0, 0.5, 0)
  1509. RW.Part1 = ch["Right Arm"]
  1510. RW.Parent = ch.Torso
  1511. --_G.R = RW
  1512. --
  1513. LW.Part0 = ch.Torso
  1514. LW.C0 = cf(-1.5, 0.5, 0) --* euler(1.7, 0, 0.8)
  1515. LW.C1 = cf(0, 0.5, 0)
  1516. LW.Part1 = ch["Left Arm"]
  1517. LW.Parent = ch.Torso
  1518. --_G.L = LW
  1519. --
  1520. if key=="f" then
  1521. if briefcase==false then
  1522. briefcase=true
  1523. GetCase()
  1524. else
  1525. briefcase=false
  1526. Transform()
  1527. end
  1528. end
  1529. if key=="z" then
  1530. BreakFirst()
  1531. end
  1532. if key=="x" then
  1533. BreakSecond()
  1534. end
  1535. if key=="c" then
  1536. BreakThird()
  1537. end
  1538. if key=="v" then
  1539. BreakFourth()
  1540. end
  1541. if key=="b" then
  1542. BreakFifth()
  1543. end
  1544. Torso.Neck.C0=necko
  1545. RW.Parent = nil
  1546. LW.Parent = nil
  1547. for i=0,1,0.1 do
  1548. RSH.Parent = player.Character.Torso
  1549. LSH.Parent = player.Character.Torso
  1550. end
  1551. end
  1552.  
  1553. function Key2(key,mouse)
  1554. end
  1555. function s(mouse)
  1556. mouse.Button1Down:connect(function() ob1d(mouse) end)
  1557. mouse.Button1Up:connect(function() ob1u(mouse) end)
  1558. mouse.KeyDown:connect(function(key) Key(key,mouse) end)
  1559. mouse.KeyUp:connect(function(key) Key2(key,mouse) end)
  1560. MMouse = mouse
  1561. sheathed = false
  1562. end
  1563.  
  1564. function ds(mouse)
  1565. sheathed = true
  1566. walking = nil
  1567. Character.Humanoid.WalkSpeed = 16
  1568. hideanim()
  1569. RW.Parent = nil
  1570. LW.Parent = nil
  1571. RSH.Parent = player.Character.Torso
  1572. LSH.Parent = player.Character.Torso
  1573. end
  1574.  
  1575. Bin.Selected:connect(s)
  1576. Bin.Deselected:connect(ds)
  1577.  
  1578. coroutine.resume(coroutine.create(function()
  1579. while true do
  1580. wait()
  1581. print("Derp1")
  1582. backing1.Position = UDim2.new(0.1,0,0.3,0)
  1583. while object1==false do
  1584. wait()
  1585. end
  1586. for i=0,1,0.1 do
  1587. wait()
  1588. backing1.Position = backing1.Position + UDim2.new(0,0,0.005,0)
  1589. end
  1590. while object1==true do
  1591. wait()
  1592. end
  1593. for i=0,1,0.1 do
  1594. wait()
  1595. backing1.Position = backing1.Position - UDim2.new(0,0,0005,0)
  1596. end
  1597. end
  1598. end))
  1599.  
  1600.  
  1601. -- lego This acts as a chat filter. Don't ask why I do it. I just do >.>
  1602. -- mediafire STOOPID ROBLOX, Y U ALLOW LEGO NAO
  1603. --[[
  1604. Copyrighted (C) Fenrier 2012
  1605. This script is copyrighted for Fenrier. Any use of this script is breaking
  1606. this copyright.
  1607. All Rights Reserved.
  1608. ]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement