Upscalefanatic3

(Roblox) [FE] Sonic Script

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