Advertisement
Ban43_GodOfEdits

fixed

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