Advertisement
TheYoutuber_Pro

Untitled

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