Advertisement
ClashofClans091

Untitled

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