Advertisement
Guest User

fe sonic test

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