Advertisement
PasterXIV

Untitled

Aug 15th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 85.38 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  3. do
  4. print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
  5. script.Parent = Player.Character
  6.  
  7. --RemoteEvent for communicating
  8. local Event = Instance.new("RemoteEvent")
  9. Event.Name = "UserInput_Event"
  10.  
  11. --Fake event to make stuff like Mouse.KeyDown work
  12. local function fakeEvent()
  13. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  14. t.connect = t.Connect
  15. return t
  16. end
  17.  
  18. --Creating fake input objects with fake variables
  19. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  20. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  21. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  22. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  23. end}
  24. --Merged 2 functions into one by checking amount of arguments
  25. CAS.UnbindAction = CAS.BindAction
  26.  
  27. --This function will trigger the events that have been :Connect()'ed
  28. local function te(self,ev,...)
  29. local t = m[ev]
  30. if t and t._fakeEvent and t.Function then
  31. t.Function(...)
  32. end
  33. end
  34. m.TrigEvent = te
  35. UIS.TrigEvent = te
  36.  
  37. Event.OnServerEvent:Connect(function(plr,io)
  38. if plr~=Player then return end
  39. if io.isMouse then
  40. m.Target = io.Target
  41. m.Hit = io.Hit
  42. else
  43. local b = io.UserInputState == Enum.UserInputState.Begin
  44. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  45. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  46. end
  47. for _,t in pairs(CAS.Actions) do
  48. for _,k in pairs(t.Keys) do
  49. if k==io.KeyCode then
  50. t.Function(t.Name,io.UserInputState,io)
  51. end
  52. end
  53. end
  54. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  55. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  56. end
  57. end)
  58. Event.Parent = NLS([==[
  59. local Player = game:GetService("Players").LocalPlayer
  60. local Event = script:WaitForChild("UserInput_Event")
  61.  
  62. local UIS = game:GetService("UserInputService")
  63. local input = function(io,a)
  64. if a then return end
  65. --Since InputObject is a client-side instance, we create and pass table instead
  66. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  67. end
  68. UIS.InputBegan:Connect(input)
  69. UIS.InputEnded:Connect(input)
  70.  
  71. local Mouse = Player:GetMouse()
  72. local h,t
  73. --Give the server mouse data 30 times every second, but only if the values changed
  74. --If player is not moving their mouse, client won't fire events
  75. while wait(1/30) do
  76. if h~=Mouse.Hit or t~=Mouse.Target then
  77. h,t=Mouse.Hit,Mouse.Target
  78. Event:FireServer({isMouse=true,Target=t,Hit=h})
  79. end
  80. end]==],Player.Character)
  81. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  82. end
  83. Player= owner
  84. o1 = Instance.new("ParticleEmitter")
  85. o1.Name = "ora"
  86. o1.Parent = script
  87. o1.Transparency = NumberSequence.new(0,1)
  88. o1.Size = NumberSequence.new(1.5,3.5)
  89. o1.Color = ColorSequence.new(Color3.new(0, 0.333333, 1),Color3.new(0, 0.333333, 1))
  90. o1.Enabled = false
  91. o1.LightEmission = 1
  92. o1.Texture = "rbxassetid://243086902"
  93. o1.Lifetime = NumberRange.new(1,1)
  94. o1.Rate = 500
  95. o1.RotSpeed = NumberRange.new(90,90)
  96. o1.Speed = NumberRange.new(0,0)
  97. sv = Instance.new("Part")
  98. for i = 1, 2 do
  99. sv.Parent = script
  100. end
  101. sv.BrickColor = BrickColor.new("Deep blue")
  102. sv.Name = "sword"
  103. sv.Size = Vector3.new(0.248, 8.654, 1.153)
  104. sv.Orientation = Vector3.new(90, 90, 0)
  105. svm = Instance.new("FileMesh", sv)
  106. svm.MeshId = "rbxassetid://211683906"
  107. repeat wait() until Player.Character
  108. repeat wait() until #script:children() >= 0
  109. script.Parent=Player.PlayerGui
  110. Effects = { }
  111. --[[Credits to SazErenos for his Artificical Heartbeat]]--
  112. ArtificialHB = Instance.new("BindableEvent", script)
  113. ArtificialHB.Name = "Heartbeat"
  114.  
  115. script:WaitForChild("Heartbeat")
  116.  
  117. frame = 1 / 30
  118. tf = 0
  119. allowframeloss = false
  120. tossremainder = false
  121. lastframe = tick()
  122. script.Heartbeat:Fire()
  123.  
  124. game:GetService("RunService").Heartbeat:connect(function(s, p)
  125. tf = tf + s
  126. if tf >= frame then
  127. if allowframeloss then
  128. script.Heartbeat:Fire()
  129. lastframe = tick()
  130. else
  131. for i = 1, math.floor(tf / frame) do
  132. script.Heartbeat:Fire()
  133. end
  134. lastframe = tick()
  135. end
  136. if tossremainder then
  137. tf = 0
  138. else
  139. tf = tf - frame * math.floor(tf / frame)
  140. end
  141. end
  142. end)
  143.  
  144. function swait(num)
  145. if num == 0 or num == nil then
  146. ArtificialHB.Event:wait()
  147. else
  148. for i = 0, num do
  149. ArtificialHB.Event:wait()
  150. end
  151. end
  152. end
  153. ------------------[[Variables and Main Stuff]]--------------------
  154.  
  155.  
  156.  
  157. local Player = owner
  158. local Character = Player.Character
  159. local Humanoid = Character.Humanoid
  160. local char=Character
  161. local LeftArm = Character["Left Arm"]
  162. local RightArm = Character["Right Arm"]
  163. local LeftLeg = Character["Left Leg"]
  164. local RightLeg = Character["Right Leg"]
  165. local Head = Character.Head
  166. local Torso = Character.Torso
  167. local cam = game.Workspace.CurrentCamera
  168. local RootPart = Character.HumanoidRootPart
  169. local RootJoint = RootPart.RootJoint
  170. local equipped = false
  171. local attack = false
  172. local Anim = 'Idle'
  173. local idle = 0
  174. local attacktype = 1
  175. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  176. local velocity = RootPart.Velocity.y
  177. local sine = 0
  178. local change = 1
  179. local grabbed = false
  180. local cn = CFrame.new
  181. local mr = math.rad
  182. local angles = CFrame.Angles
  183. local ud = UDim2.new
  184. local c3 = Color3.new
  185. local ORW=Torso["Right Shoulder"]
  186. local OLW=Torso["Left Shoulder"]
  187. local OLH=Torso["Left Hip"]
  188. local ORH=Torso["Right Hip"]
  189. local DesiredSpeed=15
  190. local desiredjp=50
  191. EffectModel = Instance.new("Model", Character)
  192. it=Instance.new
  193. vt=Vector3.new
  194. cf=CFrame.new
  195. euler=CFrame.Angles
  196. EffectModel.Name = "Effects"
  197. local Animator=Humanoid.Animator
  198. local Animate=char.Animate
  199. local EffecMo=EffectModel
  200. euler=CFrame.Angles
  201. RotCF = euler(-1.57, 0, 3.14)
  202. it=Instance.new
  203. vt=Vector3.new
  204. LastMove=""
  205. Orbs={}
  206. EffecMo=EffectModel
  207. RootCF = CFrame.Angles(0, 0, 0)
  208. NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  209. local RW=Instance.new("Motor",nil)
  210. RW.Name="Right Shoulder"
  211. local LW=Instance.new("Motor",nil)
  212. LW.Name="Left Shoulder"
  213. local RH=Instance.new("Motor",nil)
  214. RH.Name="Right Hip"
  215. local LH=Instance.new("Motor",nil)
  216. LH.Name="Left Hip"
  217. Neck=Torso.Neck
  218. r1m=RootJoint.C1
  219. r0m=RootJoint.C0
  220. n1m=Neck.C1
  221. n0m=Neck.C0
  222. local rarmc1 = RW.C1
  223. local larmc1 = LW.C1
  224. local rlegc1 = RH.C1
  225. local llegc1 = LH.C1
  226. local resetc1 = false
  227. Comboing=false
  228. HTime=0
  229. LastDamage=0
  230. ComboHits=0
  231.  
  232. local co1 = 10
  233. local co2 = 10
  234. local co3 = 20
  235. local co4 = 1
  236. local cooldown1 = 0
  237. local cooldown2 = 0
  238. local cooldown3 = 0
  239. local cooldown4 = 0
  240. local skillcolorscheme = BrickColor.new("Dark blue").Color
  241.  
  242.  
  243. ------------[[Particle Emitters]]---------------------
  244. local pe=Instance.new("ParticleEmitter",script)
  245. pe.Enabled=false
  246. pe.Name="pe"
  247. local col1= Color3.new(0, 85, 255)
  248. pe.Color=ColorSequence.new(col1)
  249. pe.Texture="rbxassetid://436792038"
  250. pe.LightEmission=1
  251. pe.Size=NumberSequence.new({NumberSequenceKeypoint.new(0, 1.65), NumberSequenceKeypoint.new(1, 0)})
  252. pe.Transparency=NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(1, 1)})
  253. pe.Lifetime=NumberRange.new(1.5)
  254. pe.Rate=500
  255. pe.Acceleration=Vector3.new(5,0,5)
  256. pe.Rotation=NumberRange.new(5)
  257. pe.RotSpeed=NumberRange.new(10)
  258. pe.Speed=NumberRange.new(5)
  259.  
  260. local pe=Instance.new("ParticleEmitter",script)
  261. pe.Enabled=false
  262. pe.Name="pe2"
  263. local col1= BrickColor.new("Dark blue").Color
  264. pe.Color=ColorSequence.new(col1)
  265. pe.Texture="rbxassetid://436792038"
  266. pe.LightEmission=.5
  267. pe.Size=NumberSequence.new({NumberSequenceKeypoint.new(0, 1.65), NumberSequenceKeypoint.new(1, 0)})
  268. pe.Transparency=NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(1, 1)})
  269. pe.Lifetime=NumberRange.new(1)
  270. pe.Rate=500
  271. pe.Rotation=NumberRange.new(5)
  272. pe.RotSpeed=NumberRange.new(10)
  273. pe.Speed=NumberRange.new(5)
  274. pe.VelocitySpread=360
  275.  
  276. ------------------[[Main Functions]]--------------------
  277.  
  278. function CameraShake(Times, Power)
  279. coroutine.resume(coroutine.create(function()
  280. FV = Instance.new("BoolValue", Character)
  281. FV.Name = "CameraShake"
  282. for ShakeNum=1,Times do
  283. swait()
  284. local ef=Power
  285. if ef>=1 then
  286. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
  287. else
  288. ef=Power*10
  289. Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
  290. end
  291. end
  292. Humanoid.CameraOffset = Vector3.new(0,0,0)
  293. FV:Destroy()
  294. end))
  295. end
  296.  
  297. so = function(id, par, vol, pit)
  298. local sou = Instance.new("Sound", par or workspace)
  299. if par==char then sou.Parent=char.Torso end
  300. sou.Volume = vol
  301. sou.Pitch = pit or 1
  302. sou.SoundId = "http://www.roblox.com/asset/?id=" .. id
  303. coroutine.resume(coroutine.create(function(Sound)
  304. swait()
  305. Sound:play()
  306. while sou.Parent.Parent ~= nil and sou.TimePosition >= sou.TimeLength do
  307. swait()
  308. end
  309. sou.Parent = char.Torso
  310. end), sou)
  311. game:GetService("Debris"):AddItem(sou, sou.TimeLength + 0.5)
  312. end
  313.  
  314. part = function(formfactor, parent, reflectance, transparency, brickcolor, name, size)
  315. local fp = it("Part")
  316. fp.Parent = parent
  317. fp.Reflectance = reflectance
  318. fp.Transparency = transparency
  319. fp.CanCollide = false
  320. fp.Locked = true
  321. fp.BrickColor = brickcolor
  322. fp.Name = name
  323. fp.Size = size
  324. fp.Position = Torso.Position
  325. fp.Material = "SmoothPlastic"
  326. fp:BreakJoints()
  327. return fp
  328. end
  329. mesh = function(Mesh, part, meshtype, meshid, offset, scale)
  330. local mesh = it(Mesh)
  331. mesh.Parent = part
  332. if Mesh == "SpecialMesh" then
  333. mesh.MeshType = meshtype
  334. if meshid ~= "nil" then
  335. mesh.MeshId = "http://www.roblox.com/asset/?id=" .. meshid
  336. end
  337. end
  338. mesh.Offset = offset
  339. mesh.Scale = scale
  340. return mesh
  341. end
  342. local function weldBetween(a, b)
  343. local OR=CFrame.new(a.Position)
  344. local P1C, P2C=a.CFrame:inverse()*OR,b.CFrame:inverse()*OR
  345. local weld = Instance.new("ManualWeld", a)
  346. weld.Part0 = a
  347. weld.Part1 = b
  348. weld.C0 = P1C
  349. weld.C1=P2C
  350. return weld
  351. end
  352. lock=function(a,b)
  353. local vp2=Instance.new("BodyPosition",a)
  354. vp2.MaxForce=Vector3.new(math.huge,math.huge,math.huge)
  355. vp2.P=1e7
  356. vp2.D=1e3
  357. vp2.Position=b.Position
  358. local vp3=Instance.new("BodyGyro",a)
  359. vp3.MaxTorque=Vector3.new(math.huge,math.huge,math.huge)
  360. vp3.P=1e7
  361. vp3.D=1e3
  362. vp3.cframe=a.CFrame
  363. return vp2,vp3
  364. end
  365. weld = function(parent, part0, part1, c0)
  366. local weld = it("Motor")
  367. weld.Parent = parent
  368. weld.Part0 = part0
  369. weld.Part1 = part1
  370. weld.C0 = c0
  371. return weld
  372. end
  373. function NoOutline(Part)
  374. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  375. end
  376.  
  377. Par=function(Parent,Name,Col,size,Mater)
  378. p=Instance.new("Part",Parent)
  379. p.Anchored=true
  380. p.CanCollide=false
  381. p.BrickColor=BrickColor.new(Col)
  382. p.Locked=true
  383. NoOutline(p)
  384. p.Size=size or Vector3.new(1,1,1)
  385. p.Material=Mater
  386. return p
  387. end
  388. Par2=function(size,cframe,color,meshtype,meshscale) --returns a basic part for further manipulation
  389. local par = Instance.new("Part")
  390. par.formFactor="Custom"
  391. par.TopSurface=0
  392. par.BottomSurface=0
  393. par.Size=size
  394. par.CFrame=cframe
  395. par.BrickColor=BrickColor.new(color)
  396. if meshtype then
  397. local m = Instance.new(meshtype,par)
  398. m.Scale=meshscale
  399. end
  400. return par
  401. end
  402. BillboardGui = function(image, position, size)
  403. local billpar = Instance.new("Part")
  404. billpar.Transparency = 1
  405. billpar.formFactor = "Custom"
  406. billpar.Size = Vector3.new(1, 1, 1)
  407. billpar.Anchored = true
  408. billpar.CanCollide = false
  409. billpar.CFrame = CFrame.new(position)
  410. billpar.Name = "BillboardGuiPart"
  411. local bill = Instance.new("BillboardGui", billpar)
  412. bill.Adornee = billpar
  413. bill.Size = UDim2.new(1, 0, 1, 0)
  414. bill.SizeOffset = Vector2.new(size, size)
  415. local d = Instance.new("ImageLabel", bill)
  416. d.BackgroundTransparency = 1
  417. d.Size = UDim2.new(1, 0, 1, 0)
  418. d.Image = image
  419. return billpar
  420. end
  421. gui = function(GuiType, parent, text, backtrans, backcol, pos, size)
  422. local gui = it(GuiType)
  423. gui.Parent = parent
  424. gui.Text = text
  425. gui.BackgroundTransparency = backtrans
  426. gui.BackgroundColor3 = backcol
  427. gui.SizeConstraint = "RelativeXY"
  428. gui.TextXAlignment = "Center"
  429. gui.TextYAlignment = "Center"
  430. gui.Position = pos
  431. gui.Size = size
  432. gui.Font = "SciFi"
  433. gui.FontSize = "Size14"
  434. gui.TextWrapped = false
  435. gui.TextStrokeTransparency = 0
  436. gui.TextColor3 = Color3.new(255,255,127)
  437. return gui
  438. end
  439.  
  440. local TotalSuppressedTable = {}
  441. CreatePart = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  442. local RbxUtility = LoadLibrary("RbxUtility")
  443. local Create = RbxUtility.Create
  444. 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})
  445. RemoveOutlines(Part)
  446. return Part
  447. end
  448.  
  449. function BreakEffect(brickcolor,cframe,x1,y1,z1) --Credits to Ace
  450. local prt=part(3,EffectModel,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  451. prt.Anchored=true
  452. prt.Material="Neon"
  453. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  454. game:GetService("Debris"):AddItem(prt,10)
  455. local msh=mesh("SpecialMesh",prt,"Sphere","nil",vt(0,0,0),vt(x1,y1,z1))
  456. local num=math.random(10,50)/1000
  457. table.insert(Effects,{prt,"Shatter",num,prt.CFrame,math.random()-math.random(),0,math.random(50,100)/100})
  458. end
  459.  
  460. local function CFrameFromTopBack(at, top, back)
  461. local right = top:Cross(back)
  462. return CFrame.new(at.x, at.y, at.z,
  463. right.x, top.x, back.x,
  464. right.y, top.y, back.y,
  465. right.z, top.z, back.z)
  466. end
  467. function clerp(a,b,t)
  468. return a:Lerp(b,t)
  469. end
  470. function QuaternionFromCFrame(cf)
  471. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  472. local trace = m00 + m11 + m22
  473. if trace > 0 then
  474. local s = math.sqrt(1 + trace)
  475. local recip = 0.5/s
  476. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  477. else
  478. local i = 0
  479. if m11 > m00 then
  480. i = 1
  481. end
  482. if m22 > (i == 0 and m00 or m11) then
  483. i = 2
  484. end
  485. if i == 0 then
  486. local s = math.sqrt(m00-m11-m22+1)
  487. local recip = 0.5/s
  488. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  489. elseif i == 1 then
  490. local s = math.sqrt(m11-m22-m00+1)
  491. local recip = 0.5/s
  492. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  493. elseif i == 2 then
  494. local s = math.sqrt(m22-m00-m11+1)
  495. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  496. end
  497. end
  498. end
  499. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  500. local xs, ys, zs = x + x, y + y, z + z
  501. local wx, wy, wz = w*xs, w*ys, w*zs
  502. local xx = x*xs
  503. local xy = x*ys
  504. local xz = x*zs
  505. local yy = y*ys
  506. local yz = y*zs
  507. local zz = z*zs
  508. 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))
  509. end
  510. function QuaternionSlerp(a, b, t)
  511. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  512. local startInterp, finishInterp;
  513. if cosTheta >= 0.0001 then
  514. if (1 - cosTheta) > 0.0001 then
  515. local theta = math.acos(cosTheta)
  516. local invSinTheta = 1/math.sin(theta)
  517. startInterp = math.sin((1-t)*theta)*invSinTheta
  518. finishInterp = math.sin(t*theta)*invSinTheta
  519. else
  520. startInterp = 1-t
  521. finishInterp = t
  522. end
  523. else
  524. if (1+cosTheta) > 0.0001 then
  525. local theta = math.acos(-cosTheta)
  526. local invSinTheta = 1/math.sin(theta)
  527. startInterp = math.sin((t-1)*theta)*invSinTheta
  528. finishInterp = math.sin(t*theta)*invSinTheta
  529. else
  530. startInterp = t-1
  531. finishInterp = t
  532. end
  533. end
  534. 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
  535. end
  536.  
  537. local newMotor = function(part0, part1, c0, c1)
  538. local w = Instance.new('Motor', part0)
  539. w.Part0 = part0
  540. w.Part1 = part1
  541. w.C0 = c0
  542. w.C1 = c1
  543. return w
  544. end
  545.  
  546. Triangle=function(a, b, c)
  547. local col=BrickColor.new("White")
  548. --Credit to Fenrier
  549. local edg1 = (c-a):Dot((b-a).unit)
  550. local edg2 = (a-b):Dot((c-b).unit)
  551. local edg3 = (b-c):Dot((a-c).unit)
  552. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  553. a, b, c = a, b, c
  554. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  555. a, b, c = b, c, a
  556. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  557. a, b, c = c, a, b
  558. else
  559. assert(false, "unreachable")
  560. end
  561.  
  562. local len1 = (c-a):Dot((b-a).unit)
  563. local len2 = (b-a).magnitude - len1
  564. local width = (a + (b-a).unit*len1 - c).magnitude
  565. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  566.  
  567. local list = {}
  568.  
  569. if len1 > 0.01 then
  570. local w1 = Instance.new('WedgePart', EffectModel)
  571. game:GetService("Debris"):AddItem(w1,5)
  572. coroutine.resume(coroutine.create(function(p)
  573. for i=1, 10 do
  574. p.Transparency=i/10
  575. swait()
  576. end
  577. p:Remove()
  578. end),w1)
  579. w1.FormFactor = "Custom"
  580. w1.BrickColor = col
  581. w1.Material = "SmoothPlastic"
  582. w1.CanCollide = false
  583. local sz = Vector3.new(0.2, width, len1)
  584. w1.Size = sz
  585. local sp = Instance.new("SpecialMesh",w1)
  586. sp.MeshType = "Wedge"
  587. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  588. w1:BreakJoints()
  589. w1.Anchored = true
  590. w1.Transparency = 0
  591. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  592. end
  593.  
  594. if len2 > 0.01 then
  595. local w2 = Instance.new('WedgePart', EffectModel)
  596. game:GetService("Debris"):AddItem(w2,5)
  597. coroutine.resume(coroutine.create(function(p)
  598. for i=1, 10 do
  599. p.Transparency=i/10
  600. swait()
  601. end
  602. p:Remove()
  603. end),w2)
  604.  
  605. w2.FormFactor = "Custom"
  606. w2.BrickColor = col
  607. w2.Material = "SmoothPlastic"
  608. w2.CanCollide = false
  609. local sz = Vector3.new(0.2, width, len2)
  610. w2.Size = sz
  611. local sp = Instance.new("SpecialMesh",w2)
  612. sp.MeshType = "Wedge"
  613. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  614. w2:BreakJoints()
  615. w2.Anchored = true
  616. w2.Transparency = 0
  617. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  618. end
  619. return unpack(list)
  620. end
  621.  
  622. osamachain = function(P0,P1,Color1,Color2,thickness1,thickness2,T)
  623. local Part0=P0.Position
  624. local Part1=P1.Position
  625. local magz = (Part0 - Part1).magnitude
  626. local curpos = Part0
  627. local parts = {}
  628. local lastpart=P0
  629. local model = Instance.new("Model",EffecMo)
  630. model.Name = "osama_chain"
  631. local par=model
  632. if par:FindFirstChild("TimeLeft")~=nil then
  633. par:FindFirstChild("TimeLeft"):Destroy()
  634. end
  635. local chains = {}
  636. local WAT=false
  637. local cb=Instance.new("Part",model)
  638. cb.Name="Main_chain"
  639. cb.Size=Vector3.new(.2,1,.2)
  640. cb.BrickColor=BrickColor.new(Color1)
  641. cb.Anchored=false
  642. cb.CanCollide=false
  643. cb.Locked=true
  644. cbM=Instance.new("CylinderMesh",cb)
  645. cbM.Name="Mesh"
  646. cb.CFrame = CFrame.new((Part0 + Part1)/2, Part0) * CFrame.Angles(math.pi/2, 0, 0)
  647. for j = 1, T do
  648. local Part0=P0.Position
  649. local Part1=P1.Position
  650. local trolpos = CFrame.new(curpos,Part1)*CFrame.new(0,0,magz/T).p
  651. local p = Instance.new("Part")
  652. p.Name="Outline"..j
  653. p.Size = Vector3.new(.2,1,.2)
  654. p.BrickColor = BrickColor.new(Color2)
  655. p.TopSurface = 0
  656. p.BottomSurface = 0
  657. p.CanCollide = false
  658. p.Locked=true
  659. p.Anchored=true
  660. p.Material = "Neon"
  661. p.TopSurface = 0
  662. p.BottomSurface = 0
  663. local mesh = Instance.new("CylinderMesh",p)
  664. mesh.Name = "Mesh"
  665. mesh.Scale = Vector3.new(1.5,magz/T,1.5)
  666. p.Parent = model
  667. p.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/T/2)
  668. curpos = p.CFrame*CFrame.new(0,0,magz/T/2).p
  669. p.CFrame=p.CFrame*CFrame.Angles(math.rad(90),0,0)
  670. p.Transparency=0.35
  671. local str=Instance.new("ObjectValue",p)
  672. str.Value=lastpart
  673. str.Name="LP"
  674. lastpart=p
  675. table.insert(parts,{p,p})
  676. table.insert(chains,{0,0,parts,0})
  677.  
  678. coroutine.resume(coroutine.create(function()
  679. while WAT==false do
  680. game:GetService("RunService").RenderStepped:wait()
  681. local Part0=P0.Position
  682. local Part1=P1.Position
  683. local ow=j
  684. local magz = (Part0 - Part1).magnitude
  685. local oldT=T
  686. local wtf=magz
  687. mesh.Scale = Vector3.new(thickness2,magz/T,thickness2)
  688. if ow>1 then
  689. local dangnigga=CFrame.new(str.Value.Position)*CFrame.new(0,0,wtf/oldT/2).p
  690. local trolpos = CFrame.new(dangnigga,Part1)*CFrame.new(0,0,wtf/oldT).p
  691. p.CFrame = CFrame.new(str.Value.Position,Part1)*CFrame.new(0,0,-(wtf/oldT))*CFrame.Angles(math.rad(90),0,0)
  692. end
  693. if ow<=1 then
  694. local dangnigga=Part0
  695. local trolpos = CFrame.new(dangnigga,Part1)*CFrame.new(0,0,wtf/oldT).p
  696. p.CFrame = CFrame.new(dangnigga,trolpos)*CFrame.new(0,0,wtf/oldT/2)*CFrame.Angles(math.rad(90),0,0)
  697. end
  698. end
  699. end))
  700. end
  701.  
  702.  
  703. coroutine.resume(coroutine.create(function()
  704. while WAT==false do
  705. local Part0=P0.Position
  706. local Part1=P1.Position
  707. cbM.Scale = Vector3.new(thickness1, (Part0 - Part1).magnitude, thickness1)
  708. cb.CFrame = CFrame.new((Part0 + Part1)/2, Part0) * CFrame.Angles(math.pi/2, 0, 0)
  709. for i, v in pairs(chains) do
  710. v[1] = v[1] %200 +4
  711. local dir = i%2 == 0 and 1 or -1
  712. for j, V in pairs(v[3]) do
  713. local val = math.sin(math.pi/2 * 2 * (((v[1] + (100 * j/#v[3])*dir) % 100)/100))
  714. V[2].Transparency = 0.12 + val * 0.85
  715. end
  716. end
  717. game:GetService("RunService").RenderStepped:wait()
  718. end
  719. end))
  720.  
  721. local t=Instance.new("BoolValue",par)
  722. t.Name="TimeLeft"
  723.  
  724. coroutine.resume(coroutine.create(function()
  725. repeat wait() until par:FindFirstChild("TimeLeft")==nil
  726. WAT=true
  727. for _,v in pairs(model:children()) do
  728. coroutine.resume(coroutine.create(function()
  729. for i=1,30 do
  730. swait()
  731. v.Mesh.Scale=v.Mesh.Scale-Vector3.new(.05,0,.05)
  732. v.Transparency=i/30
  733. end
  734. v:Destroy()
  735. end))
  736. game.Debris:AddItem(model,1)
  737. end
  738. end))
  739.  
  740. return t
  741. end
  742. AnimTab={}
  743. angles=CFrame.Angles
  744. euler=CFrame.fromEulerAnglesXYZ
  745. cf=CFrame.new
  746. AnimTab["Idle"]=function(frameN,sine)
  747. local frame={}
  748. frame[1]={
  749. 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),
  750. 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),
  751. 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))),
  752. 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),
  753. 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),
  754. 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),
  755. }
  756.  
  757. return frame[frameN]
  758. end
  759.  
  760. AnimTab["Walk"]=function(frameN,sine,num)
  761. local frame={}
  762. frame[1]={
  763. 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),
  764. 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),
  765. 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),
  766. 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),
  767. 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)),
  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. }
  770. return frame[frameN]
  771. end
  772.  
  773. AnimTab["Fall"]=function(frameN)
  774. local frame={}
  775. frame[1]={
  776. CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0),
  777. 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),
  778. 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),
  779. 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),
  780. 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),
  781. 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),
  782. }
  783. return frame[frameN]
  784. end
  785.  
  786. AnimTab["Jump"]=function(frameN)
  787. local frame={}
  788. frame[1]={
  789. 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),
  790. 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),
  791. 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),
  792. 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),
  793. 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),
  794. 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),
  795. }
  796. return frame[frameN]
  797. end
  798.  
  799. AnimTab["ClickCombo"]=function(frameN)
  800. local frame={}
  801. frame[1]={
  802. 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),
  803. 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),
  804. 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),
  805. 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),
  806. 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),
  807. 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),
  808. }
  809. frame[2]={
  810. 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),
  811. 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),
  812. 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),
  813. 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),
  814. 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),
  815. 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),
  816. }
  817. frame[3]={
  818. 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),
  819. 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),
  820. 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),
  821. 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),
  822. 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),
  823. 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),
  824. }
  825. frame[4]={
  826. 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),
  827. 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),
  828. 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),
  829. 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),
  830. 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),
  831. 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),
  832. }
  833. frame[5]={
  834. 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),
  835. 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),
  836. 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),
  837. 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),
  838. 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),
  839. 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),
  840. }
  841. frame[6]={
  842. 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),
  843. 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),
  844. 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),
  845. 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),
  846. 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),
  847. 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),
  848. }
  849. frame[7]={
  850. 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),
  851. 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),
  852. 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),
  853. 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),
  854. 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),
  855. 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),
  856. }
  857. return frame[frameN]
  858. end
  859.  
  860. AnimTab["C"]=function(frameN)
  861. local frame={}
  862. frame[1]={
  863. 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),
  864. 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),
  865. 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),
  866. 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),
  867. 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),
  868. 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),
  869. }
  870. return frame[frameN]
  871. end
  872.  
  873. AnimTab["Z"]=function(frameN)
  874. local frame={}
  875. frame[1]={
  876. 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),
  877. 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),
  878. 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),
  879. 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),
  880. 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),
  881. 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),
  882. }
  883. return frame[frameN]
  884. end
  885.  
  886. AnimTab["X"]=function(frameN)
  887. local frame={}
  888. frame[1]={
  889. 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),
  890. 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),
  891. 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),
  892. 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),
  893. 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),
  894. 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),
  895. }
  896. return frame[frameN]
  897. end
  898. lastcframe={RootJoint.C0,Neck.C0,RW.C0,LW.C0,RH.C0,LH.C0}
  899. function PlayAnimationFromTable(tabl, speed, bool)
  900. RootJoint.C0 = clerp(RootJoint.C0, tabl[1], speed)
  901. Neck.C0 = clerp(Neck.C0, tabl[2], speed)
  902. RW.C0 = clerp(RW.C0, tabl[3], speed)
  903. LW.C0 = clerp(LW.C0, tabl[4], speed)
  904. RH.C0 = clerp(RH.C0, tabl[5], speed)
  905. LH.C0 = clerp(LH.C0, tabl[6], speed)
  906. lastcframe={RootJoint.C0,Neck.C0,RW.C0,LW.C0,RH.C0,LH.C0}
  907. if bool == true then
  908. if resetc1 == false then
  909. resetc1 = true
  910. RootJoint.C1 = RootJoint.C1
  911. Torso.Neck.C1 = Torso.Neck.C1
  912. RW.C1 = rarmc1
  913. LW.C1 = larmc1
  914. RH.C1 = rlegc1
  915. LH.C1 = llegc1
  916. end
  917. end
  918.  
  919. end
  920.  
  921. CamShake=function(Part,Distan,Power,Times)
  922. local de=Part.Position
  923. for i,v in pairs(workspace:children()) do
  924. if v:IsA("Model") and v:findFirstChild("Humanoid") then
  925. for _,c in pairs(v:children()) do
  926. if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then
  927. local Noob=v.Humanoid
  928. if Noob~=nil then
  929. if Noob:FindFirstChild("CamShake")==nil then-- and Noob == Character then
  930. --[[local ss=script.CamShake:clone()
  931. ss.Parent=Noob
  932. ss.Power.Value=Power
  933. ss.Times.Value=Times
  934. ss.Disabled=false]]
  935. CameraShake(Times, Power)
  936. end
  937. end
  938. end
  939. end
  940. end
  941. end
  942. end
  943.  
  944. local RbxUtility = LoadLibrary("RbxUtility")
  945. local Create = RbxUtility.Create
  946.  
  947. function RemoveOutlines(part)
  948. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  949. end
  950.  
  951. function rayCast(Position, Direction, Range, Ignore)
  952. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  953. end
  954. function rayCastWithIngore(Position, Direction, Range, Ignore)
  955. return game:service("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  956. end
  957.  
  958. detect_state = function()
  959. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  960. velocity = RootPart.Velocity.y
  961. sine = sine + change
  962. local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
  963. if equipped == true then
  964. if RootPart.Velocity.y > 1 and hit == nil then
  965. Anim = "Jump"
  966. elseif RootPart.Velocity.y < -1 and hit == nil then
  967. Anim = "Fall"
  968. elseif Torsovelocity < 1 and hit ~= nil then
  969. Anim = "Idle"
  970. elseif Torsovelocity > 2 and hit ~= nil then
  971. Anim = "Walk"
  972. end
  973. end
  974. end
  975.  
  976. function Lightning(Part0,Part1,Times,Offset,Color,Thickness,Trans) -- Lightning module
  977. local magz = (Part0 - Part1).magnitude
  978. local curpos = Part0
  979. local trz = {-Offset,Offset}
  980. for i=1,Times do
  981. local li =Par(EffectModel,"Lightning",Color,Vector3.new(Thickness,Thickness,magz/Times),"Neon")
  982. li.Transparency = Trans
  983. li.BrickColor = BrickColor.new(Color)
  984. ora=Instance.new("BlockMesh",li)
  985. ora.Scale=Vector3.new(Thickness,Thickness,1)
  986. local Offzet = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)])
  987. local trolpos = CFrame.new(curpos,Part1)*CFrame.new(0,0,magz/Times).p+Offzet
  988. if Times == i then
  989. local magz2 = (curpos - Part1).magnitude
  990. li.Size = Vector3.new(Thickness,Thickness,magz2)
  991. li.CFrame = CFrame.new(curpos,Part1)*CFrame.new(0,0,-magz2/2)
  992. else
  993. li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/Times/2)
  994. end
  995. curpos = li.CFrame*CFrame.new(0,0,magz/Times/2).p
  996. game.Debris:AddItem(li,.1)
  997. end
  998. end
  999. function Lightning2(Part0,Part1,Times,Offset,Color,Thickness,Trans,V) -- Lightning module
  1000. local magz = (Part0 - Part1).magnitude
  1001. local curpos = Part0
  1002. local trz = {-Offset,Offset}
  1003. for i=1,Times do
  1004. local li =Par(EffectModel,"Lightning",Color,Vector3.new(Thickness,Thickness,magz/Times),"Neon")
  1005. li.Transparency = Trans
  1006. ora=Instance.new("BlockMesh",li)
  1007. ora.Scale=Vector3.new(Thickness,Thickness,1)
  1008. local Offzet = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)])
  1009. local trolpos = CFrame.new(curpos,Part1)*CFrame.new(0,0,magz/Times).p+Offzet
  1010. if Times == i then
  1011. local magz2 = (curpos - Part1).magnitude
  1012. li.Size = Vector3.new(Thickness,Thickness,magz2)
  1013. li.CFrame = CFrame.new(curpos,Part1)*CFrame.new(0,0,-magz2/2)
  1014. else
  1015. li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/Times/2)
  1016. end
  1017. curpos = li.CFrame*CFrame.new(0,0,magz/Times/2).p
  1018. coroutine.resume(coroutine.create(function()
  1019. for i=1,V do
  1020. swait()
  1021. li.Transparency=i/V
  1022. end
  1023. li:Destroy()
  1024. end))
  1025. end
  1026. end
  1027. function Lightning3(Part0,Part1,Times,Offset,Color,Thickness,Trans,last) -- Lightning module
  1028. local magz = (Part0 - Part1).magnitude
  1029. local curpos = Part0
  1030. local trz = {-Offset,Offset}
  1031. for i=1,Times do
  1032. local li =Par(EffectModel,"Lightning",Color,Vector3.new(Thickness,Thickness,magz/Times),"Neon")
  1033. li.Transparency = Trans
  1034. local Offzet = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)])
  1035. local trolpos = CFrame.new(curpos,Part1)*CFrame.new(0,0,magz/Times).p+Offzet
  1036. if Times == i then
  1037. local magz2 = (curpos - Part1).magnitude
  1038. li.Size = Vector3.new(Thickness,Thickness,magz2)
  1039. li.CFrame = CFrame.new(curpos,Part1)*CFrame.new(0,0,-magz2/2)
  1040. else
  1041. li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/Times/2)
  1042. end
  1043. curpos = li.CFrame*CFrame.new(0,0,magz/Times/2).p
  1044. game.Debris:AddItem(li,5)
  1045. coroutine.resume(coroutine.create(function()
  1046. for i=1,20 do
  1047. swait()
  1048. li.Transparency=li.Transparency+last
  1049. end
  1050. li:Destroy()
  1051. end))
  1052. end
  1053. end
  1054.  
  1055. GET_THE_NEAREST_FAGGOT = function(pos)
  1056. local list = (game.Workspace:children())
  1057. local torso = nil
  1058. local DISTANCE_u_BITCH = 1000
  1059. local temp, human, temp2 = nil, nil, nil
  1060. for x = 1, #list do
  1061. temp2 = list[x]
  1062. if temp2.className == "Model" and temp2.Name ~= Character.Name then
  1063. temp = temp2:findFirstChild("Torso")
  1064. human = temp2:findFirstChild("Humanoid")
  1065. if temp ~= nil and human ~= nil and human.Health > 0 and (temp.Position - pos).magnitude < DISTANCE_u_BITCH then
  1066. local FOUND_YOU = true
  1067. if Player.Neutral == false and game.Players:GetPlayerFromCharacter(temp.Parent) ~= nil then
  1068. FOUND_YOU = false
  1069. end
  1070. if FOUND_YOU == true then
  1071. torso = temp
  1072. DISTANCE_u_BITCH = (temp.Position - pos).magnitude
  1073. end
  1074. end
  1075. end
  1076. end
  1077. return torso, DISTANCE_u_BITCH
  1078. end
  1079. Damagefunc=function(hit,Damage, knockback,tiem, Type, Delay,stun,removebodypos)
  1080. local Hited=false
  1081. if hit.Parent == nil then
  1082. return
  1083. end
  1084.  
  1085. h = hit.Parent:FindFirstChild("Humanoid")
  1086. if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  1087. if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
  1088. return
  1089. end
  1090. if h.Health<=0 then return end
  1091. h = hit.Parent:FindFirstChild("Humanoid")
  1092. c = Instance.new("ObjectValue")
  1093. c.Name = "creator"
  1094. c.Value = owner
  1095. c.Parent = h
  1096. game:GetService("Debris"):AddItem(c, 0.5)
  1097. if Type=="H2" then
  1098. 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))
  1099. eff.Parent = EffectModel
  1100. eff.Name = "BloodEffect"
  1101. eff.Mesh.MeshType = "Sphere"
  1102. eff.Anchored = true
  1103. eff.CanCollide = false
  1104. game:GetService("Debris"):AddItem(eff, 5)
  1105. coroutine.resume(coroutine.create(function(p, A)
  1106. local R = Vector3.new(math.random(-5, 5), math.random(7, 9), math.random(-5, 5)) / 50
  1107. for i = 1, 6 do
  1108. p.Mesh.Scale = p.Mesh.Scale + Vector3.new(0.85, 0.85, 0.85)
  1109. p.Transparency =1
  1110. p.CFrame = p.CFrame * A
  1111. swait()
  1112. end
  1113. p:Remove()
  1114. 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)
  1115. local eb = BillboardGui("http://www.roblox.com/asset/?id=233069772", eff.Position, 0)
  1116. eb.Parent = EffectModel
  1117. eb.BillboardGui.ImageLabel.ImageColor3=Color3.new(255, 0, 0)
  1118. eb.BillboardGui.ImageLabel.Rotation = math.random(-180, 180)
  1119. eb.BillboardGui.Size = UDim2.new(2, 0, 2, 0)
  1120. game:GetService("Debris"):AddItem(eb, 3)
  1121. coroutine.resume(coroutine.create(function(p)
  1122. local r = math.random(-3, 3) * 9
  1123. if r > -12 and r < 1 then
  1124. r = -12
  1125. else
  1126. if r < 12 and r > -1 then
  1127. r = 12
  1128. end
  1129. end
  1130. for i = 1, 6 do
  1131. p.BillboardGui.ImageLabel.ImageTransparency = 0.25 + i / 6
  1132. p.BillboardGui.Size = UDim2.new(2 + i / 1.75, 0, 2 + i / 1.75, 0)
  1133. p.BillboardGui.ImageLabel.Rotation = p.BillboardGui.ImageLabel.Rotation + r
  1134. swait()
  1135. end
  1136. p:Remove()
  1137. end), eb)
  1138.  
  1139. local hitnum = math.random(1, 8)
  1140. if hitnum == 1 then
  1141. so("153092274", hit, 1, 1)
  1142. end
  1143. if hitnum == 2 then
  1144. so("199149186", hit, 2, .5)
  1145. end
  1146. if hitnum == 3 then
  1147. so("153092296", hit, 1, .3)
  1148. end
  1149. if hitnum == 4 then
  1150. so("199149235", hit, 1, .5)
  1151. end
  1152. if hitnum == 5 then
  1153. so("199149269", hit, 1, .4)
  1154. end
  1155. if hitnum == 6 then
  1156. so("199149297", hit, 1, .5)
  1157. end
  1158. if hitnum == 7 then
  1159. so("201858024", hit, 1, .6)
  1160. end
  1161. if hitnum == 8 then
  1162. so("201858024", hit, 1, .5)
  1163. end
  1164. end
  1165.  
  1166. if Type=="H1" then
  1167. local hitnum=math.random(2,4)
  1168. p=Par(EffectModel,"EffectHi","White",Vector3.new(1,1,1),"SmoothPlastic")
  1169. p.CFrame=hit.Parent.Torso.CFrame
  1170. m=Instance.new("SpecialMesh")
  1171. m.MeshType="Sphere"
  1172. m.Parent=p
  1173. game:GetService("Debris"):AddItem(p,5)
  1174. coroutine.resume(coroutine.create(function(p)
  1175. for i=1, 8 do
  1176. p.Transparency=i/8
  1177. p.Mesh.Scale=p.Mesh.Scale+Vector3.new(.5,.5,.5)
  1178. swait(.5)
  1179. end
  1180. p:Remove() end),p)
  1181.  
  1182. if hitnum==1 then
  1183. so("153092274", hit, 1, 1)
  1184. else
  1185. if hitnum == 2 then
  1186. so("153092217", hit, 1, 1)
  1187. else
  1188. if hitnum == 3 then
  1189. so("153092227", hit, 1, 1)
  1190. else
  1191. if hitnum == 4 then
  1192. so("153092238", hit, 1, 1)
  1193. end
  1194. end
  1195. end end
  1196. end
  1197.  
  1198. Noob=hit.Parent
  1199. HTime=time()+1.8
  1200. LastDamage=LastDamage + Damage*1
  1201. ComboHits=ComboHits+1
  1202. Comboing=true
  1203. Hited=true
  1204. local ded=false
  1205. Comboing=true
  1206.  
  1207. h:TakeDamage(Damage)
  1208. local Part=hit
  1209. ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 3.5, 0), -Damage, 1.5, BrickColor.new("Dark blue").Color)
  1210. if stun==true then
  1211. local t=hit.Parent.Torso
  1212. if hit.Parent.Torso:FindFirstChild("EBOLA")==nil then
  1213. local r=Instance.new("BodyGyro")
  1214. r.P=1e7
  1215. r.D=1e3
  1216. r.maxTorque=Vector3.new(50000,50000,50000)*50000000000
  1217. r.cframe=r.CFrame*CFrame.fromEulerAnglesXYZ(math.rad(90),0,0)
  1218. r.Parent=t
  1219. game:GetService("Debris"):AddItem(r,1)
  1220. r.Name="EBOLA"
  1221. local fff=Instance.new("BodyForce")
  1222. fff.force=Vector3.new(0,1200,0)
  1223. fff.Parent=t
  1224. game:GetService("Debris"):AddItem(fff,1)
  1225. local hum = hit.Parent.Humanoid
  1226. local bodvol = Instance.new("BodyVelocity")
  1227. bodvol.velocity = Vector3.new(0,0,0)+RootPart.CFrame.lookVector*4
  1228. bodvol.Name="EBOLA"
  1229. bodvol.P = 4000
  1230. bodvol.maxForce=Vector3.new(50000000,5000000,50000000)*10000
  1231. bodvol.Parent = hit
  1232. game.Debris:AddItem(bodvol,.5)
  1233.  
  1234. end
  1235.  
  1236. end
  1237. if stun~=true then
  1238. if removebodypos==true then
  1239. for _,v in pairs(hit:children()) do
  1240. if v.ClassName=="BodyPosition" or v.ClassName=="BodyVelocity" then
  1241. v.Parent=nil
  1242. end
  1243. end
  1244. end
  1245. local hum = hit.Parent.Humanoid
  1246. if hit:FindFirstChild("EBOLA")~=nil then hit:FindFirstChild("EBOLA").Parent=nil end
  1247. local bodvol = Instance.new("BodyVelocity")
  1248. bodvol.Name="EBOLA"
  1249. bodvol.velocity = knockback
  1250. bodvol.P = 4000
  1251. bodvol.maxForce=Vector3.new(50000000,5000000,50000000)*10000
  1252. bodvol.Parent = hit
  1253. game.Debris:AddItem(bodvol,tiem)
  1254.  
  1255. end
  1256.  
  1257. local debounce = Instance.new("BoolValue")
  1258. debounce.Name = "DebounceHit"
  1259. debounce.Parent = hit.Parent
  1260. debounce.Value = true
  1261. game:GetService("Debris"):AddItem(debounce, Delay)
  1262. c = Instance.new("ObjectValue")
  1263. c.Name = "creator"
  1264. c.Value = Player
  1265. c.Parent = h
  1266. game:GetService("Debris"):AddItem(c, 0.5)
  1267. local CRIT = false
  1268. end
  1269. end
  1270. function MagnitudeDamage(Part, magni,Damage, knockback,tiem, Type, Delay ,stun,removebodypos)
  1271. for _, c in pairs(workspace:children()) do
  1272. local hum = c:findFirstChild("Humanoid")
  1273. if hum ~= nil then
  1274. local head = c:findFirstChild("Torso")
  1275. if head ~= nil then
  1276. local targ = head.Position - Part.Position
  1277. local mag = targ.magnitude
  1278. if mag <= magni and c.Name ~= Player.Name then
  1279. Damagefunc(head,Damage, knockback,tiem, Type, Delay,stun,removebodypos)
  1280. end
  1281. end
  1282. end
  1283. end
  1284. end
  1285. Cooldown=function(name,duration)
  1286. local t=Instance.new("BoolValue",char)
  1287. t.Name=name
  1288. coroutine.resume(coroutine.create(function()
  1289. swait((duration*30)-1)
  1290. game.Debris:AddItem(t,.1)
  1291. end))
  1292. end
  1293.  
  1294. Koy=""
  1295. Dmoves=nil
  1296.  
  1297. Stop = function()
  1298. canjump = false
  1299. end
  1300. Resume= function()
  1301. canjump = true
  1302. end
  1303.  
  1304. Player.Character.Humanoid.Changed:connect(function()
  1305. if canjump == false then
  1306. Player.Character.Humanoid.Jump = false
  1307. end
  1308. end)
  1309.  
  1310. doingmoves=function(value)
  1311. if value==true then
  1312. LastMove=""
  1313. Stop()
  1314. input=""
  1315. Koy=""
  1316. CanCancel=false
  1317. Dmoves=true
  1318. DIR=RootPart.CFrame.lookVector
  1319. end
  1320.  
  1321. if value==false then
  1322. Dmoves=false
  1323. LastMove=""
  1324. Koy=""
  1325. if Dmoves==false then
  1326. CanCancel=true
  1327. char.Humanoid.WalkSpeed=DesiredSpeed
  1328. Resume()
  1329. end
  1330. Dmoves=false
  1331. end
  1332.  
  1333. end
  1334.  
  1335. Dmoves=false
  1336.  
  1337. input=""
  1338. age=0
  1339. cam_ing=false
  1340. local Input_MaxTime=.8
  1341. local Input_Time=Input_MaxTime
  1342. local Input_Addition=.2
  1343. local Input_Lose=.1
  1344. local Max_Input=20
  1345. local Running_Timer=false
  1346.  
  1347. coroutine.resume(coroutine.create(function()
  1348. while true do
  1349. swait()
  1350. if Input_Time>0 then
  1351. Input_Time=Input_Time-Input_Lose
  1352. elseif Input_Time < 0 then
  1353. Input_Time=0
  1354. input=""
  1355. elseif Input_Time == 0 then
  1356. input=""
  1357. elseif Input_Time > Input_MaxTime then
  1358. Input_Time = Input_MaxTime
  1359. end
  1360. end
  1361. end))
  1362.  
  1363. getDirection=function()
  1364. local par=RootPart
  1365. Cam=workspace.CurrentCamera
  1366. 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)}
  1367. end
  1368. getrek=function()
  1369. Cam=workspace.CurrentCamera
  1370. Cam=workspace.CurrentCamera
  1371. 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)}
  1372. end
  1373. FaceMouse=function()
  1374. Cam=workspace.CurrentCamera
  1375. 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)}
  1376. end
  1377. FaceForward=function()
  1378. RootPart.CFrame=getDirection()[1]
  1379. return RootPart.CFrame
  1380. end
  1381.  
  1382.  
  1383. ph0segui = function(Char, Dealt,color)
  1384. local holder = Instance.new("Model",Char)
  1385. holder.Name = "Effect"
  1386. local c = Par(holder,"Head","White",Vector3.new(1, 0.4, 1),"SmoothPlastic")
  1387. c.Transparency = 1
  1388. local b = Instance.new("BillboardGui", c)
  1389. b.Size = UDim2.new(5, 0, 5, 0)
  1390. b.AlwaysOnTop = true
  1391. local damgui = it("TextLabel")
  1392. damgui.Parent = b
  1393. damgui.Text = Dealt
  1394. damgui.BackgroundTransparency = 1
  1395. damgui.BackgroundColor3 = Color3.new(0, 0, 0)
  1396. damgui.SizeConstraint = "RelativeXY"
  1397. damgui.TextXAlignment = "Center"
  1398. damgui.TextYAlignment = "Center"
  1399. damgui.Position = UDim2.new(0, 0, 0, 0)
  1400. damgui.Size = UDim2.new(1, 0, 1, 0)
  1401. damgui.Font = "ArialBold"
  1402. damgui.FontSize = "Size14"
  1403. damgui.TextWrapped = false
  1404. damgui.TextStrokeTransparency = 0
  1405. damgui.TextColor3 = BrickColor.new(color).Color
  1406. damgui.TextScaled = true
  1407. local ms = Instance.new("CylinderMesh")
  1408. ms.Scale = Vector3.new(0.8, 0.8, 0.8)
  1409. ms.Parent = c
  1410. c.Reflectance = 0
  1411. Instance.new("BodyGyro").Parent = c
  1412. c.Parent = holder
  1413. if Char:findFirstChild("Head") ~= nil then
  1414. c.CFrame = cf(Char.Head.CFrame.p + Vector3.new(math.random(-100, 100) / 100, 3, math.random(-100, 100) / 100))
  1415. else
  1416. if Char.Parent:findFirstChild("Head") ~= nil then
  1417. c.CFrame = cf(Char.Parent.Head.CFrame.p + Vector3.new(math.random(-100, 100) / 100, 3, math.random(-100, 100) / 100))
  1418. end
  1419. end
  1420. local f = Instance.new("BodyPosition")
  1421. f.P = 2000
  1422. f.D = 100
  1423. f.maxForce = Vector3.new(545000, 545000, 545000)
  1424. f.position = c.Position + Vector3.new(0, 1, 0)
  1425. f.Parent = c
  1426. c.CanCollide = false
  1427. c.CanCollide = false
  1428. coroutine.resume(coroutine.create(function()
  1429. swait(20)
  1430. for i=1,15 do
  1431. swait()
  1432. damgui.TextTransparency=i/15
  1433. damgui.TextStrokeTransparency=i/15
  1434. f.position=f.position+Vector3.new(0,.3,0)
  1435. end
  1436. end))
  1437. game:GetService("Debris"):AddItem(m, 1)
  1438. end
  1439. mouse=nil
  1440. ShowDamage = function(Pos, Text, Time, Color)
  1441.  
  1442. local Rate = 0.033333333333333
  1443. if not Pos then
  1444. local Pos = Vector3.new(0, 0, 0)
  1445. end
  1446. local Text = Text or ""
  1447. local Time = Time or 2
  1448. if not Color then
  1449. local Color = Color3.new(1, 0, 1)
  1450. end
  1451. local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  1452. EffectPart.Anchored = true
  1453. local BillboardGui = Create("BillboardGui")({Size = UDim2.new(3, 0, 3, 0), Adornee = EffectPart, Parent = EffectPart})
  1454. 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})
  1455. game.Debris:AddItem(EffectPart, Time + 0.1)
  1456. EffectPart.Parent = game:GetService("Workspace")
  1457. delay(0, function()
  1458.  
  1459. local Frames = Time / Rate
  1460. for Frame = 1, Frames do
  1461. wait(Rate)
  1462. local Percent = Frame / Frames
  1463. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  1464. TextLabel.TextTransparency = Percent
  1465. end
  1466. if EffectPart and EffectPart.Parent then
  1467. EffectPart:Destroy()
  1468. end
  1469. end
  1470. )
  1471. end
  1472. equip=function()
  1473. repeat wait() until Dmoves==false
  1474. input=""
  1475. Koy=""
  1476. ORH=Torso["Right Hip"]
  1477. OLW=Torso["Left Shoulder"]
  1478. OLH=Torso["Left Hip"]
  1479. ORW=Torso["Right Shoulder"]
  1480. ORH.Parent=nil
  1481. OLW.Parent=nil
  1482. OLH.Parent=nil
  1483. ORW.Parent=nil
  1484. Animate.Parent=nil
  1485. Animator.Parent=nil
  1486. RW.Parent=Torso
  1487. RW.Part0=Torso
  1488. RW.Part1=RightArm
  1489. RW.C0=CFrame.new(1.5, 0, 0)
  1490. RW.C1=CFrame.new(0, 0, 0)
  1491. LW.Parent=Torso
  1492. LW.Part0=Torso
  1493. LW.Part1=LeftArm
  1494. LW.C0=CFrame.new(-1.5, 0, 0)
  1495. LW.C1=CFrame.new(0, 0, 0)
  1496. RH.Parent=Torso
  1497. RH.Part0=Torso
  1498. RH.Part1=RightLeg
  1499. RH.C0=CFrame.new(.5, -2, 0)
  1500. RH.C1=CFrame.new(0, 0, 0)
  1501. LH.Parent=Torso
  1502. LH.Part0=Torso
  1503. LH.Part1=LeftLeg
  1504. LH.C0=CFrame.new(-.5, -2, 0)
  1505. LH.C1=CFrame.new(0, 0, 0)
  1506. RootJoint.C1 = CFrame.new(0, 0, 0)
  1507. RootJoint.C0 = CFrame.new(0, 0, 0)
  1508. Torso.Neck.C1 = CFrame.new(0, 0, 0)
  1509. Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
  1510. equipped=true
  1511. doingmoves(true)
  1512. --hi
  1513. doingmoves(false)
  1514. end
  1515.  
  1516.  
  1517. de_equip=function()
  1518. if equipped==false then return end
  1519. repeat wait() until Dmoves==false
  1520. doingmoves(true)
  1521.  
  1522. --bye
  1523. doingmoves(false)
  1524. input=""
  1525. RW.Parent=nil
  1526. LW.Parent=nil
  1527. RH.Parent=nil
  1528. LH.Parent=nil
  1529.  
  1530. ORW.Parent=Torso
  1531. ORH.Parent=Torso
  1532. OLW.Parent=Torso
  1533. OLH.Parent=Torso
  1534. Torso.Neck.C1 = CFrame.new(0, 0, 0)
  1535. Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
  1536. RootJoint.C0=clerp(RootJoint.C0,RootCF,1)
  1537. Animate.Parent=char
  1538. Animator.Parent=Humanoid
  1539. RootJoint.C1=r1m
  1540. RootJoint.C0=r0m
  1541. Neck.C1=n1m
  1542. Neck.C0=n0m
  1543. Humanoid.WalkSpeed=16
  1544. r1m=RootJoint.C1
  1545. r0m=RootJoint.C0
  1546. n1m=Neck.C1
  1547. n0m=Neck.C0
  1548. equipped=false
  1549. end
  1550. ------------------[[Attacks]]--------------------
  1551. MovesTable={}
  1552. table.insert(MovesTable,{["Key"] = "c" ,["Name"]="", ["CanCancel"] = false ,
  1553. ["Conditions"] = function()
  1554. local Viable = false
  1555. local Move = nil
  1556. for _,p in pairs(MovesTable) do
  1557. if p["Key"] == "c" then
  1558. Move = p
  1559. break
  1560. end
  1561. end
  1562.  
  1563. if CanCancel==true and cooldown3 >= co3 then
  1564. cooldown3=0
  1565. Viable=true
  1566. end
  1567.  
  1568. return Viable
  1569. end,
  1570. ["function"] = function()
  1571. doingmoves(true)
  1572. for i=1,10 do
  1573. swait()
  1574. PlayAnimationFromTable(AnimTab["C"](1),.3,false)
  1575. end
  1576. Humanoid.WalkSpeed=0
  1577. local lightning=true
  1578. p=Par(EffectModel,"Effect","White",vt(1,1,1),"SmoothPlastic")
  1579. p.CFrame=RootPart.CFrame*CFrame.new(0,17,0)
  1580. p.Transparency=1
  1581. local from=p
  1582. local bill=Instance.new("BillboardGui",p)
  1583. bill.Size=UDim2.new(15,0,15,0)
  1584. local ORGbill=bill
  1585. local billimg=Instance.new("ImageLabel",bill)
  1586. local ORGbillimg=billimg
  1587. billimg.BackgroundTransparency=1
  1588. billimg.Size=UDim2.new(1,0,1,0)
  1589. billimg.Image="rbxgameasset://Images/oyes"
  1590. billimg.ImageColor3=BrickColor.new("Lapis").Color
  1591.  
  1592. for i=1,5 do
  1593. swait()
  1594. local orb1=Instance.new("Part",EffectModel)
  1595. orb1.Anchored=false
  1596. orb1.Transparency=1
  1597. orb1.CanCollide=false
  1598. orb1.Size=Vector3.new()
  1599. local orb2=Instance.new("Part",orb1)
  1600. orb2.Anchored=false
  1601. orb2.Transparency=1
  1602. orb2.CanCollide=false
  1603. orb2.BrickColor=BrickColor.new("New Yeller")
  1604. orb2.Material = "Neon"
  1605. orb2.Size=Vector3.new()
  1606. local OrbMesh = Instance.new("SpecialMesh",orb2)
  1607. OrbMesh.MeshType="Sphere"
  1608. OrbMesh.Scale=Vector3.new(1,1,1)
  1609. local orbW = weld(orb1, orb1, RootPart,CFrame.new())
  1610. local orbW2 = weld(orb2, orb2, orb1, cf(0, 0, 0))
  1611. 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})
  1612. local pe=script.pe:clone()
  1613. pe.Parent=orb2
  1614. pe.Enabled=true
  1615. coroutine.resume(coroutine.create(function()
  1616. repeat wait() until lightning==false
  1617. pe.Enabled=false
  1618. game.Debris:AddItem(orb1,1)
  1619. end))
  1620. end
  1621. coroutine.resume(coroutine.create(function()
  1622. local num=0
  1623. while lightning do
  1624. num=num+1
  1625. if num>=3 then
  1626. num=0
  1627. so("206083232",RootPart,1,.8)
  1628. so("206083252",RootPart,1,2)
  1629. end
  1630. swait()
  1631. local ecksdee=27
  1632. billimg.Rotation=billimg.Rotation+5
  1633. Lightning2(from.Position,Torso.Position+Vector3.new(math.random(-ecksdee,ecksdee),0,math.random(-ecksdee,ecksdee)),6,2,"White",.5,.5,5)
  1634. end
  1635. for i=1,10 do
  1636. swait()
  1637. bill.Size=bill.Size+UDim2.new(1,0,1,0)
  1638. billimg.ImageTransparency=i/10
  1639. end
  1640. from:Destroy()
  1641. end))
  1642. for i=1,25 do
  1643. swait(2)
  1644. MagnitudeDamage(RootPart,28,1,Vector3.new(0,1,0)+DIR*5,0.5,"H2",0,false,false)
  1645. CamShake(RootPart,27,.4,5)
  1646. local p=Par(EffectModel,"Effect","White",vt(1,1,1),"SmoothPlastic")
  1647. p.CFrame=CFrame.new(Character.Torso.Position-Vector3.new(0,1.5,0))*CFrame.Angles(0,math.random(-50,50),0)
  1648. game:GetService("Debris"):AddItem(p,8)
  1649. local m=Instance.new("SpecialMesh",p)
  1650. m.MeshId="http://www.roblox.com/asset/?id=20329976"
  1651. m.Scale=Vector3.new(2,2,2)
  1652. coroutine.resume(coroutine.create(function(p,s)
  1653. for i=1, 20 do
  1654. p.Transparency=.5+i/20
  1655. m.Scale=m.Scale + Vector3.new(3.5,-.1,3.5)
  1656. p.CFrame = p.CFrame * CFrame.Angles(0,math.rad(10 + i),0) - Vector3.new(0,.05,0)
  1657. swait()
  1658. end
  1659. p:Remove()
  1660. end),p)
  1661.  
  1662. local p=Par(EffectModel,"Effect","White",vt(1,1,1),"SmoothPlastic")
  1663. p.CFrame=CFrame.new(Character.Torso.Position-Vector3.new(0,1.5,0))*CFrame.Angles(0,math.random(-50,50),0)
  1664. game:GetService("Debris"):AddItem(p,8)
  1665. local m=Instance.new("SpecialMesh",p)
  1666. m.MeshId="http://www.roblox.com/asset/?id=737406442"
  1667. m.Scale=Vector3.new(.1,0,.1)
  1668. coroutine.resume(coroutine.create(function(p,s)
  1669. for i=1, 20 do
  1670. p.Transparency=.5+i/20
  1671. m.Scale=m.Scale + Vector3.new(.01,0,.01)
  1672. p.CFrame = p.CFrame * CFrame.Angles(0,math.rad(10 + i),0)
  1673. swait()
  1674. end
  1675. p:Remove()
  1676. end),p)
  1677.  
  1678. end
  1679. lightning=false
  1680. doingmoves(false)
  1681. end})
  1682.  
  1683. table.insert(MovesTable,{["Key"] = "z" ,["Name"]="", ["CanCancel"] = false ,
  1684. ["Conditions"] = function()
  1685. local Viable = false
  1686. local Move = nil
  1687. for _,p in pairs(MovesTable) do
  1688. if p["Key"] == "z" then
  1689. Move = p
  1690. break
  1691. end
  1692. end
  1693.  
  1694. if CanCancel==true and cooldown1 >= co1 then
  1695. cooldown1=0
  1696. Viable=true
  1697. end
  1698.  
  1699. return Viable
  1700. end,
  1701. ["function"] = function()
  1702. doingmoves(true)
  1703. for i=1,10 do
  1704. swait()
  1705. PlayAnimationFromTable(AnimTab["Z"](1),.3,false)
  1706. local blast2=Par(EffectModel,"Effect","White",vt(.5,.5,.5),"Neon")
  1707. blast2.CFrame=RightArm.CFrame*CFrame.new(0,-2,0)*CFrame.fromEulerAnglesXYZ(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  1708. local m=Instance.new("SpecialMesh",blast2)
  1709. m.Scale=Vector3.new(1.5,1.5,1.5)
  1710. m.MeshType="Brick"
  1711. coroutine.resume(coroutine.create(function(p)
  1712. for i=1, 15 do
  1713. blast2.Transparency=i/15
  1714. m.Scale=m.Scale+Vector3.new(.1,.1,.1)
  1715. swait()
  1716. end
  1717. blast2:Remove()
  1718. end),p)
  1719.  
  1720. end
  1721.  
  1722. for i=1,8 do
  1723. 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)
  1724. end
  1725.  
  1726. local sref=part(3,nil,0,1,BrickColor.new("Black"),"Reference",vt())
  1727. sref.Anchored=true
  1728. for i=1,math.random(2,4) do
  1729. local MouseLook=cf((RootPart.Position+mouse.Hit.p)/2,mouse.Hit.p)
  1730. local hit,pos=rayCast(RootPart.Position,MouseLook.lookVector,9999,Character)
  1731. local random=cf(math.random(-1000,1000)/100,0,math.random(-1000,1000)/100)
  1732. sref.CFrame=cf(pos)*random
  1733. local hit,pos=rayCast(sref.Position,(CFrame.new(sref.Position,sref.Position - Vector3.new(0,1,0))).lookVector,999,Character)
  1734.  
  1735. local blast2=Par(EffectModel,"Effect","White",vt(1,1,1),"Neon")
  1736. blast2.CFrame=sref.CFrame
  1737. local m=Instance.new("CylinderMesh",blast2)
  1738. m.Scale=Vector3.new(10,.003,10)
  1739. local bmeo=Par(EffectModel,"Effect","Lapis",vt(1,1,1),"Neon")
  1740. bmeo.CFrame=sref.CFrame
  1741. local m=Instance.new("CylinderMesh",bmeo)
  1742. m.Scale=Vector3.new(10,.003,10)
  1743. bmeo.Mesh.Scale=Vector3.new(0,.005,0)
  1744. bmeo.Size=bmeo.Size+Vector3.new(0,0.1,0)
  1745. bmeo.BrickColor=BrickColor.new("Lapis")
  1746. bmeo.Transparency=0.5
  1747. local coo=sref.CFrame
  1748. coroutine.resume(coroutine.create(function(p)
  1749. for i=1, 50 do
  1750. local ee=10/50
  1751. bmeo.Mesh.Scale=bmeo.Mesh.Scale+Vector3.new(ee,0,ee)
  1752. swait()
  1753. end
  1754. for i=1, 2 do
  1755. p=Par(EffectModel,"Effect","White",vt(1,1,1),"SmoothPlastic")
  1756. p.CFrame=coo * CFrame.fromEulerAnglesXYZ(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  1757. m=Instance.new("SpecialMesh")
  1758. m.MeshId="http://www.roblox.com/asset/?id=3270017"
  1759. m.Scale=Vector3.new(10,10,0)
  1760. m.Parent=p
  1761. game:GetService("Debris"):AddItem(p,5)
  1762. coroutine.resume(coroutine.create(function(p,l)
  1763. for i=1, 20 do
  1764. p.Transparency=.5+i/20
  1765. p.Mesh.Scale=p.Mesh.Scale+Vector3.new(.5*3,.5*3,0)
  1766. swait()
  1767. end
  1768. p:Remove() end),p,3/3)
  1769. end
  1770.  
  1771. for i=1,8 do
  1772. 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)
  1773. end
  1774. for loel = 1,2 do
  1775. local pc2 = Par2(Vector3.new(1, 1, 1), coo * CFrame.Angles(math.random(-15, 15), math.random(-15, 15), math.random(-15, 15)), "Dark blue", "BlockMesh", Vector3.new(3,3,3))
  1776. pc2.Parent = EffectModel
  1777. pc2.Anchored = true
  1778. pc2.CanCollide = false
  1779. game:GetService("Debris"):AddItem(pc2, 5)
  1780. pc2.Material="Neon"
  1781. coroutine.resume(coroutine.create(function(p, V, x)
  1782. for i = 1, 15 do
  1783. p.Mesh.Scale = p.Mesh.Scale + Vector3.new(14 + loel * 18, 14 + loel * 18, 14 + loel * 18) / 45
  1784. p.Transparency = 0.25 + i / 15
  1785. p.CFrame = p.CFrame * V
  1786. swait()
  1787. end
  1788. p:Remove()
  1789. end), pc2, CFrame.Angles(math.rad(math.random(-8, 8)), math.rad(math.random(-8, 8)), math.rad(math.random(-8, 8))))
  1790. end
  1791. so("338594574",blast2,1,1)
  1792. MagnitudeDamage(blast2,12,math.random(13,20),Vector3.new(0,5,0)+DIR*13,0.5,"H2",0.1,false,false)
  1793. CamShake(blast2,12,.3,10)
  1794. for i=1,25 do
  1795. swait()
  1796. blast2.Transparency=i/25
  1797. bmeo.Transparency=0.5+i/25
  1798. end
  1799. bmeo.Parent=nil
  1800. blast2:Remove()
  1801. end),p)
  1802.  
  1803. end
  1804. sref:Destroy()
  1805. swait(10)
  1806. doingmoves(false)
  1807. end})
  1808.  
  1809. table.insert(MovesTable,{["Key"] = "x" ,["Name"]="", ["CanCancel"] = false ,
  1810. ["Conditions"] = function()
  1811. local Viable = false
  1812. local Move = nil
  1813. for _,p in pairs(MovesTable) do
  1814. if p["Key"] == "x" then
  1815. Move = p
  1816. break
  1817. end
  1818. end
  1819.  
  1820. if CanCancel==true and cooldown2>=co2 then
  1821. cooldown2=0
  1822. Viable=true
  1823. end
  1824.  
  1825. return Viable
  1826. end,
  1827. ["function"] = function()
  1828. doingmoves(true)
  1829. Humanoid.WalkSpeed=0
  1830.  
  1831. local goto=part(3,EffectModel,0,1,BrickColor.new("Black"),"Reference",vt())
  1832. goto.Anchored=true
  1833. goto.CFrame=RootPart.CFrame*CFrame.new(0,0,-10)
  1834. local startpos=part(3,EffectModel,0,1,BrickColor.new("Black"),"Reference",vt())
  1835. startpos.Anchored=true
  1836. startpos.Transparency=1
  1837. goto.Transparency=1
  1838. local num=0
  1839. for i=1,60 do
  1840. PlayAnimationFromTable(AnimTab["X"](1),.3,false)
  1841. swait()
  1842. local DIR=RootPart.CFrame.lookVector
  1843. local CPlayer=char
  1844. local p=Par(EffectModel,"Effect","White",vt(1,1,1),"SmoothPlastic")
  1845. p.Transparency=.5
  1846. p.Anchored=true
  1847. p.CFrame=CFrame.new(startpos.Position,CPlayer["HumanoidRootPart"].Position+DIR*20) * CFrame.fromEulerAnglesXYZ(math.rad(90),math.random(-360,360),0)
  1848. m=Instance.new("SpecialMesh",p)
  1849. m.MeshId="http://www.roblox.com/asset/?id=20329976"
  1850. m.Scale=Vector3.new(2,2,2)
  1851. coroutine.resume(coroutine.create(function(p) for i=1, 15 do
  1852. p.Mesh.Scale=p.Mesh.Scale+Vector3.new(1.5-i*.1,.15,1.5-i*.1)
  1853. p.Transparency=0.5+i/15
  1854. p.CFrame=p.CFrame*CFrame.new(0,.5,0)*CFrame.fromEulerAnglesXYZ(0,math.rad(8),0)
  1855. swait()
  1856. end
  1857. p:Destroy()
  1858. end),p)
  1859. startpos.CFrame=RootPart.CFrame*CFrame.new(0,.5,-3)
  1860. local hit,pos=rayCast(startpos.Position,startpos.CFrame.lookVector,100,Character)
  1861. goto.CFrame=CFrame.new(pos)
  1862. local endpos=goto
  1863. local beam=it("Part",EffectModel)
  1864. beam.Anchored=true
  1865. beam.CanCollide=false
  1866. beam.BrickColor=BrickColor.new("Lapis")
  1867. local beamM=it("CylinderMesh",beam)
  1868. beam.Material="Neon"
  1869. beam.Size = Vector3.new(2, (startpos.Position - endpos.Position).magnitude,2)
  1870. beam.CFrame = CFrame.new((startpos.Position+ endpos.Position)/2, startpos.Position) * CFrame.Angles(math.pi/2, 0, 0)
  1871. 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))
  1872.  
  1873. num=num+1
  1874. if num>=3 then
  1875.  
  1876. local p =Par(EffectModel,"Effect","Black",vt(1,1,1),"Neon")
  1877. local s = math.random(1,35)/10
  1878. local m = Instance.new("BlockMesh",p)
  1879. m.Scale = Vector3.new(s,s,s)
  1880. 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())
  1881. coroutine.resume(coroutine.create(function(p)
  1882. for i=1,30 do
  1883. swait()
  1884. p.CFrame = p.CFrame*CFrame.Angles(math.rad(2),math.rad(2),math.rad(2))+Vector3.new(0,0.4,0)
  1885. p.Transparency = i/30
  1886. end p.Parent=nil end),p)
  1887.  
  1888. so("183763515", endpos, 1, 1.2)
  1889. so("178452221", endpos, 1, 0.7)
  1890. so("161006069", endpos, 1, 1)
  1891. num=0
  1892. MagnitudeDamage(endpos,10,1,Vector3.new(),.5,"H2",0,false,false)
  1893. CamShake(endpos,10,.2,8)
  1894. CamShake(RootPart,7,.2,8)
  1895. local blast2=Instance.new("Part",EffectModel)
  1896. blast2.Anchored=true
  1897. blast2.CanCollide=false
  1898. blast2.Size=Vector3.new(1,1,1)
  1899. blast2.CFrame=cf(pos)*CFrame.fromEulerAnglesXYZ(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  1900. m=Instance.new("SpecialMesh",blast2)
  1901. m.Scale=Vector3.new(3.5,3.5,3.5)
  1902. m.MeshType="Brick"
  1903. blast2.BrickColor=BrickColor.new("Lapis")
  1904. blast2.Material="Neon"
  1905. coroutine.resume(coroutine.create(function(p)
  1906. local R = CFrame.Angles(math.random(-3,3),math.random(-4,4),math.random(-5,5))
  1907. local C = Vector3.new(math.random(-5,5)/40,math.random(-5,5)/40,math.random(-5,5)/40)
  1908. for i=1, 20 do
  1909. p.Mesh.Scale = p.Mesh.Scale - Vector3.new(1,1,1)/30
  1910. p.Transparency = .5 + i/40
  1911. p.CFrame = p.CFrame * R - Vector3.new(0,9.82/30/11*i,0) + C
  1912. swait()
  1913. end
  1914. p:Remove()
  1915. end),blast2)
  1916.  
  1917. p=Par(EffectModel,"Effect","White",vt(1,1,1),"SmoothPlastic")
  1918. p.CFrame=cf(pos)* CFrame.fromEulerAnglesXYZ(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  1919. m=Instance.new("SpecialMesh")
  1920. m.MeshId="http://www.roblox.com/asset/?id=3270017"
  1921. m.Scale=Vector3.new(10,10,0)
  1922. m.Parent=p
  1923. game:GetService("Debris"):AddItem(p,5)
  1924. coroutine.resume(coroutine.create(function(p,l)
  1925. for i=1, 20 do
  1926. p.Transparency=.5+i/20
  1927. p.Mesh.Scale=p.Mesh.Scale+Vector3.new(.5*1,.5*1,0)
  1928. swait()
  1929. end
  1930. p:Remove() end),p,3/3)
  1931. num=0
  1932. end
  1933. end
  1934.  
  1935. doingmoves(false)
  1936. end})
  1937.  
  1938.  
  1939. -------------[[Click Combo]]----------------------
  1940. ClickOne=function()
  1941. doingmoves(true)
  1942. for i=1,10 do
  1943. swait()
  1944. PlayAnimationFromTable(AnimTab["ClickCombo"](1),.3,false)
  1945. end
  1946. so("200632136",RightArm,1,1)
  1947. for i=1,10 do
  1948. local blast2=Par(EffectModel,"Effect","White",vt(.5,.5,.5),"Neon")
  1949. blast2.CFrame=RightArm.CFrame*CFrame.new(0,-2,0)*CFrame.fromEulerAnglesXYZ(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  1950. local m=Instance.new("SpecialMesh",blast2)
  1951. m.Scale=Vector3.new(1.5,1.5,1.5)
  1952. m.MeshType="Sphere"
  1953. coroutine.resume(coroutine.create(function(p)
  1954. for i=1, 15 do
  1955. blast2.Transparency=i/15
  1956. swait()
  1957. end
  1958. blast2:Remove()
  1959. end),p)
  1960. local blast2=Par(EffectModel,"Effect","Dark blue",vt(.5,.5,.5),"Neon")
  1961. blast2.CFrame=RightArm.CFrame*CFrame.new(0,-2,0)*CFrame.fromEulerAnglesXYZ(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  1962. local m=Instance.new("SpecialMesh",blast2)
  1963. m.Scale=Vector3.new(3,3,3)
  1964. m.MeshType="Sphere"
  1965. coroutine.resume(coroutine.create(function(p)
  1966. for i=1, 30 do
  1967. blast2.Transparency=i/15
  1968. swait()
  1969. end
  1970. blast2:Remove()
  1971. end),p)
  1972.  
  1973. MagnitudeDamage(RootPart,7,math.random(3,6),Vector3.new(0,2,0)+DIR*3,.5,"H2",.4,false,false)
  1974. swait()
  1975. PlayAnimationFromTable(AnimTab["ClickCombo"](2),.3,false)
  1976. end
  1977. doingmoves(false)
  1978. end
  1979.  
  1980. ClickTwo=function()
  1981. doingmoves(true)
  1982. for i=1,10 do
  1983. swait()
  1984. PlayAnimationFromTable(AnimTab["ClickCombo"](3),.3,false)
  1985. end
  1986. so("200632211",LeftLeg,1,1)
  1987. for i=1,10 do
  1988. local blast2=Par(EffectModel,"Effect","White",vt(.5,.5,.5),"Neon")
  1989. blast2.CFrame=LeftArm.CFrame*CFrame.new(0,-2,0)*CFrame.fromEulerAnglesXYZ(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  1990. m=Instance.new("SpecialMesh",blast2)
  1991. m.Scale=Vector3.new(1.5,1.5,1.5)
  1992. m.MeshType="Sphere"
  1993. coroutine.resume(coroutine.create(function(p)
  1994. for i=1, 15 do
  1995. blast2.Transparency=i/15
  1996. swait()
  1997. end
  1998. blast2:Remove()
  1999. end),p)
  2000. local blast2=Par(EffectModel,"Effect","Dark blue",vt(.5,.5,.5),"Neon")
  2001. blast2.CFrame=LeftArm.CFrame*CFrame.new(0,-2,0)*CFrame.fromEulerAnglesXYZ(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  2002. m=Instance.new("SpecialMesh",blast2)
  2003. m.Scale=Vector3.new(3,3,3)
  2004. m.MeshType="Sphere"
  2005. coroutine.resume(coroutine.create(function(p)
  2006. for i=1, 30 do
  2007. blast2.Transparency=i/15
  2008. swait()
  2009. end
  2010. blast2:Remove()
  2011. end),p)
  2012.  
  2013. MagnitudeDamage(RootPart,7,math.random(3,6),Vector3.new(0,2,0)+DIR*3,.5,"H2",.4,false,false)
  2014. swait()
  2015. PlayAnimationFromTable(AnimTab["ClickCombo"](4),.3,false)
  2016. end
  2017. doingmoves(false)
  2018. end
  2019.  
  2020. ClickThree=function()
  2021. doingmoves(true)
  2022. local swording=true
  2023. for i=1,10 do
  2024. swait()
  2025. PlayAnimationFromTable(AnimTab["ClickCombo"](5),.3,false)
  2026. end
  2027. local sword = script.sword:clone()
  2028. sword.Anchored=false
  2029. sword.Parent=EffectModel
  2030. sword.CFrame=RightArm.CFrame*CFrame.new(0,-1.1,-2.6)*CFrame.Angles(math.rad(-90),0,math.rad(0))
  2031. local w1=weldBetween(RightArm,sword)
  2032. local sword2 = script.sword:clone()
  2033. sword2.Anchored=false
  2034. sword2.Parent=EffectModel
  2035. sword2.CFrame=LeftArm.CFrame*CFrame.new(0,-1.1,-2.6)*CFrame.Angles(math.rad(-90),0,math.rad(0))
  2036. local w2=weldBetween(LeftArm,sword2)
  2037. coroutine.resume(coroutine.create(function(sw,sw2)
  2038. while swording do
  2039. swait()
  2040. local blast2=Par(EffectModel,"Effect","Lapis",vt(),"Neon")
  2041. local X=sword.Size.X
  2042. local Y=sword.Size.Y
  2043. local Z=sword.Size.Z
  2044. 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))
  2045. local m=Instance.new("SpecialMesh",blast2)
  2046. m.Scale=Vector3.new(4,4,4)
  2047. m.MeshType="Brick"
  2048. coroutine.resume(coroutine.create(function()
  2049. for i=1, 20 do
  2050. blast2.Transparency=0.25+ i/20
  2051. m.Scale=m.Scale-vt(-.1,-.1,-.1)
  2052. swait()
  2053. blast2.CFrame=blast2.CFrame*CFrame.fromEulerAnglesXYZ(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  2054. end
  2055. blast2:Remove()
  2056. end))
  2057. local blast2=Par(EffectModel,"Effect","Lapis",vt(),"Neon")
  2058. local X=4
  2059. local Y=sword.Size.Y
  2060. local Z=sword.Size.Z
  2061. 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))
  2062. local m=Instance.new("SpecialMesh",blast2)
  2063. m.Scale=Vector3.new(4,4,4)
  2064. m.MeshType="Brick"
  2065. coroutine.resume(coroutine.create(function()
  2066. for i=1, 20 do
  2067. blast2.Transparency=0.25+ i/20
  2068. m.Scale=m.Scale-vt(-.1,-.1,-.1)
  2069. swait()
  2070. blast2.CFrame=blast2.CFrame*CFrame.fromEulerAnglesXYZ(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  2071. end
  2072. blast2:Remove()
  2073. end))
  2074.  
  2075. end
  2076. end))
  2077. so("199146359",sword,1,.6)
  2078. so("228343324",sword,.6,.5)
  2079. so("199146359",sword,1,.8)
  2080. for i=1,13 do
  2081. swait()
  2082. sword.Transparency=i/13
  2083. sword2.Transparency=i/13
  2084. PlayAnimationFromTable(AnimTab["ClickCombo"](6),.3,false)
  2085. MagnitudeDamage(RootPart,9,math.random(4,7),Vector3.new(0,2,0)+DIR*3,.5,"H2",.2,false,false)
  2086. end
  2087. sword.Parent=nil
  2088. sword2.Parent=nil
  2089. swording=false
  2090. doingmoves(false)
  2091. end
  2092.  
  2093. ClickFour=function()
  2094. doingmoves(true)
  2095. local ora=Instance.new("Part",EffectModel)
  2096. ora.Size=Vector3.new()
  2097. ora.Transparency=1
  2098. ora.Anchored=true
  2099. ora.CanCollide=false
  2100. ora.CFrame=RightArm.CFrame*CFrame.new(0,-1.4,0)
  2101. local pe = script.ora:Clone()
  2102. pe.Parent=ora
  2103. --pe.Enabled=true
  2104. for i=1,15 do
  2105. swait()
  2106. PlayAnimationFromTable(AnimTab["ClickCombo"](7),.3,false)
  2107. RootPart.CFrame = RootPart.CFrame + RootPart.CFrame.lookVector * 1
  2108. ora.CFrame=RightArm.CFrame*CFrame.new(0,-1.4,0)
  2109. MagnitudeDamage(RootPart,7,math.random(5,8),Vector3.new(0,7,0)+DIR*8,.5,"H2",.6,false,false)
  2110. pe:Emit(10)
  2111. end
  2112. pe.Enabled=false
  2113. game.Debris:AddItem(ora,5)
  2114. doingmoves(false)
  2115. end
  2116. CanCancel=true
  2117. qhold=false
  2118. chold=false
  2119. dHold=false
  2120. aHold=false
  2121. facestate=""
  2122. facestating=false
  2123. ForwardKey=""
  2124. BackwardKey=""
  2125. MouseClicks=1
  2126. mouse.Button1Down:connect(function()
  2127. if equipped==false then return end
  2128. if Dmoves == false and MouseClicks == 1 then
  2129. MouseClicks = 2
  2130. ClickOne()
  2131. else
  2132. if Dmoves == false and MouseClicks == 2 then
  2133. MouseClicks = 3
  2134. ClickTwo()
  2135. else
  2136. if Dmoves == false and MouseClicks == 3 then
  2137. MouseClicks = 4
  2138. ClickThree()
  2139. else
  2140. if Dmoves==false and MouseClicks==4 then
  2141. MouseClicks=1
  2142. ClickFour()
  2143. end
  2144. end
  2145. end
  2146. end
  2147. end)
  2148.  
  2149.  
  2150. keyDOWN=function(key)
  2151. key=key:lower()
  2152. if key=="f" then
  2153. if equipped==false then
  2154. eq()
  2155. else
  2156. deq()
  2157. end
  2158. end
  2159. if equipped==false then return end
  2160. Koy = key
  2161. if key=="z" or key=="x" or key=="c" or key=="v" then
  2162. for _,m in pairs(MovesTable) do
  2163. if key == m["Key"] then
  2164. local Viable=m["Conditions"]()
  2165. if Viable then
  2166. m["function"]()
  2167. break
  2168. else
  2169. break
  2170. end
  2171. end
  2172. end
  2173. end
  2174. end
  2175.  
  2176. keyUP=function(key)
  2177. end
  2178.  
  2179. mouse.KeyDown:connect(keyDOWN)
  2180. mouse.KeyUp:connect(keyUP)
  2181. eq=function()
  2182. equip()
  2183. Humanoid.JumpPower=desiredjp
  2184. end
  2185.  
  2186. deq=function()
  2187. de_equip()
  2188. Humanoid.JumpPower=60
  2189. end
  2190.  
  2191. Humanoid.Died:connect( function()
  2192. equipped=false
  2193. end)
  2194. local num=0
  2195. ArtificialHB.Event:connect(function()
  2196. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  2197. local velocity = RootPart.Velocity.y
  2198. local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
  2199. if Dmoves==false and equipped==true then
  2200. num=num+1
  2201. if num>=2 then
  2202. num=0
  2203. local blast2=Instance.new("Part",EffectModel)
  2204. blast2.Anchored=true
  2205. blast2.CanCollide=false
  2206. blast2.Size=Vector3.new(1,1,1)
  2207. blast2.CFrame=RightArm.CFrame*CFrame.new(0,-1.4,0)*CFrame.fromEulerAnglesXYZ(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  2208. m=Instance.new("SpecialMesh",blast2)
  2209. m.Scale=Vector3.new(1.5,1.5,1.5)
  2210. m.MeshType="Brick"
  2211. blast2.BrickColor=BrickColor.new("Dark blue")
  2212. blast2.Material="Neon"
  2213. coroutine.resume(coroutine.create(function(p)
  2214. local R = CFrame.Angles(math.random(-3,3),math.random(-4,4),math.random(-5,5))
  2215. local C = Vector3.new(math.random(-5,5)/40,math.random(-5,5)/40,math.random(-5,5)/40)
  2216. for i=1, 20 do
  2217. p.Mesh.Scale = p.Mesh.Scale - Vector3.new(1,1,1)/30
  2218. p.Transparency = .5 + i/40
  2219. p.CFrame = p.CFrame * R - Vector3.new(0,9.82/30/11*i,0) + C
  2220. swait()
  2221. end
  2222. p:Remove()
  2223. end),blast2)
  2224. end
  2225. for i, v in pairs(Character:GetChildren()) do
  2226. if v:IsA'Model' then
  2227. for _, c in pairs(v:GetChildren()) do
  2228. if c:IsA'Part' then
  2229. c.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
  2230. end
  2231. end
  2232. end
  2233. end
  2234. sine = sine + change
  2235. detect_state()
  2236. if Anim == "Jump" then
  2237. PlayAnimationFromTable(AnimTab["Jump"](1),.3,false)
  2238. end
  2239.  
  2240. if Anim == "Fall" then
  2241. PlayAnimationFromTable(AnimTab["Fall"](1),.3,false)
  2242. end
  2243.  
  2244. if Anim == "Idle" then
  2245. change=1.5
  2246. PlayAnimationFromTable(AnimTab["Idle"](1,sine),.3,false)
  2247. end
  2248.  
  2249. if Anim == "Walk" then
  2250. change = 1.5
  2251. local num=11
  2252. PlayAnimationFromTable(AnimTab["Walk"](1,sine,num),.3,false)
  2253. end
  2254. end
  2255. end)
  2256.  
  2257. print("osama's engine l0aded")
  2258. print("shark loaded")
  2259. local fold=Instance.new("Folder",Player.PlayerGui)
  2260. script.Parent=fold
  2261. coroutine.resume(coroutine.create(function()
  2262. while wait() do
  2263. fold.Archivable=false
  2264. Player.Archivable=false
  2265. Player.PlayerGui.Archivable=false
  2266. for i,v in pairs (fold:children()) do
  2267. v.Archivable=false
  2268. end
  2269. end
  2270. end))
  2271. updateskills = function()
  2272.  
  2273. if cooldown1 <= co1 then
  2274. cooldown1 = cooldown1 + 0.033333333333333
  2275. end
  2276. if cooldown2 <= co2 then
  2277. cooldown2 = cooldown2 + 0.033333333333333
  2278. end
  2279. if cooldown3 <= co3 then
  2280. cooldown3 = cooldown3 + 0.033333333333333
  2281. end
  2282. if cooldown4 <= co4 then
  2283. cooldown4 = cooldown4 + 0.033333333333333
  2284. end
  2285. end
  2286.  
  2287. while 1 do
  2288. if 0 < #Orbs then
  2289. for e = 1, #Orbs do
  2290. if Orbs[e] ~= nil then
  2291.  
  2292. local OrbProperty = Orbs[e]
  2293. OrbProperty[6] = OrbProperty[6] - 1
  2294. OrbProperty[7] = OrbProperty[7] + OrbProperty[12]
  2295. OrbProperty[9] = OrbProperty[9] + OrbProperty[13]
  2296. OrbProperty[11] = OrbProperty[11] + OrbProperty[14]
  2297. OrbProperty[4].C0 = OrbProperty[10]
  2298. OrbProperty[5].C0 = OrbProperty[8] * euler(OrbProperty[9], OrbProperty[7], OrbProperty[11])
  2299. end
  2300. end
  2301. end
  2302.  
  2303. if #Effects > 0 then
  2304. for e = 1, #Effects do
  2305. if Effects[e] ~= nil then
  2306. local Thing = Effects[e]
  2307. if Thing ~= nil then
  2308. local Part = Thing[1]
  2309. local Mode = Thing[2]
  2310. local Delay = Thing[3]
  2311. local IncX = Thing[4]
  2312. local IncY = Thing[5]
  2313. local IncZ = Thing[6]
  2314. if Thing[1].Transparency <= 1 then
  2315. if Thing[2] == "Block1" then
  2316. elseif Thing[2] == "Shatter" then
  2317. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  2318. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  2319. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  2320. Thing[6] = Thing[6] + Thing[5]
  2321. end
  2322. else
  2323. Part.Parent = nil
  2324. table.remove(Effects, e)
  2325. end
  2326. end
  2327. end
  2328. end
  2329. end
  2330.  
  2331. swait()
  2332. updateskills()
  2333.  
  2334. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement