Advertisement
Namoo546

Joseph2

Dec 27th, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 86.13 KB | None | 0 0
  1. --Shark op
  2. --by osama44
  3. --for shark nigger
  4. --Converted to local by Scenius
  5.  
  6. Player=game.Players.LocalPlayer
  7. o1 = Instance.new("ParticleEmitter")
  8. o1.Name = "ora"
  9. o1.Parent = script
  10. o1.Transparency = NumberSequence.new(0,1)
  11. o1.Size = NumberSequence.new(1.5,3.5)
  12. o1.Color = ColorSequence.new(Color3.new(255, 174, 66),Color3.new(255, 174, 66))
  13. o1.Enabled = false
  14. o1.LightEmission = 1
  15. o1.Texture = "rbxassetid://993557475"
  16. o1.Lifetime = NumberRange.new(1,1)
  17. o1.Rate = 500
  18. o1.RotSpeed = NumberRange.new(90,90)
  19. o1.Speed = NumberRange.new(0,0)
  20. sv = Instance.new("Part")
  21. for i = 1, 2 do
  22. sv.Parent = script
  23. end
  24. sv.BrickColor = BrickColor.new("New Yeller")
  25. sv.Name = "sword"
  26. sv.Size = Vector3.new(0.248, 8.654, 1.153)
  27. sv.Orientation = Vector3.new(90, 90, 0)
  28. svm = Instance.new("FileMesh", sv)
  29. svm.MeshId = "rbxassetid://211683906"
  30. repeat wait() until Player.Character
  31. repeat wait() until #script:children() >= 0
  32. script.Parent=Player.PlayerGui
  33. Effects = { }
  34. --[[Credits to SazErenos for his Artificical Heartbeat]]--
  35. ArtificialHB = Instance.new("BindableEvent", script)
  36. ArtificialHB.Name = "Heartbeat"
  37.  
  38. script:WaitForChild("Heartbeat")
  39.  
  40. frame = 1 / 30
  41. tf = 0
  42. allowframeloss = false
  43. tossremainder = false
  44. lastframe = tick()
  45. script.Heartbeat:Fire()
  46.  
  47. game:GetService("RunService").Heartbeat:connect(function(s, p)
  48. tf = tf + s
  49. if tf >= frame then
  50. if allowframeloss then
  51. script.Heartbeat:Fire()
  52. lastframe = tick()
  53. else
  54. for i = 1, math.floor(tf / frame) do
  55. script.Heartbeat:Fire()
  56. end
  57. lastframe = tick()
  58. end
  59. if tossremainder then
  60. tf = 0
  61. else
  62. tf = tf - frame * math.floor(tf / frame)
  63. end
  64. end
  65. end)
  66.  
  67. function swait(num)
  68. if num == 0 or num == nil then
  69. ArtificialHB.Event:wait()
  70. else
  71. for i = 0, num do
  72. ArtificialHB.Event:wait()
  73. end
  74. end
  75. end
  76. ------------------[[Variables and Main Stuff]]--------------------
  77.  
  78.  
  79.  
  80. local Player = game.Players.localPlayer
  81. local Character = Player.Character
  82. local Humanoid = Character.Humanoid
  83. local char=Character
  84. local LeftArm = Character["Left Arm"]
  85. local RightArm = Character["Right Arm"]
  86. local LeftLeg = Character["Left Leg"]
  87. local RightLeg = Character["Right Leg"]
  88. local Head = Character.Head
  89. local Torso = Character.Torso
  90. local cam = game.Workspace.CurrentCamera
  91. local RootPart = Character.HumanoidRootPart
  92. local RootJoint = RootPart.RootJoint
  93. local equipped = false
  94. local attack = false
  95. local Anim = 'Idle'
  96. local idle = 0
  97. local attacktype = 1
  98. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  99. local velocity = RootPart.Velocity.y
  100. local sine = 0
  101. local change = 1
  102. local grabbed = false
  103. local cn = CFrame.new
  104. local mr = math.rad
  105. local angles = CFrame.Angles
  106. local ud = UDim2.new
  107. local c3 = Color3.new
  108. local ORW=Torso["Right Shoulder"]
  109. local OLW=Torso["Left Shoulder"]
  110. local OLH=Torso["Left Hip"]
  111. local ORH=Torso["Right Hip"]
  112. local DesiredSpeed=15
  113. local desiredjp=50
  114. EffectModel = Instance.new("Model", Character)
  115. it=Instance.new
  116. vt=Vector3.new
  117. cf=CFrame.new
  118. euler=CFrame.Angles
  119. EffectModel.Name = "Effects"
  120. local Animator=Humanoid.Animator
  121. local Animate=char.Animate
  122. local EffecMo=EffectModel
  123. euler=CFrame.Angles
  124. RotCF = euler(-1.57, 0, 3.14)
  125. it=Instance.new
  126. vt=Vector3.new
  127. LastMove=""
  128. Orbs={}
  129. EffecMo=EffectModel
  130. RootCF = CFrame.Angles(0, 0, 0)
  131. NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  132. local RW=Instance.new("Motor",nil)
  133. RW.Name="Right Shoulder"
  134. local LW=Instance.new("Motor",nil)
  135. LW.Name="Left Shoulder"
  136. local RH=Instance.new("Motor",nil)
  137. RH.Name="Right Hip"
  138. local LH=Instance.new("Motor",nil)
  139. LH.Name="Left Hip"
  140. Neck=Torso.Neck
  141. r1m=RootJoint.C1
  142. r0m=RootJoint.C0
  143. n1m=Neck.C1
  144. n0m=Neck.C0
  145. local rarmc1 = RW.C1
  146. local larmc1 = LW.C1
  147. local rlegc1 = RH.C1
  148. local llegc1 = LH.C1
  149. local resetc1 = false
  150. Comboing=false
  151. HTime=0
  152. LastDamage=0
  153. ComboHits=0
  154.  
  155. local co1 = 10
  156. local co2 = 10
  157. local co3 = 20
  158. local co4 = 1
  159. local cooldown1 = 0
  160. local cooldown2 = 0
  161. local cooldown3 = 0
  162. local cooldown4 = 0
  163. local skillcolorscheme = BrickColor.new("New Yeller").Color
  164. local scrn = Instance.new("ScreenGui", Player.PlayerGui)
  165. makeframe = function(par, trans, pos, size, color)
  166.  
  167. local frame = Instance.new("Frame", par)
  168. frame.BackgroundTransparency = trans
  169. frame.BorderSizePixel = 0
  170. frame.Position = pos
  171. frame.Size = size
  172. frame.BackgroundColor3 = color
  173. return frame
  174. end
  175.  
  176. makelabel = function(par, text)
  177.  
  178. local label = Instance.new("TextLabel", par)
  179. label.BackgroundTransparency = 1
  180. label.Size = UDim2.new(1, 0, 1, 0)
  181. label.Position = UDim2.new(0, 0, 0, 0)
  182. label.TextColor3 = Color3.new(255, 255, 255)
  183. label.TextStrokeTransparency = 0
  184. label.FontSize = Enum.FontSize.Size32
  185. label.Font = Enum.Font.SourceSansLight
  186. label.BorderSizePixel = 0
  187. label.TextScaled = true
  188. label.Text = text
  189. end
  190.  
  191. framesk1 = makeframe(scrn, 0.5, UDim2.new(0.8, 0, 0.85, 0), UDim2.new(0.16, 0, 0.1, 0), skillcolorscheme)
  192. framesk2 = makeframe(scrn, 0.5, UDim2.new(0.8, 0, 0.74, 0), UDim2.new(0.16, 0, 0.1, 0), skillcolorscheme)
  193. framesk3 = makeframe(scrn, 0.5, UDim2.new(0.8, 0, 0.63, 0), UDim2.new(0.16, 0, 0.1, 0), skillcolorscheme)
  194. framesk4 = makeframe(scrn, 0.5, UDim2.new(0.8, 0, 0.52, 0), UDim2.new(0.16, 0, 0.1, 0), skillcolorscheme)
  195. bar1 = makeframe(framesk1, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), skillcolorscheme)
  196. bar2 = makeframe(framesk2, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), skillcolorscheme)
  197. bar3 = makeframe(framesk3, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), skillcolorscheme)
  198. bar4 = makeframe(framesk4, 0, UDim2.new(0, 0, 0, 0), UDim2.new(1, 0, 1, 0), skillcolorscheme)
  199. text1 = Instance.new("TextLabel", framesk1)
  200. text1.BackgroundTransparency = 1
  201. text1.Size = UDim2.new(1, 0, 1, 0)
  202. text1.Position = UDim2.new(0, 0, 0, 0)
  203. text1.TextColor3 = Color3.new(255, 255, 255)
  204. text1.TextStrokeTransparency = 0
  205. text1.FontSize = Enum.FontSize.Size18
  206. text1.Font = Enum.Font.SourceSansLight
  207. text1.BorderSizePixel = 0
  208. text1.TextScaled = true
  209. text1.Text = "[Z]"
  210. text2 = Instance.new("TextLabel", framesk2)
  211. text2.BackgroundTransparency = 1
  212. text2.Size = UDim2.new(1, 0, 1, 0)
  213. text2.Position = UDim2.new(0, 0, 0, 0)
  214. text2.TextColor3 = Color3.new(255, 255, 255)
  215. text2.TextStrokeTransparency = 0
  216. text2.FontSize = Enum.FontSize.Size18
  217. text2.Font = Enum.Font.SourceSansLight
  218. text2.BorderSizePixel = 0
  219. text2.TextScaled = true
  220. text2.Text = "[X]"
  221. text3 = Instance.new("TextLabel", framesk3)
  222. text3.BackgroundTransparency = 1
  223. text3.Size = UDim2.new(1, 0, 1, 0)
  224. text3.Position = UDim2.new(0, 0, 0, 0)
  225. text3.TextColor3 = Color3.new(255, 255, 255)
  226. text3.TextStrokeTransparency = 0
  227. text3.FontSize = Enum.FontSize.Size18
  228. text3.Font = Enum.Font.SourceSansLight
  229. text3.BorderSizePixel = 0
  230. text3.TextScaled = false
  231. text3.Text = "[C]"
  232. text4 = Instance.new("TextLabel", framesk4)
  233. text4.BackgroundTransparency = 1
  234. text4.Size = UDim2.new(1, 0, 1, 0)
  235. text4.Position = UDim2.new(0, 0, 0, 0)
  236. text4.TextColor3 = Color3.new(255, 255, 255)
  237. text4.TextStrokeTransparency = 0
  238. text4.FontSize = Enum.FontSize.Size18
  239. text4.Font = Enum.Font.SourceSansLight
  240. text4.BorderSizePixel = 0
  241. text4.TextScaled = true
  242. text4.Text = "[V]"
  243.  
  244. ------------[[Particle Emitters]]---------------------
  245. local pe=Instance.new("ParticleEmitter",script)
  246. pe.Enabled=false
  247. pe.Name="pe"
  248. local col1= Color3.new( 255, 160, 122)
  249. pe.Color=ColorSequence.new(col1)
  250. pe.Texture="rbxassetid://436792038"
  251. pe.LightEmission=1
  252. pe.Size=NumberSequence.new({NumberSequenceKeypoint.new(0, 1.65), NumberSequenceKeypoint.new(1, 0)})
  253. pe.Transparency=NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(1, 1)})
  254. pe.Lifetime=NumberRange.new(1.5)
  255. pe.Rate=500
  256. pe.Acceleration=Vector3.new(5,0,5)
  257. pe.Rotation=NumberRange.new(5)
  258. pe.RotSpeed=NumberRange.new(10)
  259. pe.Speed=NumberRange.new(5)
  260.  
  261. local pe=Instance.new("ParticleEmitter",script)
  262. pe.Enabled=false
  263. pe.Name="pe2"
  264. local col1= BrickColor.new("New Yeller").Color
  265. pe.Color=ColorSequence.new(col1)
  266. pe.Texture="rbxassetid://436792038"
  267. pe.LightEmission=.5
  268. pe.Size=NumberSequence.new({NumberSequenceKeypoint.new(0, 1.65), NumberSequenceKeypoint.new(1, 0)})
  269. pe.Transparency=NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(1, 1)})
  270. pe.Lifetime=NumberRange.new(1)
  271. pe.Rate=500
  272. pe.Rotation=NumberRange.new(5)
  273. pe.RotSpeed=NumberRange.new(10)
  274. pe.Speed=NumberRange.new(5)
  275. pe.VelocitySpread=360
  276.  
  277. ------------------[[Main Functions]]--------------------
  278.  
  279. function CameraShake(Times, Power)
  280. coroutine.resume(coroutine.create(function()
  281. FV = Instance.new("BoolValue", Character)
  282. FV.Name = "CameraShake"
  283. for ShakeNum=1,Times do
  284. swait()
  285. local ef=Power
  286. if ef>=1 then
  287. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
  288. else
  289. ef=Power*10
  290. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
  291. end
  292. end
  293. Humanoid.CameraOffset = Vector3.new(0,0,0)
  294. FV:Destroy()
  295. end))
  296. end
  297.  
  298. so = function(id, par, vol, pit)
  299. local sou = Instance.new("Sound", par or workspace)
  300. if par==char then sou.Parent=char.Torso end
  301. sou.Volume = 666
  302. sou.Pitch = 5
  303. sou.SoundId = "rbxassetid://958321852"
  304. coroutine.resume(coroutine.create(function(Sound)
  305. swait()
  306. Sound:play()
  307. while sou.Parent.Parent ~= nil and sou.TimePosition >= sou.TimeLength do
  308. swait()
  309. end
  310. sou.Parent = char.Torso
  311. end), sou)
  312. game:GetService("Debris"):AddItem(sou, sou.TimeLength + 0.5)
  313. end
  314.  
  315. part = function(formfactor, parent, reflectance, transparency, brickcolor, name, size)
  316. local fp = it("Part")
  317. fp.Parent = parent
  318. fp.Reflectance = reflectance
  319. fp.Transparency = transparency
  320. fp.CanCollide = false
  321. fp.Locked = true
  322. fp.BrickColor = brickcolor
  323. fp.Name = name
  324. fp.Size = size
  325. fp.Position = Torso.Position
  326. fp.Material = "SmoothPlastic"
  327. fp:BreakJoints()
  328. return fp
  329. end
  330. mesh = function(Mesh, part, meshtype, meshid, offset, scale)
  331. local mesh = it(Mesh)
  332. mesh.Parent = part
  333. if Mesh == "SpecialMesh" then
  334. mesh.MeshType = meshtype
  335. if meshid ~= "nil" then
  336. mesh.MeshId = "http://www.roblox.com/asset/?id=" .. meshid
  337. end
  338. end
  339. mesh.Offset = offset
  340. mesh.Scale = scale
  341. return mesh
  342. end
  343. local function weldBetween(a, b)
  344. local OR=CFrame.new(a.Position)
  345. local P1C, P2C=a.CFrame:inverse()*OR,b.CFrame:inverse()*OR
  346. local weld = Instance.new("ManualWeld", a)
  347. weld.Part0 = a
  348. weld.Part1 = b
  349. weld.C0 = P1C
  350. weld.C1=P2C
  351. return weld
  352. end
  353. lock=function(a,b)
  354. local vp2=Instance.new("BodyPosition",a)
  355. vp2.MaxForce=Vector3.new(math.huge,math.huge,math.huge)
  356. vp2.P=1e7
  357. vp2.D=1e3
  358. vp2.Position=b.Position
  359. local vp3=Instance.new("BodyGyro",a)
  360. vp3.MaxTorque=Vector3.new(math.huge,math.huge,math.huge)
  361. vp3.P=1e7
  362. vp3.D=1e3
  363. vp3.cframe=a.CFrame
  364. return vp2,vp3
  365. end
  366. weld = function(parent, part0, part1, c0)
  367. local weld = it("Motor")
  368. weld.Parent = parent
  369. weld.Part0 = part0
  370. weld.Part1 = part1
  371. weld.C0 = c0
  372. return weld
  373. end
  374. function NoOutline(Part)
  375. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  376. end
  377.  
  378. Par=function(Parent,Name,Col,size,Mater)
  379. p=Instance.new("Part",Parent)
  380. p.Anchored=true
  381. p.CanCollide=false
  382. p.BrickColor=BrickColor.new(Col)
  383. p.Locked=true
  384. NoOutline(p)
  385. p.Size=size or Vector3.new(1,1,1)
  386. p.Material=Mater
  387. return p
  388. end
  389. Par2=function(size,cframe,color,meshtype,meshscale) --returns a basic part for further manipulation
  390. local par = Instance.new("Part")
  391. par.formFactor="Custom"
  392. par.TopSurface=0
  393. par.BottomSurface=0
  394. par.Size=size
  395. par.CFrame=cframe
  396. par.BrickColor=BrickColor.new(color)
  397. if meshtype then
  398. local m = Instance.new(meshtype,par)
  399. m.Scale=meshscale
  400. end
  401. return par
  402. end
  403. BillboardGui = function(image, position, size)
  404. local billpar = Instance.new("Part")
  405. billpar.Transparency = 1
  406. billpar.formFactor = "Custom"
  407. billpar.Size = Vector3.new(1, 1, 1)
  408. billpar.Anchored = true
  409. billpar.CanCollide = false
  410. billpar.CFrame = CFrame.new(position)
  411. billpar.Name = "BillboardGuiPart"
  412. local bill = Instance.new("BillboardGui", billpar)
  413. bill.Adornee = billpar
  414. bill.Size = UDim2.new(1, 0, 1, 0)
  415. bill.SizeOffset = Vector2.new(size, size)
  416. local d = Instance.new("ImageLabel", bill)
  417. d.BackgroundTransparency = 1
  418. d.Size = UDim2.new(1, 0, 1, 0)
  419. d.Image = image
  420. return billpar
  421. end
  422. gui = function(GuiType, parent, text, backtrans, backcol, pos, size)
  423. local gui = it(GuiType)
  424. gui.Parent = parent
  425. gui.Text = text
  426. gui.BackgroundTransparency = backtrans
  427. gui.BackgroundColor3 = backcol
  428. gui.SizeConstraint = "RelativeXY"
  429. gui.TextXAlignment = "Center"
  430. gui.TextYAlignment = "Center"
  431. gui.Position = pos
  432. gui.Size = size
  433. gui.Font = "SciFi"
  434. gui.FontSize = "Size14"
  435. gui.TextWrapped = false
  436. gui.TextStrokeTransparency = 0
  437. gui.TextColor3 = Color3.new(255,255,127)
  438. return gui
  439. end
  440.  
  441. local TotalSuppressedTable = {}
  442. CreatePart = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  443. local RbxUtility = LoadLibrary("RbxUtility")
  444. local Create = RbxUtility.Create
  445. local Part = Create("Part")({Parent = Parent, Reflectance = Reflectance, Transparency = Transparency, CanCollide = false, Locked = true, BrickColor = BrickColor.new(tostring(BColor)), Name = Name, Size = Size, Material = Material})
  446. RemoveOutlines(Part)
  447. return Part
  448. end
  449.  
  450. function BreakEffect(brickcolor,cframe,x1,y1,z1) --Credits to Ace
  451. local prt=part(3,EffectModel,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  452. prt.Anchored=true
  453. prt.Material="Neon"
  454. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  455. game:GetService("Debris"):AddItem(prt,10)
  456. local msh=mesh("SpecialMesh",prt,"Sphere","nil",vt(0,0,0),vt(x1,y1,z1))
  457. local num=math.random(10,50)/1000
  458. table.insert(Effects,{prt,"Shatter",num,prt.CFrame,math.random()-math.random(),0,math.random(50,100)/100})
  459. end
  460.  
  461. local function CFrameFromTopBack(at, top, back)
  462. local right = top:Cross(back)
  463. return CFrame.new(at.x, at.y, at.z,
  464. right.x, top.x, back.x,
  465. right.y, top.y, back.y,
  466. right.z, top.z, back.z)
  467. end
  468. function clerp(a,b,t)
  469. return a:Lerp(b,t)
  470. end
  471. function QuaternionFromCFrame(cf)
  472. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  473. local trace = m00 + m11 + m22
  474. if trace > 0 then
  475. local s = math.sqrt(1 + trace)
  476. local recip = 0.5/s
  477. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  478. else
  479. local i = 0
  480. if m11 > m00 then
  481. i = 1
  482. end
  483. if m22 > (i == 0 and m00 or m11) then
  484. i = 2
  485. end
  486. if i == 0 then
  487. local s = math.sqrt(m00-m11-m22+1)
  488. local recip = 0.5/s
  489. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  490. elseif i == 1 then
  491. local s = math.sqrt(m11-m22-m00+1)
  492. local recip = 0.5/s
  493. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  494. elseif i == 2 then
  495. local s = math.sqrt(m22-m00-m11+1)
  496. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  497. end
  498. end
  499. end
  500. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  501. local xs, ys, zs = x + x, y + y, z + z
  502. local wx, wy, wz = w*xs, w*ys, w*zs
  503. local xx = x*xs
  504. local xy = x*ys
  505. local xz = x*zs
  506. local yy = y*ys
  507. local yz = y*zs
  508. local zz = z*zs
  509. return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
  510. end
  511. function QuaternionSlerp(a, b, t)
  512. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  513. local startInterp, finishInterp;
  514. if cosTheta >= 0.0001 then
  515. if (1 - cosTheta) > 0.0001 then
  516. local theta = math.acos(cosTheta)
  517. local invSinTheta = 1/math.sin(theta)
  518. startInterp = math.sin((1-t)*theta)*invSinTheta
  519. finishInterp = math.sin(t*theta)*invSinTheta
  520. else
  521. startInterp = 1-t
  522. finishInterp = t
  523. end
  524. else
  525. if (1+cosTheta) > 0.0001 then
  526. local theta = math.acos(-cosTheta)
  527. local invSinTheta = 1/math.sin(theta)
  528. startInterp = math.sin((t-1)*theta)*invSinTheta
  529. finishInterp = math.sin(t*theta)*invSinTheta
  530. else
  531. startInterp = t-1
  532. finishInterp = t
  533. end
  534. end
  535. return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp
  536. end
  537.  
  538. local newMotor = function(part0, part1, c0, c1)
  539. local w = Instance.new('Motor', part0)
  540. w.Part0 = part0
  541. w.Part1 = part1
  542. w.C0 = c0
  543. w.C1 = c1
  544. return w
  545. end
  546.  
  547. Triangle=function(a, b, c)
  548. local col=BrickColor.new("Really red")
  549. --Credit to Fenrier
  550. local edg1 = (c-a):Dot((b-a).unit)
  551. local edg2 = (a-b):Dot((c-b).unit)
  552. local edg3 = (b-c):Dot((a-c).unit)
  553. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  554. a, b, c = a, b, c
  555. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  556. a, b, c = b, c, a
  557. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  558. a, b, c = c, a, b
  559. else
  560. assert(false, "unreachable")
  561. end
  562.  
  563. local len1 = (c-a):Dot((b-a).unit)
  564. local len2 = (b-a).magnitude - len1
  565. local width = (a + (b-a).unit*len1 - c).magnitude
  566. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  567.  
  568. local list = {}
  569.  
  570. if len1 > 0.01 then
  571. local w1 = Instance.new('WedgePart', EffectModel)
  572. game:GetService("Debris"):AddItem(w1,5)
  573. coroutine.resume(coroutine.create(function(p)
  574. for i=1, 10 do
  575. p.Transparency=i/10
  576. swait()
  577. end
  578. p:Remove()
  579. end),w1)
  580. w1.FormFactor = "Custom"
  581. w1.BrickColor = col
  582. w1.Material = "SmoothPlastic"
  583. w1.CanCollide = false
  584. local sz = Vector3.new(0.2, width, len1)
  585. w1.Size = sz
  586. local sp = Instance.new("SpecialMesh",w1)
  587. sp.MeshType = "Wedge"
  588. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  589. w1:BreakJoints()
  590. w1.Anchored = true
  591. w1.Transparency = 0
  592. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  593. end
  594.  
  595. if len2 > 0.01 then
  596. local w2 = Instance.new('WedgePart', EffectModel)
  597. game:GetService("Debris"):AddItem(w2,5)
  598. coroutine.resume(coroutine.create(function(p)
  599. for i=1, 10 do
  600. p.Transparency=i/10
  601. swait()
  602. end
  603. p:Remove()
  604. end),w2)
  605.  
  606. w2.FormFactor = "Custom"
  607. w2.BrickColor = col
  608. w2.Material = "SmoothPlastic"
  609. w2.CanCollide = false
  610. local sz = Vector3.new(0.2, width, len2)
  611. w2.Size = sz
  612. local sp = Instance.new("SpecialMesh",w2)
  613. sp.MeshType = "Wedge"
  614. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  615. w2:BreakJoints()
  616. w2.Anchored = true
  617. w2.Transparency = 0
  618. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  619. end
  620. return unpack(list)
  621. end
  622.  
  623. osamachain = function(P0,P1,Color1,Color2,thickness1,thickness2,T)
  624. local Part0=P0.Position
  625. local Part1=P1.Position
  626. local magz = (Part0 - Part1).magnitude
  627. local curpos = Part0
  628. local parts = {}
  629. local lastpart=P0
  630. local model = Instance.new("Model",EffecMo)
  631. model.Name = "osama_chain"
  632. local par=model
  633. if par:FindFirstChild("TimeLeft")~=nil then
  634. par:FindFirstChild("TimeLeft"):Destroy()
  635. end
  636. local chains = {}
  637. local WAT=false
  638. local cb=Instance.new("Part",model)
  639. cb.Name="Main_chain"
  640. cb.Size=Vector3.new(.2,1,.2)
  641. cb.BrickColor=BrickColor.new(Color1)
  642. cb.Anchored=false
  643. cb.CanCollide=false
  644. cb.Locked=true
  645. cbM=Instance.new("CylinderMesh",cb)
  646. cbM.Name="Mesh"
  647. cb.CFrame = CFrame.new((Part0 + Part1)/2, Part0) * CFrame.Angles(math.pi/2, 0, 0)
  648. for j = 1, T do
  649. local Part0=P0.Position
  650. local Part1=P1.Position
  651. local trolpos = CFrame.new(curpos,Part1)*CFrame.new(0,0,magz/T).p
  652. local p = Instance.new("Part")
  653. p.Name="Outline"..j
  654. p.Size = Vector3.new(.2,1,.2)
  655. p.BrickColor = BrickColor.new(Color2)
  656. p.TopSurface = 0
  657. p.BottomSurface = 0
  658. p.CanCollide = false
  659. p.Locked=true
  660. p.Anchored=true
  661. p.Material = "Neon"
  662. p.TopSurface = 0
  663. p.BottomSurface = 0
  664. local mesh = Instance.new("CylinderMesh",p)
  665. mesh.Name = "Mesh"
  666. mesh.Scale = Vector3.new(1.5,magz/T,1.5)
  667. p.Parent = model
  668. p.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/T/2)
  669. curpos = p.CFrame*CFrame.new(0,0,magz/T/2).p
  670. p.CFrame=p.CFrame*CFrame.Angles(math.rad(90),0,0)
  671. p.Transparency=0.35
  672. local str=Instance.new("ObjectValue",p)
  673. str.Value=lastpart
  674. str.Name="LP"
  675. lastpart=p
  676. table.insert(parts,{p,p})
  677. table.insert(chains,{0,0,parts,0})
  678.  
  679. coroutine.resume(coroutine.create(function()
  680. while WAT==false do
  681. game:GetService("RunService").RenderStepped:wait()
  682. local Part0=P0.Position
  683. local Part1=P1.Position
  684. local ow=j
  685. local magz = (Part0 - Part1).magnitude
  686. local oldT=T
  687. local wtf=magz
  688. mesh.Scale = Vector3.new(thickness2,magz/T,thickness2)
  689. if ow>1 then
  690. local dangnigga=CFrame.new(str.Value.Position)*CFrame.new(0,0,wtf/oldT/2).p
  691. local trolpos = CFrame.new(dangnigga,Part1)*CFrame.new(0,0,wtf/oldT).p
  692. p.CFrame = CFrame.new(str.Value.Position,Part1)*CFrame.new(0,0,-(wtf/oldT))*CFrame.Angles(math.rad(90),0,0)
  693. end
  694. if ow<=1 then
  695. local dangnigga=Part0
  696. local trolpos = CFrame.new(dangnigga,Part1)*CFrame.new(0,0,wtf/oldT).p
  697. p.CFrame = CFrame.new(dangnigga,trolpos)*CFrame.new(0,0,wtf/oldT/2)*CFrame.Angles(math.rad(90),0,0)
  698. end
  699. end
  700. end))
  701. end
  702.  
  703.  
  704. coroutine.resume(coroutine.create(function()
  705. while WAT==false do
  706. local Part0=P0.Position
  707. local Part1=P1.Position
  708. cbM.Scale = Vector3.new(thickness1, (Part0 - Part1).magnitude, thickness1)
  709. cb.CFrame = CFrame.new((Part0 + Part1)/2, Part0) * CFrame.Angles(math.pi/2, 0, 0)
  710. for i, v in pairs(chains) do
  711. v[1] = v[1] %200 +4
  712. local dir = i%2 == 0 and 1 or -1
  713. for j, V in pairs(v[3]) do
  714. local val = math.sin(math.pi/2 * 2 * (((v[1] + (100 * j/#v[3])*dir) % 100)/100))
  715. V[2].Transparency = 0.12 + val * 0.85
  716. end
  717. end
  718. game:GetService("RunService").RenderStepped:wait()
  719. end
  720. end))
  721.  
  722. local t=Instance.new("BoolValue",par)
  723. t.Name="TimeLeft"
  724.  
  725. coroutine.resume(coroutine.create(function()
  726. repeat wait() until par:FindFirstChild("TimeLeft")==nil
  727. WAT=true
  728. for _,v in pairs(model:children()) do
  729. coroutine.resume(coroutine.create(function()
  730. for i=1,30 do
  731. swait()
  732. v.Mesh.Scale=v.Mesh.Scale-Vector3.new(.05,0,.05)
  733. v.Transparency=i/30
  734. end
  735. v:Destroy()
  736. end))
  737. game.Debris:AddItem(model,1)
  738. end
  739. end))
  740.  
  741. return t
  742. end
  743. AnimTab={}
  744. angles=CFrame.Angles
  745. euler=CFrame.fromEulerAnglesXYZ
  746. cf=CFrame.new
  747. AnimTab["Idle"]=function(frameN,sine)
  748. local frame={}
  749. frame[1]={
  750. CFrame.new(0.0749855712, -0.0629398525, 0.0235529467, 0.819152057, -0.0499904789, -0.571393847, 0.0499904789, 0.998626292, -0.0157019496, 0.571393847, -0.0157019496, 0.820525885) * CFrame.new(0, .05*math.cos(sine/16), 0) * CFrame.Angles(0, 0, 0),
  751. CFrame.new(-2.23517418e-008, 1.49999809, -5.96046448e-008, 0.707106829, 0, 0.707106948, -0.0616284125, 0.99619478, 0.0616284236, -0.704416037, -0.0871557444, 0.704416215) * CFrame.new(0, .02*math.cos(sine/16), 0) * CFrame.Angles( math.rad(2*math.cos(sine/16)), 0, 0),
  752. CFrame.new(1.39567375, 0.0430115312, 0.0315978527, 0.694800496, -0.393022656, -0.602318823, 0.404297799, 0.90606755, -0.12484619, 0.594807148, -0.156772524, 0.788436532) * CFrame.new(0, .05* math.cos(sine/16), 0) * CFrame.Angles(0, 0, math.rad(3.5*math.cos(sine/16))),
  753. CFrame.new(-1.58251691, 0.206372619, 0.0614111423, 0.471944094, 0.547303855, 0.691178441, -0.39397791, 0.832269073, -0.39001283, -0.788701952, -0.0882446468, 0.608410358) * CFrame.new(0, .05 * math.cos(sine/16), 0) * CFrame.Angles( math.rad(3.5*math.cos(sine/16)), 0, 0),
  754. CFrame.new(0.560000062, -1.83199704, 8.94069672e-008, 0.99619472, -0.0871557444, 2.98023224e-008, 0.0841859877, 0.962250233, 0.258819044, -0.0225575566, -0.257834196, 0.965925813) * CFrame.new(0,-.05*math.cos(sine/16), 0) * CFrame.Angles(0, 0, 0),
  755. CFrame.new(-0.612000167, -1.99999762, -4.47034836e-008, 0.936116815, 0.0871557519, 0.340718925, -0.0818995982, 0.996194839, -0.0298090391, -0.342020333, 1.3038516e-008, 0.939692676)* CFrame.new(0,-.05*math.cos(sine/16), 0) * CFrame.Angles(0, 0, 0),
  756. }
  757.  
  758. return frame[frameN]
  759. end
  760.  
  761. AnimTab["Walk"]=function(frameN,sine,num)
  762. local frame={}
  763. frame[1]={
  764. CFrame.new(-0.0113935694, 0.00570777431, 0.130231544, 0.984834015, 0.0075960937, -0.173317313, 0.00759613095, 0.99619472, 0.0868239552, 0.173317313, -0.0868239775, 0.981028795) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  765. CFrame.new(4.61004674e-007, 1.49999475, -2.23517418e-007, 0.996191978, 0.00759613141, 0.0868240595, -9.31322575e-010, 0.99619472, -0.0871556401, -0.0871557146, 0.0868239626, 0.992401242) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  766. CFrame.new(1.46789289, 0.0982637256, -0.144648015, 0.950443208, -0.30540812, -0.058124274, 0.310294747, 0.943467736, 0.116559155, 0.0192402601, -0.128818408, 0.99147892) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  767. CFrame.new(-1.51850045, 0.0611076728, -0.0488293171, 0.793944538, 0.343733251, -0.501494884, -0.374889195, 0.926151514, 0.0412922278, 0.478652835, 0.155221671, 0.864171624) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  768. CFrame.new(.5, -1.85 - 0.5 * math.cos(sine / num) / 2, 0 + 2 * math.sin(sine / num) / 2) * angles(math.rad(-60 * math.sin(sine / num)), math.rad(-5), math.rad(0)),
  769. CFrame.new(-.5, -1.85 + 0.5 * math.cos(sine / num) / 2, 0 - 2 * math.sin(sine / num) / 2) * angles(math.rad(60 * math.sin(sine / num)), math.rad(5), math.rad(0)),
  770. }
  771. return frame[frameN]
  772. end
  773.  
  774. AnimTab["Fall"]=function(frameN)
  775. local frame={}
  776. frame[1]={
  777. CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  778. CFrame.new(0, 1.49999714, 4.47034836e-008, 1, 0, -0, 0, 0.996194601, -0.0871557221, 0, 0.0871557221, 0.996194601) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  779. CFrame.new(1.52677226, 0.170301318, 0.120866239, 0.615058243, -0.725984514, -0.307655036, 0.75595212, 0.653862953, -0.0316542089, 0.224143073, -0.213102654, 0.950971305) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  780. CFrame.new(-1.74943757, 0.22577554, 0.248999774, -0.467496186, 0.588313401, 0.659799039, -0.437883109, 0.494264781, -0.750973344, -0.767922878, -0.639991939, 0.0265456047) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  781. CFrame.new(0.5, -1.79199886, 0.372999966, 1, 0, 0, 0, 0.965925813, 0.258819044, 0, -0.258819044, 0.965925813) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  782. CFrame.new(-0.5, -1.56999934, 3.57627869e-007, 1, 0, 0, 0, 0.906307697, 0.422618449, 0, -0.422618449, 0.906307697) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  783. }
  784. return frame[frameN]
  785. end
  786.  
  787. AnimTab["Jump"]=function(frameN)
  788. local frame={}
  789. frame[1]={
  790. CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), 0, 0),
  791. CFrame.new(0, 1.49999642, -2.98023224e-007, 1, 0, -0, 0, 0.984807611, -0.173648387, 0, 0.173648387, 0.984807611) * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(10), 0, 0),
  792. CFrame.new(1.52818167, 0.149664342, 0.34200123, 0.642788768, -0.627507448, -0.439385235, 0.766045749, 0.526541293, 0.368688077, 2.44126284e-008, -0.573576927, 0.8191517) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  793. CFrame.new(-1.55943918, 0.108779103, 0.407002598, 0.0947543383, 0.640856326, 0.761791289, -0.612354636, 0.640856147, -0.462954849, -0.784887373, -0.422618419, 0.4531537) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  794. CFrame.new(0.5, -1.79199874, 0.372999489, 1, 0, 0, 0, 0.819151998, 0.573576391, 0, -0.573576391, 0.819151998) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  795. CFrame.new(-0.5, -1.18119395, -0.181302905, 1, 0, 0, 0, 0.906307697, 0.422618449, 0, -0.422618449, 0.906307697) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  796. }
  797. return frame[frameN]
  798. end
  799.  
  800. AnimTab["ClickCombo"]=function(frameN)
  801. local frame={}
  802. frame[1]={
  803. CFrame.new(-0.0197398271, 0.00017363939, -0.0113914032, 0.819431186, 0.0131589621, -0.573026359, -0.0151344128, 0.999884605, 0.00131906569, 0.572977841, 0.00759153441, 0.819535732) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  804. CFrame.new(-5.12972474e-006, 1.49999857, 6.86198473e-006, 0.939692736, 0, -0.342020154, -0.0298089944, 0.99619472, -0.081899412, 0.340719104, 0.0871555582, 0.936116457) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  805. CFrame.new(1.46780205, 0.710095406, 0.234785587, -0.355826288, -0.865559995, 0.352411389, -0.172264263, -0.30988273, -0.935039043, 0.918538094, -0.393419534, -0.038840577) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  806. CFrame.new(-1.43954968, -2.52574682e-006, 0.129604459, 0.836516142, 0.258819044, 0.482963055, -0.224143833, 0.965925813, -0.129409522, -0.499999762, 5.96046448e-008, 0.866025388) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  807. CFrame.new(0.679453552, -2.00000072, -0.0836714357, 0.984807849, -0.173648208, 1.78813934e-007, 0.173648164, 0.984807789, 1.49011612e-008, 2.08616257e-007, -2.23517418e-008, 0.999999762) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  808. CFrame.new(-0.604891539, -2.00168324, 0.0733468086, 0.902858794, 0.0789898112, 0.422619224, -0.0871558189, 0.996194482, -8.33533704e-008, -0.421009451, -0.0368335843, 0.906307936) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  809. }
  810. frame[2]={
  811. CFrame.new(-0.0613368936, 0.00152878393, 0.0285331458, 0.76637429, 0.0408957675, 0.641089976, -0.0435777232, 0.99898237, -0.0116322488, -0.640913188, -0.0190227255, 0.767376542) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  812. CFrame.new(-7.62548461e-006, 1.49999809, -3.71038914e-006, 0.999998212, 0, 2.98023224e-008, 5.58793545e-009, 0.99619478, 0.0871554092, 0, -0.0871555507, 0.996193051) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  813. CFrame.new(0.00463496707, 0.187205061, -0.965997756, 0.367293179, 0.711594164, 0.598938942, 0.427254975, 0.442903399, -0.788219512, -0.826164603, 0.545407176, -0.141356587) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  814. CFrame.new(-1.49999774, 3.53902578e-006, 1.47521496e-005, 0.907670081, 0.258818388, 0.330364645, -0.243210018, 0.965925872, -0.0885214061, -0.342019051, -2.08616257e-007, 0.939689517) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  815. CFrame.new(0.499999136, -2.00000024, -3.50921755e-006, 0.999998271, 1.86264515e-009, 5.96046448e-008, 1.86264515e-009, 1.00000012, -1.37835741e-007, 5.96046448e-008, -1.37835741e-007, 0.99999845) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  816. CFrame.new(-0.645505011, -2.00401926, 0.0868109241, 0.924950242, 0.16841127, 0.340715557, -0.168411225, 0.985266805, -0.0298095532, -0.340716124, -0.0298096016, 0.939684689) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  817. }
  818. frame[3]={
  819. CFrame.new(1.55471647e-009, -0.0068855267, -5.47999889e-006, 0.793305218, -2.25794793e-007, 0.608824253, 0.000484734424, 0.999999702, -0.000631258881, -0.608824015, 0.000795871951, 0.79330498) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  820. CFrame.new(0.0225859769, 1.49797451, 0.0388732702, 0.883248448, 0.0451714694, 0.466724664, -0.00345645775, 0.995949268, -0.089850761, -0.468892813, 0.0777472705, 0.879826784) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  821. CFrame.new(1.58917701, 0.14805764, 0.334518611, 0.0183337033, -0.201969534, -0.979220271, 0.697920084, 0.70388478, -0.132113129, 0.715941131, -0.680995286, 0.153863311) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  822. CFrame.new(-1.88436937, 0.643480539, -0.285786152, 0.300701588, 0.768738747, 0.564463854, 0.950921416, -0.286961168, -0.115765437, 0.0729858056, 0.571571708, -0.817299783) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  823. CFrame.new(0.412421823, -2.00387192, 0.0902987272, 0.791517377, 0.00115086511, -0.611145437, 0.00795604475, 0.999894083, 0.0121870684, 0.611094832, -0.0145086367, 0.791424394) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  824. CFrame.new(-0.409770161, -1.99211299, -0.0764102042, 0.792799294, 0.000281186076, -0.609482467, 0.00198945496, 0.999993384, 0.00304915174, 0.609479368, -0.00362995872, 0.792793512) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  825. }
  826. frame[4]={
  827. CFrame.new(2.62498816e-007, -0.000344276341, -2.2777408e-007, 0.803031087, 0, -0.595937431, -0.000474512577, 0.999999702, -0.000639379025, 0.595937312, 0.000796243548, 0.80303061) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  828. CFrame.new(-0.0595012531, 1.49132609, -0.0711210817, 0.77105993, -0.119002283, 0.62554419, 0.00120455027, 0.982652485, 0.185453147, -0.636761785, -0.14224194, 0.757826924) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  829. CFrame.new(1.59903359, 0.230916396, 0.409287423, 0.0014244318, -0.198947608, -0.980009317, 0.835885108, 0.538167715, -0.108036242, 0.54890269, -0.819021165, 0.167063877) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  830. CFrame.new(-0.625070512, 0.361982256, -0.745636106, 0.285767585, -0.796516061, 0.532822251, 0.955926418, 0.276036203, -0.100043766, -0.0673916936, 0.537928045, 0.840292692) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  831. CFrame.new(0.398624241, -1.9999733, -0.0658840984, 0.804467261, -0.000422894955, 0.593996882, -5.37931919e-005, 0.999999702, 0.000784777105, -0.593996882, -0.000663250685, 0.804466903) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  832. CFrame.new(-0.398404002, -1.99966228, 0.0658915937, 0.803506851, -0.000106021762, 0.595295787, -1.34408474e-005, 1, 0.000196315348, -0.595295668, -0.000165745616, 0.803506553) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  833. }
  834. frame[5]={
  835. CFrame.new(-1.14056382e-008, -0.196045384, -0.000156056514, 1, 5.81785571e-008, -0.00159262121, -1.21010919e-006, 0.99999994, -0.000796537439, 0.00159247965, 0.000796022301, 0.999999464) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  836. CFrame.new(9.34411162e-008, 1.47852278, -0.144922316, 0.99999392, 7.4505806e-008, -5.21540642e-008, 5.78365871e-008, 0.957062781, 0.289872348, -7.4505806e-008, -0.289865702, 0.957063496) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  837. CFrame.new(0.663555026, 0.49231568, -0.850663185, 0.015370708, 0.692666352, 0.721096218, 0.999231637, 0.0153704779, -0.036063727, -0.0360642895, 0.721095979, -0.691897511) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  838. CFrame.new(-0.663553596, 0.492314607, -0.850663126, 0.0153705887, -0.692666411, -0.721096218, -0.999231517, 0.015370396, -0.0360638089, 0.0360642895, 0.721096158, -0.691897392) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  839. CFrame.new(0.499701917, -1.92411804, 0.38171339, 0.999994397, 0.000301316381, -0.000750280917, 5.81403583e-006, 0.924113035, 0.382118583, 0.000808849931, -0.382119298, 0.924106598) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  840. CFrame.new(-0.401899934, -1.79915607, -0.00056552887, 0.999996126, -7.83959404e-005, 0.000813350081, -9.8903547e-007, 0.995200098, 0.0978638232, -0.000817283988, -0.0978644416, 0.995195687) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  841. }
  842. frame[6]={
  843. CFrame.new(-0, -0.828355193, 0.211025894, 1, 0, 0, 0, 0.939692676, 0.342019737, 0, -0.342019737, 0.939692676) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  844. CFrame.new(0, 1.49999678, 3.7252903e-006, 1, 0, 0, 0, 0.996194541, -0.0871557444, 0, 0.0871557444, 0.996194541) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  845. CFrame.new(1.87859392, 0.514964342, 0.34640047, -0.0871552005, -0.936116815, -0.340718567, 0.996194661, -0.0818997845, -0.029810369, -1.13248825e-006, -0.342018634, 0.939689815) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  846. CFrame.new(-1.68897307, 0.493994951, 0.408263475, 2.7980894e-008, 0.906309366, 0.422614932, -0.999999881, 6.40749931e-007, -1.28149986e-006, -1.43051147e-006, -0.422614932, 0.906309187) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  847. CFrame.new(0.5, -1.59677243, -0.49357605, 1, 0, 0, 0, 0.984807909, -0.17364797, 0, 0.17364797, 0.984807909) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  848. CFrame.new(-0.5, -1.90224135, 0.424649239, 1, 0, 0, 0, 0.906307638, 0.422618598, 0, -0.422618598, 0.906307638) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  849. }
  850. frame[7]={
  851. CFrame.new(-0, 0, 0, 0.960631907, 0.00137611502, 0.277821034, -0.159289986, 0.822030306, 0.546711087, -0.227624968, -0.569442153, 0.789887726) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  852. CFrame.new(-0.0181836374, 1.50775862, -0.0594066978, 0.999913454, -0.0105673671, -0.00784052908, 0.0118241087, 0.983038306, 0.183019012, 0.00577357411, -0.183095813, 0.983078241) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  853. CFrame.new(1.5073173, 1.31327307, -0.909579456, 0.94229573, -0.200924531, 0.267783791, 0.109451406, -0.571028471, -0.813601255, 0.316384584, 0.795962393, -0.516086161) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  854. CFrame.new(-1.57927585, 0.317291111, 0.397556216, 0.809802711, 0.208654553, 0.548345804, -0.517000973, 0.695623755, 0.498816311, -0.277362049, -0.687437952, 0.671192646) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  855. CFrame.new(0.655821919, -1.91117561, 0.471306443, 0.991203368, 0.0697749257, 0.112460986, -0.110218167, 0.905595839, 0.409570932, -0.0732664168, -0.418363273, 0.905320168) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  856. CFrame.new(-0.524112225, -1.89465261, -0.507151604, 0.994412482, 0.0338317044, -0.100033343, -0.0809665471, 0.852411568, -0.516580105, 0.0677920207, 0.521791637, 0.850385308) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  857. }
  858. return frame[frameN]
  859. end
  860.  
  861. AnimTab["C"]=function(frameN)
  862. local frame={}
  863. frame[1]={
  864. CFrame.new(2.84053385e-007, -0.699999809, -2.38418579e-007, 0.965778768, -0.258819073, -0.0168577731, 0.232835919, 0.836516201, 0.496012032, -0.114275634, -0.482962906, 0.868152142) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  865. CFrame.new(-5.63820706e-008, 1.49240422, 0.0868239999, 1, -4.84287739e-008, -8.94069672e-008, -4.47034836e-008, 0.98480767, -0.173648149, -2.98023224e-008, 0.173648193, 0.984807789) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  866. CFrame.new(1.74633741, 0.23793821, 0.0817345008, 0.855079293, -0.517596483, -0.0305508971, 0.513783395, 0.837906241, 0.18422699, -0.0697565079, -0.173225164, 0.982408822) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  867. CFrame.new(-1.49061811, 0.166142434, -1.07410741, -0.0469467044, 0.428182781, -0.9024719, -0.761570275, 0.569285035, 0.309717506, 0.64637953, 0.701836109, 0.299365371) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  868. CFrame.new(0.463051915, -0.780309081, -0.937637031, 0.941776395, 0.166060507, -0.29237175, -0.294348687, 0.827483535, -0.478152335, 0.162530512, 0.536371887, 0.828184247) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  869. CFrame.new(-0.799590945, -1.51444077, -0.389154136, 0.970662296, 0.0849219561, 0.224951029, -0.22485368, 0.652014375, 0.724098086, -0.0851795673, -0.75343585, 0.651980817) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  870. }
  871. return frame[frameN]
  872. end
  873.  
  874. AnimTab["Z"]=function(frameN)
  875. local frame={}
  876. frame[1]={
  877. CFrame.new(-0, -0, 0, 0.939692557, 0, 0.342020363, 0, 1, 0, -0.342020363, 0, 0.939692557) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  878. CFrame.new(7.67409801e-007, 1.49999976, -2.84612179e-006, 0.965925753, -0.0449434593, -0.254887015, 0, 0.98480773, -0.173648164, 0.258819044, 0.167731255, 0.951251149) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  879. CFrame.new(1.45801651, 1.30391252, -0.184753254, 0.908105314, -0.402072936, 0.116977036, -0.316420078, -0.841866553, -0.43720898, 0.274269402, 0.360022634, -0.891720653) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  880. CFrame.new(-1.49999797, -1.36718154e-006, -4.20212746e-006, 0.907673359, 0.258819044, -0.330366075, -0.243210346, 0.965925813, 0.0885213241, 0.342020154, 0, 0.939692616) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  881. CFrame.new(0.552665412, -2.01035452, 0.0304116532, 0.962249815, -0.0871557146, -0.257833838, 0.0841859728, 0.996194422, -0.022557551, 0.258818924, -5.58793545e-009, 0.965926111) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  882. CFrame.new(-0.49999544, -2, -1.74716115e-006, 0.99619472, 0, 0.0871555209, 0, 1, 0, -0.0871555209, 0, 0.99619472) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  883. }
  884. return frame[frameN]
  885. end
  886.  
  887. AnimTab["X"]=function(frameN)
  888. local frame={}
  889. frame[1]={
  890. CFrame.new(0, -0, 0, -4.37113883e-008, 0, 1, 0, 1, 0, -1, 0, -4.37113883e-008) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  891. CFrame.new(0, 1.5, 0, 1.19248824e-008, 0, -1, 0, 1, 0, 1, 0, 1.19248824e-008) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  892. CFrame.new(1.875, 0.443000317, 2.5331974e-007, -3.09086197e-008, -1, 3.09086197e-008, 0.707106769, -4.37113883e-008, -0.707106769, 0.707106769, 0, 0.707106769) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  893. CFrame.new(-1.30599999, 0.0260016322, -4.529953e-006, 0.694272041, 0.422618032, 0.58256346, -0.323744178, 0.906307817, -0.271653652, -0.642787516, 1.08828191e-008, 0.766044438) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  894. CFrame.new(0.677001357, -1.99999976, 0, 0.98480773, -0.173648179, 0, 0.173648179, 0.98480773, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  895. CFrame.new(-0.500001073, -2, 7.00354576e-007, 0.866025329, 0, 0.500000179, 0, 1, 0, -0.500000179, 0, 0.866025329) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  896. }
  897. return frame[frameN]
  898. end
  899. lastcframe={RootJoint.C0,Neck.C0,RW.C0,LW.C0,RH.C0,LH.C0}
  900. function PlayAnimationFromTable(tabl, speed, bool)
  901. RootJoint.C0 = clerp(RootJoint.C0, tabl[1], speed)
  902. Neck.C0 = clerp(Neck.C0, tabl[2], speed)
  903. RW.C0 = clerp(RW.C0, tabl[3], speed)
  904. LW.C0 = clerp(LW.C0, tabl[4], speed)
  905. RH.C0 = clerp(RH.C0, tabl[5], speed)
  906. LH.C0 = clerp(LH.C0, tabl[6], speed)
  907. lastcframe={RootJoint.C0,Neck.C0,RW.C0,LW.C0,RH.C0,LH.C0}
  908. if bool == true then
  909. if resetc1 == false then
  910. resetc1 = true
  911. RootJoint.C1 = RootJoint.C1
  912. Torso.Neck.C1 = Torso.Neck.C1
  913. RW.C1 = rarmc1
  914. LW.C1 = larmc1
  915. RH.C1 = rlegc1
  916. LH.C1 = llegc1
  917. end
  918. end
  919.  
  920. end
  921.  
  922. CamShake=function(Part,Distan,Power,Times)
  923. local de=Part.Position
  924. for i,v in pairs(workspace:children()) do
  925. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  926. for _,c in pairs(v:children()) do
  927. if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then
  928. local Noob=v.Humanoid
  929. if Noob~=nil then
  930. if Noob:FindFirstChild("CamShake")==nil then-- and Noob == Character then
  931. --[[local ss=script.CamShake:clone()
  932. ss.Parent=Noob
  933. ss.Power.Value=Power
  934. ss.Times.Value=Times
  935. ss.Disabled=false]]
  936. CameraShake(Times, Power)
  937. end
  938. end
  939. end
  940. end
  941. end
  942. end
  943. end
  944.  
  945. local RbxUtility = LoadLibrary("RbxUtility")
  946. local Create = RbxUtility.Create
  947.  
  948. function RemoveOutlines(part)
  949. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  950. end
  951.  
  952. function rayCast(Position, Direction, Range, Ignore)
  953. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  954. end
  955. function rayCastWithIngore(Position, Direction, Range, Ignore)
  956. return game:service("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  957. end
  958.  
  959. detect_state = function()
  960. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  961. velocity = RootPart.Velocity.y
  962. sine = sine + change
  963. local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
  964. if equipped == true then
  965. if RootPart.Velocity.y > 1 and hit == nil then
  966. Anim = "Jump"
  967. elseif RootPart.Velocity.y < -1 and hit == nil then
  968. Anim = "Fall"
  969. elseif Torsovelocity < 1 and hit ~= nil then
  970. Anim = "Idle"
  971. elseif Torsovelocity > 2 and hit ~= nil then
  972. Anim = "Walk"
  973. end
  974. end
  975. end
  976.  
  977. function Lightning(Part0,Part1,Times,Offset,Color,Thickness,Trans) -- Lightning module
  978. local magz = (Part0 - Part1).magnitude
  979. local curpos = Part0
  980. local trz = {-Offset,Offset}
  981. for i=1,Times do
  982. local li =Par(EffectModel,"Lightning",Color,Vector3.new(Thickness,Thickness,magz/Times),"Neon")
  983. li.Transparency = Trans
  984. li.BrickColor = BrickColor.new(Color)
  985. ora=Instance.new("BlockMesh",li)
  986. ora.Scale=Vector3.new(Thickness,Thickness,1)
  987. local Offzet = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)])
  988. local trolpos = CFrame.new(curpos,Part1)*CFrame.new(0,0,magz/Times).p+Offzet
  989. if Times == i then
  990. local magz2 = (curpos - Part1).magnitude
  991. li.Size = Vector3.new(Thickness,Thickness,magz2)
  992. li.CFrame = CFrame.new(curpos,Part1)*CFrame.new(0,0,-magz2/2)
  993. else
  994. li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/Times/2)
  995. end
  996. curpos = li.CFrame*CFrame.new(0,0,magz/Times/2).p
  997. game.Debris:AddItem(li,.1)
  998. end
  999. end
  1000. function Lightning2(Part0,Part1,Times,Offset,Color,Thickness,Trans,V) -- Lightning module
  1001. local magz = (Part0 - Part1).magnitude
  1002. local curpos = Part0
  1003. local trz = {-Offset,Offset}
  1004. for i=1,Times do
  1005. local li =Par(EffectModel,"Lightning",Color,Vector3.new(Thickness,Thickness,magz/Times),"Neon")
  1006. li.Transparency = Trans
  1007. ora=Instance.new("BlockMesh",li)
  1008. ora.Scale=Vector3.new(Thickness,Thickness,1)
  1009. local Offzet = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)])
  1010. local trolpos = CFrame.new(curpos,Part1)*CFrame.new(0,0,magz/Times).p+Offzet
  1011. if Times == i then
  1012. local magz2 = (curpos - Part1).magnitude
  1013. li.Size = Vector3.new(Thickness,Thickness,magz2)
  1014. li.CFrame = CFrame.new(curpos,Part1)*CFrame.new(0,0,-magz2/2)
  1015. else
  1016. li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/Times/2)
  1017. end
  1018. curpos = li.CFrame*CFrame.new(0,0,magz/Times/2).p
  1019. coroutine.resume(coroutine.create(function()
  1020. for i=1,V do
  1021. swait()
  1022. li.Transparency=i/V
  1023. end
  1024. li:Destroy()
  1025. end))
  1026. end
  1027. end
  1028. function Lightning3(Part0,Part1,Times,Offset,Color,Thickness,Trans,last) -- Lightning module
  1029. local magz = (Part0 - Part1).magnitude
  1030. local curpos = Part0
  1031. local trz = {-Offset,Offset}
  1032. for i=1,Times do
  1033. local li =Par(EffectModel,"Lightning",Color,Vector3.new(Thickness,Thickness,magz/Times),"Neon")
  1034. li.Transparency = Trans
  1035. local Offzet = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)])
  1036. local trolpos = CFrame.new(curpos,Part1)*CFrame.new(0,0,magz/Times).p+Offzet
  1037. if Times == i then
  1038. local magz2 = (curpos - Part1).magnitude
  1039. li.Size = Vector3.new(Thickness,Thickness,magz2)
  1040. li.CFrame = CFrame.new(curpos,Part1)*CFrame.new(0,0,-magz2/2)
  1041. else
  1042. li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/Times/2)
  1043. end
  1044. curpos = li.CFrame*CFrame.new(0,0,magz/Times/2).p
  1045. game.Debris:AddItem(li,5)
  1046. coroutine.resume(coroutine.create(function()
  1047. for i=1,20 do
  1048. swait()
  1049. li.Transparency=li.Transparency+last
  1050. end
  1051. li:Destroy()
  1052. end))
  1053. end
  1054. end
  1055.  
  1056. GET_THE_NEAREST_FAGGOT = function(pos)
  1057. local list = (game.Workspace:children())
  1058. local torso = nil
  1059. local DISTANCE_u_BITCH = 1000
  1060. local temp, human, temp2 = nil, nil, nil
  1061. for x = 1, #list do
  1062. temp2 = list[x]
  1063. if temp2.className == "Model" and temp2.Name ~= Character.Name then
  1064. temp = temp2:findFirstChild("Torso")
  1065. human = temp2:findFirstChild("Humanoid")
  1066. if temp ~= nil and human ~= nil and human.Health > 0 and (temp.Position - pos).magnitude < DISTANCE_u_BITCH then
  1067. local FOUND_YOU = true
  1068. if Player.Neutral == false and game.Players:GetPlayerFromCharacter(temp.Parent) ~= nil then
  1069. FOUND_YOU = false
  1070. end
  1071. if FOUND_YOU == true then
  1072. torso = temp
  1073. DISTANCE_u_BITCH = (temp.Position - pos).magnitude
  1074. end
  1075. end
  1076. end
  1077. end
  1078. return torso, DISTANCE_u_BITCH
  1079. end
  1080. Damagefunc=function(hit,Damage, knockback,tiem, Type, Delay,stun,removebodypos)
  1081. local Hited=false
  1082. if hit.Parent == nil then
  1083. return
  1084. end
  1085.  
  1086. h = hit.Parent:FindFirstChild("Humanoid")
  1087. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  1088. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  1089. return
  1090. end
  1091. if h.Health<=0 then return end
  1092. h = hit.Parent:FindFirstChild("Humanoid")
  1093. c = Instance.new("ObjectValue")
  1094. c.Name = "creator"
  1095. c.Value = game:service("Players").LocalPlayer
  1096. c.Parent = h
  1097. game:GetService("Debris"):AddItem(c, 0.5)
  1098. if Type=="H2" then
  1099. local eff = Par2(Vector3.new(1, 1, 1), hit.CFrame * CFrame.new(math.random(-15, 15) / 10, math.random(-20, 15) / 10, math.random(-5, 5) / 10) * CFrame.Angles(math.random(-15, 15), math.random(-15, 15), math.random(-15, 15)), "Really black", "SpecialMesh", Vector3.new(0.5, 0.5, 0.5))
  1100. eff.Parent = EffectModel
  1101. eff.Name = "BloodEffect"
  1102. eff.Mesh.MeshType = "Sphere"
  1103. eff.Anchored = true
  1104. eff.CanCollide = false
  1105. game:GetService("Debris"):AddItem(eff, 5)
  1106. coroutine.resume(coroutine.create(function(p, A)
  1107. local R = Vector3.new(math.random(-5, 5), math.random(7, 9), math.random(-5, 5)) / 50
  1108. for i = 1, 6 do
  1109. p.Mesh.Scale = p.Mesh.Scale + Vector3.new(0.85, 0.85, 0.85)
  1110. p.Transparency =1
  1111. p.CFrame = p.CFrame * A
  1112. swait()
  1113. end
  1114. p:Remove()
  1115. end), eff, CFrame.Angles(math.rad(math.random(-4, 4) * 4), math.rad(math.random(-4, 4) * 3), math.rad(math.random(-4, 4) * 2)), 0)
  1116. local eb = BillboardGui("http://www.roblox.com/asset/?id=233069772", eff.Position, 0)
  1117. eb.Parent = EffectModel
  1118. eb.BillboardGui.ImageLabel.ImageColor3=Color3.new(255, 0, 0)
  1119. eb.BillboardGui.ImageLabel.Rotation = math.random(-180, 180)
  1120. eb.BillboardGui.Size = UDim2.new(2, 0, 2, 0)
  1121. game:GetService("Debris"):AddItem(eb, 3)
  1122. coroutine.resume(coroutine.create(function(p)
  1123. local r = math.random(-3, 3) * 9
  1124. if r > -12 and r < 1 then
  1125. r = -12
  1126. else
  1127. if r < 12 and r > -1 then
  1128. r = 12
  1129. end
  1130. end
  1131. for i = 1, 6 do
  1132. p.BillboardGui.ImageLabel.ImageTransparency = 0.25 + i / 6
  1133. p.BillboardGui.Size = UDim2.new(2 + i / 1.75, 0, 2 + i / 1.75, 0)
  1134. p.BillboardGui.ImageLabel.Rotation = p.BillboardGui.ImageLabel.Rotation + r
  1135. swait()
  1136. end
  1137. p:Remove()
  1138. end), eb)
  1139.  
  1140. local hitnum = math.random(1, 8)
  1141. if hitnum == 1 then
  1142. so("153092274", hit, 1, 1)
  1143. end
  1144. if hitnum == 2 then
  1145. so("199149186", hit, 2, .5)
  1146. end
  1147. if hitnum == 3 then
  1148. so("153092296", hit, 1, .3)
  1149. end
  1150. if hitnum == 4 then
  1151. so("199149235", hit, 1, .5)
  1152. end
  1153. if hitnum == 5 then
  1154. so("199149269", hit, 1, .4)
  1155. end
  1156. if hitnum == 6 then
  1157. so("199149297", hit, 1, .5)
  1158. end
  1159. if hitnum == 7 then
  1160. so("201858024", hit, 1, .6)
  1161. end
  1162. if hitnum == 8 then
  1163. so("201858024", hit, 1, .5)
  1164. end
  1165. end
  1166.  
  1167. if Type=="H1" then
  1168. local hitnum=math.random(2,4)
  1169. p=Par(EffectModel,"EffectHi","Really red",Vector3.new(1,1,1),"SmoothPlastic")
  1170. p.CFrame=hit.Parent.Torso.CFrame
  1171. m=Instance.new("SpecialMesh")
  1172. m.MeshType="Sphere"
  1173. m.Parent=p
  1174. game:GetService("Debris"):AddItem(p,5)
  1175. coroutine.resume(coroutine.create(function(p)
  1176. for i=1, 8 do
  1177. p.Transparency=i/8
  1178. p.Mesh.Scale=p.Mesh.Scale+Vector3.new(.5,.5,.5)
  1179. swait(.5)
  1180. end
  1181. p:Remove() end),p)
  1182.  
  1183. if hitnum==1 then
  1184. so("153092274", hit, 1, 1)
  1185. else
  1186. if hitnum == 2 then
  1187. so("153092217", hit, 1, 1)
  1188. else
  1189. if hitnum == 3 then
  1190. so("153092227", hit, 1, 1)
  1191. else
  1192. if hitnum == 4 then
  1193. so("153092238", hit, 1, 1)
  1194. end
  1195. end
  1196. end end
  1197. end
  1198.  
  1199. Noob=hit.Parent
  1200. HTime=time()+1.8
  1201. LastDamage=LastDamage + Damage*1
  1202. ComboHits=ComboHits+1
  1203. Comboing=true
  1204. Hited=true
  1205. local ded=false
  1206. Comboing=true
  1207.  
  1208. h:TakeDamage(Damage)
  1209. local Part=hit
  1210. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 3.5, 0), -Damage, 1.5, BrickColor.new("New Yeller").Color)
  1211. if stun==true then
  1212. local t=hit.Parent.Torso
  1213. if hit.Parent.Torso:FindFirstChild("EBOLA")==nil then
  1214. local r=Instance.new("BodyGyro")
  1215. r.P=1e7
  1216. r.D=1e3
  1217. r.maxTorque=Vector3.new(50000,50000,50000)*50000000000
  1218. r.cframe=r.CFrame*CFrame.fromEulerAnglesXYZ(math.rad(90),0,0)
  1219. r.Parent=t
  1220. game:GetService("Debris"):AddItem(r,1)
  1221. r.Name="EBOLA"
  1222. local fff=Instance.new("BodyForce")
  1223. fff.force=Vector3.new(0,1200,0)
  1224. fff.Parent=t
  1225. game:GetService("Debris"):AddItem(fff,1)
  1226. local hum = hit.Parent.Humanoid
  1227. local bodvol = Instance.new("BodyVelocity")
  1228. bodvol.velocity = Vector3.new(0,0,0)+RootPart.CFrame.lookVector*4
  1229. bodvol.Name="EBOLA"
  1230. bodvol.P = 4000
  1231. bodvol.maxForce=Vector3.new(50000000,5000000,50000000)*10000
  1232. bodvol.Parent = hit
  1233. game.Debris:AddItem(bodvol,.5)
  1234.  
  1235. end
  1236.  
  1237. end
  1238. if stun~=true then
  1239. if removebodypos==true then
  1240. for _,v in pairs(hit:children()) do
  1241. if v.ClassName=="BodyPosition" or v.ClassName=="BodyVelocity" then
  1242. v.Parent=nil
  1243. end
  1244. end
  1245. end
  1246. local hum = hit.Parent.Humanoid
  1247. if hit:FindFirstChild("EBOLA")~=nil then hit:FindFirstChild("EBOLA").Parent=nil end
  1248. local bodvol = Instance.new("BodyVelocity")
  1249. bodvol.Name="EBOLA"
  1250. bodvol.velocity = knockback
  1251. bodvol.P = 4000
  1252. bodvol.maxForce=Vector3.new(50000000,5000000,50000000)*10000
  1253. bodvol.Parent = hit
  1254. game.Debris:AddItem(bodvol,tiem)
  1255.  
  1256. end
  1257.  
  1258. local debounce = Instance.new("BoolValue")
  1259. debounce.Name = "DebounceHit"
  1260. debounce.Parent = hit.Parent
  1261. debounce.Value = true
  1262. game:GetService("Debris"):AddItem(debounce, Delay)
  1263. c = Instance.new("ObjectValue")
  1264. c.Name = "creator"
  1265. c.Value = Player
  1266. c.Parent = h
  1267. game:GetService("Debris"):AddItem(c, 0.5)
  1268. local CRIT = false
  1269. end
  1270. end
  1271. function MagnitudeDamage(Part, magni,Damage, knockback,tiem, Type, Delay ,stun,removebodypos)
  1272. for _, c in pairs(workspace:children()) do
  1273. local hum = c:findFirstChild("Humanoid")
  1274. if hum ~= nil then
  1275. local head = c:findFirstChild("Torso")
  1276. if head ~= nil then
  1277. local targ = head.Position - Part.Position
  1278. local mag = targ.magnitude
  1279. if mag <= magni and c.Name ~= Player.Name then
  1280. Damagefunc(head,Damage, knockback,tiem, Type, Delay,stun,removebodypos)
  1281. end
  1282. end
  1283. end
  1284. end
  1285. end
  1286. Cooldown=function(name,duration)
  1287. local t=Instance.new("BoolValue",char)
  1288. t.Name=name
  1289. coroutine.resume(coroutine.create(function()
  1290. swait((duration*30)-1)
  1291. game.Debris:AddItem(t,.1)
  1292. end))
  1293. end
  1294.  
  1295. Koy=""
  1296. Dmoves=nil
  1297.  
  1298. Stop = function()
  1299. canjump = false
  1300. end
  1301. Resume= function()
  1302. canjump = true
  1303. end
  1304.  
  1305. Player.Character.Humanoid.Changed:connect(function()
  1306. if canjump == false then
  1307. Player.Character.Humanoid.Jump = false
  1308. end
  1309. end)
  1310.  
  1311. doingmoves=function(value)
  1312. if value==true then
  1313. LastMove=""
  1314. Stop()
  1315. input=""
  1316. Koy=""
  1317. CanCancel=false
  1318. Dmoves=true
  1319. DIR=RootPart.CFrame.lookVector
  1320. end
  1321.  
  1322. if value==false then
  1323. Dmoves=false
  1324. LastMove=""
  1325. Koy=""
  1326. if Dmoves==false then
  1327. CanCancel=true
  1328. char.Humanoid.WalkSpeed=DesiredSpeed
  1329. Resume()
  1330. end
  1331. Dmoves=false
  1332. end
  1333.  
  1334. end
  1335.  
  1336. Dmoves=false
  1337.  
  1338. input=""
  1339. age=0
  1340. cam_ing=false
  1341. local Input_MaxTime=.8
  1342. local Input_Time=Input_MaxTime
  1343. local Input_Addition=.2
  1344. local Input_Lose=.1
  1345. local Max_Input=20
  1346. local Running_Timer=false
  1347.  
  1348. coroutine.resume(coroutine.create(function()
  1349. while true do
  1350. swait()
  1351. if Input_Time>0 then
  1352. Input_Time=Input_Time-Input_Lose
  1353. elseif Input_Time < 0 then
  1354. Input_Time=0
  1355. input=""
  1356. elseif Input_Time == 0 then
  1357. input=""
  1358. elseif Input_Time > Input_MaxTime then
  1359. Input_Time = Input_MaxTime
  1360. end
  1361. end
  1362. end))
  1363.  
  1364. getDirection=function()
  1365. local par=RootPart
  1366. Cam=workspace.CurrentCamera
  1367. return {CFrame.new(par.Position,Vector3.new(Cam.CoordinateFrame.x,par.Position.y,Cam.CoordinateFrame.z))*CFrame.fromEulerAnglesXYZ(0,math.pi,0),Vector3.new(Cam.CoordinateFrame.p.x,par.CFrame.p.y,Cam.CoordinateFrame.p.z)}
  1368. end
  1369. getrek=function()
  1370. Cam=workspace.CurrentCamera
  1371. Cam=workspace.CurrentCamera
  1372. return {CFrame.new(RootPart.Position,Vector3.new(Noob.Torso.Position.x,RootPart.Position.y,Noob.Torso.Position.z)),Vector3.new(Noob.Torso.CFrame.p.x,Noob.Torso.CFrame.p.y,Noob.Torso.CFrame.p.z)}
  1373. end
  1374. FaceMouse=function()
  1375. Cam=workspace.CurrentCamera
  1376. return {CFrame.new(char.Torso.Position,Vector3.new(mouse.Hit.p.x,char.Torso.Position.y,mouse.Hit.p.z)),Vector3.new(mouse.Hit.p.x,mouse.Hit.p.y,mouse.Hit.p.z)}
  1377. end
  1378. FaceForward=function()
  1379. RootPart.CFrame=getDirection()[1]
  1380. return RootPart.CFrame
  1381. end
  1382.  
  1383.  
  1384. ph0segui = function(Char, Dealt,color)
  1385. local holder = Instance.new("Model",Char)
  1386. holder.Name = "Effect"
  1387. local c = Par(holder,"Head","Really red",Vector3.new(1, 0.4, 1),"SmoothPlastic")
  1388. c.Transparency = 1
  1389. local b = Instance.new("BillboardGui", c)
  1390. b.Size = UDim2.new(5, 0, 5, 0)
  1391. b.AlwaysOnTop = true
  1392. local damgui = it("TextLabel")
  1393. damgui.Parent = b
  1394. damgui.Text = Dealt
  1395. damgui.BackgroundTransparency = 1
  1396. damgui.BackgroundColor3 = Color3.new(0, 0, 0)
  1397. damgui.SizeConstraint = "RelativeXY"
  1398. damgui.TextXAlignment = "Center"
  1399. damgui.TextYAlignment = "Center"
  1400. damgui.Position = UDim2.new(0, 0, 0, 0)
  1401. damgui.Size = UDim2.new(1, 0, 1, 0)
  1402. damgui.Font = "ArialBold"
  1403. damgui.FontSize = "Size14"
  1404. damgui.TextWrapped = false
  1405. damgui.TextStrokeTransparency = 0
  1406. damgui.TextColor3 = BrickColor.new(color).Color
  1407. damgui.TextScaled = true
  1408. local ms = Instance.new("CylinderMesh")
  1409. ms.Scale = Vector3.new(0.8, 0.8, 0.8)
  1410. ms.Parent = c
  1411. c.Reflectance = 0
  1412. Instance.new("BodyGyro").Parent = c
  1413. c.Parent = holder
  1414. if Char:findFirstChild("Head") ~= nil then
  1415. c.CFrame = cf(Char.Head.CFrame.p + Vector3.new(math.random(-100, 100) / 100, 3, math.random(-100, 100) / 100))
  1416. else
  1417. if Char.Parent:findFirstChild("Head") ~= nil then
  1418. c.CFrame = cf(Char.Parent.Head.CFrame.p + Vector3.new(math.random(-100, 100) / 100, 3, math.random(-100, 100) / 100))
  1419. end
  1420. end
  1421. local f = Instance.new("BodyPosition")
  1422. f.P = 2000
  1423. f.D = 100
  1424. f.maxForce = Vector3.new(545000, 545000, 545000)
  1425. f.position = c.Position + Vector3.new(0, 1, 0)
  1426. f.Parent = c
  1427. c.CanCollide = false
  1428. c.CanCollide = false
  1429. coroutine.resume(coroutine.create(function()
  1430. swait(20)
  1431. for i=1,15 do
  1432. swait()
  1433. damgui.TextTransparency=i/15
  1434. damgui.TextStrokeTransparency=i/15
  1435. f.position=f.position+Vector3.new(0,.3,0)
  1436. end
  1437. end))
  1438. game:GetService("Debris"):AddItem(m, 1)
  1439. end
  1440. mouse=nil
  1441. ShowDamage = function(Pos, Text, Time, Color)
  1442.  
  1443. local Rate = 0.033333333333333
  1444. if not Pos then
  1445. local Pos = Vector3.new(0, 0, 0)
  1446. end
  1447. local Text = Text or ""
  1448. local Time = Time or 2
  1449. if not Color then
  1450. local Color = Color3.new(1, 0, 1)
  1451. end
  1452. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  1453. EffectPart.Anchored = true
  1454. local BillboardGui = Create("BillboardGui")({Size = UDim2.new(3, 0, 3, 0), Adornee = EffectPart, Parent = EffectPart})
  1455. local TextLabel = Create("TextLabel")({BackgroundTransparency = 1, Size = UDim2.new(1, 0, 1, 0), Text = Text, TextColor3 = Color, TextScaled = true, Font = Enum.Font.ArialBold, Parent = BillboardGui})
  1456. game.Debris:AddItem(EffectPart, Time + 0.1)
  1457. EffectPart.Parent = game:GetService("Workspace")
  1458. delay(0, function()
  1459.  
  1460. local Frames = Time / Rate
  1461. for Frame = 1, Frames do
  1462. wait(Rate)
  1463. local Percent = Frame / Frames
  1464. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  1465. TextLabel.TextTransparency = Percent
  1466. end
  1467. if EffectPart and EffectPart.Parent then
  1468. EffectPart:Destroy()
  1469. end
  1470. end
  1471. )
  1472. end
  1473. equip=function()
  1474. repeat wait() until Dmoves==false
  1475. input=""
  1476. Koy=""
  1477. ORH=Torso["Right Hip"]
  1478. OLW=Torso["Left Shoulder"]
  1479. OLH=Torso["Left Hip"]
  1480. ORW=Torso["Right Shoulder"]
  1481. ORH.Parent=nil
  1482. OLW.Parent=nil
  1483. OLH.Parent=nil
  1484. ORW.Parent=nil
  1485. Animate.Parent=nil
  1486. Animator.Parent=nil
  1487. RW.Parent=Torso
  1488. RW.Part0=Torso
  1489. RW.Part1=RightArm
  1490. RW.C0=CFrame.new(1.5, 0, 0)
  1491. RW.C1=CFrame.new(0, 0, 0)
  1492. LW.Parent=Torso
  1493. LW.Part0=Torso
  1494. LW.Part1=LeftArm
  1495. LW.C0=CFrame.new(-1.5, 0, 0)
  1496. LW.C1=CFrame.new(0, 0, 0)
  1497. RH.Parent=Torso
  1498. RH.Part0=Torso
  1499. RH.Part1=RightLeg
  1500. RH.C0=CFrame.new(.5, -2, 0)
  1501. RH.C1=CFrame.new(0, 0, 0)
  1502. LH.Parent=Torso
  1503. LH.Part0=Torso
  1504. LH.Part1=LeftLeg
  1505. LH.C0=CFrame.new(-.5, -2, 0)
  1506. LH.C1=CFrame.new(0, 0, 0)
  1507. RootJoint.C1 = CFrame.new(0, 0, 0)
  1508. RootJoint.C0 = CFrame.new(0, 0, 0)
  1509. Torso.Neck.C1 = CFrame.new(0, 0, 0)
  1510. Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
  1511. equipped=true
  1512. doingmoves(true)
  1513. --hi
  1514. doingmoves(false)
  1515. end
  1516.  
  1517.  
  1518. de_equip=function()
  1519. if equipped==false then return end
  1520. repeat wait() until Dmoves==false
  1521. doingmoves(true)
  1522.  
  1523. --bye
  1524. doingmoves(false)
  1525. input=""
  1526. RW.Parent=nil
  1527. LW.Parent=nil
  1528. RH.Parent=nil
  1529. LH.Parent=nil
  1530.  
  1531. ORW.Parent=Torso
  1532. ORH.Parent=Torso
  1533. OLW.Parent=Torso
  1534. OLH.Parent=Torso
  1535. Torso.Neck.C1 = CFrame.new(0, 0, 0)
  1536. Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
  1537. RootJoint.C0=clerp(RootJoint.C0,RootCF,1)
  1538. Animate.Parent=char
  1539. Animator.Parent=Humanoid
  1540. RootJoint.C1=r1m
  1541. RootJoint.C0=r0m
  1542. Neck.C1=n1m
  1543. Neck.C0=n0m
  1544. Humanoid.WalkSpeed=16
  1545. r1m=RootJoint.C1
  1546. r0m=RootJoint.C0
  1547. n1m=Neck.C1
  1548. n0m=Neck.C0
  1549. equipped=false
  1550. end
  1551. ------------------[[Attacks]]--------------------
  1552. MovesTable={}
  1553. table.insert(MovesTable,{["Key"] = "c" ,["Name"]="", ["CanCancel"] = false ,
  1554. ["Conditions"] = function()
  1555. local Viable = false
  1556. local Move = nil
  1557. for _,p in pairs(MovesTable) do
  1558. if p["Key"] == "c" then
  1559. Move = p
  1560. break
  1561. end
  1562. end
  1563.  
  1564. if CanCancel==true and cooldown3 >= co3 then
  1565. cooldown3=0
  1566. Viable=true
  1567. end
  1568.  
  1569. return Viable
  1570. end,
  1571. ["function"] = function()
  1572. doingmoves(true)
  1573. for i=1,10 do
  1574. swait()
  1575. PlayAnimationFromTable(AnimTab["C"](1),.3,false)
  1576. end
  1577. Humanoid.WalkSpeed=0
  1578. local lightning=true
  1579. p=Par(EffectModel,"Effect","Really red",vt(1,1,1),"SmoothPlastic")
  1580. p.CFrame=RootPart.CFrame*CFrame.new(0,17,0)
  1581. p.Transparency=1
  1582. local from=p
  1583. local bill=Instance.new("BillboardGui",p)
  1584. bill.Size=UDim2.new(15,0,15,0)
  1585. local ORGbill=bill
  1586. local billimg=Instance.new("ImageLabel",bill)
  1587. local ORGbillimg=billimg
  1588. billimg.BackgroundTransparency=1
  1589. billimg.Size=UDim2.new(1,0,1,0)
  1590. billimg.Image="rbxgameasset://Images/oyes"
  1591. billimg.ImageColor3=BrickColor.new("Deep orange").Color
  1592.  
  1593. for i=1,5 do
  1594. swait()
  1595. local orb1=Instance.new("Part",EffectModel)
  1596. orb1.Anchored=false
  1597. orb1.Transparency=1
  1598. orb1.CanCollide=false
  1599. orb1.Size=Vector3.new()
  1600. local orb2=Instance.new("Part",orb1)
  1601. orb2.Anchored=false
  1602. orb2.Transparency=1
  1603. orb2.CanCollide=false
  1604. orb2.BrickColor=BrickColor.new("New Yeller")
  1605. orb2.Material = "Neon"
  1606. orb2.Size=Vector3.new()
  1607. local OrbMesh = Instance.new("SpecialMesh",orb2)
  1608. OrbMesh.MeshType="Sphere"
  1609. OrbMesh.Scale=Vector3.new(1,1,1)
  1610. local orbW = weld(orb1, orb1, RootPart,CFrame.new())
  1611. local orbW2 = weld(orb2, orb2, orb1, cf(0, 0, 0))
  1612. table.insert(Orbs, {orb1, "Orb", orb2, orbW, orbW2, 400, 0, CFrame.new(0, math.random(10,30), 0), 0, CFrame.Angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 0, math.random(2, 5) / 100, math.random(10, 15) / 100, math.random(2, 5) / 100, 0})
  1613. local pe=script.pe:clone()
  1614. pe.Parent=orb2
  1615. pe.Enabled=true
  1616. coroutine.resume(coroutine.create(function()
  1617. repeat wait() until lightning==false
  1618. pe.Enabled=false
  1619. game.Debris:AddItem(orb1,1)
  1620. end))
  1621. end
  1622. coroutine.resume(coroutine.create(function()
  1623. local num=0
  1624. while lightning do
  1625. num=num+1
  1626. if num>=3 then
  1627. num=0
  1628. so("206083232",RootPart,1,.8)
  1629. so("206083252",RootPart,1,2)
  1630. end
  1631. swait()
  1632. local ecksdee=27
  1633. billimg.Rotation=billimg.Rotation+5
  1634. Lightning2(from.Position,Torso.Position+Vector3.new(math.random(-ecksdee,ecksdee),0,math.random(-ecksdee,ecksdee)),6,2,"Really red",.5,.5,5)
  1635. end
  1636. for i=1,10 do
  1637. swait()
  1638. bill.Size=bill.Size+UDim2.new(1,0,1,0)
  1639. billimg.ImageTransparency=i/10
  1640. end
  1641. from:Destroy()
  1642. end))
  1643. for i=1,25 do
  1644. swait(2)
  1645. MagnitudeDamage(RootPart,28,1,Vector3.new(0,1,0)+DIR*5,0.5,"H2",0,false,false)
  1646. CamShake(RootPart,27,.4,5)
  1647. local p=Par(EffectModel,"Effect","Really red",vt(1,1,1),"SmoothPlastic")
  1648. p.CFrame=CFrame.new(Character.Torso.Position-Vector3.new(0,1.5,0))*CFrame.Angles(0,math.random(-50,50),0)
  1649. game:GetService("Debris"):AddItem(p,8)
  1650. local m=Instance.new("SpecialMesh",p)
  1651. m.MeshId="http://www.roblox.com/asset/?id=20329976"
  1652. m.Scale=Vector3.new(2,2,2)
  1653. coroutine.resume(coroutine.create(function(p,s)
  1654. for i=1, 20 do
  1655. p.Transparency=.5+i/20
  1656. m.Scale=m.Scale + Vector3.new(3.5,-.1,3.5)
  1657. p.CFrame = p.CFrame * CFrame.Angles(0,math.rad(10 + i),0) - Vector3.new(0,.05,0)
  1658. swait()
  1659. end
  1660. p:Remove()
  1661. end),p)
  1662.  
  1663. local p=Par(EffectModel,"Effect","Really red",vt(1,1,1),"SmoothPlastic")
  1664. p.CFrame=CFrame.new(Character.Torso.Position-Vector3.new(0,1.5,0))*CFrame.Angles(0,math.random(-50,50),0)
  1665. game:GetService("Debris"):AddItem(p,8)
  1666. local m=Instance.new("SpecialMesh",p)
  1667. m.MeshId="http://www.roblox.com/asset/?id=737406442"
  1668. m.Scale=Vector3.new(.1,0,.1)
  1669. coroutine.resume(coroutine.create(function(p,s)
  1670. for i=1, 20 do
  1671. p.Transparency=.5+i/20
  1672. m.Scale=m.Scale + Vector3.new(.01,0,.01)
  1673. p.CFrame = p.CFrame * CFrame.Angles(0,math.rad(10 + i),0)
  1674. swait()
  1675. end
  1676. p:Remove()
  1677. end),p)
  1678.  
  1679. end
  1680. lightning=false
  1681. doingmoves(false)
  1682. end})
  1683.  
  1684. table.insert(MovesTable,{["Key"] = "z" ,["Name"]="", ["CanCancel"] = false ,
  1685. ["Conditions"] = function()
  1686. local Viable = false
  1687. local Move = nil
  1688. for _,p in pairs(MovesTable) do
  1689. if p["Key"] == "z" then
  1690. Move = p
  1691. break
  1692. end
  1693. end
  1694.  
  1695. if CanCancel==true and cooldown1 >= co1 then
  1696. cooldown1=0
  1697. Viable=true
  1698. end
  1699.  
  1700. return Viable
  1701. end,
  1702. ["function"] = function()
  1703. doingmoves(true)
  1704. for i=1,10 do
  1705. swait()
  1706. PlayAnimationFromTable(AnimTab["Z"](1),.3,false)
  1707. local blast2=Par(EffectModel,"Effect","Really red",vt(.5,.5,.5),"Neon")
  1708. blast2.CFrame=RightArm.CFrame*CFrame.new(0,-2,0)*CFrame.fromEulerAnglesXYZ(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  1709. local m=Instance.new("SpecialMesh",blast2)
  1710. m.Scale=Vector3.new(1.5,1.5,1.5)
  1711. m.MeshType="Brick"
  1712. coroutine.resume(coroutine.create(function(p)
  1713. for i=1, 15 do
  1714. blast2.Transparency=i/15
  1715. m.Scale=m.Scale+Vector3.new(.1,.1,.1)
  1716. swait()
  1717. end
  1718. blast2:Remove()
  1719. end),p)
  1720.  
  1721. end
  1722.  
  1723. for i=1,8 do
  1724. BreakEffect(BrickColor.new("White"),RightArm.CFrame*CFrame.new(0,-1.4,0),math.random(20,50)/100,math.random(1,5)*3,math.random(20,50)/100)
  1725. end
  1726.  
  1727. local sref=part(3,nil,0,1,BrickColor.new("Black"),"Reference",vt())
  1728. sref.Anchored=true
  1729. for i=1,math.random(2,4) do
  1730. local MouseLook=cf((RootPart.Position+mouse.Hit.p)/2,mouse.Hit.p)
  1731. local hit,pos=rayCast(RootPart.Position,MouseLook.lookVector,9999,Character)
  1732. local random=cf(math.random(-1000,1000)/100,0,math.random(-1000,1000)/100)
  1733. sref.CFrame=cf(pos)*random
  1734. local hit,pos=rayCast(sref.Position,(CFrame.new(sref.Position,sref.Position - Vector3.new(0,1,0))).lookVector,999,Character)
  1735.  
  1736. local blast2=Par(EffectModel,"Effect","White",vt(1,1,1),"Neon")
  1737. blast2.CFrame=sref.CFrame
  1738. local m=Instance.new("CylinderMesh",blast2)
  1739. m.Scale=Vector3.new(10,.003,10)
  1740. local bmeo=Par(EffectModel,"Effect","New yeller",vt(1,1,1),"Neon")
  1741. bmeo.CFrame=sref.CFrame
  1742. local m=Instance.new("CylinderMesh",bmeo)
  1743. m.Scale=Vector3.new(10,.003,10)
  1744. bmeo.Mesh.Scale=Vector3.new(0,.005,0)
  1745. bmeo.Size=bmeo.Size+Vector3.new(0,0.1,0)
  1746. bmeo.BrickColor=BrickColor.new("Deep orange")
  1747. bmeo.Transparency=0.5
  1748. local coo=sref.CFrame
  1749. coroutine.resume(coroutine.create(function(p)
  1750. for i=1, 50 do
  1751. local ee=10/50
  1752. bmeo.Mesh.Scale=bmeo.Mesh.Scale+Vector3.new(ee,0,ee)
  1753. swait()
  1754. end
  1755. for i=1, 2 do
  1756. p=Par(EffectModel,"Effect","White",vt(1,1,1),"SmoothPlastic")
  1757. p.CFrame=coo * CFrame.fromEulerAnglesXYZ(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  1758. m=Instance.new("SpecialMesh")
  1759. m.MeshId="http://www.roblox.com/asset/?id=3270017"
  1760. m.Scale=Vector3.new(10,10,0)
  1761. m.Parent=p
  1762. game:GetService("Debris"):AddItem(p,5)
  1763. coroutine.resume(coroutine.create(function(p,l)
  1764. for i=1, 20 do
  1765. p.Transparency=.5+i/20
  1766. p.Mesh.Scale=p.Mesh.Scale+Vector3.new(.5*3,.5*3,0)
  1767. swait()
  1768. end
  1769. p:Remove() end),p,3/3)
  1770. end
  1771.  
  1772. for i=1,8 do
  1773. BreakEffect(BrickColor.new("White"),coo*cf(math.random(-200,200)/100,math.random(-200,200)/100,math.random(-200,200)/100),math.random(20,50)/100,math.random(1,5)*3,math.random(20,50)/100)
  1774. end
  1775. for loel = 1,2 do
  1776. local pc2 = Par2(Vector3.new(1, 1, 1), coo * CFrame.Angles(math.random(-15, 15), math.random(-15, 15), math.random(-15, 15)), "New Yeller", "BlockMesh", Vector3.new(3,3,3))
  1777. pc2.Parent = EffectModel
  1778. pc2.Anchored = true
  1779. pc2.CanCollide = false
  1780. game:GetService("Debris"):AddItem(pc2, 5)
  1781. pc2.Material="Neon"
  1782. coroutine.resume(coroutine.create(function(p, V, x)
  1783. for i = 1, 15 do
  1784. p.Mesh.Scale = p.Mesh.Scale + Vector3.new(14 + loel * 18, 14 + loel * 18, 14 + loel * 18) / 45
  1785. p.Transparency = 0.25 + i / 15
  1786. p.CFrame = p.CFrame * V
  1787. swait()
  1788. end
  1789. p:Remove()
  1790. end), pc2, CFrame.Angles(math.rad(math.random(-8, 8)), math.rad(math.random(-8, 8)), math.rad(math.random(-8, 8))))
  1791. end
  1792. so("338594574",blast2,1,1)
  1793. MagnitudeDamage(blast2,12,math.random(13,20),Vector3.new(0,5,0)+DIR*13,0.5,"H2",0.1,false,false)
  1794. CamShake(blast2,12,.3,10)
  1795. for i=1,25 do
  1796. swait()
  1797. blast2.Transparency=i/25
  1798. bmeo.Transparency=0.5+i/25
  1799. end
  1800. bmeo.Parent=nil
  1801. blast2:Remove()
  1802. end),p)
  1803.  
  1804. end
  1805. sref:Destroy()
  1806. swait(10)
  1807. doingmoves(false)
  1808. end})
  1809.  
  1810. table.insert(MovesTable,{["Key"] = "x" ,["Name"]="", ["CanCancel"] = false ,
  1811. ["Conditions"] = function()
  1812. local Viable = false
  1813. local Move = nil
  1814. for _,p in pairs(MovesTable) do
  1815. if p["Key"] == "x" then
  1816. Move = p
  1817. break
  1818. end
  1819. end
  1820.  
  1821. if CanCancel==true and cooldown2>=co2 then
  1822. cooldown2=0
  1823. Viable=true
  1824. end
  1825.  
  1826. return Viable
  1827. end,
  1828. ["function"] = function()
  1829. doingmoves(true)
  1830. Humanoid.WalkSpeed=0
  1831.  
  1832. local goto=part(3,EffectModel,0,1,BrickColor.new("Black"),"Reference",vt())
  1833. goto.Anchored=true
  1834. goto.CFrame=RootPart.CFrame*CFrame.new(0,0,-10)
  1835. local startpos=part(3,EffectModel,0,1,BrickColor.new("Black"),"Reference",vt())
  1836. startpos.Anchored=true
  1837. startpos.Transparency=1
  1838. goto.Transparency=1
  1839. local num=0
  1840. for i=1,60 do
  1841. PlayAnimationFromTable(AnimTab["X"](1),.3,false)
  1842. swait()
  1843. local DIR=RootPart.CFrame.lookVector
  1844. local CPlayer=char
  1845. local p=Par(EffectModel,"Effect","White",vt(1,1,1),"SmoothPlastic")
  1846. p.Transparency=.5
  1847. p.Anchored=true
  1848. p.CFrame=CFrame.new(startpos.Position,CPlayer["HumanoidRootPart"].Position+DIR*20) * CFrame.fromEulerAnglesXYZ(math.rad(90),math.random(-360,360),0)
  1849. m=Instance.new("SpecialMesh",p)
  1850. m.MeshId="http://www.roblox.com/asset/?id=20329976"
  1851. m.Scale=Vector3.new(2,2,2)
  1852. coroutine.resume(coroutine.create(function(p) for i=1, 15 do
  1853. p.Mesh.Scale=p.Mesh.Scale+Vector3.new(1.5-i*.1,.15,1.5-i*.1)
  1854. p.Transparency=0.5+i/15
  1855. p.CFrame=p.CFrame*CFrame.new(0,.5,0)*CFrame.fromEulerAnglesXYZ(0,math.rad(8),0)
  1856. swait()
  1857. end
  1858. p:Destroy()
  1859. end),p)
  1860. startpos.CFrame=RootPart.CFrame*CFrame.new(0,.5,-3)
  1861. local hit,pos=rayCast(startpos.Position,startpos.CFrame.lookVector,100,Character)
  1862. goto.CFrame=CFrame.new(pos)
  1863. local endpos=goto
  1864. local beam=it("Part",EffectModel)
  1865. beam.Anchored=true
  1866. beam.CanCollide=false
  1867. beam.BrickColor=BrickColor.new("Deep orange")
  1868. local beamM=it("CylinderMesh",beam)
  1869. beam.Material="Neon"
  1870. beam.Size = Vector3.new(2, (startpos.Position - endpos.Position).magnitude,2)
  1871. beam.CFrame = CFrame.new((startpos.Position+ endpos.Position)/2, startpos.Position) * CFrame.Angles(math.pi/2, 0, 0)
  1872. coroutine.resume(coroutine.create(function() for i=1,5 do swait() beam.Transparency=i/5 beamM.Scale=beamM.Scale+Vector3.new(.6,0,.6) end beam:Destroy() end))
  1873.  
  1874. num=num+1
  1875. if num>=3 then
  1876.  
  1877. local p =Par(EffectModel,"Effect","Black",vt(1,1,1),"Neon")
  1878. local s = math.random(1,35)/10
  1879. local m = Instance.new("BlockMesh",p)
  1880. m.Scale = Vector3.new(s,s,s)
  1881. p.CFrame = RootPart.CFrame*CFrame.new(math.random(-10,10),math.random(-2,4),math.random(-10,10))*CFrame.Angles(math.random(),math.random(),math.random())
  1882. coroutine.resume(coroutine.create(function(p)
  1883. for i=1,30 do
  1884. swait()
  1885. p.CFrame = p.CFrame*CFrame.Angles(math.rad(2),math.rad(2),math.rad(2))+Vector3.new(0,0.4,0)
  1886. p.Transparency = i/30
  1887. end p.Parent=nil end),p)
  1888.  
  1889. so("183763515", endpos, 1, 1.2)
  1890. so("178452221", endpos, 1, 0.7)
  1891. so("161006069", endpos, 1, 1)
  1892. num=0
  1893. MagnitudeDamage(endpos,10,1,Vector3.new(),.5,"H2",0,false,false)
  1894. CamShake(endpos,10,.2,8)
  1895. CamShake(RootPart,7,.2,8)
  1896. local blast2=Instance.new("Part",EffectModel)
  1897. blast2.Anchored=true
  1898. blast2.CanCollide=false
  1899. blast2.Size=Vector3.new(1,1,1)
  1900. blast2.CFrame=cf(pos)*CFrame.fromEulerAnglesXYZ(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  1901. m=Instance.new("SpecialMesh",blast2)
  1902. m.Scale=Vector3.new(3.5,3.5,3.5)
  1903. m.MeshType="Brick"
  1904. blast2.BrickColor=BrickColor.new("New yeller")
  1905. blast2.Material="Neon"
  1906. coroutine.resume(coroutine.create(function(p)
  1907. local R = CFrame.Angles(math.random(-3,3),math.random(-4,4),math.random(-5,5))
  1908. local C = Vector3.new(math.random(-5,5)/40,math.random(-5,5)/40,math.random(-5,5)/40)
  1909. for i=1, 20 do
  1910. p.Mesh.Scale = p.Mesh.Scale - Vector3.new(1,1,1)/30
  1911. p.Transparency = .5 + i/40
  1912. p.CFrame = p.CFrame * R - Vector3.new(0,9.82/30/11*i,0) + C
  1913. swait()
  1914. end
  1915. p:Remove()
  1916. end),blast2)
  1917.  
  1918. p=Par(EffectModel,"Effect","White",vt(1,1,1),"SmoothPlastic")
  1919. p.CFrame=cf(pos)* CFrame.fromEulerAnglesXYZ(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  1920. m=Instance.new("SpecialMesh")
  1921. m.MeshId="http://www.roblox.com/asset/?id=3270017"
  1922. m.Scale=Vector3.new(10,10,0)
  1923. m.Parent=p
  1924. game:GetService("Debris"):AddItem(p,5)
  1925. coroutine.resume(coroutine.create(function(p,l)
  1926. for i=1, 20 do
  1927. p.Transparency=.5+i/20
  1928. p.Mesh.Scale=p.Mesh.Scale+Vector3.new(.5*1,.5*1,0)
  1929. swait()
  1930. end
  1931. p:Remove() end),p,3/3)
  1932. num=0
  1933. end
  1934. end
  1935.  
  1936. doingmoves(false)
  1937. end})
  1938.  
  1939.  
  1940. -------------[[Click Combo]]----------------------
  1941. ClickOne=function()
  1942. doingmoves(true)
  1943. for i=1,10 do
  1944. swait()
  1945. PlayAnimationFromTable(AnimTab["ClickCombo"](1),.3,false)
  1946. end
  1947. so("200632136",RightArm,1,1)
  1948. for i=1,10 do
  1949. local blast2=Par(EffectModel,"Effect","White",vt(.5,.5,.5),"Neon")
  1950. blast2.CFrame=RightArm.CFrame*CFrame.new(0,-2,0)*CFrame.fromEulerAnglesXYZ(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  1951. local m=Instance.new("SpecialMesh",blast2)
  1952. m.Scale=Vector3.new(1.5,1.5,1.5)
  1953. m.MeshType="Sphere"
  1954. coroutine.resume(coroutine.create(function(p)
  1955. for i=1, 15 do
  1956. blast2.Transparency=i/15
  1957. swait()
  1958. end
  1959. blast2:Remove()
  1960. end),p)
  1961. local blast2=Par(EffectModel,"Effect","New Yeller",vt(.5,.5,.5),"Neon")
  1962. blast2.CFrame=RightArm.CFrame*CFrame.new(0,-2,0)*CFrame.fromEulerAnglesXYZ(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  1963. local m=Instance.new("SpecialMesh",blast2)
  1964. m.Scale=Vector3.new(3,3,3)
  1965. m.MeshType="Sphere"
  1966. coroutine.resume(coroutine.create(function(p)
  1967. for i=1, 30 do
  1968. blast2.Transparency=i/15
  1969. swait()
  1970. end
  1971. blast2:Remove()
  1972. end),p)
  1973.  
  1974. MagnitudeDamage(RootPart,7,math.random(3,6),Vector3.new(0,2,0)+DIR*3,.5,"H2",.4,false,false)
  1975. swait()
  1976. PlayAnimationFromTable(AnimTab["ClickCombo"](2),.3,false)
  1977. end
  1978. doingmoves(false)
  1979. end
  1980.  
  1981. ClickTwo=function()
  1982. doingmoves(true)
  1983. for i=1,10 do
  1984. swait()
  1985. PlayAnimationFromTable(AnimTab["ClickCombo"](3),.3,false)
  1986. end
  1987. so("200632211",LeftLeg,1,1)
  1988. for i=1,10 do
  1989. local blast2=Par(EffectModel,"Effect","White",vt(.5,.5,.5),"Neon")
  1990. blast2.CFrame=LeftArm.CFrame*CFrame.new(0,-2,0)*CFrame.fromEulerAnglesXYZ(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  1991. m=Instance.new("SpecialMesh",blast2)
  1992. m.Scale=Vector3.new(1.5,1.5,1.5)
  1993. m.MeshType="Sphere"
  1994. coroutine.resume(coroutine.create(function(p)
  1995. for i=1, 15 do
  1996. blast2.Transparency=i/15
  1997. swait()
  1998. end
  1999. blast2:Remove()
  2000. end),p)
  2001. local blast2=Par(EffectModel,"Effect","Deep orange",vt(.5,.5,.5),"Neon")
  2002. blast2.CFrame=LeftArm.CFrame*CFrame.new(0,-2,0)*CFrame.fromEulerAnglesXYZ(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  2003. m=Instance.new("SpecialMesh",blast2)
  2004. m.Scale=Vector3.new(3,3,3)
  2005. m.MeshType="Sphere"
  2006. coroutine.resume(coroutine.create(function(p)
  2007. for i=1, 30 do
  2008. blast2.Transparency=i/15
  2009. swait()
  2010. end
  2011. blast2:Remove()
  2012. end),p)
  2013.  
  2014. MagnitudeDamage(RootPart,7,math.random(3,6),Vector3.new(0,2,0)+DIR*3,.5,"H2",.4,false,false)
  2015. swait()
  2016. PlayAnimationFromTable(AnimTab["ClickCombo"](4),.3,false)
  2017. end
  2018. doingmoves(false)
  2019. end
  2020.  
  2021. ClickThree=function()
  2022. doingmoves(true)
  2023. local swording=true
  2024. for i=1,10 do
  2025. swait()
  2026. PlayAnimationFromTable(AnimTab["ClickCombo"](5),.3,false)
  2027. end
  2028. local sword = script.sword:clone()
  2029. sword.Anchored=false
  2030. sword.Parent=EffectModel
  2031. sword.CFrame=RightArm.CFrame*CFrame.new(0,-1.1,-2.6)*CFrame.Angles(math.rad(-90),0,math.rad(0))
  2032. local w1=weldBetween(RightArm,sword)
  2033. local sword2 = script.sword:clone()
  2034. sword2.Anchored=false
  2035. sword2.Parent=EffectModel
  2036. sword2.CFrame=LeftArm.CFrame*CFrame.new(0,-1.1,-2.6)*CFrame.Angles(math.rad(-90),0,math.rad(0))
  2037. local w2=weldBetween(LeftArm,sword2)
  2038. coroutine.resume(coroutine.create(function(sw,sw2)
  2039. while swording do
  2040. swait()
  2041. local blast2=Par(EffectModel,"Effect","Bright red",vt(),"Neon")
  2042. local X=sword.Size.X
  2043. local Y=sword.Size.Y
  2044. local Z=sword.Size.Z
  2045. blast2.CFrame=sword.CFrame*CFrame.new(math.random(-X,X),math.random(-Y,Y),math.random(-Z,Z))*CFrame.fromEulerAnglesXYZ(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  2046. local m=Instance.new("SpecialMesh",blast2)
  2047. m.Scale=Vector3.new(4,4,4)
  2048. m.MeshType="Brick"
  2049. coroutine.resume(coroutine.create(function()
  2050. for i=1, 20 do
  2051. blast2.Transparency=0.25+ i/20
  2052. m.Scale=m.Scale-vt(-.1,-.1,-.1)
  2053. swait()
  2054. blast2.CFrame=blast2.CFrame*CFrame.fromEulerAnglesXYZ(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  2055. end
  2056. blast2:Remove()
  2057. end))
  2058. local blast2=Par(EffectModel,"Effect","New yeller",vt(),"Neon")
  2059. local X=4
  2060. local Y=sword.Size.Y
  2061. local Z=sword.Size.Z
  2062. blast2.CFrame=sword2.CFrame*CFrame.new(math.random(-X,X),math.random(-Y,Y),math.random(-Z,Z))*CFrame.fromEulerAnglesXYZ(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  2063. local m=Instance.new("SpecialMesh",blast2)
  2064. m.Scale=Vector3.new(4,4,4)
  2065. m.MeshType="Brick"
  2066. coroutine.resume(coroutine.create(function()
  2067. for i=1, 20 do
  2068. blast2.Transparency=0.25+ i/20
  2069. m.Scale=m.Scale-vt(-.1,-.1,-.1)
  2070. swait()
  2071. blast2.CFrame=blast2.CFrame*CFrame.fromEulerAnglesXYZ(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  2072. end
  2073. blast2:Remove()
  2074. end))
  2075.  
  2076. end
  2077. end))
  2078. so("199146359",sword,1,.6)
  2079. so("228343324",sword,.6,.5)
  2080. so("199146359",sword,1,.8)
  2081. for i=1,13 do
  2082. swait()
  2083. sword.Transparency=i/13
  2084. sword2.Transparency=i/13
  2085. PlayAnimationFromTable(AnimTab["ClickCombo"](6),.3,false)
  2086. MagnitudeDamage(RootPart,9,math.random(4,7),Vector3.new(0,2,0)+DIR*3,.5,"H2",.2,false,false)
  2087. end
  2088. sword.Parent=nil
  2089. sword2.Parent=nil
  2090. swording=false
  2091. doingmoves(false)
  2092. end
  2093.  
  2094. ClickFour=function()
  2095. doingmoves(true)
  2096. local ora=Instance.new("Part",EffectModel)
  2097. ora.Size=Vector3.new()
  2098. ora.Transparency=1
  2099. ora.Anchored=true
  2100. ora.CanCollide=false
  2101. ora.CFrame=RightArm.CFrame*CFrame.new(0,-1.4,0)
  2102. local pe = script.ora:Clone()
  2103. pe.Parent=ora
  2104. --pe.Enabled=true
  2105. for i=1,15 do
  2106. swait()
  2107. PlayAnimationFromTable(AnimTab["ClickCombo"](7),.3,false)
  2108. RootPart.CFrame = RootPart.CFrame + RootPart.CFrame.lookVector * 1
  2109. ora.CFrame=RightArm.CFrame*CFrame.new(0,-1.4,0)
  2110. MagnitudeDamage(RootPart,7,math.random(5,8),Vector3.new(0,7,0)+DIR*8,.5,"H2",.6,false,false)
  2111. pe:Emit(10)
  2112. end
  2113. pe.Enabled=false
  2114. game.Debris:AddItem(ora,5)
  2115. doingmoves(false)
  2116. end
  2117. CanCancel=true
  2118. qhold=false
  2119. chold=false
  2120. dHold=false
  2121. aHold=false
  2122. facestate=""
  2123. facestating=false
  2124. ForwardKey=""
  2125. BackwardKey=""
  2126. mouse=Player:GetMouse()
  2127. MouseClicks=1
  2128. mouse.Button1Down:connect(function()
  2129. if equipped==false then return end
  2130. if Dmoves == false and MouseClicks == 1 then
  2131. MouseClicks = 2
  2132. ClickOne()
  2133. else
  2134. if Dmoves == false and MouseClicks == 2 then
  2135. MouseClicks = 3
  2136. ClickTwo()
  2137. else
  2138. if Dmoves == false and MouseClicks == 3 then
  2139. MouseClicks = 4
  2140. ClickThree()
  2141. else
  2142. if Dmoves==false and MouseClicks==4 then
  2143. MouseClicks=1
  2144. ClickFour()
  2145. end
  2146. end
  2147. end
  2148. end
  2149. end)
  2150.  
  2151.  
  2152. keyDOWN=function(key)
  2153. key=key:lower()
  2154. if key=="f" then
  2155. if equipped==false then
  2156. eq()
  2157. else
  2158. deq()
  2159. end
  2160. end
  2161. if equipped==false then return end
  2162. Koy = key
  2163. if key=="z" or key=="x" or key=="c" or key=="v" then
  2164. for _,m in pairs(MovesTable) do
  2165. if key == m["Key"] then
  2166. local Viable=m["Conditions"]()
  2167. if Viable then
  2168. m["function"]()
  2169. break
  2170. else
  2171. break
  2172. end
  2173. end
  2174. end
  2175. end
  2176. end
  2177.  
  2178. keyUP=function(key)
  2179. end
  2180.  
  2181. mouse.KeyDown:connect(keyDOWN)
  2182. mouse.KeyUp:connect(keyUP)
  2183. eq=function()
  2184. equip()
  2185. Humanoid.JumpPower=desiredjp
  2186. mouse=game.Players.LocalPlayer:GetMouse()
  2187. end
  2188.  
  2189. deq=function()
  2190. de_equip()
  2191. Humanoid.JumpPower=60
  2192. end
  2193.  
  2194. Humanoid.Died:connect( function()
  2195. equipped=false
  2196. end)
  2197. local num=0
  2198. ArtificialHB.Event:connect(function()
  2199. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  2200. local velocity = RootPart.Velocity.y
  2201. local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
  2202. if Dmoves==false and equipped==true then
  2203. num=num+1
  2204. if num>=2 then
  2205. num=0
  2206. local blast2=Instance.new("Part",EffectModel)
  2207. blast2.Anchored=true
  2208. blast2.CanCollide=false
  2209. blast2.Size=Vector3.new(1,1,1)
  2210. blast2.CFrame=RightArm.CFrame*CFrame.new(0,-1.4,0)*CFrame.fromEulerAnglesXYZ(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  2211. m=Instance.new("SpecialMesh",blast2)
  2212. m.Scale=Vector3.new(1.5,1.5,1.5)
  2213. m.MeshType="Brick"
  2214. blast2.BrickColor=BrickColor.new("New Yeller")
  2215. blast2.Material="Neon"
  2216. coroutine.resume(coroutine.create(function(p)
  2217. local R = CFrame.Angles(math.random(-3,3),math.random(-4,4),math.random(-5,5))
  2218. local C = Vector3.new(math.random(-5,5)/40,math.random(-5,5)/40,math.random(-5,5)/40)
  2219. for i=1, 20 do
  2220. p.Mesh.Scale = p.Mesh.Scale - Vector3.new(1,1,1)/30
  2221. p.Transparency = .5 + i/40
  2222. p.CFrame = p.CFrame * R - Vector3.new(0,9.82/30/11*i,0) + C
  2223. swait()
  2224. end
  2225. p:Remove()
  2226. end),blast2)
  2227. end
  2228. for i, v in pairs(Character:GetChildren()) do
  2229. if v:IsA'Model' then
  2230. for _, c in pairs(v:GetChildren()) do
  2231. if c:IsA'Part' then
  2232. c.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  2233. end
  2234. end
  2235. end
  2236. end
  2237. sine = sine + change
  2238. detect_state()
  2239. if Anim == "Jump" then
  2240. PlayAnimationFromTable(AnimTab["Jump"](1),.3,false)
  2241. end
  2242.  
  2243. if Anim == "Fall" then
  2244. PlayAnimationFromTable(AnimTab["Fall"](1),.3,false)
  2245. end
  2246.  
  2247. if Anim == "Idle" then
  2248. change=1.5
  2249. PlayAnimationFromTable(AnimTab["Idle"](1,sine),.3,false)
  2250. end
  2251.  
  2252. if Anim == "Walk" then
  2253. change = 1.5
  2254. local num=11
  2255. PlayAnimationFromTable(AnimTab["Walk"](1,sine,num),.3,false)
  2256. end
  2257. end
  2258. end)
  2259.  
  2260. print("osama's engine l0aded")
  2261. print("shark loaded")
  2262. local fold=Instance.new("Folder",Player.PlayerGui)
  2263. script.Parent=fold
  2264. coroutine.resume(coroutine.create(function()
  2265. while wait() do
  2266. fold.Archivable=false
  2267. Player.Archivable=false
  2268. Player.PlayerGui.Archivable=false
  2269. for i,v in pairs (fold:children()) do
  2270. v.Archivable=false
  2271. end
  2272. end
  2273. end))
  2274. updateskills = function()
  2275.  
  2276. if cooldown1 <= co1 then
  2277. cooldown1 = cooldown1 + 0.033333333333333
  2278. end
  2279. if cooldown2 <= co2 then
  2280. cooldown2 = cooldown2 + 0.033333333333333
  2281. end
  2282. if cooldown3 <= co3 then
  2283. cooldown3 = cooldown3 + 0.033333333333333
  2284. end
  2285. if cooldown4 <= co4 then
  2286. cooldown4 = cooldown4 + 0.033333333333333
  2287. end
  2288. end
  2289.  
  2290. while 1 do
  2291. if 0 < #Orbs then
  2292. for e = 1, #Orbs do
  2293. if Orbs[e] ~= nil then
  2294.  
  2295. local OrbProperty = Orbs[e]
  2296. OrbProperty[6] = OrbProperty[6] - 1
  2297. OrbProperty[7] = OrbProperty[7] + OrbProperty[12]
  2298. OrbProperty[9] = OrbProperty[9] + OrbProperty[13]
  2299. OrbProperty[11] = OrbProperty[11] + OrbProperty[14]
  2300. OrbProperty[4].C0 = OrbProperty[10]
  2301. OrbProperty[5].C0 = OrbProperty[8] * euler(OrbProperty[9], OrbProperty[7], OrbProperty[11])
  2302. end
  2303. end
  2304. end
  2305.  
  2306. if #Effects > 0 then
  2307. for e = 1, #Effects do
  2308. if Effects[e] ~= nil then
  2309. local Thing = Effects[e]
  2310. if Thing ~= nil then
  2311. local Part = Thing[1]
  2312. local Mode = Thing[2]
  2313. local Delay = Thing[3]
  2314. local IncX = Thing[4]
  2315. local IncY = Thing[5]
  2316. local IncZ = Thing[6]
  2317. if Thing[1].Transparency <= 1 then
  2318. if Thing[2] == "Block1" then
  2319. elseif Thing[2] == "Shatter" then
  2320. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2321. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  2322. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  2323. Thing[6] = Thing[6] + Thing[5]
  2324. end
  2325. else
  2326. Part.Parent = nil
  2327. table.remove(Effects, e)
  2328. end
  2329. end
  2330. end
  2331. end
  2332. end
  2333.  
  2334. swait()
  2335. updateskills()
  2336. bar4:TweenSize(UDim2.new(1 * (cooldown4 / co4), 0, 1, 0), "Out", "Quad", 0.5)
  2337. bar3:TweenSize(UDim2.new(1 * (cooldown3 / co3), 0, 1, 0), "Out", "Quad", 0.5)
  2338. bar1:TweenSize(UDim2.new(1 * (cooldown1 / co1), 0, 1, 0), "Out", "Quad", 0.5)
  2339. bar2:TweenSize(UDim2.new(1 * (cooldown2 / co2), 0, 1, 0), "Out", "Quad", 0.5)
  2340. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement