Advertisement
lafur

Untitled

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