SirMemz

Untitled

Jul 5th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. wait(0.07)
  2. Player=game:GetService("Players").LocalPlayer
  3. Character=Player.Character
  4. PlayerGui=Player.PlayerGui
  5. Backpack=Player.Backpack
  6. Torso=Character.Torso
  7. Head=Character.Head
  8. Humanoid=Character.Humanoid
  9. LeftArm=Character["Left Arm"]
  10. LeftLeg=Character["Left Leg"]
  11. RightArm=Character["Right Arm"]
  12. RightLeg=Character["Right Leg"]
  13. LS=Torso["Left Shoulder"]
  14. LH=Torso["Left Hip"]
  15. RS=Torso["Right Shoulder"]
  16. RH=Torso["Right Hip"]
  17. Face = Head.face
  18. Neck=Torso.Neck
  19. it=Instance.new
  20. attacktype=1
  21. attacktype2=1
  22. vt=Vector3.new
  23. cf=CFrame.new
  24. cn=CFrame.new
  25. euler=CFrame.fromEulerAnglesXYZ
  26. angles=CFrame.Angles
  27. combo = 0
  28. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  29. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  30. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  31. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  32. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  33. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  34. RootPart=Character.HumanoidRootPart
  35. RootJoint=RootPart.RootJoint
  36. RootCF=euler(-1.57,0,3.14)
  37. attack = false
  38. attackdebounce = false
  39. trispeed=.2
  40. attackmode='none'
  41. local idle=0
  42. local Anim="Idle"
  43. stance = false
  44. local ff = 2
  45. noleg = false
  46. evadecooldown = false
  47. Humanoid.Animator.Parent = nil
  48. equip = false
  49. local Effects = {}
  50. attackspeed = 0.14
  51. df = false
  52. Swing = 1
  53. local sine = 0
  54. local change = 1
  55. local val = 0
  56. local speed = 0
  57. local rs = game:GetService("RunService").RenderStepped
  58. cam = workspace.CurrentCamera
  59. local RbxUtility = LoadLibrary("RbxUtility")
  60. local Create = RbxUtility.Create
  61. deb = game:GetService("Debris")
  62. Face.Transparency = 0
  63. --Face.Texture = "rbxassetid://176217905" --176217905
  64. Humanoid.WalkSpeed = 64
  65. local freefall = 0
  66. Head.Running.SoundId = "rbxassetid://0"
  67. Head.Running.Volume = 2
  68. local boost = false
  69. Humanoid.JumpPower = 88
  70. local musicnum = 1
  71.  
  72. local spd = Vector3.new(RootPart.Velocity.x,0,RootPart.Velocity.z).magnitude + 10
  73. local dir = Vector3.new(RootPart.Velocity.x,0,RootPart.Velocity.z).unit
  74. local GravPoint = RootPart.Velocity.y
  75. local NV = Vector3.new(0,0,0)
  76. print("Move list")
  77. print("---------")
  78. print("Shift = Boost")
  79. print("Ctrl = Mach Speed Boost")
  80. print("Q = Left QuickStep, E = Right QuickStep")
  81. print("C = Slide, in air to stomp")
  82. print("Jump Then Hold B near a wall to wallrun")
  83. print("M to change music, if you're standing still you'll do a special animation!")
  84. print("Space near a wall to walljump, away from a wall homing attack")
  85. music = Instance.new("Sound",PlayerGui)
  86. music.Volume = 1
  87. music.TimePosition = 0
  88. music.Pitch = 1
  89. music.SoundId = "rbxassetid://0"
  90. music.Looped = true
  91. music:Play()
  92.  
  93.  
  94. boostsound = Instance.new("Sound",PlayerGui)
  95. boostsound.Volume = .6
  96. boostsound.TimePosition = 0
  97. boostsound.Pitch = 1
  98. boostsound.SoundId = "rbxassetid://924922553"
  99. boostsound.Looped = false
  100.  
  101.  
  102.  
  103. stompsound = Instance.new("Sound",PlayerGui)
  104. stompsound.Volume = 2
  105. stompsound.TimePosition = 0
  106. stompsound.Pitch = 1
  107. stompsound.SoundId = "rbxassetid://1295424184"
  108. stompsound.Looped = false
  109.  
  110.  
  111.  
  112. so = function(id,par,vol,pit)
  113. coroutine.resume(coroutine.create(function()
  114. local sou = Instance.new("Sound",par or workspace)
  115. sou.Volume=vol
  116. sou.Pitch=pit or 1
  117. sou.SoundId=id
  118. sou:play()
  119. game:GetService("Debris"):AddItem(sou,8)
  120. end))
  121. end
  122.  
  123. --save shoulders
  124. RSH, LSH=nil, nil
  125. --welds
  126. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  127. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  128. LH=Torso["Left Hip"]
  129. RH=Torso["Right Hip"]
  130. TorsoColor=Torso.BrickColor
  131. function NoOutline(Part)
  132. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  133. end
  134. player=Player
  135. ch=Character
  136. RSH=ch.Torso["Right Shoulder"]
  137. LSH=ch.Torso["Left Shoulder"]
  138. --
  139. RSH.Parent=nil
  140. LSH.Parent=nil
  141. --
  142. RW.Name="Right Shoulder"
  143. RW.Part0=ch.Torso
  144. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  145. RW.C1=cf(0, 0.5, 0)
  146. RW.Part1=ch["Right Arm"]
  147. RW.Parent=ch.Torso
  148. --
  149. LW.Name="Left Shoulder"
  150. LW.Part0=ch.Torso
  151. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  152. LW.C1=cf(0, 0.5, 0)
  153. LW.Part1=ch["Left Arm"]
  154. LW.Parent=ch.Torso
  155.  
  156.  
  157. newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
  158. local wld = Instance.new("Weld", wp1)
  159. wld.Part0 = wp0
  160. wld.Part1 = wp1
  161. wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
  162. end
  163. local rs = game:GetService("RunService").RenderStepped
  164.  
  165. newWeld(RootPart, Torso, 0, -1, 0)
  166. Torso.Weld.C1 = CFrame.new(0, -1, 0)
  167. newWeld(Torso, LeftLeg, -0.5, -1, 0)
  168. LeftLeg.Weld.C1 = CFrame.new(0, 1, 0)
  169. newWeld(Torso, RightLeg, 0.5, -1, 0)
  170. RightLeg.Weld.C1 = CFrame.new(0, 1, 0)
  171.  
  172. Player=game:GetService('Players').LocalPlayer
  173. Character=Player.Character
  174. mouse=Player:GetMouse()
  175. m=Instance.new('Model',Character)
  176.  
  177.  
  178. local function weldBetween(a, b)
  179. local weldd = Instance.new("ManualWeld")
  180. weldd.Part0 = a
  181. weldd.Part1 = b
  182. weldd.C0 = CFrame.new()
  183. weldd.C1 = b.CFrame:inverse() * a.CFrame
  184. weldd.Parent = a
  185. return weldd
  186. end
  187.  
  188. ArtificialHB = Instance.new("BindableEvent", script)
  189. ArtificialHB.Name = "Heartbeat"
  190.  
  191. script:WaitForChild("Heartbeat")
  192.  
  193. frame = 1 / 80
  194. tf = 0
  195. allowframeloss = false
  196. tossremainder = false
  197. lastframe = tick()
  198. script.Heartbeat:Fire()
  199. game:GetService("RunService").Heartbeat:connect(function(s, p)
  200. tf = tf + s
  201. if tf >= frame then
  202. if allowframeloss then
  203. script.Heartbeat:Fire()
  204. lastframe = tick()
  205. else
  206. for i = 1, math.floor(tf / frame) do
  207. script.Heartbeat:Fire()
  208. end
  209. lastframe = tick()
  210. end
  211. if tossremainder then
  212. tf = 0
  213. else
  214. tf = tf - frame * math.floor(tf / frame)
  215. end
  216. end
  217. end)
  218.  
  219. --[[]
  220. function swait(num)
  221. if num == 0 or num == nil then
  222. ArtificialHB.Event:wait()
  223. else
  224. for i = 0, num do
  225. ArtificialHB.Event:wait()
  226. end
  227. end
  228. end
  229.  
  230. ]]
  231.  
  232.  
  233.  
  234.  
  235. function swait(num)
  236. if num == 0 or num == nil then
  237. game:service("RunService").Stepped:wait()
  238. else
  239. for i = 0, num do
  240. game:service("RunService").Stepped:wait()
  241. end
  242. end
  243. end
  244.  
  245. function RemoveOutlines(part)
  246. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  247. end
  248.  
  249.  
  250. part = function(formfactor, parent, reflectance, transparency, brickcolor, name, size)
  251. local fp = it("Part")
  252. fp.formFactor = formfactor
  253. fp.Parent = parent
  254. fp.Reflectance = reflectance
  255. fp.Transparency = transparency
  256. fp.CanCollide = false
  257. fp.Locked = true
  258. fp.BrickColor = brickcolor
  259. fp.Name = name
  260. fp.Size = size
  261. fp.Position = Torso.Position
  262. NoOutline(fp)
  263. if fp.BrickColor == BrickColor.new("Dark indigo") then
  264. fp.Material = "Neon"
  265. else
  266. if fp.BrickColor == BrickColor.new("Really black") then
  267. fp.BrickColor = BrickColor.new("Really black")
  268. fp.Material = "Metal"
  269. else
  270. fp.Material = "Neon"
  271. end
  272. end
  273. fp:BreakJoints()
  274. return fp
  275. end
  276.  
  277. mesh = function(Mesh, part, meshtype, meshid, offset, scale)
  278. local mesh = it(Mesh)
  279. mesh.Parent = part
  280. if Mesh == "SpecialMesh" then
  281. mesh.MeshType = meshtype
  282. mesh.MeshId = meshid
  283. end
  284. mesh.Offset = offset
  285. mesh.Scale = scale
  286. return mesh
  287. end
  288.  
  289. weld = function(parent, part0, part1, c0)
  290. local weld = it("Weld")
  291. weld.Parent = parent
  292. weld.Part0 = part0
  293. weld.Part1 = part1
  294. weld.C0 = c0
  295. return weld
  296. end
  297.  
  298. F1 = Instance.new("Folder", Character)
  299. F1.Name = "Effects Folder"
  300. F2 = Instance.new("Folder", F1)
  301. F2.Name = "Effects"
  302. Triangle = function(a, b, c)
  303. end
  304.  
  305. MagicBlock = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  306. local prt = part(3, F2, 0, 0, brickcolor, "Effect", vt())
  307. prt.Anchored = true
  308. prt.CanCollide = false
  309. prt.CFrame = cframe
  310. prt.Name = "prt"
  311. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  312. game:GetService("Debris"):AddItem(prt, 5)
  313. table.insert(Effects, {prt, "Block1", delay, x3, y3, z3})
  314. end
  315.  
  316.  
  317.  
  318. MagicCircle = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  319. local prt = part(3, F2, 0, 0, brickcolor, "Effect", vt())
  320. prt.Anchored = true
  321. prt.CanCollide = false
  322. prt.CFrame = cframe
  323. prt.Name = "prt"
  324. local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
  325. game:GetService("Debris"):AddItem(prt, 5)
  326. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3})
  327. end
  328.  
  329. MagicWave = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  330. local prt = part(3, F2, 0, 0, brickcolor, "Effect", vt())
  331. prt.Anchored = true
  332. prt.CFrame = cframe
  333. local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=20329976", vt(0, 0, 0), vt(x1, y1, z1))
  334. game:GetService("Debris"):AddItem(prt, 5)
  335. table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3})
  336. end
  337.  
  338. MagicCylinder = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  339. local prt = part(3, F2, 0, 0, brickcolor, "Effect", vt(0.2, 0.2, 0.2))
  340. prt.Anchored = true
  341. prt.CFrame = cframe
  342. msh = mesh("SpecialMesh", prt, "Head", "", vt(0, 0, 0), vt(x1, y1, z1))
  343. game:GetService("Debris"):AddItem(prt, 5)
  344. Effects[#Effects + 1] = {prt, "Cylinder", delay, x3, y3, z3}
  345. end
  346.  
  347. MagicCylinder2 = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  348. local prt = part(3, F2, 0, 0, brickcolor, "Effect", vt(0.2, 0.2, 0.2))
  349. prt.Anchored = true
  350. prt.CFrame = cframe
  351. msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  352. game:GetService("Debris"):AddItem(prt, 5)
  353. Effects[#Effects + 1] = {prt, "Cylinder", delay, x3, y3, z3}
  354. end
  355.  
  356. MagicBlood = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  357. local prt = part(3, F2, 0, 0, brickcolor, "Effect", vt())
  358. prt.Anchored = true
  359. prt.CFrame = cframe
  360. local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1))
  361. game:GetService("Debris"):AddItem(prt, 5)
  362. table.insert(Effects, {prt, "Blood", delay, x3, y3, z3})
  363. end
  364.  
  365. ElecEffect = function(cff, x, y, z)
  366. local prt = part(3, F2, 0, 0, BrickColor.new("Dark indigo"), "Part", vt(1, 1, 1))
  367. prt.Anchored = true
  368. prt.CFrame = cff * cf(math.random(-x, x), math.random(-y, y), math.random(-z, z))
  369. prt.CFrame = cf(prt.Position)
  370. game:GetService("Debris"):AddItem(prt, 2)
  371. xval = math.random() / 2
  372. yval = math.random() / 2
  373. zval = math.random() / 2
  374. msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(xval, yval, zval))
  375. Effects[#Effects + 1] = {prt, "Elec", 0.1, x, y, z, xval, yval, zval}
  376. end
  377.  
  378. function FindNearestTorso(Position, Distance, SinglePlayer)
  379. if SinglePlayer then
  380. return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
  381. end
  382. local List = {}
  383. for i, v in pairs(workspace:GetChildren()) do
  384. if v:IsA("Model") then
  385. if v:findFirstChild("Torso") then
  386. if v ~= Character then
  387. if (v.Torso.Position - Position).magnitude <= Distance then
  388. table.insert(List, v)
  389. end
  390. end
  391. end
  392. end
  393. end
  394. return List
  395. end
  396.  
  397.  
  398. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  399. local Part = Create("Part"){
  400. Parent = Parent,
  401. Reflectance = Reflectance,
  402. Transparency = Transparency,
  403. CanCollide = false,
  404. Locked = true,
  405. BrickColor = BrickColor.new(tostring(BColor)),
  406. Name = Name,
  407. Size = Size,
  408. Material = Material,
  409. }
  410. RemoveOutlines(Part)
  411. return Part
  412. end
  413.  
  414. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  415. local Msh = Create(Mesh){
  416. Parent = Part,
  417. Offset = OffSet,
  418. Scale = Scale,
  419. }
  420. if Mesh == "SpecialMesh" then
  421. Msh.MeshType = MeshType
  422. Msh.MeshId = MeshId
  423. end
  424. return Msh
  425. end
  426.  
  427.  
  428.  
  429. function BlockEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  430. local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  431. prt.Anchored = true
  432. prt.CFrame = cframe
  433. local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  434. game:GetService("Debris"):AddItem(prt, 10)
  435. if Type == 1 or Type == nil then
  436. table.insert(Effects, {
  437. prt,
  438. "Block1",
  439. delay,
  440. x3,
  441. y3,
  442. z3,
  443. msh
  444. })
  445. elseif Type == 2 then
  446. table.insert(Effects, {
  447. prt,
  448. "Block2",
  449. delay,
  450. x3,
  451. y3,
  452. z3,
  453. msh
  454. })
  455. end
  456. end
  457.  
  458. function SphereEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  459. local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  460. prt.Anchored = true
  461. prt.CFrame = cframe
  462. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  463. game:GetService("Debris"):AddItem(prt, 10)
  464. table.insert(Effects, {
  465. prt,
  466. "Cylinder",
  467. delay,
  468. x3,
  469. y3,
  470. z3,
  471. msh
  472. })
  473. end
  474.  
  475. function RingEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay,material)
  476. local prt=CreatePart(workspace,material,0,0,brickcolor,"Effect",vt(.5,.5,.5))--part(3,workspace,"SmoothPlastic",0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  477. prt.Anchored=true
  478. prt.CFrame=cframe
  479. msh=CreateMesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1))
  480. game:GetService("Debris"):AddItem(prt,2)
  481. coroutine.resume(coroutine.create(function(Part,Mesh,num)
  482. for i=0,1,delay do
  483. swait()
  484. Part.Transparency=i
  485. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  486. end
  487. Part.Parent=nil
  488. end),prt,msh,(math.random(0,1)+math.random())/5)
  489. end
  490.  
  491. function CylinderEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  492. local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  493. prt.Anchored = true
  494. prt.CFrame = cframe
  495. local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  496. game:GetService("Debris"):AddItem(prt, 10)
  497. table.insert(Effects, {
  498. prt,
  499. "Cylinder",
  500. delay,
  501. x3,
  502. y3,
  503. z3,
  504. msh
  505. })
  506. end
  507.  
  508. function WaveEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  509. local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  510. prt.Anchored = true
  511. prt.CFrame = cframe
  512. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  513. game:GetService("Debris"):AddItem(prt, 10)
  514. table.insert(Effects, {
  515. prt,
  516. "Cylinder",
  517. delay,
  518. x3,
  519. y3,
  520. z3,
  521. msh
  522. })
  523. end
  524.  
  525. function SpecialEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  526. local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  527. prt.Anchored = true
  528. prt.CFrame = cframe
  529. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://24388358", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  530. game:GetService("Debris"):AddItem(prt, 10)
  531. table.insert(Effects, {
  532. prt,
  533. "Cylinder",
  534. delay,
  535. x3,
  536. y3,
  537. z3,
  538. msh
  539. })
  540. end
  541.  
  542.  
  543. function MoonEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  544. local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  545. prt.Anchored = true
  546. prt.CFrame = cframe
  547. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://259403370", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  548. game:GetService("Debris"):AddItem(prt, 10)
  549. table.insert(Effects, {
  550. prt,
  551. "Cylinder",
  552. delay,
  553. x3,
  554. y3,
  555. z3,
  556. msh
  557. })
  558. end
  559.  
  560. function HeadEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  561. local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  562. prt.Anchored = true
  563. prt.CFrame = cframe
  564. local msh = CreateMesh("SpecialMesh", prt, "Head", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  565. game:GetService("Debris"):AddItem(prt, 10)
  566. table.insert(Effects, {
  567. prt,
  568. "Cylinder",
  569. delay,
  570. x3,
  571. y3,
  572. z3,
  573. msh
  574. })
  575. end
  576.  
  577. function BreakEffect(brickcolor, cframe, x1, y1, z1)
  578. local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  579. prt.Anchored = true
  580. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  581. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  582. local num = math.random(10, 50) / 1000
  583. game:GetService("Debris"):AddItem(prt, 10)
  584. table.insert(Effects, {
  585. prt,
  586. "Shatter",
  587. num,
  588. prt.CFrame,
  589. math.random() - math.random(),
  590. 0,
  591. math.random(50, 100) / 100
  592. })
  593. end
  594.  
  595. local lerp = function(a, b, t)
  596. return a * (1 - t) + b * t
  597. end
  598.  
  599. function clerp(a,b,t)
  600. local qa = {QuaternionFromCFrame(a)}
  601. local qb = {QuaternionFromCFrame(b)}
  602. local ax, ay, az = a.x, a.y, a.z
  603. local bx, by, bz = b.x, b.y, b.z
  604. local _t = 1-t
  605. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  606. end
  607.  
  608. function QuaternionFromCFrame(cf)
  609. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  610. local trace = m00 + m11 + m22
  611. if trace > 0 then
  612. local s = math.sqrt(1 + trace)
  613. local recip = 0.5/s
  614. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  615. else
  616. local i = 0
  617. if m11 > m00 then
  618. i = 1
  619. end
  620. if m22 > (i == 0 and m00 or m11) then
  621. i = 2
  622. end
  623. if i == 0 then
  624. local s = math.sqrt(m00-m11-m22+1)
  625. local recip = 0.5/s
  626. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  627. elseif i == 1 then
  628. local s = math.sqrt(m11-m22-m00+1)
  629. local recip = 0.5/s
  630. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  631. elseif i == 2 then
  632. local s = math.sqrt(m22-m00-m11+1)
  633. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  634. end
  635. end
  636. end
  637.  
  638.  
  639. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  640. local xs, ys, zs = x + x, y + y, z + z
  641. local wx, wy, wz = w*xs, w*ys, w*zs
  642. local xx = x*xs
  643. local xy = x*ys
  644. local xz = x*zs
  645. local yy = y*ys
  646. local yz = y*zs
  647. local zz = z*zs
  648. 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))
  649. end
  650. function QuaternionSlerp(a, b, t)
  651. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  652. local startInterp, finishInterp;
  653. if cosTheta >= 0.0001 then
  654. if (1 - cosTheta) > 0.0001 then
  655. local theta = math.acos(cosTheta)
  656. local invSinTheta = 1/math.sin(theta)
  657. startInterp = math.sin((1-t)*theta)*invSinTheta
  658. finishInterp = math.sin(t*theta)*invSinTheta
  659. else
  660. startInterp = 1-t
  661. finishInterp = t
  662. end
  663. else
  664. if (1+cosTheta) > 0.0001 then
  665. local theta = math.acos(-cosTheta)
  666. local invSinTheta = 1/math.sin(theta)
  667. startInterp = math.sin((t-1)*theta)*invSinTheta
  668. finishInterp = math.sin(t*theta)*invSinTheta
  669. else
  670. startInterp = t-1
  671. finishInterp = t
  672. end
  673. end
  674. 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
  675. end
  676.  
  677. function weld5(part0, part1, c0, c1)
  678. weeld=Instance.new("Weld", part0)
  679. weeld.Part0=part0
  680. weeld.Part1=part1
  681. weeld.C0=c0
  682. weeld.C1=c1
  683. return weeld
  684. end
  685.  
  686. --Example: Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
  687.  
  688. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  689. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  690. end
  691.  
  692.  
  693.  
  694.  
  695.  
  696.  
  697. Character.Humanoid.MaxHealth = 120
  698. Character.Humanoid.Health = 120
  699.  
  700. local f = 0
  701. local b = Instance.new("BlurEffect",cam)
  702. local c = Instance.new('PointLight', Torso)
  703. c.Range = 16
  704. c.Color = Color3.new(0, 1,1)
  705. c.Brightness = 1.5
  706. game:GetService("RunService"):BindToRenderStep("W0tT", 0, function()
  707.  
  708. b.Size = b.Size - 4
  709. if boost == true then
  710. c.Enabled = true
  711. cam.FieldOfView = lerp(cam.FieldOfView, 110, 0.5)
  712. -- cam.FieldOfView = 110
  713. freefall = 0
  714. Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(0,0,3),0.25)
  715. SphereEffect(BrickColor.new("New Yeller"),RightLeg.CFrame*CFrame.new(0,-1,0)*angles(math.random(-180,180),math.random(-180,180),math.random(-180,180)),1.4,12,1.4,2.8,26,2.8,0.07)
  716. SphereEffect(BrickColor.new("New Yeller"),LeftLeg.CFrame*CFrame.new(0,-1,0)*angles(math.random(-180,180),math.random(-180,180),math.random(-180,180)),1.4,12,1.4,2.8,26,2.8,0.07)
  717. if hitfloor ~= nil and Anim ~= "runIdle" then
  718. SpecialEffect(BrickColor.new("New Yeller"),RootPart.CFrame*CFrame.new(0,-3.4,.78) ,2,2,2, 1.5,1.5,1.5,.09)
  719. end
  720. end
  721. if boost == false then
  722. cam.FieldOfView = lerp(cam.FieldOfView, 70, 0.076)
  723. --cam.FieldOfView = 70
  724. c.Enabled = false
  725. end
  726. end)
  727.  
  728.  
  729.  
  730. mouse.KeyDown:connect(function(key)
  731. if string.byte(key) == 48 then
  732. b.Size = 40
  733. Swing = 2
  734. freefall = 0
  735.  
  736. coroutine.resume(coroutine.create(function()
  737. for i = 0,1,0.1 do
  738. swait()
  739. Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(math.random(-0.35*1.8,0.35*1.8),math.random(-0.35*1.8,0.35*1.8),math.random(-0.35*1.8,0.35*1.8)),0.24)
  740. end
  741. end))
  742. Humanoid.WalkSpeed = 180
  743. RootPart.Velocity = RootPart.CFrame.lookVector*150
  744. RingEffect(BrickColor.new("New Yeller"), RootPart.CFrame*CFrame.new(0,0,-9.2) , 1, 1, 1, 8, 8, 8, 0.14,"Neon")
  745. boost = true
  746. boostsound:Play()
  747. end
  748. end)
  749.  
  750. mouse.KeyUp:connect(function(key)
  751. if string.byte(key) == 48 then
  752. Swing = 1
  753. Humanoid.WalkSpeed = 64
  754. boost = false
  755. boostsound:Stop()
  756.  
  757. end
  758. end)
  759.  
  760.  
  761.  
  762.  
  763. mouse.KeyDown:connect(function(key)
  764. if string.byte(key) == 50 then
  765. b.Size = 40
  766. freefall = 0
  767. Swing = 2
  768.  
  769. coroutine.resume(coroutine.create(function()
  770. for i = 0,1,0.1 do
  771. swait()
  772. Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(math.random(-0.35*2.8,0.35*2.8),math.random(-0.35*2.8,0.35*2.8),math.random(-0.35*2.8,0.35*2.8)),0.48)
  773. end
  774. end))
  775.  
  776. Humanoid.WalkSpeed = 320
  777. RootPart.Velocity = RootPart.CFrame.lookVector*550
  778. RingEffect(BrickColor.new("New Yeller"), RootPart.CFrame*CFrame.new(0,0,-9.2) , 1, 1, 1, 18, 18, 18, 0.14,"Neon")
  779. RingEffect(BrickColor.new("White"), RootPart.CFrame*CFrame.new(0,0,-11.2) , 1, 1, 1, 18, 18, 18, 0.14,"Neon")
  780. RingEffect(BrickColor.new("New Yeller"), RootPart.CFrame*CFrame.new(0,0,-13.2) , 1, 1, 1, 18, 18, 18, 0.14,"Neon")
  781. boost = true
  782. boostsound:Play()
  783. end
  784. end)
  785.  
  786. mouse.KeyUp:connect(function(key)
  787. if string.byte(key) == 50 then
  788. Swing = 1
  789. Humanoid.WalkSpeed = 64
  790. boost = false
  791. boostsound:Stop()
  792.  
  793. end
  794. end)
  795.  
  796.  
  797. local lastwall = nil
  798. local jumped = false
  799.  
  800.  
  801.  
  802.  
  803.  
  804.  
  805. local vwall = false
  806.  
  807. mouse.KeyDown:connect(function(key)
  808. if key == 'b' and hitfloor == nil and attack == false then
  809. vrun()
  810. end
  811. end)
  812.  
  813.  
  814. function vrun()
  815. local ray = Ray.new(
  816. RootPart.CFrame.p, RootPart.CFrame.lookVector *2.5
  817. )
  818. local hit, position, normal = workspace:FindPartOnRay(ray, character)
  819.  
  820. if hit then
  821. if hit.Parent.Parent ~= Character and hit.Parent ~= Character and hit.Name ~= "prt" and hit.CanCollide == true then
  822. vwall = true
  823. local NV = Vector3.new(0,0,0)
  824. local spd = Vector3.new(RootPart.Velocity.x,0,RootPart.Velocity.z).magnitude + 10
  825. local dir = Vector3.new(RootPart.Velocity.x,0,RootPart.Velocity.z).unit
  826. local GravPoint = RootPart.Velocity.y
  827. local velo = Instance.new("BodyVelocity",Torso)
  828. velo.MaxForce = Vector3.new(400000,400000,400000)
  829.  
  830. attack = true
  831. while vwall == true and ray and hit do
  832. swait()
  833. change = 0.84+ Humanoid.WalkSpeed/132
  834. if Humanoid.WalkSpeed > 40 and Humanoid.WalkSpeed < 70 then
  835. velo.Velocity = Vector3.new(0,40,0)
  836. end
  837. if Humanoid.WalkSpeed > 70 and Humanoid.WalkSpeed < 200 then
  838. velo.Velocity = Vector3.new(0,80,0)
  839. end
  840. if Humanoid.WalkSpeed > 200 then
  841. velo.Velocity = Vector3.new(0,130,0)
  842. end
  843. ray = Ray.new(
  844. RootPart.CFrame.p, RootPart.CFrame.lookVector *2.5
  845. )
  846. hit, position, normal = workspace:FindPartOnRay(ray, character)
  847. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1-0.52*math.cos(sine/2), .6) * angles(math.rad(96), math.rad(0), math.rad(0)+ RootPart.RotVelocity.Y / 26), .1)
  848. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-11+20*math.sin(sine/2)),math.rad(0),math.rad(0+5*math.sin(sine/4)) + RootPart.RotVelocity.Y / 13),.1)
  849. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0.1) * angles(math.rad(-90-7*math.sin(sine/4))+ RootPart.RotVelocity.Y / -34, math.rad(0), math.rad(15+2*math.sin(sine/4))- RootPart.RotVelocity.Y / 34),.15)
  850. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0.1)*angles(math.rad(-90-7*math.sin(sine/4))+ RootPart.RotVelocity.Y / 34,math.rad(0),math.rad(-15+2*math.sin(sine/4))+ RootPart.RotVelocity.Y / -34),.15)
  851. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1+0.28*math.cos(sine/4), 0-0.32*math.cos(sine/4)) * CFrame.Angles(math.rad(0+104*math.sin(sine/4)), math.rad(0)+ RootPart.RotVelocity.Y / 42, math.rad(0)+ RootPart.RotVelocity.Y / -54), 0.3+ Humanoid.WalkSpeed/272)
  852. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1-0.28*math.cos(sine/4),0+0.32*math.cos(sine/4)) * CFrame.Angles(math.rad(0-104*math.sin(sine/4)), math.rad(0)+ RootPart.RotVelocity.Y / 42, math.rad(0)- RootPart.RotVelocity.Y / 54), 0.3+ Humanoid.WalkSpeed/272)
  853. end
  854. velo:Destroy()
  855. wait(0.07)
  856.  
  857. if vwall == false then
  858.  
  859. RootPart.Velocity = -RootPart.CFrame.lookVector*68 + Vector3.new(0,86,0)
  860.  
  861. --[[]
  862. for i = 0,5,0.2 do
  863. rs:wait()
  864. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -0.79, 0) * CFrame.Angles(math.rad(0+100*i), math.rad(0), math.rad(0)), 0.2)
  865. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(0)),.2)
  866. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(180), math.rad(-60), math.rad(40)),.2)
  867. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(180), math.rad(60), math.rad(-40)),.2)
  868. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
  869. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
  870. end
  871. ]]
  872.  
  873.  
  874. for i = 0,4,0.1 do
  875. swait()
  876. Humanoid.CameraOffset = Vector3.new(0,0,0)
  877. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0+260*i), math.rad(0), math.rad(0)), 0.6)
  878. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(70),math.rad(0),math.rad(0)),.1)
  879. RW.C0 = clerp(RW.C0, CFrame.new(.7, -0.22, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-90)), 0.1)
  880. LW.C0 = clerp(LW.C0, CFrame.new(-.7, -0.22, -0.5) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.1)
  881. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -.34, -0.7) * CFrame.Angles(math.rad(-25), math.rad(0), math.rad(0)), 0.1)
  882. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -.34, -0.7) * CFrame.Angles(math.rad(-25), math.rad(0), math.rad(0)), 0.1)
  883. end
  884.  
  885. attack = false
  886.  
  887.  
  888. end
  889.  
  890.  
  891. if vwall == true then
  892. RootPart.Velocity = RootPart.CFrame.lookVector*38 + Vector3.new(0,86,0)
  893.  
  894. --[[]
  895. for i = 0,5,0.2 do
  896. rs:wait()
  897. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -0.79, 0) * CFrame.Angles(math.rad(0+100*i), math.rad(0), math.rad(0)), 0.2)
  898. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(0)),.2)
  899. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(180), math.rad(-60), math.rad(40)),.2)
  900. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(180), math.rad(60), math.rad(-40)),.2)
  901. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
  902. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
  903. end
  904. ]]
  905.  
  906.  
  907. for i = 0,4,0.15 do
  908. swait()
  909. Humanoid.CameraOffset = Vector3.new(0,0,0)
  910. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0-260*i), math.rad(0), math.rad(0)), 0.6)
  911. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(70),math.rad(0),math.rad(0)),.1)
  912. RW.C0 = clerp(RW.C0, CFrame.new(.7, -0.22, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-90)), 0.1)
  913. LW.C0 = clerp(LW.C0, CFrame.new(-.7, -0.22, -0.5) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.1)
  914. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -.34, -0.7) * CFrame.Angles(math.rad(-25), math.rad(0), math.rad(0)), 0.1)
  915. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -.34, -0.7) * CFrame.Angles(math.rad(-25), math.rad(0), math.rad(0)), 0.1)
  916. end
  917.  
  918. attack = false
  919.  
  920. end
  921.  
  922.  
  923. end
  924. end
  925. end
  926.  
  927.  
  928.  
  929.  
  930. mouse.KeyUp:connect(function(key)
  931. if key == 'b' and vwall == true then
  932. vwall = false
  933. end
  934. end)
  935.  
  936.  
  937.  
  938.  
  939.  
  940. function Ldash()
  941.  
  942.  
  943.  
  944. evadecooldown = true
  945. attack = true
  946. k = math.random(1,2)
  947. if k == 1 then
  948. so("http://www.roblox.com/asset/?id=807766310", Head, 2.5, 1)
  949. else
  950. so("http://www.roblox.com/asset/?id=807768137", Head, 2.5, 1)
  951. end
  952.  
  953.  
  954.  
  955.  
  956.  
  957. --+173.8*i
  958. for i = 0,.7,0.1 do
  959. swait()
  960. Head.Velocity = Head.CFrame.rightVector * -135
  961. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(32)), 0.2)
  962. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(-9),math.rad(-14)),.2)
  963. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.2) * angles(math.rad(27), math.rad(0), math.rad(30)),.2)
  964. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(30)),.2)
  965. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(12)), 0.2)
  966. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(8)), 0.2)
  967. end
  968.  
  969. attack = false
  970. wait(0.08)
  971. evadecooldown = false
  972.  
  973.  
  974. end
  975.  
  976.  
  977.  
  978.  
  979.  
  980. function Rdash()
  981.  
  982.  
  983.  
  984. evadecooldown = true
  985. attack = true
  986. k = math.random(1,2)
  987. if k == 1 then
  988. so("http://www.roblox.com/asset/?id=807766310", Head, 2.5, 1)
  989. else
  990. so("http://www.roblox.com/asset/?id=807768137", Head, 2.5, 1)
  991. end
  992.  
  993.  
  994.  
  995.  
  996.  
  997. --+173.8*i
  998. for i = 0,.7,0.1 do
  999. swait()
  1000. Head.Velocity = Head.CFrame.rightVector * 135
  1001. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-32)), 0.2)
  1002. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(9),math.rad(14)),.2)
  1003. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(-30)),.2)
  1004. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -0.2) * angles(math.rad(27), math.rad(0), math.rad(-30)),.2)
  1005. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-8)), 0.2)
  1006. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-12)), 0.2)
  1007. end
  1008.  
  1009. attack = false
  1010. wait(0.08)
  1011. evadecooldown = false
  1012.  
  1013.  
  1014. end
  1015. local sliding = false
  1016.  
  1017.  
  1018. function Slide()
  1019.  
  1020. local spd = Vector3.new(RootPart.Velocity.x,0,RootPart.Velocity.z).magnitude + 10
  1021. spd = spd + 30
  1022. local dir = Vector3.new(RootPart.Velocity.x,0,RootPart.Velocity.z).unit
  1023. local GravPoint = RootPart.Velocity.y
  1024. if spd > 40 and hitfloor ~= nil then
  1025. noleg = true
  1026.  
  1027. attack = true
  1028. k = math.random(1,2)
  1029. if k == 1 then
  1030. so("http://www.roblox.com/asset/?id=1547211023", Head, 2.5, 1)
  1031. else
  1032. so("http://www.roblox.com/asset/?id=1547215016", Head, 2.5, 1)
  1033. end
  1034.  
  1035.  
  1036.  
  1037.  
  1038.  
  1039.  
  1040.  
  1041.  
  1042.  
  1043.  
  1044. local NV = Vector3.new(0,0,0)
  1045. local bv = Instance.new("BodyVelocity", Torso)
  1046. bv.maxForce = Vector3.new(1/0,1/0,1/0)
  1047. bv.velocity = dir*spd
  1048. local bg = Instance.new("BodyGyro", Torso)
  1049. bg.maxTorque = Vector3.new(1/0,1/0,1/0)
  1050. bg.cframe = CFrame.new(NV, dir) * CFrame.Angles(math.pi/2.2,0.24,0)
  1051. Head.Running.SoundId = "rbxassetid://1295468446"
  1052. Head.Running.TimePosition = 0
  1053.  
  1054. Humanoid.PlatformStand = true
  1055. while spd > 2 and hitfloor ~= nil and sliding == true do
  1056. swait()
  1057. spd = spd - 0.95
  1058. bv.velocity = dir*spd + Vector3.new(0,0,0)
  1059. bg.cframe = CFrame.new(NV, dir) * CFrame.Angles(math.pi/2.2,0.24,0)
  1060. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -2.3, 0) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(12)), 0.2)
  1061. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(34),math.rad(0),math.rad(12)),.2)
  1062. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(110), math.rad(0), math.rad(70)),.2)
  1063. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -0.2) * angles(math.rad(0), math.rad(0), math.rad(-60)),.2)
  1064. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
  1065. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -0.56, -0.2) * CFrame.Angles(math.rad(-24), math.rad(0), math.rad(0)), 0.2)
  1066. end
  1067. bv:Destroy()
  1068. bg:Destroy()
  1069. Head.Running.SoundId = "rbxassetid://1601615922"
  1070. Head.Running.TimePosition = 0
  1071. Humanoid.PlatformStand = false
  1072. attack = false
  1073. sliding = false
  1074. wait(0.05)
  1075. evadecooldown = false
  1076.  
  1077.  
  1078. end
  1079. end
  1080.  
  1081. function land()
  1082. attack = true
  1083. RootPart.Velocity = Vector3.new(0,0,0)
  1084. WaveEffect(BrickColor.new("New Yeller"), RootPart.CFrame*CFrame.new(0,-1,0) , 1, 1, 1, 3, 0.8, 3, 0.06)
  1085. so("http://www.roblox.com/asset/?id=1295424585", Torso, 3.5, 1)
  1086.  
  1087. coroutine.resume(coroutine.create(function()
  1088. for i = 0,1,0.1 do
  1089. swait()
  1090. Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(math.random(-0.55*2.8,0.55*2.8),math.random(-0.55*2.8,0.55*2.8),math.random(-0.55*2.8,0.55*2.8)),0.44)
  1091. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -2, 0) * CFrame.Angles(math.rad(-16), math.rad(0), math.rad(0)), 0.5)
  1092. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(7),math.rad(0),math.rad(0)),.5)
  1093. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(87)),.5)
  1094. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -0) * angles(math.rad(0), math.rad(0), math.rad(-87)),.5)
  1095. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, 0, -0.5) * CFrame.Angles(math.rad(16), math.rad(0), math.rad(0)), 0.5)
  1096. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1.14, 0.2) * CFrame.Angles(math.rad(-17), math.rad(0), math.rad(0)), 0.5)
  1097.  
  1098. end
  1099. attack = false
  1100.  
  1101.  
  1102. end))
  1103.  
  1104.  
  1105.  
  1106. end
  1107.  
  1108.  
  1109.  
  1110.  
  1111. function stomp()
  1112. attack = true
  1113. stompsound:Play()
  1114.  
  1115. while hitfloor == nil do
  1116. swait()
  1117. b.Size = 12
  1118. WaveEffect(BrickColor.new("New Yeller"), LeftLeg.CFrame*CFrame.new(0,-2.4,0) , 1, 1, 1, 0.8, 0.8, 0.8, 0.14)
  1119. RootPart.Velocity = Vector3.new(0,RootPart.Velocity.y/1.6,0) +Vector3.new(0,-150,0)
  1120. Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(0,0,0),0.15)
  1121. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0.2) * CFrame.Angles(math.rad(0+4*math.sin(sine/1.3)), math.rad(0), math.rad(0)),0.07)
  1122. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.65, 0) * angles(math.rad(0), math.rad(0), math.rad(140+12*math.cos(sine/1.3))), 0.07)
  1123. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.65, 0) * angles(math.rad(0), math.rad(0), math.rad(-140+12*math.cos(sine/1.3))), 0.07)
  1124. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(60+7*math.sin(sine/1.3)),math.rad(0),math.rad(0)),0.07)
  1125. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1+0.17*math.cos(sine/1.3), -0.13) * CFrame.Angles(math.rad(0+4*math.cos(sine/1.3)), math.rad(3), math.rad(0)), 0.1)
  1126. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, .27+0.17*math.cos(sine/1.3), -0.56) * CFrame.Angles(math.rad(-12+4*math.cos(sine/1.3)), math.rad(0), math.rad(0)), 0.1)
  1127.  
  1128. end
  1129. stompsound:Stop()
  1130. land()
  1131.  
  1132.  
  1133. end
  1134.  
  1135.  
  1136. function changemusic()
  1137. musicnum = musicnum + 1
  1138. music.TimePosition = 0
  1139. local osix = false
  1140. local spd = Vector3.new(RootPart.Velocity.x,0,RootPart.Velocity.z).magnitude
  1141. if musicnum > 14 then
  1142. musicnum = 1
  1143. end
  1144. if musicnum == 1 then
  1145. music.SoundId = "rbxassetid://964401095"
  1146. end
  1147. if musicnum == 2 then
  1148. music.SoundId = "rbxassetid://256976014"
  1149. end
  1150. if musicnum == 3 then
  1151. music.SoundId = "rbxassetid://433229983"
  1152. end
  1153. if musicnum == 4 then
  1154. music.SoundId = "rbxassetid://462626010"
  1155. end
  1156. if musicnum == 5 then
  1157. music.SoundId = "rbxassetid://1250829940"
  1158. end
  1159. if musicnum == 6 then
  1160. osix = true
  1161. music.SoundId = "rbxassetid://1839982152"
  1162. end
  1163. if musicnum == 7 then
  1164. music.SoundId = "rbxassetid://1500963599"
  1165. end
  1166. if musicnum == 8 then
  1167. music.SoundId = "rbxassetid://1107825563"
  1168. end
  1169. if musicnum == 9 then
  1170. music.SoundId = "rbxassetid://461282936"
  1171. end
  1172. if musicnum == 10 then
  1173. music.SoundId = "rbxassetid://1629883769"
  1174. end
  1175. if musicnum == 11 then
  1176. music.SoundId = "rbxassetid://654094806"
  1177. end
  1178. if musicnum == 12 then
  1179. music.SoundId = "rbxassetid://286055900"
  1180. end
  1181. if musicnum == 13 then
  1182. music.SoundId = "rbxassetid://650968440"
  1183. end
  1184. if musicnum == 14 then
  1185. music.SoundId = "rbxassetid://155574009"
  1186. end
  1187.  
  1188. if spd < 14 then
  1189. Humanoid.Jump = true
  1190.  
  1191. if osix == false then
  1192. so("rbxassetid://1547215016",PlayerGui,2,1)
  1193. end
  1194.  
  1195.  
  1196. RootPart.Velocity = Vector3.new(0,102,0)
  1197. attack = true
  1198. wait(0.08)
  1199. for i = 0,7,0.1 do
  1200. swait()
  1201. RootPart.Velocity = Vector3.new(0,2,0)
  1202. Humanoid.CameraOffset = Vector3.new(0,0,0)
  1203. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0-260*i), math.rad(0), math.rad(0)), 0.6)
  1204. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(70),math.rad(0),math.rad(0)),.1)
  1205. RW.C0 = clerp(RW.C0, CFrame.new(.7, -0.22, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-90)), 0.1)
  1206. LW.C0 = clerp(LW.C0, CFrame.new(-.7, -0.22, -0.5) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.1)
  1207. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -.34, -0.7) * CFrame.Angles(math.rad(-25), math.rad(0), math.rad(0)), 0.1)
  1208. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -.34, -0.7) * CFrame.Angles(math.rad(-25), math.rad(0), math.rad(0)), 0.1)
  1209.  
  1210. end
  1211. b.Size = 40
  1212. MoonEffect(BrickColor.new("New Yeller"), RootPart.CFrame*CFrame.new(0,0,0) , 1, 1, 1, 8, 8, 8, 0.06)
  1213.  
  1214. if osix == true then
  1215. osix = false
  1216. so("rbxassetid://156821036",PlayerGui,2,1)
  1217. end
  1218.  
  1219. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -3, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 1)
  1220. for i = 0,5,0.1 do
  1221. swait()
  1222. RootPart.Velocity = Vector3.new(0,3.5,0)
  1223. Humanoid.CameraOffset = Vector3.new(0,0,0)
  1224. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1+0.1*i, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.21)
  1225. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(22-2*i),math.rad(0),math.rad(0)),.21)
  1226. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5+0.09*i, 0) * angles(math.rad(20-6*i), math.rad(0), math.rad(90+13*i)), 0.21)
  1227. LW.C0 = clerp(LW.C0, CFrame.new(-1.0-0.12*i, 0.5, -0.4+0.05*i) * angles(math.rad(20+13*i), math.rad(0), math.rad(20-13*i)), 0.21)
  1228. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(45+6*i), math.rad(0), math.rad(-22-4*i)), 0.21)
  1229. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(45+6*i), math.rad(0), math.rad(22+4*i)), 0.21)
  1230. end
  1231. attack = false
  1232. end
  1233. end
  1234.  
  1235.  
  1236. mouse.KeyDown:connect(function(key)
  1237. if key == 'q' and attack == false and evadecooldown == false then
  1238. Ldash()
  1239. end
  1240. end)
  1241.  
  1242.  
  1243.  
  1244. mouse.KeyDown:connect(function(key)
  1245. if key == 'e' and attack == false and evadecooldown == false then
  1246. Rdash()
  1247. end
  1248. end)
  1249.  
  1250. mouse.KeyDown:connect(function(key)
  1251. if key == 'c' and attack == false and evadecooldown == false and hitfloor ~= nil then
  1252. sliding = true
  1253. Slide()
  1254. end
  1255. end)
  1256.  
  1257. mouse.KeyDown:connect(function(key)
  1258. if key == 'c' and attack == false and hitfloor == nil then
  1259. stomp()
  1260. end
  1261. end)
  1262.  
  1263.  
  1264. local walljump = false
  1265.  
  1266.  
  1267. function walljumpp()
  1268. local ray = Ray.new(
  1269. Torso.CFrame.p, RootPart.CFrame.lookVector *5
  1270. )
  1271. local hit, position, normal = workspace:FindPartOnRay(ray, character)
  1272.  
  1273. if hit then
  1274. if hit.Parent.Parent ~= Character and hit.Parent ~= Character then
  1275. local dir = Vector3.new(RootPart.Velocity.x,0,RootPart.Velocity.z).unit
  1276. GravPoint = 0
  1277. freefall = 0
  1278. walljump = true
  1279. Humanoid.AutoRotate = false
  1280. local velo = Instance.new("BodyVelocity",Torso)
  1281. velo.MaxForce = Vector3.new(400000,400000,400000)
  1282. --game.Debris:AddItem(velo,0.1)
  1283. attack = true
  1284. while hitfloor == nil and walljump == true and ray and hit do
  1285. swait()
  1286. freefall = 0
  1287. GravPoint = GravPoint - 0.36
  1288. ray = Ray.new(
  1289. RootPart.CFrame.p, RootPart.CFrame.lookVector *2.5
  1290. )
  1291. hit, position, normal = workspace:FindPartOnRay(ray, character)
  1292. velo.Velocity = vt(0,GravPoint,0)
  1293. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0.9) * CFrame.Angles(math.rad(5), math.rad(90), math.rad(8)), 0.2)
  1294. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(7),math.rad(0),math.rad(86)),.2)
  1295. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(120)),.2)
  1296. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-60)),.2)
  1297. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-6), math.rad(14), math.rad(-12)), 0.2)
  1298. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(23)), 0.2)
  1299. end
  1300. if walljump == false then
  1301. k = math.random(1,3)
  1302. if k == 1 then
  1303. so("http://www.roblox.com/asset/?id=800121776", Head, 2.5, 1)
  1304. else if k == 2 then
  1305. so("http://www.roblox.com/asset/?id=804889329", Head, 2.5, 1)
  1306. else if k == 3 then
  1307. so("http://www.roblox.com/asset/?id=804907617", Head, 2.5, 1)
  1308. end
  1309. end
  1310. end
  1311.  
  1312. velo:Destroy()
  1313. attack = false
  1314. coroutine.resume(coroutine.create(function()
  1315. for i = 0,1,0.1 do
  1316. swait()
  1317. Humanoid.CameraOffset = Vector3.new(0,0,0)
  1318. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0+260*i), math.rad(0), math.rad(0)), 0.6)
  1319. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(70),math.rad(0),math.rad(0)),.1)
  1320. RW.C0 = clerp(RW.C0, CFrame.new(.7, -0.22, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-90)), 0.1)
  1321. LW.C0 = clerp(LW.C0, CFrame.new(-.7, -0.22, -0.5) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.1)
  1322. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -.34, -0.7) * CFrame.Angles(math.rad(-25), math.rad(0), math.rad(0)), 0.1)
  1323. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -.34, -0.7) * CFrame.Angles(math.rad(-25), math.rad(0), math.rad(0)), 0.1)
  1324. end
  1325. end))
  1326.  
  1327. Humanoid.AutoRotate = true
  1328. RootPart.Velocity = RootPart.CFrame.lookVector * -137 + Vector3.new(0,136,0)
  1329. wait(0.07)
  1330. RootPart.CFrame = CFrame.new(RootPart.CFrame.p,-RootPart.CFrame.lookVector)
  1331. end
  1332. if walljump == true then
  1333. attack = false
  1334. walljump = false
  1335. Humanoid.AutoRotate = true
  1336. velo:Destroy()
  1337. end
  1338. end
  1339. end
  1340. end
  1341.  
  1342.  
  1343. local homed = nil
  1344. function home()
  1345. if walljump ~= true then
  1346. for i, v in pairs(FindNearestTorso(Torso.CFrame.p, 80)) do
  1347. if v:FindFirstChild('Head') then
  1348. Grabbed = true
  1349. homed = v
  1350. end
  1351. end
  1352.  
  1353. if homed ~= nil and homed:FindFirstChildOfClass("Humanoid").Health > 1 and walljump == false then
  1354. so("http://www.roblox.com/asset/?id=162460823", Head, 1, .8)
  1355. local SBall = Instance.new("Part",Character)
  1356. SBall.Name = "Homing Ball"
  1357. SBall.CanCollide = false
  1358. SBall.Anchored = false
  1359. SBall.Transparency = 0.64
  1360. SBall.CFrame = CFrame.new(RootPart.CFrame.p)
  1361. SBall.BrickColor = BrickColor.new("Toothpaste")
  1362. SBall.Size = Vector3.new(1,1,1)
  1363. SBall.Material = "Neon"
  1364. SBallweld = Instance.new("Weld")
  1365. SBallweld.Parent = SBall
  1366. SBallweld.Part0 = RootPart
  1367. SBallweld.Part1 = SBall
  1368. SBallweld.C1 = CFrame.new(0, 1, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  1369. SBallweld.Part0 = RootPart
  1370. local SBallmesh = Instance.new("SpecialMesh",SBall)
  1371. SBallmesh.MeshType = "Sphere"
  1372. SBallmesh.Scale = Vector3.new(6,6,6)
  1373. trail = Instance.new("Trail", Character)
  1374. a2 = Instance.new("Attachment", Torso) a2.Position = Vector3.new(0,2,0)
  1375. a3 = Instance.new("Attachment", Torso)a3.Position = Vector3.new(0,-2.5,0)
  1376. trail.Texture = "rbxassetid://0"
  1377. trail.Attachment0 = a2
  1378. trail.Attachment1 = a3
  1379. trail.Lifetime = 0.353
  1380. trail.MinLength = 0.03
  1381. trail.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,1)})
  1382. trail.Color = ColorSequence.new(Color3.new(0,1,1), Color3.new(0, 0,0))
  1383. trail.LightEmission = 4.8
  1384. trail.TextureLength = 0.034
  1385. trail.Enabled = true
  1386. attack = true
  1387. local position = Instance.new("BodyPosition",Torso)
  1388. position.P = 68350
  1389. position.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  1390.  
  1391. while homed ~= nil and (homed.Torso.Position-RootPart.Position).magnitude > 8 do
  1392. swait()
  1393. SBall.CFrame = CFrame.new(RootPart.CFrame.p)
  1394. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0+420*math.abs(sine/3.2)), math.rad(0), math.rad(0)), 0.6)
  1395. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(70),math.rad(0),math.rad(0)),.1)
  1396. RW.C0 = clerp(RW.C0, CFrame.new(.7, -0.22, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-90)), 0.1)
  1397. LW.C0 = clerp(LW.C0, CFrame.new(-.7, -0.22, -0.5) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.1)
  1398. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -.34, -0.7) * CFrame.Angles(math.rad(-25), math.rad(0), math.rad(0)), 0.1)
  1399. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -.34, -0.7) * CFrame.Angles(math.rad(-25), math.rad(0), math.rad(0)), 0.1)
  1400. position.Position = homed.Torso.Position + Vector3.new(0,2,0)
  1401. end
  1402. local bodvol=Instance.new("BodyVelocity")
  1403. bodvol.velocity= RootPart.CFrame.lookVector*240 + Vector3.new(0,30,0)
  1404. bodvol.P= 35200
  1405. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  1406. bodvol.Parent=homed.Head
  1407. game:GetService("Debris"):AddItem(bodvol, 0.2)
  1408. homed:FindFirstChildOfClass("Humanoid"):TakeDamage(math.random(10,30))
  1409.  
  1410. position:Destroy()
  1411. trail.Enabled = false
  1412. SBall:Destroy()
  1413. RootPart.Velocity = Vector3.new(0,93.5,0)
  1414. coroutine.resume(coroutine.create(function()
  1415. for i = 0,5,0.26 do
  1416. swait()
  1417. Humanoid.CameraOffset = Vector3.new(0,0,0)
  1418. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1+0.1*i, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.21)
  1419. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(22-2*i),math.rad(0),math.rad(0)),.21)
  1420. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5+0.09*i, 0) * angles(math.rad(20-6*i), math.rad(0), math.rad(90+13*i)), 0.21)
  1421. LW.C0 = clerp(LW.C0, CFrame.new(-1.0-0.12*i, 0.5, -0.4+0.05*i) * angles(math.rad(20+13*i), math.rad(0), math.rad(20-13*i)), 0.21)
  1422. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(45+6*i), math.rad(0), math.rad(-22-4*i)), 0.21)
  1423. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(45+6*i), math.rad(0), math.rad(22+4*i)), 0.21)
  1424. end
  1425. homed = nil
  1426. attack = false
  1427. end))
  1428.  
  1429. end
  1430.  
  1431. end
  1432.  
  1433.  
  1434. end
  1435.  
  1436.  
  1437.  
  1438.  
  1439.  
  1440.  
  1441.  
  1442.  
  1443.  
  1444.  
  1445.  
  1446.  
  1447.  
  1448.  
  1449.  
  1450.  
  1451.  
  1452.  
  1453.  
  1454.  
  1455.  
  1456.  
  1457.  
  1458. mouse.KeyDown:connect(function(key)
  1459. wait(0.16)
  1460. if string.byte(key) == 32 and hitfloor == nil and attack == false and walljump == false and Humanoid.Jump == true then
  1461. walljumpp()
  1462. end
  1463. if string.byte(key) == 32 and hitfloor == nil and attack == false and walljump == false and Humanoid.Jump == true then
  1464. home()
  1465. end
  1466.  
  1467. if string.byte(key) == 32 and hitfloor == nil and attack == true and walljump == true then
  1468. walljump = false
  1469. end
  1470. end)
  1471.  
  1472.  
  1473.  
  1474.  
  1475. mouse.KeyDown:connect(function(key)
  1476. if key == 'm' and attack == false then
  1477. changemusic()
  1478. end
  1479. end)
  1480.  
  1481.  
  1482.  
  1483.  
  1484.  
  1485.  
  1486. mouse.KeyUp:connect(function(key)
  1487. wait(0.05)
  1488. if key == 'c' and sliding == true then
  1489. sliding = false
  1490. end
  1491. end)
  1492. local look = 0
  1493.  
  1494.  
  1495.  
  1496. while true do
  1497. swait()
  1498. sine = sine + change
  1499. --speed = speed + music.PlaybackLoudness/90
  1500. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  1501. local velderp=RootPart.Velocity.y
  1502. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  1503.  
  1504. local TiltVelocity = CFrame.new(RootPart.CFrame:vectorToObjectSpace(RootPart.Velocity))
  1505.  
  1506. local rlegray = Ray.new(RightLeg.Position+Vector3.new(0,0.54,0),Vector3.new(0, -1.75, 0))
  1507. local rlegpart, rlegendPoint = workspace:FindPartOnRay(rlegray, Character)
  1508.  
  1509. local llegray = Ray.new(LeftLeg.Position+Vector3.new(0,0.54,0),Vector3.new(0, -1.75, 0))
  1510. local llegpart, llegendPoint = workspace:FindPartOnRay(llegray, Character)
  1511.  
  1512. local waterthing = Ray.new(RootPart.CFrame.p,Vector3.new(0,-1,0))
  1513. local start, position = workspace:FindPartOnRay(waterthing, character)
  1514.  
  1515. if start ~= nil and start.Material == "Water" then
  1516.  
  1517. RootPart.Velocity = RootPart.Velocity + Vector3.new(0,6,0)
  1518.  
  1519. end
  1520.  
  1521. Head.Running.Pitch = 0.76 + Humanoid.WalkSpeed/124
  1522. if torvel<1 and Swing == 2 then
  1523. boost = false
  1524. elseif torvel>1 and Swing == 2 then
  1525. boost = true
  1526. freefall = 0
  1527. end
  1528. if hitfloor ~= nil and freefall < 150 then
  1529. freefall = 0
  1530. end
  1531. if freefall > 150 and hitfloor ~= nil then
  1532. land()
  1533. freefall = 0
  1534. end
  1535.  
  1536.  
  1537.  
  1538.  
  1539.  
  1540.  
  1541.  
  1542. if RootPart.Velocity.y > 1 and hitfloor==nil then
  1543. Anim="Jump"
  1544.  
  1545.  
  1546.  
  1547.  
  1548.  
  1549. if attack==false then
  1550. change = 1
  1551. look = 0
  1552. Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(0,0,0),0.15)
  1553. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(4), math.rad(0), math.rad(0)), 0.07)
  1554. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10+2.05*math.cos(sine/5)),math.rad(0),math.rad(0)),0.07)
  1555. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20+2.05*math.cos(sine/5)), math.rad(-10), math.rad(50-2.05*math.cos(sine/5))), 0.07)
  1556. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20+2.05*math.cos(sine/5)), math.rad(-10), math.rad(-50+2.05*math.cos(sine/5))), 0.07)
  1557. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, -0.6) * CFrame.Angles(math.rad(-25+3.05*math.cos(sine/5)), math.rad(-3), math.rad(0)), 0.1)
  1558. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -.47, -0.7) * CFrame.Angles(math.rad(-12+3.05*math.cos(sine/5)), math.rad(0), math.rad(0)), 0.1)
  1559. end
  1560.  
  1561. elseif RootPart.Velocity.y < -1 and freefall <150 and hitfloor==nil then
  1562. Anim="Fall"
  1563. change = 1
  1564. freefall = freefall +0.77
  1565.  
  1566.  
  1567. if attack==false then
  1568. Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(0,0,0),0.15)
  1569. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0.2) * CFrame.Angles(math.rad(7+4*math.sin(sine/1.3)), math.rad(0), math.rad(0)),0.07)
  1570. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.65, 0) * angles(math.rad(0), math.rad(0), math.rad(140+12*math.cos(sine/1.3))), 0.07)
  1571. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.65, 0) * angles(math.rad(0), math.rad(0), math.rad(-140+12*math.cos(sine/1.3))), 0.07)
  1572. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(40+7*math.sin(sine/1.3)),math.rad(0),math.rad(0)),0.07)
  1573. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1+0.17*math.cos(sine/1.3), -0.13) * CFrame.Angles(math.rad(18+7*math.cos(sine/1.3)), math.rad(3), math.rad(0)), 0.1)
  1574. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -.37+0.17*math.cos(sine/1.3), -0.2) * CFrame.Angles(math.rad(32+7*math.cos(sine/1.3)), math.rad(0), math.rad(0)), 0.1)
  1575. end
  1576.  
  1577.  
  1578.  
  1579. elseif RootPart.Velocity.y < -1 and freefall > 150 and hitfloor==nil then
  1580. Anim="FreeFall"
  1581. change = 1
  1582.  
  1583.  
  1584. if attack==false then
  1585. Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(0,0,0),0.15)
  1586. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0.2) * CFrame.Angles(math.rad(-90+3*math.sin(sine/1.3)), math.rad(0), math.rad(0)),0.07)
  1587. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(14+12*math.cos(sine/1.3)), math.rad(0), math.rad(110)), 0.07)
  1588. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(14+12*math.cos(sine/1.3)), math.rad(0), math.rad(-110)), 0.07)
  1589. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-12+7*math.sin(sine/1.3)),math.rad(0),math.rad(0)),0.07)
  1590. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1+0.17*math.cos(sine/1.3),0.2) * CFrame.Angles(math.rad(-12+4*math.cos(sine/1.3)), math.rad(3), math.rad(-46)), 0.1)
  1591. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1+0.17*math.cos(sine/1.3), 0.2) * CFrame.Angles(math.rad(-12+4*math.cos(sine/1.3)), math.rad(0), math.rad(46)), 0.1)
  1592. end
  1593.  
  1594. elseif torvel<1 and hitfloor~=nil then
  1595. Anim="Idle"
  1596. change = 1
  1597. if attack==false and equip == false then
  1598.  
  1599. Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(0,0,0),0.15)
  1600. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1-0.04*math.cos(sine/40), -0) * CFrame.Angles(math.rad(0-0.81*math.cos(sine/40)), math.rad(-40), math.rad(0)), 0.1)
  1601. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0+2.6*math.sin(sine/40)),math.rad(0),math.rad(40)),0.1)
  1602. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.55+0.04*math.sin(sine/40), 0-0.04*math.cos(sine/40)) * angles(math.rad(-2+1.3*math.cos(sine/40)), math.rad(0+4*math.sin(sine/40)), math.rad(6.3+2.2*math.cos(sine/40))),0.1)
  1603. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.55+0.04*math.sin(sine/40), 0-0.04*math.cos(sine/40)) * angles(math.rad(2+1.3*math.cos(sine/40)), math.rad(0-4*math.sin(sine/40)), math.rad(-6.3-2.2*math.cos(sine/40))),0.1)
  1604. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, llegendPoint.Y-LeftLeg.Position.Y+0.04*math.cos(sine/40), 0) * CFrame.Angles(math.rad(0+0.81*math.cos(sine/40)), math.rad(18+0.81*math.cos(sine/40)), math.rad(-2-0.81*math.cos(sine/40))),0.1)
  1605. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.57, rlegendPoint.Y-RightLeg.Position.Y+0.04*math.cos(sine/40), 0) * CFrame.Angles(math.rad(0+0.81*math.cos(sine/40)), math.rad(-2+0.81*math.cos(sine/40)), math.rad(3-0.81*math.cos(sine/40))),0.1)
  1606. end
  1607.  
  1608.  
  1609.  
  1610. elseif torvel>1.5 and torvel<70 and hitfloor~=nil then
  1611. Anim="Walk"
  1612. change = 0.84+ Character.Humanoid.WalkSpeed/132
  1613. look = 0
  1614. if attack==false and equip == false then
  1615. Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(0,0,0),0.02)
  1616. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1-0.52*math.cos(sine/2), -.8) * angles(math.rad(-26), math.rad(0), math.rad(0)+ RootPart.RotVelocity.Y / 26), .1)
  1617. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-11+20*math.sin(sine/2)),math.rad(0),math.rad(0+5*math.sin(sine/4)) + RootPart.RotVelocity.Y / 13),.1)
  1618. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0.1) * angles(math.rad(-60-7*math.sin(sine/4))+ RootPart.RotVelocity.Y / -34, math.rad(0), math.rad(15+2*math.sin(sine/4))- RootPart.RotVelocity.Y / 34),.15)
  1619. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0.1)*angles(math.rad(-60-7*math.sin(sine/4))+ RootPart.RotVelocity.Y / 34,math.rad(0),math.rad(-15+2*math.sin(sine/4))+ RootPart.RotVelocity.Y / -34),.15)
  1620. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1+0.28*math.cos(sine/4), 0-0.32*math.cos(sine/4)) * CFrame.Angles(math.rad(0+104*math.sin(sine/4)), math.rad(0)+ RootPart.RotVelocity.Y / 42, math.rad(0)+ RootPart.RotVelocity.Y / -54), 0.3)
  1621. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1-0.28*math.cos(sine/4),0+0.32*math.cos(sine/4)) * CFrame.Angles(math.rad(0-104*math.sin(sine/4)), math.rad(0)+ RootPart.RotVelocity.Y / 42, math.rad(0)- RootPart.RotVelocity.Y / 54), 0.3)
  1622. end
  1623.  
  1624.  
  1625. elseif torvel>=70 and torvel<200 and hitfloor~=nil then
  1626. Anim="Run"
  1627. change = 0.84+ Character.Humanoid.WalkSpeed/142
  1628. if attack==false and equip == false then
  1629. Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(0,0,0),0.02)
  1630. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1-0.52*math.cos(sine/1.5), -.8) * angles(math.rad(-37), math.rad(0), math.rad(0)+ RootPart.RotVelocity.Y / 26), .1)
  1631. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-11+25*math.sin(sine/1.5)),math.rad(0),math.rad(0+5*math.sin(sine/3)) + RootPart.RotVelocity.Y / 13),.1)
  1632. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0.3) * angles(math.rad(-72-8*math.sin(sine/1.5))+ RootPart.RotVelocity.Y / -34, math.rad(0), math.rad(1+0*math.cos(sine/3))- RootPart.RotVelocity.Y / 34),.25)
  1633. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0.3)*angles(math.rad(-72-8*math.sin(sine/1.5))+ RootPart.RotVelocity.Y / 34,math.rad(0),math.rad(-1+0*math.cos(sine/3))+ RootPart.RotVelocity.Y / -34),.25)
  1634. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1+0.32*math.cos(sine/3), 0-0.42*math.cos(sine/3)) * CFrame.Angles(math.rad(0+134*math.sin(sine/3)), math.rad(0)+ RootPart.RotVelocity.Y / 42, math.rad(0)+ RootPart.RotVelocity.Y / -54), 0.44)
  1635. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1-0.32*math.cos(sine/3),0+0.42*math.cos(sine/3)) * CFrame.Angles(math.rad(0-134*math.sin(sine/3)), math.rad(0)+ RootPart.RotVelocity.Y / 42, math.rad(0)- RootPart.RotVelocity.Y / 54), 0.44)
  1636. end
  1637.  
  1638. --[[
  1639. if attack==false then
  1640. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1-0.4*math.cos(sine/5.5)/2, 0 *math.sin(sine/6.6)/2) * CFrame.Angles(math.rad(0) + -math.sin(sine/5.5)/1.2, math.rad(0), 0), .8)
  1641. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1+0.4*math.cos(sine/5.5)/2,0 *-math.sin(sine/6.6)/2) * CFrame.Angles(math.rad(0) + math.sin(sine/5.5)/1.2, math.rad(0), 0), .8)
  1642. end
  1643. ]]
  1644. if attack==true and noleg == false then
  1645. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1-0.24*math.cos(sine/5), 0.+0.24*math.cos(sine/5)) * CFrame.Angles(math.rad(0-74*math.sin(sine/5)), math.rad(0), math.rad(0)), 0.3)
  1646. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1+0.24*math.cos(sine/5),0.-0.24*math.cos(sine/5)) * CFrame.Angles(math.rad(0+74*math.sin(sine/5)), math.rad(0), math.rad(0)), 0.3)
  1647. end
  1648.  
  1649.  
  1650.  
  1651. elseif torvel>=200 and hitfloor~=nil then
  1652. Anim="MachRun"
  1653. change = 0.84+ Character.Humanoid.WalkSpeed/182
  1654. if attack==false and equip == false then
  1655. Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(0,0,0),0.02)
  1656. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1-0.52*math.cos(sine/1), -3.8) * angles(math.rad(-44), math.rad(0), math.rad(0)+ RootPart.RotVelocity.Y / 26), .2)
  1657. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-11+25*math.sin(sine/1)),math.rad(0),math.rad(0+5*math.sin(sine/2)) + RootPart.RotVelocity.Y / 13),.2)
  1658. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0.5) * angles(math.rad(-78-12*math.sin(sine/1))+ RootPart.RotVelocity.Y / -34, math.rad(0), math.rad(-24+0*math.cos(sine/2))- RootPart.RotVelocity.Y / 34),.35)
  1659. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0.5)*angles(math.rad(-78-12*math.sin(sine/1))+ RootPart.RotVelocity.Y / 34,math.rad(0),math.rad(24+0*math.cos(sine/2))+ RootPart.RotVelocity.Y / -34),.35)
  1660. LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1+0.42*math.cos(sine/2), 0-0.62*math.cos(sine/2)) * CFrame.Angles(math.rad(0+134*math.sin(sine/2)), math.rad(0)+ RootPart.RotVelocity.Y / 42, math.rad(0)+ RootPart.RotVelocity.Y / -54), 0.52)
  1661. RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1-0.42*math.cos(sine/2),0+0.62*math.cos(sine/2)) * CFrame.Angles(math.rad(0-134*math.sin(sine/2)), math.rad(0)+ RootPart.RotVelocity.Y / 42, math.rad(0)- RootPart.RotVelocity.Y / 54), 0.52)
  1662. end
  1663.  
  1664.  
  1665.  
  1666. end
  1667.  
  1668.  
  1669.  
  1670.  
  1671.  
  1672.  
  1673.  
  1674.  
  1675.  
  1676. if 0 < #Effects then
  1677. for e = 1, #Effects do
  1678. if Effects[e] ~= nil then
  1679. local Thing = Effects[e]
  1680. if Thing ~= nil then
  1681. local Part = Thing[1]
  1682. local Mode = Thing[2]
  1683. local Delay = Thing[3]
  1684. local IncX = Thing[4]
  1685. local IncY = Thing[5]
  1686. local IncZ = Thing[6]
  1687. if Thing[1].Transparency <= 1 then
  1688. if Thing[2] == "Block1" then
  1689. Thing[1].CFrame = Thing[1].CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1690. Mesh = Thing[1]:FindFirstChild("Mesh")
  1691. if not Mesh then
  1692. Mesh = Instance.new("BlockMesh")
  1693. end
  1694. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  1695. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1696. elseif Thing[2] == "Cylinder" then
  1697. Mesh = Thing[1]:FindFirstChild("Mesh")
  1698. if not Mesh then
  1699. Mesh = Instance.new("BlockMesh")
  1700. end
  1701. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  1702. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1703. elseif Thing[2] == "Blood" then
  1704. Mesh = Thing[1]:FindFirstChild("Mesh")
  1705. if not Mesh then
  1706. Mesh = Instance.new("BlockMesh")
  1707. end
  1708. Thing[1].CFrame = Thing[1].CFrame * cf(0, 0.5, 0)
  1709. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  1710. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1711. elseif Thing[2] == "Elec" then
  1712. Mesh = Thing[1]:FindFirstChild("Mesh")
  1713. if not Mesh then
  1714. Mesh = Instance.new("BlockMesh")
  1715. end
  1716. Mesh.Scale = Mesh.Scale + vt(Thing[7], Thing[8], Thing[9])
  1717. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1718. elseif Thing[2] == "Disappear" then
  1719. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1720. end
  1721. else
  1722. Part.Parent = nil
  1723. game:GetService("Debris"):AddItem(Part, 0)
  1724. table.remove(Effects, e)
  1725. end
  1726. end
  1727. end
  1728. end
  1729. end
  1730.  
  1731. end
Add Comment
Please, Sign In to add comment