Advertisement
therainbowcreeperRBX

Untitled

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