Pancakess

pepsi

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