Advertisement
mathmasterphil

SuitCase

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