Advertisement
therainbowcreeperRBX

Sonic Script FE

Jan 1st, 2019
576
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 = 8
  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 = 10
  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://251975234"
  1306. end
  1307. if musicnum == 12 then
  1308. music.SoundId = "rbxassetid://154037717"
  1309. end
  1310. if musicnum == 13 then
  1311. music.SoundId = "rbxassetid://2171393535"
  1312. end
  1313. if musicnum == 14 then
  1314. music.SoundId = "rbxassetid://1169454591"
  1315. end
  1316. if musicnum == 15 then
  1317. music.SoundId = "rbxassetid://891425703"
  1318. end
  1319.  
  1320. if spd < 14 then
  1321. Humanoid.Jump = true
  1322.  
  1323. if osix == false then
  1324. so("rbxassetid://537371462",PlayerGui,2,1)
  1325. end
  1326.  
  1327.  
  1328. RootPart.Velocity = Vector3.new(0,102,0)
  1329. attack = true
  1330. wait(0.08)
  1331. for i = 0,7,0.1 do
  1332. swait()
  1333. RootPart.Velocity = Vector3.new(0,2,0)
  1334. Humanoid.CameraOffset = Vector3.new(0,0,0)
  1335. 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)
  1336. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(70),math.rad(0),math.rad(0)),.1)
  1337. RW.C0 = clerp(RW.C0, CFrame.new(.7, -0.22, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-90)), 0.1)
  1338. LW.C0 = clerp(LW.C0, CFrame.new(-.7, -0.22, -0.5) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.1)
  1339. 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)
  1340. 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)
  1341.  
  1342. end
  1343. b.Size = 40
  1344. MoonEffect(BrickColor.new("Cyan"), RootPart.CFrame*CFrame.new(0,0,0) , 1, 1, 1, 8, 8, 8, 0.06)
  1345.  
  1346. if osix == true then
  1347. osix = false
  1348. so("rbxassetid://156821036",PlayerGui,2,1)
  1349. end
  1350.  
  1351. Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -3, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 1)
  1352. for i = 0,5,0.1 do
  1353. swait()
  1354. RootPart.Velocity = Vector3.new(0,3.5,0)
  1355. Humanoid.CameraOffset = Vector3.new(0,0,0)
  1356. 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)
  1357. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(22-2*i),math.rad(0),math.rad(0)),.21)
  1358. 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)
  1359. 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)
  1360. 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)
  1361. 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)
  1362. end
  1363. attack = false
  1364. end
  1365. end
  1366.  
  1367.  
  1368. mouse.KeyDown:connect(function(key)
  1369. if key == 'q' and attack == false and evadecooldown == false then
  1370. Ldash()
  1371. end
  1372. end)
  1373.  
  1374.  
  1375.  
  1376. mouse.KeyDown:connect(function(key)
  1377. if key == 'e' and attack == false and evadecooldown == false then
  1378. Rdash()
  1379. end
  1380. end)
  1381.  
  1382. mouse.KeyDown:connect(function(key)
  1383. if key == 'c' and attack == false and evadecooldown == false and hitfloor ~= nil then
  1384. sliding = true
  1385. Slide()
  1386. end
  1387. end)
  1388.  
  1389. mouse.KeyDown:connect(function(key)
  1390. if key == 'c' and attack == false and hitfloor == nil then
  1391. stomp()
  1392. end
  1393. end)
  1394.  
  1395.  
  1396. local walljump = false
  1397.  
  1398.  
  1399. function walljumpp()
  1400. local ray = Ray.new(
  1401. Torso.CFrame.p, RootPart.CFrame.lookVector *5
  1402. )
  1403. local hit, position, normal = workspace:FindPartOnRay(ray, character)
  1404.  
  1405. if hit then
  1406. if hit.Parent.Parent ~= Character and hit.Parent ~= Character then
  1407. local dir = Vector3.new(RootPart.Velocity.x,0,RootPart.Velocity.z).unit
  1408. GravPoint = 0
  1409. freefall = 0
  1410. walljump = true
  1411. Humanoid.AutoRotate = false
  1412. local velo = Instance.new("BodyVelocity",Torso)
  1413. velo.MaxForce = Vector3.new(400000,400000,400000)
  1414. --game.Debris:AddItem(velo,0.1)
  1415. attack = true
  1416. while hitfloor == nil and walljump == true and ray and hit do
  1417. swait()
  1418. freefall = 0
  1419. GravPoint = GravPoint - 0.36
  1420. ray = Ray.new(
  1421. RootPart.CFrame.p, RootPart.CFrame.lookVector *2.5
  1422. )
  1423. hit, position, normal = workspace:FindPartOnRay(ray, character)
  1424. velo.Velocity = vt(0,GravPoint,0)
  1425. 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)
  1426. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(7),math.rad(0),math.rad(86)),.2)
  1427. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(120)),.2)
  1428. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-60)),.2)
  1429. 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)
  1430. 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)
  1431. end
  1432. if walljump == false then
  1433. k = math.random(1,3)
  1434. if k == 1 then
  1435. so("http://www.roblox.com/asset/?id=800121776", Head, 2.5, 1)
  1436. else if k == 2 then
  1437. so("http://www.roblox.com/asset/?id=804889329", Head, 2.5, 1)
  1438. else if k == 3 then
  1439. so("http://www.roblox.com/asset/?id=804907617", Head, 2.5, 1)
  1440. end
  1441. end
  1442. end
  1443.  
  1444. velo:Destroy()
  1445. attack = false
  1446. coroutine.resume(coroutine.create(function()
  1447. for i = 0,1,0.1 do
  1448. swait()
  1449. Humanoid.CameraOffset = Vector3.new(0,0,0)
  1450. 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)
  1451. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(70),math.rad(0),math.rad(0)),.1)
  1452. RW.C0 = clerp(RW.C0, CFrame.new(.7, -0.22, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-90)), 0.1)
  1453. LW.C0 = clerp(LW.C0, CFrame.new(-.7, -0.22, -0.5) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.1)
  1454. 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)
  1455. 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)
  1456. end
  1457. end))
  1458.  
  1459. Humanoid.AutoRotate = true
  1460. RootPart.Velocity = RootPart.CFrame.lookVector * -137 + Vector3.new(0,136,0)
  1461. wait(0.07)
  1462. RootPart.CFrame = CFrame.new(RootPart.CFrame.p,-RootPart.CFrame.lookVector)
  1463. end
  1464. if walljump == true then
  1465. attack = false
  1466. walljump = false
  1467. Humanoid.AutoRotate = true
  1468. velo:Destroy()
  1469. end
  1470. end
  1471. end
  1472. end
  1473.  
  1474.  
  1475. local homed = nil
  1476. function home()
  1477. if walljump ~= true then
  1478. for i, v in pairs(FindNearestTorso(Torso.CFrame.p, 80)) do
  1479. if v:FindFirstChild('Head') then
  1480. Grabbed = true
  1481. homed = v
  1482. end
  1483. end
  1484.  
  1485. if homed ~= nil and homed:FindFirstChildOfClass("Humanoid").Health > 1 and walljump == false then
  1486. so("http://www.roblox.com/asset/?id=162460823", Head, 1, .8)
  1487. local SBall = Instance.new("Part",Character)
  1488. SBall.Name = "Homing Ball"
  1489. SBall.CanCollide = false
  1490. SBall.Anchored = false
  1491. SBall.Transparency = 0.64
  1492. SBall.CFrame = CFrame.new(RootPart.CFrame.p)
  1493. SBall.BrickColor = BrickColor.new("Navy blue")
  1494. SBall.Size = Vector3.new(1,1,1)
  1495. SBall.Material = "Neon"
  1496. SBallweld = Instance.new("Weld")
  1497. SBallweld.Parent = SBall
  1498. SBallweld.Part0 = RootPart
  1499. SBallweld.Part1 = SBall
  1500. SBallweld.C1 = CFrame.new(0, 1, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  1501. SBallweld.Part0 = RootPart
  1502. local SBallmesh = Instance.new("SpecialMesh",SBall)
  1503. SBallmesh.MeshType = "Sphere"
  1504. SBallmesh.Scale = Vector3.new(6,6,6)
  1505. trail = Instance.new("Trail", Character)
  1506. a2 = Instance.new("Attachment", Torso) a2.Position = Vector3.new(0,2,0)
  1507. a3 = Instance.new("Attachment", Torso)a3.Position = Vector3.new(0,-2.5,0)
  1508. trail.Texture = "rbxassetid://0"
  1509. trail.Attachment0 = a2
  1510. trail.Attachment1 = a3
  1511. trail.Lifetime = 0.353
  1512. trail.MinLength = 0.03
  1513. trail.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,1)})
  1514. trail.Color = ColorSequence.new(Color3.new(0,1,1), Color3.new(0, 0,0))
  1515. trail.LightEmission = 4.8
  1516. trail.TextureLength = 0.034
  1517. trail.Enabled = true
  1518. attack = true
  1519. local position = Instance.new("BodyPosition",Torso)
  1520. position.P = 68350
  1521. position.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  1522.  
  1523. while homed ~= nil and (homed.Torso.Position-RootPart.Position).magnitude > 8 do
  1524. swait()
  1525. SBall.CFrame = CFrame.new(RootPart.CFrame.p)
  1526. 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)
  1527. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(70),math.rad(0),math.rad(0)),.1)
  1528. RW.C0 = clerp(RW.C0, CFrame.new(.7, -0.22, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-90)), 0.1)
  1529. LW.C0 = clerp(LW.C0, CFrame.new(-.7, -0.22, -0.5) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.1)
  1530. 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)
  1531. 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)
  1532. position.Position = homed.Torso.Position + Vector3.new(0,2,0)
  1533. end
  1534. local bodvol=Instance.new("BodyVelocity")
  1535. bodvol.velocity= RootPart.CFrame.lookVector*240 + Vector3.new(0,30,0)
  1536. bodvol.P= 35200
  1537. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  1538. bodvol.Parent=homed.Head
  1539. game:GetService("Debris"):AddItem(bodvol, 0.2)
  1540. homed:FindFirstChildOfClass("Humanoid"):TakeDamage(math.random(10,30))
  1541.  
  1542. position:Destroy()
  1543. trail.Enabled = false
  1544. SBall:Destroy()
  1545. RootPart.Velocity = Vector3.new(0,93.5,0)
  1546. coroutine.resume(coroutine.create(function()
  1547. for i = 0,5,0.26 do
  1548. swait()
  1549. Humanoid.CameraOffset = Vector3.new(0,0,0)
  1550. 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)
  1551. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(22-2*i),math.rad(0),math.rad(0)),.21)
  1552. 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)
  1553. 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)
  1554. 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)
  1555. 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)
  1556. end
  1557. homed = nil
  1558. attack = false
  1559. end))
  1560.  
  1561. end
  1562.  
  1563. end
  1564.  
  1565.  
  1566. end
  1567.  
  1568.  
  1569.  
  1570.  
  1571.  
  1572.  
  1573.  
  1574.  
  1575.  
  1576.  
  1577.  
  1578.  
  1579.  
  1580.  
  1581.  
  1582.  
  1583.  
  1584.  
  1585.  
  1586.  
  1587.  
  1588.  
  1589.  
  1590. mouse.KeyDown:connect(function(key)
  1591. wait(0.16)
  1592. if string.byte(key) == 32 and hitfloor == nil and attack == false and walljump == false and Humanoid.Jump == true then
  1593. walljumpp()
  1594. end
  1595. if string.byte(key) == 32 and hitfloor == nil and attack == false and walljump == false and Humanoid.Jump == true then
  1596. home()
  1597. end
  1598.  
  1599. if string.byte(key) == 32 and hitfloor == nil and attack == true and walljump == true then
  1600. walljump = false
  1601. end
  1602. end)
  1603.  
  1604.  
  1605.  
  1606.  
  1607. mouse.KeyDown:connect(function(key)
  1608. if key == 'm' and attack == false then
  1609. changemusic()
  1610. end
  1611. end)
  1612.  
  1613.  
  1614.  
  1615.  
  1616.  
  1617.  
  1618. mouse.KeyUp:connect(function(key)
  1619. wait(0.05)
  1620. if key == 'c' and sliding == true then
  1621. sliding = false
  1622. end
  1623. end)
  1624. local look = 0
  1625.  
  1626.  
  1627.  
  1628. while true do
  1629. swait()
  1630. sine = sine + change
  1631. --speed = speed + music.PlaybackLoudness/90
  1632. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  1633. local velderp=RootPart.Velocity.y
  1634. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  1635.  
  1636. local TiltVelocity = CFrame.new(RootPart.CFrame:vectorToObjectSpace(RootPart.Velocity))
  1637.  
  1638. local rlegray = Ray.new(RightLeg.Position+Vector3.new(0,0.54,0),Vector3.new(0, -1.75, 0))
  1639. local rlegpart, rlegendPoint = workspace:FindPartOnRay(rlegray, Character)
  1640.  
  1641. local llegray = Ray.new(LeftLeg.Position+Vector3.new(0,0.54,0),Vector3.new(0, -1.75, 0))
  1642. local llegpart, llegendPoint = workspace:FindPartOnRay(llegray, Character)
  1643.  
  1644. local waterthing = Ray.new(RootPart.CFrame.p,Vector3.new(0,-1,0))
  1645. local start, position = workspace:FindPartOnRay(waterthing, character)
  1646.  
  1647. if start ~= nil and start.Material == "Water" then
  1648.  
  1649. RootPart.Velocity = RootPart.Velocity + Vector3.new(0,6,0)
  1650.  
  1651. end
  1652.  
  1653. Head.Running.Pitch = 0.76 + Humanoid.WalkSpeed/124
  1654. if torvel<1 and Swing == 2 then
  1655. boost = false
  1656. elseif torvel>1 and Swing == 2 then
  1657. boost = true
  1658. freefall = 0
  1659. end
  1660. if hitfloor ~= nil and freefall < 150 then
  1661. freefall = 0
  1662. end
  1663. if freefall > 150 and hitfloor ~= nil then
  1664. land()
  1665. freefall = 0
  1666. end
  1667.  
  1668.  
  1669.  
  1670.  
  1671.  
  1672.  
  1673.  
  1674. if RootPart.Velocity.y > 1 and hitfloor==nil then
  1675. Anim="Jump"
  1676.  
  1677.  
  1678.  
  1679.  
  1680.  
  1681. if attack==false then
  1682. change = 1
  1683. look = 0
  1684. Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(0,0,0),0.15)
  1685. 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)
  1686. 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)
  1687. 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)
  1688. 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)
  1689. 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)
  1690. 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)
  1691. end
  1692.  
  1693. elseif RootPart.Velocity.y < -1 and freefall <150 and hitfloor==nil then
  1694. Anim="Fall"
  1695. change = 1
  1696. freefall = freefall +0.77
  1697.  
  1698.  
  1699. if attack==false then
  1700. Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(0,0,0),0.15)
  1701. 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)
  1702. 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)
  1703. 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)
  1704. 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)
  1705. 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)
  1706. 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)
  1707. end
  1708.  
  1709.  
  1710.  
  1711. elseif RootPart.Velocity.y < -1 and freefall > 150 and hitfloor==nil then
  1712. Anim="FreeFall"
  1713. change = 1
  1714.  
  1715.  
  1716. if attack==false then
  1717. Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(0,0,0),0.15)
  1718. 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)
  1719. 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)
  1720. 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)
  1721. 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)
  1722. 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)
  1723. 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)
  1724. end
  1725.  
  1726. elseif torvel<1 and hitfloor~=nil then
  1727. Anim="Idle"
  1728. change = 1
  1729. if attack==false and equip == false then
  1730.  
  1731. Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(0,0,0),0.15)
  1732. 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)
  1733. 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)
  1734. 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)
  1735. 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)
  1736. 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)
  1737. 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)
  1738. end
  1739.  
  1740.  
  1741.  
  1742. elseif torvel>1.5 and torvel<70 and hitfloor~=nil then
  1743. Anim="Walk"
  1744. change = 0.84+ Character.Humanoid.WalkSpeed/132
  1745. look = 0
  1746. if attack==false and equip == false then
  1747. Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(0,0,0),0.02)
  1748. 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)
  1749. 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)
  1750. 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)
  1751. 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)
  1752. 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)
  1753. 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)
  1754. end
  1755.  
  1756.  
  1757. elseif torvel>=70 and torvel<200 and hitfloor~=nil then
  1758. Anim="Run"
  1759. change = 0.84+ Character.Humanoid.WalkSpeed/142
  1760. if attack==false and equip == false then
  1761. Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(0,0,0),0.02)
  1762. 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)
  1763. 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)
  1764. 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)
  1765. 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)
  1766. 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)
  1767. 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)
  1768. end
  1769.  
  1770. --[[
  1771. if attack==false then
  1772. 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)
  1773. 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)
  1774. end
  1775. ]]
  1776. if attack==true and noleg == false then
  1777. 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)
  1778. 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)
  1779. end
  1780.  
  1781.  
  1782.  
  1783. elseif torvel>=200 and hitfloor~=nil then
  1784. Anim="MachRun"
  1785. change = 0.84+ Character.Humanoid.WalkSpeed/182
  1786. if attack==false and equip == false then
  1787. Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(0,0,0),0.02)
  1788. 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)
  1789. 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)
  1790. 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)
  1791. 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)
  1792. 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)
  1793. 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)
  1794. end
  1795.  
  1796.  
  1797.  
  1798. end
  1799.  
  1800.  
  1801.  
  1802.  
  1803.  
  1804.  
  1805.  
  1806.  
  1807.  
  1808. if 0 < #Effects then
  1809. for e = 1, #Effects do
  1810. if Effects[e] ~= nil then
  1811. local Thing = Effects[e]
  1812. if Thing ~= nil then
  1813. local Part = Thing[1]
  1814. local Mode = Thing[2]
  1815. local Delay = Thing[3]
  1816. local IncX = Thing[4]
  1817. local IncY = Thing[5]
  1818. local IncZ = Thing[6]
  1819. if Thing[1].Transparency <= 1 then
  1820. if Thing[2] == "Block1" then
  1821. Thing[1].CFrame = Thing[1].CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1822. Mesh = Thing[1]:FindFirstChild("Mesh")
  1823. if not Mesh then
  1824. Mesh = Instance.new("BlockMesh")
  1825. end
  1826. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  1827. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1828. elseif Thing[2] == "Cylinder" then
  1829. Mesh = Thing[1]:FindFirstChild("Mesh")
  1830. if not Mesh then
  1831. Mesh = Instance.new("BlockMesh")
  1832. end
  1833. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  1834. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1835. elseif Thing[2] == "Blood" then
  1836. Mesh = Thing[1]:FindFirstChild("Mesh")
  1837. if not Mesh then
  1838. Mesh = Instance.new("BlockMesh")
  1839. end
  1840. Thing[1].CFrame = Thing[1].CFrame * cf(0, 0.5, 0)
  1841. Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  1842. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1843. elseif Thing[2] == "Elec" then
  1844. Mesh = Thing[1]:FindFirstChild("Mesh")
  1845. if not Mesh then
  1846. Mesh = Instance.new("BlockMesh")
  1847. end
  1848. Mesh.Scale = Mesh.Scale + vt(Thing[7], Thing[8], Thing[9])
  1849. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1850. elseif Thing[2] == "Disappear" then
  1851. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1852. end
  1853. else
  1854. Part.Parent = nil
  1855. game:GetService("Debris"):AddItem(Part, 0)
  1856. table.remove(Effects, e)
  1857. end
  1858. end
  1859. end
  1860. end
  1861. end
  1862.  
  1863. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement