Advertisement
NoHackJustStevePlayz

RoBlOx SaNiC sCriPt

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