Advertisement
Ban43_GodOfEdits

test son?

Aug 25th, 2018
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 50.33 KB | None | 0 0
  1. --https://github.com/Mokiros/roblox-FE-compatibility
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  4. local RealPlayer = Player
  5. do print("FE Compatibility code by Mokiros")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(),Button2Up=c(),Button2Down=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;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")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 typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u 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 rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},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")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end
  6.  
  7. ----whoop finally fixed this gg
  8.  
  9.  
  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. --m=Instance.new('Model',Character)
  18. LeftArm=Character["Left Arm"]
  19. LeftLeg=Character["Left Leg"]
  20. RightArm=Character["Right Arm"]
  21. RightLeg=Character["Right Leg"]
  22. LS=Torso["Left Shoulder"]
  23. LH=Torso["Left Hip"]
  24. RS=Torso["Right Shoulder"]
  25. RH=Torso["Right Hip"]
  26. Face = Head.face
  27. Neck=Torso.Neck
  28. it=Instance.new
  29. attacktype=1
  30. vt=Vector3.new
  31. cf=CFrame.new
  32. euler=CFrame.fromEulerAnglesXYZ
  33. angles=CFrame.Angles
  34. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  35. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  36. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  37. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  38. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  39. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  40. RootPart=Character.HumanoidRootPart
  41. RootJoint=RootPart.RootJoint
  42. RootCF=euler(-1.57,0,3.14)
  43. attack = false
  44. attackdebounce = false
  45. equipped=true
  46. trispeed=.2
  47. attackmode='none'
  48. local idle=0
  49. local Anim="Idle"
  50. local footsteps = false
  51. local boost = false
  52. local targetted = nil
  53. local Super = false
  54. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  55. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  56. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  57. local cn = CFrame.new
  58.  
  59. local char = Player.Character
  60. local rutprt = char.HumanoidRootPart
  61. Humanoid.Animator.Parent = nil
  62. Character.Animate.Parent = nil
  63.  
  64. Character.Humanoid.Health = 10000
  65. Character.Humanoid.MaxHealth = 10000
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.  
  75.  
  76. function clerp(a,b,t)
  77. local qa = {QuaternionFromCFrame(a)}
  78. local qb = {QuaternionFromCFrame(b)}
  79. local ax, ay, az = a.x, a.y, a.z
  80. local bx, by, bz = b.x, b.y, b.z
  81. local _t = 1-t
  82. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  83. end
  84.  
  85. function QuaternionFromCFrame(cf)
  86. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  87. local trace = m00 + m11 + m22
  88. if trace > 0 then
  89. local s = math.sqrt(1 + trace)
  90. local recip = 0.5/s
  91. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  92. else
  93. local i = 0
  94. if m11 > m00 then
  95. i = 1
  96. end
  97. if m22 > (i == 0 and m00 or m11) then
  98. i = 2
  99. end
  100. if i == 0 then
  101. local s = math.sqrt(m00-m11-m22+1)
  102. local recip = 0.5/s
  103. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  104. elseif i == 1 then
  105. local s = math.sqrt(m11-m22-m00+1)
  106. local recip = 0.5/s
  107. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  108. elseif i == 2 then
  109. local s = math.sqrt(m22-m00-m11+1)
  110. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  111. end
  112. end
  113. end
  114.  
  115. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  116. local xs, ys, zs = x + x, y + y, z + z
  117. local wx, wy, wz = w*xs, w*ys, w*zs
  118. local xx = x*xs
  119. local xy = x*ys
  120. local xz = x*zs
  121. local yy = y*ys
  122. local yz = y*zs
  123. local zz = z*zs
  124. 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))
  125. end
  126.  
  127. function QuaternionSlerp(a, b, t)
  128. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  129. local startInterp, finishInterp;
  130. if cosTheta >= 0.0001 then
  131. if (1 - cosTheta) > 0.0001 then
  132. local theta = math.acos(cosTheta)
  133. local invSinTheta = 1/math.sin(theta)
  134. startInterp = math.sin((1-t)*theta)*invSinTheta
  135. finishInterp = math.sin(t*theta)*invSinTheta
  136. else
  137. startInterp = 1-t
  138. finishInterp = t
  139. end
  140. else
  141. if (1+cosTheta) > 0.0001 then
  142. local theta = math.acos(-cosTheta)
  143. local invSinTheta = 1/math.sin(theta)
  144. startInterp = math.sin((t-1)*theta)*invSinTheta
  145. finishInterp = math.sin(t*theta)*invSinTheta
  146. else
  147. startInterp = t-1
  148. finishInterp = t
  149. end
  150. end
  151. 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
  152. end
  153.  
  154. --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)
  155.  
  156. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  157. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  158. end
  159.  
  160.  
  161.  
  162.  
  163. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  164. if hit.Parent==nil then
  165. return
  166. end
  167. h=hit.Parent:FindFirstChild("Humanoid")
  168. for _,v in pairs(hit.Parent:children()) do
  169. if v:IsA("Humanoid") then
  170. h=v
  171. end
  172. end
  173. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  174. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  175. end
  176. if hit.Parent.className=="Hat" then
  177. hit=hit.Parent.Parent:findFirstChild("Head")
  178. end
  179. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  180. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  181. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  182. return
  183. end]]
  184. -- hs(hit,1.2)
  185. c=Instance.new("ObjectValue")
  186. c.Name="creator"
  187. c.Value=game:service("Players").LocalPlayer
  188. c.Parent=h
  189. game:GetService("Debris"):AddItem(c,.5)
  190. Damage=math.random(minim,maxim)
  191. -- h:TakeDamage(Damage)
  192. blocked=false
  193. block=hit.Parent:findFirstChild("Block")
  194. if block~=nil then
  195. print(block.className)
  196. if block.className=="NumberValue" then
  197. if block.Value>0 then
  198. blocked=true
  199. if decreaseblock==nil then
  200. block.Value=block.Value-1
  201. end
  202. end
  203. end
  204. if block.className=="IntValue" then
  205. if block.Value>0 then
  206. blocked=true
  207. if decreaseblock~=nil then
  208. block.Value=block.Value-1
  209. end
  210. end
  211. end
  212. end
  213. if blocked==false then
  214. -- h:TakeDamage(Damage)
  215. h.Health=h.Health-Damage
  216. h.Health=h.Health-Damage
  217. end
  218.  
  219. if Type=="Knockdown" then
  220. hum=hit.Parent.Humanoid
  221. hum.PlatformStand=true
  222. coroutine.resume(coroutine.create(function(HHumanoid)
  223. swait(5)
  224. HHumanoid.PlatformStand=false
  225. end),hum)
  226.  
  227. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  228. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  229. local bodvol=Instance.new("BodyVelocity")
  230. bodvol.velocity=angle*knockback
  231. bodvol.P=5000
  232. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  233. bodvol.Parent=hit
  234. rl=Instance.new("BodyAngularVelocity")
  235. rl.P=30000
  236. rl.maxTorque=Vector3.new(0,10,10)*5000
  237. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(2,4),math.random(-10,10))
  238. rl.Parent=hit
  239. game:GetService("Debris"):AddItem(bodvol,.5)
  240. game:GetService("Debris"):AddItem(rl,.5)
  241. elseif Type=="Normal" then
  242. vp=Instance.new("BodyVelocity")
  243. vp.P=500
  244. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  245. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  246. if KnockbackType==1 then
  247. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  248. elseif KnockbackType==2 then
  249. vp.velocity=Property.CFrame.lookVector*knockback
  250. end
  251. if knockback>0 then
  252. vp.Parent=hit.Parent.Torso
  253. end
  254. game:GetService("Debris"):AddItem(vp,.5)
  255. elseif Type=="Up" then
  256. local bodyVelocity=Instance.new("BodyVelocity")
  257. bodyVelocity.velocity=vt(0,40,0)
  258. bodyVelocity.P=1000
  259. bodyVelocity.maxForce=Vector3.new(1e+009, 1e+009, 1e+009)
  260. bodyVelocity.Parent=hit
  261. game:GetService("Debris"):AddItem(bodyVelocity,1)
  262. rl=Instance.new("BodyAngularVelocity")
  263. rl.P=3000
  264. rl.maxTorque=Vector3.new(5000,5000,5000)*5000
  265. rl.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  266. rl.Parent=hit
  267. game:GetService("Debris"):AddItem(rl,.5)
  268. elseif Type=="Snare" then
  269. bp=Instance.new("BodyPosition")
  270. bp.P=2000
  271. bp.D=100
  272. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  273. bp.position=hit.Parent.Torso.Position
  274. bp.Parent=hit.Parent.Torso
  275. game:GetService("Debris"):AddItem(bp,1)
  276. elseif Type=="Target" then
  277. if Targetting==false then
  278. ZTarget=hit.Parent.Torso
  279. coroutine.resume(coroutine.create(function(Part)
  280. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  281. swait(5)
  282. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  283. end),ZTarget)
  284. TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  285. targetgui=Instance.new("BillboardGui")
  286. targetgui.Parent=ZTarget
  287. targetgui.Size=UDim2.new(10,100,10,100)
  288. targ=Instance.new("ImageLabel")
  289. targ.Parent=targetgui
  290. targ.BackgroundTransparency=1
  291. targ.Image="rbxassetid://4834067"
  292. targ.Size=UDim2.new(1,0,1,0)
  293. cam.CameraType="Scriptable"
  294. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  295. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  296. workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  297. Targetting=true
  298. RocketTarget=ZTarget
  299. for i=1,Property do
  300. --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  301. if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  302. swait()
  303. end
  304. --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
  305. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  306. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  307. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  308. end
  309. Targetting=false
  310. RocketTarget=nil
  311. targetgui.Parent=nil
  312. cam.CameraType="Custom"
  313. end
  314. end
  315.  
  316.  
  317.  
  318.  
  319.  
  320.  
  321.  
  322.  
  323. debounce=Instance.new("BoolValue")
  324. debounce.Name="DebounceHit"
  325. debounce.Parent=hit.Parent
  326. debounce.Value=true
  327. game:GetService("Debris"):AddItem(debounce,Delay)
  328. c=Instance.new("ObjectValue")
  329. c.Name="creator"
  330. c.Value=Player
  331. c.Parent=h
  332. game:GetService("Debris"):AddItem(c,.5)
  333. CRIT=false
  334. hitDeb=true
  335. AttackPos=6
  336. end
  337. end
  338.  
  339. showDamage=function(Char,Dealt,du,Color)
  340. m=Instance.new("Model")
  341. m.Name=tostring(Dealt)
  342. h=Instance.new("Humanoid")
  343. h.Health=0
  344. h.MaxHealth=0
  345. h.Parent=m
  346. c=Instance.new("Part")
  347. c.Transparency=0
  348. c.BrickColor=Color
  349. c.Name="Head"
  350. c.TopSurface=0
  351. c.BottomSurface=0
  352. c.formFactor="Plate"
  353. c.Size=Vector3.new(1,.4,1)
  354. ms=Instance.new("CylinderMesh")
  355. ms.Scale=Vector3.new(.8,.8,.8)
  356. if CRIT==true then
  357. ms.Scale=Vector3.new(1,1.25,1)
  358. end
  359. ms.Parent=c
  360. c.Reflectance=0
  361. Instance.new("BodyGyro").Parent=c
  362. c.Parent=m
  363. if Char:findFirstChild("Head")~=nil then
  364. c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  365. elseif Char.Parent:findFirstChild("Head")~=nil then
  366. c.CFrame=CFrame.new(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0))
  367. end
  368. f=Instance.new("BodyPosition")
  369. f.P=2000
  370. f.D=100
  371. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  372. f.position=c.Position+Vector3.new(0,3,0)
  373. f.Parent=c
  374. game:GetService("Debris"):AddItem(m,.5+du)
  375. c.CanCollide=false
  376. m.Parent=workspace
  377. c.CanCollide=false
  378. end
  379.  
  380. -------------Head---------------------------------
  381. char:FindFirstChildOfClass'Humanoid'.JumpPower = 65
  382.  
  383. Head = Instance.new("Part", char)
  384. Head.Size = Vector3.new(1,1,1)
  385. Headmesh = Instance.new("SpecialMesh", Head)
  386. Headmesh.MeshId = "rbxassetid://430064078"
  387. Headmesh.Scale = Vector3.new(.55,.55,.55)
  388. Headmesh.TextureId = "rbxassetid://430064079"
  389. Head.Transparency = 0
  390. Head.CanCollide = false
  391. Head.Name = "plrHead"
  392. Head.Anchored = false
  393. Head.BrickColor = BrickColor.new("Really black")
  394. Weld = Instance.new("Weld", char)
  395. Weld.Part0 = char["Head"]
  396. Weld.Part1 = Head
  397. Weld.C1 = CFrame.new(0, -.3, -.4)*CFrame.Angles(0,(0),0)
  398. ------------Shoe---------------------------------
  399. char:FindFirstChildOfClass'Humanoid'.JumpPower = 65
  400.  
  401. lshoe = Instance.new("Part", char)
  402. lshoe.Size = Vector3.new(1,1,1)
  403. lshoemesh = Instance.new("SpecialMesh", lshoe)
  404. lshoemesh.MeshId = "rbxassetid://108884514"
  405. lshoemesh.Scale = Vector3.new(.94,1,.8)
  406. lshoemesh.TextureId = "rbxassetid://126203964"
  407. lshoe.Transparency = 0
  408. lshoe.CanCollide = false
  409. lshoe.Name = "plrlshoe"
  410. lshoe.Anchored = false
  411. lshoe.BrickColor = BrickColor.new("Really black")
  412. Weld = Instance.new("Weld", char)
  413. Weld.Part0 = char["Left Leg"]
  414. Weld.Part1 = lshoe
  415. Weld.C1 = CFrame.new(0, .5, .2)*CFrame.Angles(0,(0),0)
  416. ------------Shoe---------------------------------
  417. char:FindFirstChildOfClass'Humanoid'.JumpPower = 65
  418.  
  419. rshoe = Instance.new("Part", char)
  420. rshoe.Size = Vector3.new(1,1,1)
  421. rshoemesh = Instance.new("SpecialMesh", rshoe)
  422. rshoemesh.MeshId = "rbxassetid://108884514"
  423. rshoemesh.Scale = Vector3.new(.94,1,.8)
  424. rshoemesh.TextureId = "rbxassetid://126203964"
  425. rshoe.Transparency = 0
  426. rshoe.CanCollide = false
  427. rshoe.Name = "plrshoe"
  428. rshoe.Anchored = false
  429. rshoe.BrickColor = BrickColor.new("Really black")
  430. Weld = Instance.new("Weld", char)
  431. Weld.Part0 = char["Right Leg"]
  432. Weld.Part1 = rshoe
  433. Weld.C1 = CFrame.new(0, .5, .2)*CFrame.Angles(0,(0),0)
  434. --------------rFist---------------------------------
  435. --
  436. --char:FindFirstChildOfClass'Humanoid'.JumpPower = 65
  437. --
  438. --rRing = Instance.new("Part", char)
  439. --rRing.Size = Vector3.new(.1,.1,.1)
  440. --rRingmesh = Instance.new("SpecialMesh", rRing)
  441. --rRingmesh.MeshId = "rbxassetid://539775492"
  442. --rRingmesh.Scale = Vector3.new(.03,.03,.03)
  443. --rRingmesh.TextureId = "rbxassetid://539775494"
  444. --rRing.Transparency = 0
  445. --rRing.CanCollide = false
  446. --rRing.Name = "plrRing"
  447. --rRing.Anchored = false
  448. --rRing.BrickColor = BrickColor.new("Really black")
  449. --Weld = Instance.new("Weld", char)
  450. --Weld.Part0 = char["Right Arm"]
  451. --Weld.Part1 = rRing
  452. --Weld.C1 = CFrame.new(.8, .2, 0)*CFrame.Angles(3.15,0,-8)
  453. --------------lFist---------------------------------
  454. --
  455. --char:FindFirstChildOfClass'Humanoid'.JumpPower = 65
  456. --
  457. --rRing = Instance.new("Part", char)
  458. --rRing.Size = Vector3.new(.1,.1,.1)
  459. --rRingmesh = Instance.new("SpecialMesh", rRing)
  460. --rRingmesh.MeshId = "rbxassetid://539776108"
  461. --rRingmesh.Scale = Vector3.new(.03,.03,.03)
  462. --rRingmesh.TextureId = "rbxassetid://539776112"
  463. --rRing.Transparency = 0
  464. --rRing.CanCollide = false
  465. --rRing.Name = "plrRing"
  466. --rRing.Anchored = false
  467. --rRing.BrickColor = BrickColor.new("Really black")
  468. --Weld = Instance.new("Weld", char)
  469. --Weld.Part0 = char["Left Arm"]
  470. --Weld.Part1 = rRing
  471. --Weld.C1 = CFrame.new(-.8, .2, 0)*CFrame.Angles(3.15,0,8)
  472. -----------------------tail----------------------
  473. tail = Instance.new("Part", char)
  474. tail.Size = Vector3.new(.5,.5,.5)
  475. tailmesh = Instance.new("SpecialMesh", tail)
  476. tailmesh.MeshId = "rbxassetid://249768539"
  477. tailmesh.Scale = Vector3.new(.5,.5,.8)
  478. tailmesh.TextureId = "rbxassetid://448552687"
  479. tail.Transparency = 0
  480. tail.CanCollide = false
  481. tail.Name = "plrtail"
  482. tail.Anchored = false
  483. tail.BrickColor = BrickColor.new("Really black")
  484. Weld = Instance.new("Weld", char)
  485. Weld.Part0 = char["Torso"]
  486. Weld.Part1 = tail
  487. Weld.C1 = CFrame.new(0, -.8, .7)*CFrame.Angles(5,0,3.1)
  488. for _, a in pairs(char:children()) do
  489. if a:IsA'Accessory' or a:IsA'CharacterMesh' or a:IsA'Pants' or a:IsA'Shirt' then
  490. a:Destroy()
  491. end
  492. end
  493. local s = Instance.new('Shirt', char)
  494. s.ShirtTemplate = "rbxassetid://1126067970"
  495. local p = Instance.new('Pants', char)
  496. p.PantsTemplate = "rbxassetid://782593541"
  497. --------------------------------------
  498. plr=game:service'Players'.LocalPlayer
  499. chr=plr.Character
  500. local ms = plr:GetMouse()
  501. CV="Bright red"
  502.  
  503. local txt = Instance.new("BillboardGui", chr)
  504. txt.Adornee = chr.Head
  505. txt.Name = "_status"
  506. txt.Size = UDim2.new(4, 0, 2.5, 0)
  507. txt.StudsOffset = Vector3.new(-4, 2.5, 0)
  508. local text = Instance.new("TextLabel", txt)
  509. text.Size = UDim2.new(3, 0, 0.5, 0)
  510. text.FontSize = "Size24"
  511. text.TextScaled = true
  512. text.TextTransparency = 0
  513. text.BackgroundTransparency = 1
  514. text.TextTransparency = 0
  515. text.TextStrokeTransparency = 0
  516. text.Font = "SciFi"
  517. text.TextStrokeColor3 = Color3.new(0,0,139)
  518. text.Text = "Sonic The Hedgehog"
  519. --------------------------------------
  520. plr=game:service'Players'.LocalPlayer
  521. chr=plr.Character
  522. local ms = plr:GetMouse()
  523. CV="Bright red"
  524.  
  525. local txt = Instance.new("BillboardGui", chr)
  526. txt.Adornee = chr.Head
  527. txt.Name = "_status"
  528. txt.Size = UDim2.new(4, 0, 2.5, 0)
  529. txt.StudsOffset = Vector3.new(-4, 1.5, 0)
  530. local text = Instance.new("TextLabel", txt)
  531. text.Size = UDim2.new(3, 0, 0.5, 0)
  532. text.FontSize = "Size24"
  533. text.TextScaled = false
  534. text.TextTransparency = 0
  535. text.BackgroundTransparency = 1
  536. text.TextTransparency = 0
  537. text.TextStrokeTransparency = 0
  538. text.Font = "SciFi"
  539. text.TextStrokeColor3 = Color3.new(128,0,0)
  540. text.Text = "By bannaboy43"
  541.  
  542.  
  543.  
  544. --save shoulders
  545. RSH, LSH=nil, nil
  546. --welds
  547. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  548. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  549. LH=Torso["Left Hip"]
  550. RH=Torso["Right Hip"]
  551. TorsoColor=Torso.BrickColor
  552. function NoOutline(Part)
  553. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  554. end
  555. player=Player
  556. ch=Character
  557. RSH=ch.Torso["Right Shoulder"]
  558. LSH=ch.Torso["Left Shoulder"]
  559. --
  560. RSH.Parent=nil
  561. LSH.Parent=nil
  562. --
  563. RW.Name="Right Shoulder"
  564. RW.Part0=ch.Torso
  565. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  566. RW.C1=cf(0, 0.5, 0)
  567. RW.Part1=ch["Right Arm"]
  568. RW.Parent=ch.Torso
  569. --
  570. LW.Name="Left Shoulder"
  571. LW.Part0=ch.Torso
  572. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  573. LW.C1=cf(0, 0.5, 0)
  574. LW.Part1=ch["Left Arm"]
  575. LW.Parent=ch.Torso
  576.  
  577. Player=game:GetService('Players').LocalPlayer
  578. Character=Player.Character
  579. mouse=Player:GetMouse()
  580. m=Instance.new('Model',Character)
  581.  
  582.  
  583. local function weldBetween(a, b)
  584. local weldd = Instance.new("ManualWeld")
  585. weldd.Part0 = a
  586. weldd.Part1 = b
  587. weldd.C0 = CFrame.new()
  588. weldd.C1 = b.CFrame:inverse() * a.CFrame
  589. weldd.Parent = a
  590. return weldd
  591. end
  592.  
  593. ArtificialHB = Instance.new("BindableEvent", script)
  594. ArtificialHB.Name = "Heartbeat"
  595.  
  596. script:WaitForChild("Heartbeat")
  597.  
  598. frame = 1 / 60
  599. tf = 0
  600. allowframeloss = false
  601. tossremainder = false
  602. lastframe = tick()
  603. script.Heartbeat:Fire()
  604.  
  605. game:GetService("RunService").Heartbeat:connect(function(s, p)
  606. tf = tf + s
  607. if tf >= frame then
  608. if allowframeloss then
  609. script.Heartbeat:Fire()
  610. lastframe = tick()
  611. else
  612. for i = 1, math.floor(tf / frame) do
  613. script.Heartbeat:Fire()
  614. end
  615. lastframe = tick()
  616. end
  617. if tossremainder then
  618. tf = 0
  619. else
  620. tf = tf - frame * math.floor(tf / frame)
  621. end
  622. end
  623. end)
  624.  
  625. function swait(num)
  626. if num == 0 or num == nil then
  627. ArtificialHB.Event:wait()
  628. else
  629. for i = 0, num do
  630. ArtificialHB.Event:wait()
  631. end
  632. end
  633. end
  634.  
  635.  
  636.  
  637. function FindNearestTorso(Position, Distance, SinglePlayer)
  638. if SinglePlayer then
  639. return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
  640. end
  641. local List = {}
  642. for i, v in pairs(workspace:GetChildren()) do
  643. if v:IsA("Model") then
  644. if v:findFirstChild("Torso") then
  645. if v ~= Character then
  646. if (v.Torso.Position - Position).magnitude <= Distance then
  647. table.insert(List, v)
  648. end
  649. end
  650. end
  651. end
  652. end
  653. return List
  654. end
  655.  
  656.  
  657.  
  658.  
  659.  
  660. local Boost = Instance.new("Part")
  661. Boost.Parent = Character
  662. Boost.Size = Vector3.new(1,1,1)
  663. Boost.Archivable = true
  664. Boost.Transparency = 1
  665. Boost.CanCollide = false
  666. Boost.BrickColor = BrickColor.new("Toothpaste")
  667. Boost.Material = "Neon"
  668. local Boostmesh = Instance.new("CylinderMesh",Boost)
  669. Boostmesh.Scale = Vector3.new(0,0,0)
  670. local Boostweld = Instance.new("Weld")
  671. Boostweld.Parent = Boost
  672. Boostweld.Part0 = Torso
  673. Boostweld.Part1 = Boost
  674. Boostweld.C1 = CFrame.new(0, 0, 0)*CFrame.Angles(math.rad(60),math.rad(0),math.rad(0))
  675. Boostweld.Part0 = Torso
  676.  
  677.  
  678.  
  679.  
  680.  
  681.  
  682.  
  683.  
  684.  
  685.  
  686.  
  687. local Emerald = Instance.new("Part")
  688. Emerald.Parent = Character
  689. Emerald.Size = Vector3.new(0.2,0.2,0.2)
  690. Emerald.Archivable = true
  691. Emerald.Transparency = 1
  692. Emerald.CanCollide = false
  693. Emerald.BrickColor = BrickColor.new("Toothpaste")
  694. Emerald.Material = "Neon"
  695. local Emeraldmesh = Instance.new("SpecialMesh",Emerald)
  696. Emeraldmesh.MeshId = "http://www.roblox.com/asset?id=160003363"
  697. Emeraldmesh.Scale = Vector3.new(3.5,3.5,3.5)
  698. local Emeraldweld = Instance.new("Weld")
  699. Emeraldweld.Parent = Emerald
  700. Emeraldweld.Part0 = Torso
  701. Emeraldweld.Part1 = Emerald
  702. Emeraldweld.C1 = CFrame.new(3.5, 0, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  703. Emeraldweld.Part0 = Torso
  704.  
  705. --[[
  706.  
  707. local Boost2 = Instance.new("Part")
  708. Boost2.Parent = Character
  709. Boost2.Size = Vector3.new(1,1,1)
  710. Boost2.Archivable = true
  711. Boost2.Transparency = 0.80
  712. Boost2.CanCollide = false
  713. Boost2.BrickColor = BrickColor.new("Toothpaste")
  714. Boost2.Material = "Neon"
  715. local Boost2mesh = Instance.new("CylinderMesh",Boost2)
  716. Boost2mesh.Scale = Vector3.new(15,15,15)
  717. local Boost2weld = Instance.new("Weld")
  718. Boost2weld.Parent = Boost2
  719. Boost2weld.Part0 = Torso
  720. Boost2weld.Part1 = Boost2
  721. Boost2weld.C1 = CFrame.new(1, 0, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  722. Boost2weld.Part0 = Torso
  723. ]]--
  724.  
  725.  
  726. local x = Instance.new("Sound", Torso)
  727. x.SoundId = "http://www.roblox.com/asset/?id=979251686"
  728. x.Looped = true
  729. x.Volume = 0.01
  730. x.Pitch = 1
  731.  
  732.  
  733.  
  734.  
  735.  
  736. local x2 = Instance.new("Sound", Torso)
  737. x2.SoundId = "http://www.roblox.com/asset/?id=979251686"
  738. x2.Looped = true
  739. x2.Volume = 0.3
  740. x2.Pitch = 1
  741.  
  742.  
  743. local x3 = Instance.new("Sound", char)
  744. x3.SoundId = "http://www.roblox.com/asset/?id=142520980"
  745. x3.Looped = true
  746. x3.Volume = 3
  747. x3.Pitch = 1
  748. x3:Play()
  749.  
  750.  
  751. local x4 = Instance.new("Sound", Torso)
  752. x4.SoundId = "http://www.roblox.com/asset/?id=156821036"
  753. x4.Looped = false
  754. x4.Volume = 3
  755. x4.Pitch = 1
  756.  
  757.  
  758.  
  759.  
  760. local x5 = Instance.new("Sound", Torso)
  761. x5.SoundId = "http://www.roblox.com/asset/?id=162460823"
  762. x5.Looped = false
  763. x5.Volume = 1
  764. x5.Pitch = 1
  765.  
  766.  
  767.  
  768.  
  769. local x6 = Instance.new("Sound", Torso)
  770. x6.SoundId = "http://www.roblox.com/asset/?id=800121776"
  771. x6.Looped = false
  772. x6.Volume = 1
  773. x6.Pitch = 1
  774.  
  775.  
  776.  
  777.  
  778. local x7 = Instance.new("Sound", Torso)
  779. x7.SoundId = "http://www.roblox.com/asset/?id=804889329"
  780. x7.Looped = false
  781. x7.Volume = 1
  782. x7.Pitch = 1
  783.  
  784.  
  785.  
  786.  
  787. local x8 = Instance.new("Sound", Torso)
  788. x8.SoundId = "http://www.roblox.com/asset/?id=804907617"
  789. x8.Looped = false
  790. x8.Volume = 5
  791. x8.Pitch = 1
  792.  
  793.  
  794.  
  795. local x9 = Instance.new("Sound", Character)
  796. x9.SoundId = "http://www.roblox.com/asset/?id=392140397"
  797. x9.Looped = false
  798. x9.Volume = 1
  799. x9.Pitch = 1
  800.  
  801.  
  802. local x10 = Instance.new("Sound", Character)
  803. x10.SoundId = "http://www.roblox.com/asset/?id=526149541"
  804. x10.Looped = true
  805. x10.Volume = 0.40
  806. x10.Pitch = 1
  807.  
  808.  
  809.  
  810.  
  811. local x11 = Instance.new("Sound", Torso)
  812. x11.SoundId = "http://www.roblox.com/asset/?id=515143864"
  813. x11.Looped = false
  814. x11.Volume = 1.5
  815. x11.Pitch = 1
  816.  
  817. --537371462
  818.  
  819. Character.Humanoid.WalkSpeed = 72
  820.  
  821.  
  822. target = Instance.new("BillboardGui",Character)
  823. target.Size = UDim2.new(10,0,10,0)
  824. target.Enabled = false
  825. imgl = Instance.new("ImageLabel",target)
  826. imgl.Position = UDim2.new(0,0,0,0)
  827. imgl.Size = UDim2.new(1,0,1,0)
  828. imgl.Image = "rbxassetid://711463989"
  829. imgl.BackgroundTransparency = 1
  830. imgl.ImageColor3 = Color3.new(255,255,255)
  831. img2 = Instance.new("ImageLabel",target)
  832. img2.Position = UDim2.new(0,0,0,0)
  833. img2.Size = UDim2.new(1,0,1,0)
  834. img2.Image = "rbxassetid://711463989"
  835. img2.BackgroundTransparency = 1
  836. img2.ImageColor3 = Color3.new(0,0,0)
  837.  
  838.  
  839.  
  840.  
  841. function TargetSelect(person)
  842. local dd=coroutine.wrap(function()
  843. if targetted ~= person then
  844. targetted = person
  845. img2.Size = UDim2.new(1,0,1,0)
  846. img2.ImageTransparency = 0
  847. imgl.Position = UDim2.new(0,0,0,0)
  848. for i = 0, 2, 0.1 do
  849. swait()
  850. img2.Size = UDim2.new(1.01,0,1.01,0)
  851. end
  852. end
  853. end)
  854. dd()
  855. end
  856.  
  857.  
  858. function LockOn()
  859. if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChild("Humanoid") ~= nil then
  860. TargetSelect(mouse.Target.Parent)
  861. end
  862. end
  863.  
  864.  
  865. function HomingAttack()
  866. attack = true
  867.  
  868. Humanoid.Jump=true
  869. x6:Play()
  870. x11:Play()
  871.  
  872. --local GGyro = Instance.new("BodyPosition")
  873. --for i, v in pairs(FindNearestTorso(Torso.CFrame.p, 100)) do
  874. --if v:FindFirstChild('Head') then
  875. --end
  876. --end
  877.  
  878.  
  879. if targetted == nil then
  880. attack = false
  881. end
  882.  
  883.  
  884. RootPart.CFrame = targetted.Head.CFrame * CFrame.new(0,0,0)
  885.  
  886.  
  887. x5:Play()
  888.  
  889.  
  890.  
  891.  
  892. local con6=Humanoid.Touched:connect(function(hit) Damagefunc(hit,5,10,math.random(20,40),"Up",RootPart,.2,1) end)
  893.  
  894.  
  895. for i = 0,1,0.13 do
  896. change = 1
  897. swait()
  898. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1.5)* angles(math.rad(180*i),math.rad(0),math.rad(0)),.3)
  899. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  900. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(10)), 0.3)
  901. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)), 0.3)
  902. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(-20)),.3)
  903. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  904. RootPart.Velocity = RootPart.CFrame.lookVector * 0.2
  905. end
  906.  
  907. for i = 0,4,0.12 do
  908. swait()
  909. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(180*i),math.rad(0),math.rad(0)),.3)
  910. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(60),math.rad(0),math.rad(0)),.3)
  911. RW.C0 = clerp(RW.C0, CFrame.new(1, -0.2, -0.5) * angles(math.rad(90), math.rad(10), math.rad(-70)), 0.3)
  912. LW.C0 = clerp(LW.C0, CFrame.new(-1, -0.2, -0.5) * angles(math.rad(90), math.rad(-10), math.rad(70)), 0.3)
  913. RH.C0=clerp(RH.C0,cf(1,-.4,-0.3)*angles(math.rad(10),math.rad(90),math.rad(0)),.3)
  914. LH.C0=clerp(LH.C0,cf(-1,-.4,-0.3)*angles(math.rad(10),math.rad(-90),math.rad(0)),.3)
  915. RootPart.Velocity = RootPart.CFrame.lookVector * 0.2
  916. end
  917.  
  918. attack = false
  919.  
  920. for i = 0,6,0.12 do
  921. swait()
  922. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(20*i)),.3)
  923. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(60),math.rad(0),math.rad(0)),.3)
  924. RW.C0 = clerp(RW.C0, CFrame.new(1, -0.2, -0.5) * angles(math.rad(90), math.rad(10), math.rad(-70)), 0.3)
  925. LW.C0 = clerp(LW.C0, CFrame.new(-1, -0.2, -0.5) * angles(math.rad(90), math.rad(-10), math.rad(70)), 0.3)
  926. RH.C0=clerp(RH.C0,cf(1,-.4,-0.3)*angles(math.rad(10),math.rad(90),math.rad(0)),.3)
  927. LH.C0=clerp(LH.C0,cf(-1,-.4,-0.3)*angles(math.rad(10),math.rad(-90),math.rad(0)),.3)
  928. RootPart.Velocity = RootPart.CFrame.lookVector * 0.2
  929. end
  930.  
  931.  
  932. Humanoid.Jump=false
  933.  
  934. wait(2)
  935. con6:disconnect()
  936.  
  937. end
  938.  
  939.  
  940.  
  941.  
  942. -------------
  943. mouse.KeyDown:connect(function(key)
  944. if string.byte(key) == 48 and Super == false then
  945. boost = true
  946. Character.Humanoid.WalkSpeed = 240
  947.  
  948. RootPart.Velocity = RootPart.CFrame.lookVector * 320
  949.  
  950.  
  951.  
  952. local handee = Instance.new("Part")
  953. handee.Parent = Character
  954. handee.Size = Vector3.new(0.2,0.2,0.2)
  955. handee.Archivable = true
  956. handee.Transparency = 1
  957. handee.CanCollide = false
  958. handee.BrickColor = BrickColor.new("White")
  959. handee.Material = "Neon"
  960. local handeemesh = Instance.new("BlockMesh",handee)
  961. handeemesh.Scale = Vector3.new(1,1,1)
  962. local handeeweld = Instance.new("Weld")
  963. handeeweld.Parent = handee
  964. handeeweld.Part0 = LeftLeg
  965. handeeweld.Part1 = handee
  966. handeeweld.C1 = CFrame.new(0, 1, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  967. handeeweld.Part0 = LeftLeg
  968.  
  969.  
  970.  
  971.  
  972. local handee2 = Instance.new("Part")
  973. handee2.Parent = Character
  974. handee2.Size = Vector3.new(0.2,0.2,0.2)
  975. handee2.Archivable = true
  976. handee2.Transparency = 1
  977. handee2.CanCollide = false
  978. handee2.BrickColor = BrickColor.new("White")
  979. handee2.Material = "Neon"
  980. local handee2mesh = Instance.new("BlockMesh",handee2)
  981. handee2mesh.Scale = Vector3.new(1,1,1)
  982. local handee2weld = Instance.new("Weld")
  983. handee2weld.Parent = handee2
  984. handee2weld.Part0 = RightLeg
  985. handee2weld.Part1 = handee2
  986. handee2weld.C1 = CFrame.new(0, 1, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  987. handee2weld.Part0 = RightLeg
  988.  
  989.  
  990.  
  991.  
  992. local particleemitter2 = Instance.new("ParticleEmitter", handee)
  993. particleemitter2.VelocitySpread = 0, 0
  994. particleemitter2.Lifetime = NumberRange.new(2)
  995. particleemitter2.Texture = "http://roblox.com/asset/?id=243728104"
  996. particleemitter2.Speed = NumberRange.new(0.5)
  997. particleemitter2.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(1, 1)})
  998. particleemitter2.RotSpeed = NumberRange.new(0, 360)
  999. particleemitter2.Rate = 128
  1000. particleemitter2.Rotation = NumberRange.new(0, 360)
  1001. particleemitter2.Acceleration = Vector3.new(0,1.5,0)
  1002. particleemitter2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.01), NumberSequenceKeypoint.new(1, 10), NumberSequenceKeypoint.new(1, 1)})
  1003. particleemitter2.LightEmission = 0.8
  1004. particleemitter2.Color = ColorSequence.new(Color3.new(0.5, 0.5, 0.5), Color3.new(0.5, 0.5, 0.5))
  1005.  
  1006.  
  1007. particleemitter2.Enabled = false
  1008.  
  1009.  
  1010.  
  1011.  
  1012.  
  1013.  
  1014.  
  1015.  
  1016.  
  1017. local particleemitter3 = Instance.new("ParticleEmitter", handee2)
  1018. particleemitter3.VelocitySpread = 180
  1019. particleemitter3.Lifetime = NumberRange.new(2)
  1020. particleemitter3.Texture = "http://roblox.com/asset/?id=284205403"
  1021. particleemitter3.Speed = NumberRange.new(0.5)
  1022. particleemitter3.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(1, 1)})
  1023. particleemitter3.RotSpeed = NumberRange.new(-45, 45)
  1024. particleemitter3.Rate = 128
  1025. particleemitter3.Rotation = NumberRange.new(-45, 45)
  1026. particleemitter3.Acceleration = Vector3.new(0,0,0)
  1027. particleemitter3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.701, 0), NumberSequenceKeypoint.new(1, 1)})
  1028. particleemitter3.LightEmission = 0.8
  1029. particleemitter3.Color = ColorSequence.new(Color3.new(0, 255, 255), Color3.new(0,255,255))
  1030.  
  1031.  
  1032. particleemitter3.Enabled = false
  1033.  
  1034.  
  1035. x4:Play()
  1036.  
  1037. local con5=Humanoid.Touched:connect(function(hit) Damagefunc(hit,50,70,math.random(500,500),"Knockdown",RootPart,.2,1) end)
  1038.  
  1039. Boost.Transparency = 0.75
  1040.  
  1041. repeat
  1042.  
  1043. wait()
  1044.  
  1045. until boost==false
  1046.  
  1047.  
  1048.  
  1049. particleemitter2.Enabled = false
  1050.  
  1051.  
  1052. con5:disconnect()
  1053.  
  1054. particleemitter3.Enabled = false
  1055.  
  1056.  
  1057. end
  1058. end)
  1059.  
  1060.  
  1061.  
  1062.  
  1063.  
  1064. mouse.KeyDown:connect(function(key)
  1065. if string.byte(key) == 48 and Super == true then
  1066. boost = true
  1067. Character.Humanoid.WalkSpeed = 420
  1068. x4:Play()
  1069.  
  1070. RootPart.Velocity = RootPart.CFrame.lookVector * 500
  1071. Boost.Transparency = 0.75
  1072.  
  1073.  
  1074.  
  1075. local handee = Instance.new("Part")
  1076. handee.Parent = Character
  1077. handee.Size = Vector3.new(0.2,0.2,0.2)
  1078. handee.Archivable = true
  1079. handee.Transparency = 1
  1080. handee.CanCollide = false
  1081. handee.BrickColor = BrickColor.new("White")
  1082. handee.Material = "Neon"
  1083. local handeemesh = Instance.new("BlockMesh",handee)
  1084. handeemesh.Scale = Vector3.new(1,1,1)
  1085. local handeeweld = Instance.new("Weld")
  1086. handeeweld.Parent = handee
  1087. handeeweld.Part0 = LeftLeg
  1088. handeeweld.Part1 = handee
  1089. handeeweld.C1 = CFrame.new(0, 1, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  1090. handeeweld.Part0 = LeftLeg
  1091.  
  1092.  
  1093.  
  1094.  
  1095. local handee2 = Instance.new("Part")
  1096. handee2.Parent = Character
  1097. handee2.Size = Vector3.new(0.2,0.2,0.2)
  1098. handee2.Archivable = true
  1099. handee2.Transparency = 1
  1100. handee2.CanCollide = false
  1101. handee2.BrickColor = BrickColor.new("White")
  1102. handee2.Material = "Neon"
  1103. local handee2mesh = Instance.new("BlockMesh",handee2)
  1104. handee2mesh.Scale = Vector3.new(1,1,1)
  1105. local handee2weld = Instance.new("Weld")
  1106. handee2weld.Parent = handee2
  1107. handee2weld.Part0 = RightLeg
  1108. handee2weld.Part1 = handee2
  1109. handee2weld.C1 = CFrame.new(0, 1, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  1110. handee2weld.Part0 = RightLeg
  1111.  
  1112.  
  1113.  
  1114.  
  1115. local particleemitter2 = Instance.new("ParticleEmitter", handee)
  1116. particleemitter2.VelocitySpread = 180
  1117. particleemitter2.Lifetime = NumberRange.new(2)
  1118. particleemitter2.Texture = "http://roblox.com/asset/?id=284205403"
  1119. particleemitter2.Speed = NumberRange.new(0.5)
  1120. particleemitter2.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(1, 1)})
  1121. particleemitter2.RotSpeed = NumberRange.new(-45, 45)
  1122. particleemitter2.Rate = 128
  1123. particleemitter2.Rotation = NumberRange.new(-45, 45)
  1124. particleemitter2.Acceleration = Vector3.new(0,1,0)
  1125. particleemitter2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.701, 0), NumberSequenceKeypoint.new(1, 1)})
  1126. particleemitter2.LightEmission = 0.8
  1127. particleemitter2.Color = ColorSequence.new(Color3.new(255, 0, 0), Color3.new(255,0,0))
  1128.  
  1129.  
  1130. particleemitter2.Enabled = true
  1131.  
  1132.  
  1133.  
  1134.  
  1135.  
  1136.  
  1137.  
  1138.  
  1139.  
  1140. local particleemitter3 = Instance.new("ParticleEmitter", handee2)
  1141. particleemitter3.VelocitySpread = 180
  1142. particleemitter3.Lifetime = NumberRange.new(2)
  1143. particleemitter3.Texture = "http://roblox.com/asset/?id=284205403"
  1144. particleemitter3.Speed = NumberRange.new(0.5)
  1145. particleemitter3.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 1), NumberSequenceKeypoint.new(1, 1)})
  1146. particleemitter3.RotSpeed = NumberRange.new(-45, 45)
  1147. particleemitter3.Rate = 128
  1148. particleemitter3.Rotation = NumberRange.new(-45, 45)
  1149. particleemitter3.Acceleration = Vector3.new(0,0,0)
  1150. particleemitter3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0), NumberSequenceKeypoint.new(0.701, 0), NumberSequenceKeypoint.new(1, 1)})
  1151. particleemitter3.LightEmission = 0.8
  1152. particleemitter3.Color = ColorSequence.new(Color3.new(255, 0, 0), Color3.new(255,129,0))
  1153.  
  1154.  
  1155. particleemitter3.Enabled = true
  1156.  
  1157.  
  1158.  
  1159. local con5=Humanoid.Touched:connect(function(hit) Damagefunc(hit,50,70,math.random(500,500),"Knockdown",RootPart,.2,1) end)
  1160.  
  1161. repeat
  1162.  
  1163. wait()
  1164.  
  1165. until boost==false
  1166.  
  1167. particleemitter2.Enabled = false
  1168.  
  1169.  
  1170.  
  1171. particleemitter3.Enabled = false
  1172.  
  1173.  
  1174. con5:disconnect()
  1175.  
  1176. end
  1177. end)
  1178.  
  1179.  
  1180. function SUPERSONIC()
  1181. x9:Play()
  1182. x10:Play()
  1183. x3:Stop()
  1184. Super = true
  1185. --550111102
  1186.  
  1187.  
  1188.  
  1189.  
  1190. Character.Humanoid.Health = math.huge
  1191. Character.Humanoid.MaxHealth = math.huge
  1192. Boostweld.C1 = CFrame.new(0, 0, 0)*CFrame.Angles(math.rad(150),math.rad(0),math.rad(0))
  1193. Boost.BrickColor = BrickColor.new("New Yeller")
  1194.  
  1195. end
  1196.  
  1197.  
  1198.  
  1199. function nomoreSUPERSONIC()
  1200. x10:Stop()
  1201. x3:Play()
  1202. Super = false
  1203. Character.Humanoid.Health = 10000
  1204. Character.Humanoid.MaxHealth = 10000
  1205. Character.Humanoid.WalkSpeed = 72
  1206. Boostweld.C1 = CFrame.new(0, 0, 0)*CFrame.Angles(math.rad(60),math.rad(0),math.rad(0))
  1207. Boost.BrickColor = BrickColor.new("Toothpaste")
  1208.  
  1209. end
  1210.  
  1211.  
  1212.  
  1213. mouse.KeyUp:connect(function(key)
  1214. if string.byte(key) == 48 and Super == false then
  1215. boost = false
  1216. Character.Humanoid.WalkSpeed = 72
  1217. x4:Stop()
  1218. Boost.Transparency = 0.85
  1219. wait()
  1220. Boost.Transparency = 0.95
  1221. wait()
  1222. Boost.Transparency = 1
  1223.  
  1224. end
  1225. end)
  1226.  
  1227. mouse.KeyUp:connect(function(key)
  1228. if string.byte(key) == 48 and Super == true then
  1229. boost = false
  1230. Character.Humanoid.WalkSpeed = 150
  1231. x4:Stop()
  1232. Boost.Transparency = 0.85
  1233. wait()
  1234. Boost.Transparency = 0.95
  1235. wait()
  1236. Boost.Transparency = 1
  1237.  
  1238.  
  1239. end
  1240. end)
  1241.  
  1242.  
  1243.  
  1244. mouse.KeyDown:connect(function(key)
  1245. if key == 'x' and attack == false then
  1246. HomingAttack()
  1247. end
  1248. end)
  1249.  
  1250. mouse.KeyDown:connect(function(key)
  1251. if key == 'q' and attack == false then
  1252. LockOn()
  1253. end
  1254. end)
  1255.  
  1256.  
  1257. mouse.KeyDown:connect(function(key)
  1258. if key == 'e' and attack == false then
  1259. SUPERSONIC()
  1260. end
  1261. end)
  1262.  
  1263.  
  1264. mouse.KeyDown:connect(function(key)
  1265. if key == 'r' and attack == false then
  1266. nomoreSUPERSONIC()
  1267. end
  1268. end)
  1269. --------------------Dash-----------------------
  1270. player = game.Players.LocalPlayer
  1271. mouse = player:GetMouse()
  1272. START=tick()
  1273. TIME=5
  1274. END=START+TIME
  1275. walk=16
  1276. mouse.KeyDown:connect(function(key)
  1277. if key == "q" then
  1278. local Must = Instance.new("Sound",char)
  1279. Must.SoundId = "rbxassetid://273734478"
  1280. Must.Pitch = 0.99
  1281. Must.Volume = 3.4
  1282. Must.Looped = false
  1283. wait(0)
  1284. Must:Play()
  1285.  
  1286. local pie222 = Instance.new('ParticleEmitter')
  1287. pie222.Parent = rutprt
  1288. pie222.Color = ColorSequence.new(BrickColor.new("Cyan").Color)
  1289. pie222.LightEmission = 1
  1290. pie222.Size = NumberSequence.new(6,1)
  1291. pie222.Texture = "http://www.roblox.com/asset/?id=74697410"
  1292. pie222.Transparency = NumberSequence.new(0.3,1)
  1293. pie222.EmissionDirection = "Top"
  1294. pie222.Enabled = true
  1295. pie222.Lifetime = NumberRange.new(1)
  1296. pie222.Rotation = NumberRange.new(-320, 320)
  1297. pie222.Rate = 300
  1298. pie222.Speed = NumberRange.new(0)
  1299. pie222.LockedToPart = false
  1300. pie222.VelocitySpread = 2
  1301. player.Character.Humanoid.WalkSpeed=400
  1302. wait(7)
  1303. pie222:Destroy()
  1304. player.Character.Humanoid.WalkSpeed=72
  1305.  
  1306.  
  1307.  
  1308. end
  1309. end)
  1310.  
  1311. Character.Humanoid.JumpPower = 140
  1312.  
  1313. -------------
  1314.  
  1315. local sine = 0
  1316. local change = 1
  1317. local val = 0
  1318. while true do
  1319. swait()
  1320. sine = sine + change
  1321. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  1322. local velderp=RootPart.Velocity.y
  1323. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  1324. if equipped==true or equipped==false then
  1325. if attack==false then
  1326. idle=idle+1
  1327. else
  1328. idle=0
  1329. end
  1330. if idle>=500 then
  1331. if attack==false then
  1332. --Sheath()
  1333. end
  1334. end
  1335.  
  1336.  
  1337.  
  1338. if RootPart.Velocity.y > 1 and hitfloor==nil then
  1339. Anim="Jump"
  1340. change = 1
  1341. for i = 0,4,0.12 do
  1342. swait()
  1343. if attack==false then
  1344. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(180*i),math.rad(0),math.rad(0)),.3)
  1345. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(60),math.rad(0),math.rad(0)),.3)
  1346. RW.C0 = clerp(RW.C0, CFrame.new(1, -0.2, -0.5) * angles(math.rad(90), math.rad(10), math.rad(-70)), 0.3)
  1347. LW.C0 = clerp(LW.C0, CFrame.new(-1, -0.2, -0.5) * angles(math.rad(90), math.rad(-10), math.rad(70)), 0.3)
  1348. RH.C0=clerp(RH.C0,cf(1,-.4,-0.3)*angles(math.rad(10),math.rad(90),math.rad(0)),.3)
  1349. LH.C0=clerp(LH.C0,cf(-1,-.4,-0.3)*angles(math.rad(10),math.rad(-90),math.rad(0)),.3)
  1350. end
  1351. end
  1352.  
  1353. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  1354. Anim="Fall"
  1355. change = 1
  1356. if attack==false and Super == false then
  1357. RH.C0=clerp(RH.C0,cf(1,-1,-0.25)*angles(math.rad(40+4*math.cos(sine/2)),math.rad(90),math.rad(0+4*math.cos(sine/2)))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1358. LH.C0=clerp(LH.C0,cf(-1,-0.70,-0.25)*angles(math.rad(-20-4*math.cos(sine/2)),math.rad(-90),math.rad(0+4*math.cos(sine/2)))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1359. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1360. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(40+5*math.cos(sine/2)),math.rad(0),math.rad(0)),.3)
  1361. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.65, 0) * angles(math.rad(-10+4*math.cos(sine/3)), math.rad(0), math.rad(90+4*math.cos(sine/2))), 0.3)
  1362. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.65, 0) * angles(math.rad(-10+4*math.cos(sine/3)), math.rad(0), math.rad(-90+4*math.cos(sine/2))), 0.3)
  1363.  
  1364.  
  1365. else
  1366.  
  1367. if attack==false and Super == true then
  1368. RH.C0=clerp(RH.C0,cf(1,-1,-0.25)*angles(math.rad(40+4*math.cos(sine/2)),math.rad(90),math.rad(0+4*math.cos(sine/2)))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1369. LH.C0=clerp(LH.C0,cf(-1,-0.70,-0.25)*angles(math.rad(-20-4*math.cos(sine/2)),math.rad(-90),math.rad(0+4*math.cos(sine/2)))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1370. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1371. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(40+5*math.cos(sine/2)),math.rad(0),math.rad(0)),.3)
  1372. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.65, 0) * angles(math.rad(-10+4*math.cos(sine/3)), math.rad(0), math.rad(90+4*math.cos(sine/2))), 0.3)
  1373. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.65, 0) * angles(math.rad(-10+4*math.cos(sine/3)), math.rad(0), math.rad(-90+4*math.cos(sine/2))), 0.3)
  1374.  
  1375.  
  1376. end
  1377. end
  1378. elseif torvel<1 and hitfloor~=nil then
  1379. Anim="Idle"
  1380. if attack==false and Super == false then
  1381. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-0.20+0.02*math.cos(sine/10))* angles(math.rad(20),math.rad(0),math.rad(0)),.2)
  1382. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10-5*math.cos(sine/10)),math.rad(0),math.rad(0)),.2)
  1383. RW.C0 = clerp(RW.C0, CFrame.new(0.9, 0.5, -0.7) * angles(math.rad(-0), math.rad(0), math.rad(-90+5*math.cos(sine/10))),.2)
  1384. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)),.2)
  1385. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-22),math.rad(90),math.rad(0)),.2)
  1386. LH.C0=clerp(LH.C0,cf(-1,-1,-0.2)*angles(math.rad(8),math.rad(-90),math.rad(0)),.2)
  1387.  
  1388. else
  1389.  
  1390. if attack==false and Super == true then
  1391. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1.7+0.52*math.cos(sine/64))* angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1392. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20.20-6.52*math.cos(sine/64)),math.rad(0),math.rad(0)),.2)
  1393. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(15-6.52*math.cos(sine/64)), math.rad(0), math.rad(45+6.52*math.cos(sine/64))),.2)
  1394. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10+6.52*math.cos(sine/64)), math.rad(0), math.rad(-45-6.52*math.cos(sine/64))),.2)
  1395. RH.C0=clerp(RH.C0,cf(1,-1+0.12*math.cos(sine/54),-0.2)*angles(math.rad(-12-6.52*math.cos(sine/64)),math.rad(90),math.rad(12-16.52*math.cos(sine/64))),.2)
  1396. LH.C0=clerp(LH.C0,cf(-1,-0.8+0.22*math.cos(sine/44),-0.4)*angles(math.rad(14+6.52*math.cos(sine/64)),math.rad(-90),math.rad(20-6.52*math.cos(sine/64))),.2)
  1397.  
  1398. end
  1399. end
  1400. elseif torvel>2 and torvel<140 and hitfloor~=nil then
  1401. Anim="Walk"
  1402. if attack==false and Super == false then
  1403. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(5*math.cos(sine/5))),.2)
  1404. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.2)
  1405. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(80*math.cos(sine/5)), math.rad(0), math.rad(0)),.2)
  1406. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-80*math.cos(sine/5)), math.rad(0), math.rad(0)),.2)
  1407. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(35),math.rad(90),math.rad(-40 - 70 *math.cos (sine / -5))),.2)
  1408. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(35),math.rad(-90),math.rad(40 - 70 *math.cos (sine / 5))),.2)
  1409.  
  1410.  
  1411.  
  1412. else
  1413.  
  1414.  
  1415. if attack==false and Super == true then
  1416. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-0.2+0.4*math.cos(sine/20.2))* angles(math.rad(40),math.rad(0),math.rad(0)),.2)
  1417. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-20),math.rad(0),math.rad(0)),.2)
  1418. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.65, 0) * angles(math.rad(-10+4*math.cos(sine/3)), math.rad(0), math.rad(10+4*math.cos(sine/2))), 0.3)
  1419. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.65, 0) * angles(math.rad(-10+4*math.cos(sine/3)), math.rad(0), math.rad(-10+4*math.cos(sine/2))), 0.3)
  1420. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0+4*math.cos(sine/3)),math.rad(90),math.rad(0+4*math.cos(sine/3))),.2)
  1421. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0-4*math.cos(sine/3)),math.rad(-90),math.rad(0+4*math.cos(sine/3))),.2)
  1422.  
  1423.  
  1424. end
  1425. end
  1426. elseif torvel>=141 and torvel<700 and hitfloor~=nil then
  1427. Anim="Run"
  1428. if attack==false and Super == false then
  1429. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0.5, -0.05 + .1 * 2.5 * math.cos(sine / 2)) * angles(math.rad(50), math.rad(2) + RootPart.RotVelocity.Y / 30, math.rad(5 * math.cos(sine / 2))), .2)
  1430. Torso.Neck.C0 = clerp(Torso.Neck.C0, cn(0, 1.1, -0.2, -1, -0, -0, 0, 0, 1, 0, 1, 0) * angles(math.rad(-50), math.rad(0), math.rad(-5 * math.cos(sine / 10)) + RootPart.RotVelocity.Y / 15), .2)
  1431. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0.4) * angles(math.rad(50 * math.cos(6 / 2)), math.rad(-5), math.rad(5 * math.cos(sine / 3))), .2)
  1432. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0.4) * angles(math.rad(50 * math.cos(6 / 2)), math.rad(5), math.rad(5 * math.cos(sine / 3))), .2)
  1433. RH.C0 = clerp(RH.C0, cn(1, -1 + .1 * math.cos(sine / 5), 0) * RHCF * angles(math.rad(-2), math.rad(0), math.rad(55 * math.cos(sine / 3))), .3)
  1434. LH.C0 = clerp(LH.C0, cn(-1, -1 + .1 * math.cos(sine / 5), 0) * LHCF * angles(math.rad(-2), math.rad(0), math.rad(55 * math.cos(sine / 3))), .3)
  1435. else
  1436.  
  1437.  
  1438. if attack==false and Super == true then
  1439. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-1.2+0.2*math.cos(sine/1.2))* angles(math.rad(90),math.rad(0),math.rad(0)),.2)
  1440. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-60),math.rad(0),math.rad(0)),.2)
  1441. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.65, 0) * angles(math.rad(-10+4*math.cos(sine/3)), math.rad(0), math.rad(10+4*math.cos(sine/2))), 0.3)
  1442. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.65, 0) * angles(math.rad(-10+4*math.cos(sine/3)), math.rad(0), math.rad(-10+4*math.cos(sine/2))), 0.3)
  1443. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-1-4*math.cos(sine/3)),math.rad(90),math.rad(0)),.2)
  1444. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(1+4*math.cos(sine/3)),math.rad(-90),math.rad(0)),.2)
  1445. end
  1446. end
  1447. elseif torvel>=-141 and torvel<-700 and hitfloor~=nil then
  1448. Anim="Run2"
  1449. if attack==false and Super == false then
  1450. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-0.2)* angles(math.rad(-30),math.rad(0),math.rad(0)),.2)
  1451. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-12),math.rad(0),math.rad(0)),.2)
  1452. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-35),math.rad(-35),math.rad(45)),.2)
  1453. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-35),math.rad(35),math.rad(-45)),.2)
  1454. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(35),math.rad(90),math.rad(40 - 100 *math.cos (sine / -2.2))),.2)
  1455. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(35),math.rad(-90),math.rad(-40 - 100 *math.cos (sine / 2.2))),.2)
  1456. end
  1457. end
  1458. end
  1459.  
  1460. if Anim == "Walk" then
  1461. if footsteps == false then
  1462. x2:Play()
  1463. footsteps = true
  1464. end
  1465. x.Pitch = 1.2
  1466. elseif Anim == "Idle" then
  1467. x:Stop()
  1468. x2:Stop()
  1469. footsteps = false
  1470. elseif Anim == "Fall" then
  1471. x:Stop()
  1472. x2:Stop()
  1473. footsteps = false
  1474. elseif Anim == "Jump" then
  1475. x:Stop()
  1476. x2:Stop()
  1477. footsteps = false
  1478. elseif Anim == "Run" then
  1479. x.Pitch = 1.8
  1480. if footsteps == false then
  1481. x:Play()
  1482. footsteps = true
  1483. end
  1484. end
  1485. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement