Advertisement
Guest User

Untitled

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