Advertisement
rblx345

Untitled

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