R4_Plays_ROBLOX

Idk

Jul 17th, 2016
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 43.95 KB | None | 0 0
  1. Player=game:GetService("Players").LocalPlayer
  2. Character=Player.Character
  3. PlayerGui=Player.PlayerGui
  4. Backpack=Player.Backpack
  5. Torso=Character.Torso
  6. Head=Character.Head
  7. Humanoid=Character.Humanoid
  8. m=Instance.new('Model',Character)
  9. LeftArm=Character["Left Arm"]
  10. LeftLeg=Character["Left Leg"]
  11. RightArm=Character["Right Arm"]
  12. RightLeg=Character["Right Leg"]
  13. LS=Torso["Left Shoulder"]
  14. LH=Torso["Left Hip"]
  15. RS=Torso["Right Shoulder"]
  16. RH=Torso["Right Hip"]
  17. Face = Head.face
  18. Neck=Torso.Neck
  19. it=Instance.new
  20. attacktype=1
  21. vt=Vector3.new
  22. cf=CFrame.new
  23. euler=CFrame.fromEulerAnglesXYZ
  24. angles=CFrame.Angles
  25. cloaked=false
  26. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  27. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  28. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  29. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  30. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  31. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  32. RootPart=Character.HumanoidRootPart
  33. RootJoint=RootPart.RootJoint
  34. RootCF=euler(-1.57,0,3.14)
  35. attack = false
  36. attackdebounce = false
  37. deb=false
  38. equipped=true
  39. hand=false
  40. MMouse=nil
  41. combo=0
  42. mana=0
  43. trispeed=.2
  44. attackmode='none'
  45. local idle=0
  46. local Anim="Idle"
  47. local Effects={}
  48. local gun=false
  49. local shoot=false
  50. player=nil
  51. mana=0
  52. cam = workspace.CurrentCamera
  53. ZTarget = nil
  54. RocketTarget = nil
  55.  
  56. mouse=Player:GetMouse()
  57. --save shoulders
  58. RSH, LSH=nil, nil
  59. --welds
  60. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  61. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  62. LH=Torso["Left Hip"]
  63. RH=Torso["Right Hip"]
  64. TorsoColor=Torso.BrickColor
  65. function NoOutline(Part)
  66. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  67. end
  68. player=Player
  69. ch=Character
  70. RSH=ch.Torso["Right Shoulder"]
  71. LSH=ch.Torso["Left Shoulder"]
  72. --
  73. RSH.Parent=nil
  74. LSH.Parent=nil
  75. --
  76. RW.Name="Right Shoulder"
  77. RW.Part0=ch.Torso
  78. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  79. RW.C1=cf(0, 0.5, 0)
  80. RW.Part1=ch["Right Arm"]
  81. RW.Parent=ch.Torso
  82. --
  83. LW.Name="Left Shoulder"
  84. LW.Part0=ch.Torso
  85. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  86. LW.C1=cf(0, 0.5, 0)
  87. LW.Part1=ch["Left Arm"]
  88. LW.Parent=ch.Torso
  89.  
  90. function swait(num)
  91. if num==0 or num==nil then
  92. game:service'RunService'.Heartbeat:wait(0)
  93. else
  94. for i=0,num do
  95. game:service'RunService'.Heartbeat:wait(0)
  96. end
  97. end
  98. end
  99.  
  100. function nooutline(part)
  101. part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  102. end
  103.  
  104. function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  105. local fp=it("Part")
  106. fp.formFactor=formfactor
  107. fp.Parent=parent
  108. fp.Reflectance=reflectance
  109. fp.Transparency=transparency
  110. fp.CanCollide=false
  111. fp.Locked=true
  112. fp.BrickColor=BrickColor.new(tostring(brickcolor))
  113. fp.Name=name
  114. fp.Size=size
  115. fp.Position=Character.Torso.Position
  116. nooutline(fp)
  117. fp.Material=material
  118. fp:BreakJoints()
  119. return fp
  120. end
  121.  
  122. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  123. local mesh=it(Mesh)
  124. mesh.Parent=part
  125. if Mesh=="SpecialMesh" then
  126. mesh.MeshType=meshtype
  127. mesh.MeshId=meshid
  128. end
  129. mesh.Offset=offset
  130. mesh.Scale=scale
  131. return mesh
  132. end
  133.  
  134. function weld(parent,part0,part1,c0,c1)
  135. local weld=it("Weld")
  136. weld.Parent=parent
  137. weld.Part0=part0
  138. weld.Part1=part1
  139. weld.C0=c0
  140. weld.C1=c1
  141. return weld
  142. end
  143.  
  144.  
  145. local function CFrameFromTopBack(at, top, back)
  146. local right = top:Cross(back)
  147. return CFrame.new(at.x, at.y, at.z,
  148. right.x, top.x, back.x,
  149. right.y, top.y, back.y,
  150. right.z, top.z, back.z)
  151. end
  152.  
  153. function Triangle(a, b, c)
  154. local edg1 = (c-a):Dot((b-a).unit)
  155. local edg2 = (a-b):Dot((c-b).unit)
  156. local edg3 = (b-c):Dot((a-c).unit)
  157. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  158. a, b, c = a, b, c
  159. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  160. a, b, c = b, c, a
  161. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  162. a, b, c = c, a, b
  163. else
  164. assert(false, "unreachable")
  165. end
  166.  
  167. local len1 = (c-a):Dot((b-a).unit)
  168. local len2 = (b-a).magnitude - len1
  169. local width = (a + (b-a).unit*len1 - c).magnitude
  170.  
  171. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  172.  
  173. local list = {}
  174.  
  175. local TrailColor = ("Dark grey")
  176.  
  177. if len1 > 0.01 then
  178. local w1 = Instance.new('WedgePart', m)
  179. game:GetService("Debris"):AddItem(w1,5)
  180. w1.Material = "SmoothPlastic"
  181. w1.FormFactor = 'Custom'
  182. w1.BrickColor = BrickColor.new(TrailColor)
  183. w1.Transparency = 0
  184. w1.Reflectance = 0
  185. w1.Material = "SmoothPlastic"
  186. w1.CanCollide = false
  187. NoOutline(w1)
  188. local sz = Vector3.new(0.2, width, len1)
  189. w1.Size = sz
  190. local sp = Instance.new("SpecialMesh",w1)
  191. sp.MeshType = "Wedge"
  192. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  193. w1:BreakJoints()
  194. w1.Anchored = true
  195. w1.Parent = workspace
  196. w1.Transparency = 0.7
  197. table.insert(Effects,{w1,"Disappear",.01})
  198. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  199. table.insert(list,w1)
  200. end
  201.  
  202. if len2 > 0.01 then
  203. local w2 = Instance.new('WedgePart', m)
  204. game:GetService("Debris"):AddItem(w2,5)
  205. w2.Material = "SmoothPlastic"
  206. w2.FormFactor = 'Custom'
  207. w2.BrickColor = BrickColor.new(TrailColor)
  208. w2.Transparency = 0
  209. w2.Reflectance = 0
  210. w2.Material = "SmoothPlastic"
  211. w2.CanCollide = false
  212. NoOutline(w2)
  213. local sz = Vector3.new(0.2, width, len2)
  214. w2.Size = sz
  215. local sp = Instance.new("SpecialMesh",w2)
  216. sp.MeshType = "Wedge"
  217. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  218. w2:BreakJoints()
  219. w2.Anchored = true
  220. w2.Parent = workspace
  221. w2.Transparency = 0.7
  222. table.insert(Effects,{w2,"Disappear",.01})
  223. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  224. table.insert(list,w2)
  225. end
  226. return unpack(list)
  227. end
  228.  
  229.  
  230. so = function(id,par,vol,pit)
  231. coroutine.resume(coroutine.create(function()
  232. local sou = Instance.new("Sound",par or workspace)
  233. sou.Volume=vol
  234. sou.Pitch=pit or 1
  235. sou.SoundId=id
  236. swait()
  237. sou:play()
  238. game:GetService("Debris"):AddItem(sou,6)
  239. end))
  240. end
  241.  
  242. function clerp(a,b,t)
  243. local qa = {QuaternionFromCFrame(a)}
  244. local qb = {QuaternionFromCFrame(b)}
  245. local ax, ay, az = a.x, a.y, a.z
  246. local bx, by, bz = b.x, b.y, b.z
  247. local _t = 1-t
  248. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  249. end
  250.  
  251. function QuaternionFromCFrame(cf)
  252. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  253. local trace = m00 + m11 + m22
  254. if trace > 0 then
  255. local s = math.sqrt(1 + trace)
  256. local recip = 0.5/s
  257. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  258. else
  259. local i = 0
  260. if m11 > m00 then
  261. i = 1
  262. end
  263. if m22 > (i == 0 and m00 or m11) then
  264. i = 2
  265. end
  266. if i == 0 then
  267. local s = math.sqrt(m00-m11-m22+1)
  268. local recip = 0.5/s
  269. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  270. elseif i == 1 then
  271. local s = math.sqrt(m11-m22-m00+1)
  272. local recip = 0.5/s
  273. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  274. elseif i == 2 then
  275. local s = math.sqrt(m22-m00-m11+1)
  276. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  277. end
  278. end
  279. end
  280.  
  281. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  282. local xs, ys, zs = x + x, y + y, z + z
  283. local wx, wy, wz = w*xs, w*ys, w*zs
  284. local xx = x*xs
  285. local xy = x*ys
  286. local xz = x*zs
  287. local yy = y*ys
  288. local yz = y*zs
  289. local zz = z*zs
  290. 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))
  291. end
  292.  
  293. function QuaternionSlerp(a, b, t)
  294. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  295. local startInterp, finishInterp;
  296. if cosTheta >= 0.0001 then
  297. if (1 - cosTheta) > 0.0001 then
  298. local theta = math.acos(cosTheta)
  299. local invSinTheta = 1/math.sin(theta)
  300. startInterp = math.sin((1-t)*theta)*invSinTheta
  301. finishInterp = math.sin(t*theta)*invSinTheta
  302. else
  303. startInterp = 1-t
  304. finishInterp = t
  305. end
  306. else
  307. if (1+cosTheta) > 0.0001 then
  308. local theta = math.acos(-cosTheta)
  309. local invSinTheta = 1/math.sin(theta)
  310. startInterp = math.sin((t-1)*theta)*invSinTheta
  311. finishInterp = math.sin(t*theta)*invSinTheta
  312. else
  313. startInterp = t-1
  314. finishInterp = t
  315. end
  316. end
  317. 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
  318. end
  319.  
  320. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  321. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  322. end
  323.  
  324. Damagefunc=function(Part,hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  325. if hit.Parent==nil then
  326. return
  327. end
  328. local h=hit.Parent:FindFirstChild("Humanoid")
  329. for _,v in pairs(hit.Parent:children()) do
  330. if v:IsA("Humanoid") then
  331. h=v
  332. end
  333. end
  334. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  335. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  336. end
  337. if hit.Parent.className=="Hat" then
  338. hit=hit.Parent.Parent:findFirstChild("Head")
  339. end
  340. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  341. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  342. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  343. return
  344. end]]
  345. -- hs(hit,1.2)
  346. local c=Instance.new("ObjectValue")
  347. c.Name="creator"
  348. c.Value=game:service("Players").LocalPlayer
  349. c.Parent=h
  350. game:GetService("Debris"):AddItem(c,.5)
  351. local Damage=math.random(minim,maxim)
  352. -- h:TakeDamage(Damage)
  353. local blocked=false
  354. local block=hit.Parent:findFirstChild("Block")
  355. if block~=nil then
  356. print(block.className)
  357. if block.className=="NumberValue" then
  358. if block.Value>0 then
  359. blocked=true
  360. if decreaseblock==nil then
  361. block.Value=block.Value-1
  362. end
  363. end
  364. end
  365. if block.className=="IntValue" then
  366. if block.Value>0 then
  367. blocked=true
  368. if decreaseblock~=nil then
  369. block.Value=block.Value-1
  370. end
  371. end
  372. end
  373. end
  374. if blocked==false then
  375. -- h:TakeDamage(Damage)
  376. h.Health=h.Health-Damage
  377. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, Part.BrickColor.Color)
  378. else
  379. h.Health=h.Health-(Damage/2)
  380. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Bright blue").Color)
  381. end
  382. if Type=="Knockdown" then
  383. local hum=hit.Parent.Humanoid
  384. hum.PlatformStand=true
  385. coroutine.resume(coroutine.create(function(HHumanoid)
  386. swait(1)
  387. HHumanoid.PlatformStand=false
  388. end),hum)
  389. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  390. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  391. local bodvol=Instance.new("BodyVelocity")
  392. bodvol.velocity=angle*knockback
  393. bodvol.P=5000
  394. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  395. bodvol.Parent=hit
  396. local rl=Instance.new("BodyAngularVelocity")
  397. rl.P=3000
  398. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  399. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  400. rl.Parent=hit
  401. game:GetService("Debris"):AddItem(bodvol,.5)
  402. game:GetService("Debris"):AddItem(rl,.5)
  403. elseif Type=="Normal" then
  404. local vp=Instance.new("BodyVelocity")
  405. vp.P=500
  406. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  407. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  408. if KnockbackType==1 then
  409. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  410. elseif KnockbackType==2 then
  411. vp.velocity=Property.CFrame.lookVector*knockback
  412. end
  413. if knockback>0 then
  414. vp.Parent=hit.Parent.Torso
  415. end
  416. game:GetService("Debris"):AddItem(vp,.5)
  417. elseif Type=="Up" then
  418. local bodyVelocity=Instance.new("BodyVelocity")
  419. bodyVelocity.velocity=vt(0,60,0)
  420. bodyVelocity.P=5000
  421. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  422. bodyVelocity.Parent=hit
  423. game:GetService("Debris"):AddItem(bodyVelocity,1)
  424. local rl=Instance.new("BodyAngularVelocity")
  425. rl.P=3000
  426. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  427. rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  428. rl.Parent=hit
  429. game:GetService("Debris"):AddItem(rl,.5)
  430. elseif Type=="Snare" then
  431. local bp=Instance.new("BodyPosition")
  432. bp.P=2000
  433. bp.D=100
  434. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  435. bp.position=hit.Parent.Torso.Position
  436. bp.Parent=hit.Parent.Torso
  437. game:GetService("Debris"):AddItem(bp,1)
  438. elseif Type=="Target" then
  439. local Targetting = false
  440. if Targetting==false then
  441. ZTarget=hit.Parent.Torso
  442. coroutine.resume(coroutine.create(function(Part)
  443. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  444. swait(5)
  445. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  446. end),ZTarget)
  447. local TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  448. local targetgui=Instance.new("BillboardGui")
  449. targetgui.Parent=ZTarget
  450. targetgui.Size=UDim2.new(10,100,10,100)
  451. local targ=Instance.new("ImageLabel")
  452. targ.Parent=targetgui
  453. targ.BackgroundTransparency=1
  454. targ.Image="rbxassetid://4834067"
  455. targ.Size=UDim2.new(1,0,1,0)
  456. cam.CameraType="Scriptable"
  457. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  458. local dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  459. workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  460. Targetting=true
  461. RocketTarget=ZTarget
  462. for i=1,Property do
  463. --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  464. if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  465. swait()
  466. end
  467. --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
  468. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  469. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  470. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  471. end
  472. Targetting=false
  473. RocketTarget=nil
  474. targetgui.Parent=nil
  475. cam.CameraType="Custom"
  476. end
  477. end
  478. local debounce=Instance.new("BoolValue")
  479. debounce.Name="DebounceHit"
  480. debounce.Parent=hit.Parent
  481. debounce.Value=true
  482. game:GetService("Debris"):AddItem(debounce,Delay)
  483. c=Instance.new("ObjectValue")
  484. c.Name="creator"
  485. c.Value=Player
  486. c.Parent=h
  487. game:GetService("Debris"):AddItem(c,.5)
  488. end
  489. end
  490.  
  491.  
  492. function ShowDamage(Pos, Text, Time, Color)
  493. local Rate = (1 / 30)
  494. local Pos = (Pos or Vector3.new(0, 0, 0))
  495. local Text = (Text or "")
  496. local Time = (Time or 2)
  497. local Color = (Color or Color3.new(1, 0, 0))
  498. local EffectPart = part("Custom",workspace,"SmoothPlastic",0,1,BrickColor.new(Color),"Effect",vt(0,0,0))
  499. EffectPart.Anchored = true
  500. local BillboardGui = Instance.new("BillboardGui")
  501. BillboardGui.Size = UDim2.new(3, 0, 3, 0)
  502. BillboardGui.Adornee = EffectPart
  503. local TextLabel = Instance.new("TextLabel")
  504. TextLabel.BackgroundTransparency = 1
  505. TextLabel.Size = UDim2.new(1, 0, 1, 0)
  506. TextLabel.Text = Text
  507. TextLabel.TextColor3 = Color
  508. TextLabel.TextScaled = true
  509. TextLabel.Font = Enum.Font.ArialBold
  510. TextLabel.Parent = BillboardGui
  511. BillboardGui.Parent = EffectPart
  512. game.Debris:AddItem(EffectPart, (Time + 0.1))
  513. EffectPart.Parent = game:GetService("Workspace")
  514. Delay(0, function()
  515. local Frames = (Time / Rate)
  516. for Frame = 1, Frames do
  517. wait(Rate)
  518. local Percent = (Frame / Frames)
  519. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  520. TextLabel.TextTransparency = Percent
  521. end
  522. if EffectPart and EffectPart.Parent then
  523. EffectPart:Destroy()
  524. end
  525. end)
  526. end
  527.  
  528. --example: local con = HitboxB.Touched:connect(function(hit) Damagefunc(Hitbox,hit,Dmg,Dmg,math.random(Knockback,Knockback),"Normal",RootPart,.2,1) end)
  529.  
  530. Handle=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","Handle",Vector3.new(0.347999901, 1.27600014, 0.232000008))
  531. Handleweld=weld(m,Character["Right Arm"],Handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.01009071, -0.0637333393, -0.0167479515, -0.00027436731, 0.999993384, -6.46220633e-006, 1.38920723e-005, -6.2527256e-006, -0.999993801, -0.99999702, -0.00026819724, -1.3899984e-005))
  532. mesh("CylinderMesh",Handle,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  533. FakeHandle=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","FakeHandle",Vector3.new(0.347999901, 1.27600014, 0.232000008))
  534. FakeHandleweld=weld(m,Handle,FakeHandle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(8.58306885e-006, -0.000596046448, -2.38418579e-007, 0.999993742, 4.3684995e-006, 6.23631286e-006, -3.95727147e-006, 0.999987602, 9.94805305e-009, 6.10223196e-006, 9.11404641e-009, 0.999994099))
  535. mesh("CylinderMesh",FakeHandle,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  536. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(0.347999901, 0.812000155, 0.232000008))
  537. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.818475366, -1.24264455, 5.84125519e-006, 0.707105577, 0.707095146, -7.15835995e-008, -0.707099378, 0.707100868, 7.07505023e-008, 1.24391281e-005, 1.96059773e-008, 0.999994099))
  538. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  539. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(0.347999901, 1.62400007, 0.232000008))
  540. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(5.48362732e-006, 1.79848576, 4.17232513e-006, 0.999993742, -4.12408235e-006, -1.00579854e-007, 4.53530902e-006, 0.999987602, -6.63931132e-010, 1.2439099e-005, 1.96941983e-008, 0.999994099))
  541. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  542. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0.5,"New Yeller","Part",Vector3.new(0.579999864, 0.232000008, 0.34799999))
  543. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-3.06921482, -2.14576721e-006, 9.29832458e-006, -4.81849111e-006, -0.999987602, 1.02045306e-008, -1.85413301e-005, -2.92047844e-008, -0.999994099, 0.999993742, -4.4072649e-006, -6.20281025e-006))
  544. mesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  545. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(0.927999914, 0.579999983, 0.231999993))
  546. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.0750308, -1.1920929e-005, 7.15255737e-007, 5.43538044e-006, 0.999987602, 1.84245437e-008, -0.999993742, 5.02414923e-006, -1.22379215e-005, 1.00590412e-007, 6.63021638e-010, 0.999994099))
  547. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=3270017",Vector3.new(0, 0, 0),Vector3.new(0.912919998, 0.907119989, 0.533599973))
  548. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(0.811999917, 0.69599998, 0.231999993))
  549. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-2.73329997, 0.222070813, 2.74181366e-006, 4.81849111e-006, 0.999987602, -1.02045306e-008, -0.999993742, 4.4072649e-006, 6.26986548e-006, 1.86083853e-005, 2.92038749e-008, 0.999994099))
  550. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=3270017",Vector3.new(0, 0, 0),Vector3.new(0.856079936, 0.875800014, 1.73883998))
  551. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"New Yeller","Part",Vector3.new(0.347999901, 0.348000139, 0.232000008))
  552. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(5.96046448e-006, -0.810907125, 8.34465027e-007, 0.999993742, -4.49649269e-006, -1.24725302e-005, 4.90771481e-006, 0.999987602, -1.99188435e-008, 2.48110555e-005, 3.8885446e-008, 0.999994099))
  553. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  554. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0.5,"New Yeller","Part",Vector3.new(0.347999901, 0.232000008, 0.34799999))
  555. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.72911215, -3.09944153e-006, -0.232034326, -5.02408784e-006, -0.999987602, 1.97460395e-008, -2.47105891e-005, -3.87117325e-008, -0.999994099, 0.999993742, -4.61286618e-006, -1.23720656e-005))
  556. mesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  557. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(0.463999897, 2.08800006, 0.232000008))
  558. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.589904547, -2.67522669, 4.17232513e-006, 0.999993742, -4.53528401e-006, -1.24391199e-005, 4.94650567e-006, 0.999987602, -1.974513e-008, 2.47776443e-005, 3.8710823e-008, 0.999994099))
  559. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  560. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(0.347999901, 1.3920002, 0.232000008))
  561. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-3.57627869e-007, -1.67933106, 4.05311584e-006, 0.999993742, -4.74087983e-006, -1.86083744e-005, 5.15210377e-006, 0.999987602, -2.92848199e-008, 3.09469033e-005, 4.82132236e-008, 0.999994099))
  562. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  563. Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0.5,"New Yeller","Part",Vector3.new(0.927999914, 0.232000008, 0.927999973))
  564. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(4.3587079, -6.7949295e-006, 0.121757269, -5.22968594e-006, -0.999987602, 2.92857294e-008, -3.08798481e-005, -4.82132236e-008, -0.999994099, 0.999993742, -4.818462e-006, -1.8541321e-005))
  565. mesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  566. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","Part",Vector3.new(0.231999904, 0.580000043, 0.232000008))
  567. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.338058472, -3.42915106, 2.02655792e-006, 0.999993742, -4.74087983e-006, -1.86083744e-005, 5.15210377e-006, 0.999987602, -2.92848199e-008, 3.09469033e-005, 4.82132236e-008, 0.999994099))
  568. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  569. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"New Yeller","Part",Vector3.new(0.347999901, 0.348000139, 0.232000008))
  570. Partweld=weld(m,FakeHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.40666962e-005, 0.812601328, 2.2649765e-006, 0.999993742, -4.70208943e-006, -1.86417856e-005, 5.11331291e-006, 0.999987602, -2.94576239e-008, 3.09803145e-005, 4.83869371e-008, 0.999994099))
  571. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  572. center=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Navy blue","center",Vector3.new(1.04399991, 0.928000033, 0.231999993))
  573. centerweld=weld(m,FakeHandle,center,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-4.35712862, -0.125956893, 4.88758087e-006, 5.22968639e-006, 0.999987602, -2.88782758e-008, -0.999993742, 4.818462e-006, 1.8541321e-005, 3.08798481e-005, 4.780577e-008, 0.999994099))
  574. mesh("SpecialMesh",center,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=3270017",Vector3.new(0, 0, 0),Vector3.new(1.46971989, 1.53120005, 1.73883998))
  575. hitbox=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Navy blue","hitbox",Vector3.new(2.04399991, 2.12800026, 0.631999969))
  576. hitboxweld=weld(m,FakeHandle,hitbox,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-4.2571373, -0.125955701, 9.89437103e-006, 5.43528176e-006, 0.999987602, -3.80077836e-008, -0.999993742, 5.02405965e-006, 2.46435502e-005, 3.69820809e-005, 5.6898898e-008, 0.999994099))
  577. hitbox2=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Navy blue","hitbox2",Vector3.new(0.843999922, 1.12800026, 0.631999969))
  578. hitbox2weld=weld(m,FakeHandle,hitbox2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.14270258, -0.0259480476, 1.6450882e-005, 6.46339595e-006, 0.999987602, -1.0207259e-008, -0.999993801, 6.05217065e-006, 6.26990641e-006, 1.86083962e-005, 2.91774995e-008, 0.999994099))
  579. tip=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Navy blue","tip",Vector3.new(0.643999934, 0.528000295, 0.631999969))
  580. tipweld=weld(m,FakeHandle,tip,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-4.35690403, -0.125970602, 3.06367874e-005, 5.64087668e-006, 0.999987602, -4.83623808e-008, -0.999993742, 5.2296582e-006, 3.09469469e-005, 4.32854467e-005, 6.72098395e-008, 0.999994099))
  581. tip2=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Navy blue","tip2",Vector3.new(0.643999934, 0.728000283, 0.631999969))
  582. tip2weld=weld(m,FakeHandle,tip2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0259525776, -3.04272366, 2.0980835e-005, -0.999993742, 5.10741256e-006, 3.06882685e-005, -5.5184023e-006, -0.999987602, 5.35810159e-006, 4.30268083e-005, 5.37692085e-006, 0.999994099))
  583.  
  584. mouse.Button1Down:connect(function()
  585. if attack==false and attacktype==1 then
  586. attacktype=2
  587. attackone()
  588. elseif attack==false and attacktype==2 then
  589. attacktype=1
  590. attacktwo()
  591. end
  592. end)
  593.  
  594. mouse.KeyDown:connect(function(k)
  595. k=k:lower()
  596. if k=='e' and attack==false then
  597. Debuff()
  598. elseif k=='q' and attack==false then
  599. Support()
  600. elseif k=='r' and attack==false then
  601. TelekineticSpin()
  602. end
  603. end)
  604.  
  605. function TelekineticSpin()
  606. so("http://roblox.com/asset/?id=199145327",Torso,1,1)
  607. attack=true
  608. blcf=nil
  609. scfr=nil
  610. local con = hitbox.Touched:connect(function(hit) Damagefunc(hitbox,hit,20,30,math.random(5,10),"Normal",RootPart,.2,1) end)
  611. for i=0,1,0.1 do
  612. swait()
  613. FakeHandleweld.C0=cf(0,0,0)*euler(0,0,-5*i)
  614. Neck.C0=clerp(Neck.C0,necko*euler(-.4,0,.2),.2)
  615. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.2)
  616. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(2.8,0,0),.2)
  617. RW.C1=clerp(RW.C1,cf(0,0.5,0)*euler(0,0,0),.2)
  618. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0,1.57,0)*euler(0,0,0),.3)
  619. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(0,-1.57,0)*euler(0,0,0),.3)
  620. end
  621. for i=0,1,0.15 do
  622. swait()
  623. FakeHandleweld.C0=clerp(FakeHandleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  624. Neck.C0=clerp(Neck.C0,necko*euler(0,0,0),.4)
  625. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.4)
  626. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.57,0,0),.4)
  627. RW.C1=clerp(RW.C1,cf(0,0.5,0)*euler(0,0,0),.4)
  628. end
  629. hitfloor=nil
  630. swait(10)
  631. attack=false
  632. con:disconnect()
  633. end
  634.  
  635. function attackone()
  636. attack=true
  637. for i=0,1.5,0.1 do
  638. swait()
  639. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-55)),.3)
  640. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(55)),.3)
  641. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(45))*angles(math.rad(-25),0,0),.3)
  642. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-10)),.3)
  643. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  644. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  645. FakeHandleweld.C0=clerp(FakeHandleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(20)),.3)
  646. end
  647. local con = hitbox.Touched:connect(function(hit) Damagefunc(hitbox,hit,20,30,math.random(5,10),"Normal",RootPart,.2,1) end)
  648. so("http://roblox.com/asset/?id=206083107",Torso,1,1)
  649. for i=0,1.5,0.1 do
  650. swait()
  651. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(55)),.3)
  652. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(-45)),.3)
  653. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(45))*angles(math.rad(90),0,0),.3)
  654. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-10)),.3)
  655. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  656. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  657. FakeHandleweld.C0=clerp(FakeHandleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(20)),.3)
  658. end
  659. attack=false
  660. con:disconnect()
  661. end
  662.  
  663. function attacktwo()
  664. attack=true
  665. for i=0,1,0.1 do
  666. swait()
  667. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,-1.2),.3)
  668. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,1.2),.3)
  669. RW.C0=clerp(RW.C0,cf(1,0.5,-0.5)*euler(.5,1.8,1.5),.3)
  670. LW.C0=clerp(LW.C0,cf(-1,0.5,-0.5)*euler(1.5,-0.5,.8),.3)
  671. RH.C0=clerp(RH.C0,RHC0*euler(-.2,0,0),.3)
  672. LH.C0=clerp(LH.C0,LHC0*euler(-.2,0,0),.3)
  673. end
  674. local con = hitbox.Touched:connect(function(hit) Damagefunc(hitbox,hit,20,30,math.random(5,10),"Normal",RootPart,.2,1) end)
  675. so("http://roblox.com/asset/?id=206083107",Torso,1,.9)
  676. for i=0,1,0.1 do
  677. swait()
  678. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*euler(0.1,0,1),.3)
  679. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,-1),.3)
  680. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(1.2,1.2,0)*euler(-1.5,0,0),.3)
  681. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(.2,-.2,-1.4),.3)
  682. end
  683. con:disconnect()
  684. attack=false
  685. end
  686.  
  687. ring=function(way,way2,where,vector,rv1,rv2,rv3,c1,c2,color)
  688. local rng = Instance.new("Part", Character.Torso)
  689. rng.Anchored = true
  690. rng.BrickColor = BrickColor.new(tostring(color))
  691. rng.CanCollide = false
  692. rng.FormFactor = 3
  693. rng.Name = "Ring"
  694. rng.Size = Vector3.new(1, 1, 1)
  695. rng.Transparency = .5
  696. rng.TopSurface = 0
  697. rng.BottomSurface = 0
  698. rng.CFrame = where * CFrame.Angles(math.rad(way), math.rad(way2), 0)
  699. local rngm = Instance.new("SpecialMesh", rng)
  700. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  701. rngm.Scale = vector--10,10,1
  702. for i = 1, 20, 1 do
  703. rngm.Scale = Vector3.new(rv1 + i*c1, rv2 + i*c2, rv3)--(10 + i*2, 10 + i*2, 1)
  704. rng.Transparency = i/20
  705. swait()
  706. end
  707. wait()
  708. rng:destroy''
  709. end
  710.  
  711. function MagniDamage(HitPart,Part,magni,mindam,maxdam,knock,Type)
  712. for _,c in pairs(workspace:children()) do
  713. local hum=c:findFirstChild("Humanoid")
  714. if hum~=nil then
  715. local head=c:findFirstChild("Torso")
  716. if head~=nil then
  717. local targ=head.Position-Part.Position
  718. local mag=targ.magnitude
  719. if mag<=magni and c.Name~=Player.Name then
  720. Damagefunc(HitPart,head,mindam,maxdam,knock,Type,RootPart,.2,1,3)
  721. end
  722. end
  723. end
  724. end
  725. end
  726.  
  727. function Debuff()
  728. attack=true
  729. for i=0,2,0.1 do
  730. swait()
  731. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  732. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-35),math.rad(0),math.rad(0)),.3)
  733. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(165),math.rad(0),math.rad(0)),.3)
  734. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-45))*angles(math.rad(-25),0,0),.3)
  735. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  736. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  737. FakeHandleweld.C0=clerp(FakeHandleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(60)),.5)
  738. end
  739. x = Instance.new("Sound")
  740. x.SoundId = "http://www.roblox.com/asset/?id=142070127"
  741. x.Parent = Character.Head
  742. x.Looped = false
  743. x.Pitch = .88
  744. x.Volume = 1
  745. wait()
  746. x:Play()
  747. local Shockwave = function()
  748. local Wave = Instance.new("Part", game.Workspace)
  749. Wave.Name = "Shockwave"
  750. Wave.BrickColor = BrickColor.new("Navy blue")
  751. Wave.Size = Vector3.new(1, 1, 1)
  752. Wave.CanCollide = false
  753. Wave.Anchored = true
  754. Wave.TopSurface = 0
  755. Wave.BottomSurface = 0
  756.  
  757. Delay(0, function()
  758. for i = 1, 38, 1 do
  759. Wave.Size = Vector3.new(1 + i, 1 + i, 1 + i)
  760. Wave.CFrame = hitbox.CFrame
  761. local t = i / 38
  762. Wave.Transparency = t
  763. wait()
  764. end
  765. Wave:Destroy()
  766. end)
  767. Delay(0, function()
  768. while wait() do
  769. if Wave ~= nil then
  770. Wave.CFrame = hitbox.CFrame
  771. else
  772. break
  773. end
  774. end
  775. end)
  776. end
  777. Shockwave()
  778. wait(1)
  779. for i=0,2,0.1 do
  780. swait()
  781. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  782. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.3)
  783. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(45),math.rad(0),math.rad(0)),.3)
  784. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-25)),.3)
  785. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  786. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  787. FakeHandleweld.C0=clerp(FakeHandleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-30)),.5)
  788. end
  789. x = Instance.new("Sound")
  790. x.SoundId = "rbxassetid://2248511"
  791. x.Parent = Character.Head
  792. x.Looped = false
  793. x.Pitch = .88
  794. x.Volume = 1
  795. wait()
  796. x:Play()
  797. ring(90,0,tip2.CFrame*CFrame.new(0,-1,0),Vector3.new(1,1,1),1,1,1,.5,.5,'Navy blue')
  798. attack=false
  799. end
  800.  
  801. function Support()
  802. attack=true
  803. for i=0,2,0.1 do
  804. swait()
  805. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  806. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-35),math.rad(0),math.rad(0)),.3)
  807. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(165),math.rad(0),math.rad(0)),.3)
  808. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-45))*angles(math.rad(-25),0,0),.3)
  809. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  810. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  811. FakeHandleweld.C0=clerp(FakeHandleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(50)),.5)
  812. end
  813. x = Instance.new("Sound")
  814. x.SoundId = "http://www.roblox.com/asset/?id=233091183"
  815. x.Parent = Character.Head
  816. x.Looped = false
  817. x.Pitch = 1
  818. x.Volume = 1
  819. wait()
  820. x:Play()
  821. local Shockwave = function()
  822. local Wave = Instance.new("Part", game.Workspace--[[?]])
  823. Wave.Name = "Shockwave"
  824. Wave.BrickColor = BrickColor.new("New Yeller")
  825. Wave.Size = Vector3.new(1, 1, 1)
  826. Wave.Shape = "Ball"
  827. Wave.CanCollide = false
  828. Wave.Anchored = true
  829. Wave.TopSurface = 0
  830. Wave.BottomSurface = 0
  831. Wave.Touched:connect(function(hit)
  832. print("Support Wave")
  833. if hit.Parent:findFirstChild("Humanoid") and hit.Parent:findFirstChild("Torso") then
  834. if hit.Parent.Name ~= Character.Name then
  835. print("Used Support wave on: " .. hit.Parent.Name)
  836. hit.Parent:findFirstChild("Humanoid").WalkSpeed = 20
  837. hit.Parent:findFirstChild("Humanoid").MaxHealth = 120
  838. hit.Parent:findFirstChild("Humanoid").Health = hit.Parent:findFirstChild("Humanoid").MaxHealth
  839.  
  840. end
  841. end
  842. end)
  843.  
  844. Instance.new("SpecialMesh", Wave).MeshType = "Sphere"
  845.  
  846. Delay(0, function()
  847. for i = 1, 38, 1 do
  848. Wave.Size = Vector3.new(1 + i, 1 + i, 1 + i)
  849. Wave.CFrame = hitbox.CFrame
  850. local t = i / 38
  851. Wave.Transparency = t
  852. wait()
  853. end
  854. Wave:Destroy()
  855. end)
  856. Delay(0, function()
  857. while wait() do
  858. if Wave ~= nil then
  859. Wave.CFrame = hitbox.CFrame
  860. else
  861. break
  862. end
  863. end
  864. end)
  865. end
  866. Shockwave()
  867. wait(1)
  868. attack=false
  869. end
  870.  
  871.  
  872. local sine = 0
  873. local change = 1
  874. local val = 0
  875.  
  876. local mananum=0
  877. while true do
  878. swait()
  879. sine = sine + change
  880. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  881. local velderp=RootPart.Velocity.y
  882. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  883. if equipped==true or equipped==false then
  884. if attack==false then
  885. idle=idle+1
  886. else
  887. idle=0
  888. end
  889. if idle>=500 then
  890. if attack==false then
  891. --Sheath()
  892. end
  893. end
  894. if RootPart.Velocity.y > 1 and hitfloor==nil then
  895. Anim="Jump"
  896. if attack==false then
  897. Neck.C0=clerp(Neck.C0,necko*euler(-0.2,0,0),.3)
  898. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  899. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  900. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.5,0,0.5),.3)
  901. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  902. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.5,0,-0.5),.3)
  903. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  904. RH.C0=clerp(RH.C0,cf(1,-1,-.3)*euler(-0.5,1.57,0)*euler(-.2,0,0),.2)
  905. LH.C0=clerp(LH.C0,cf(-1,-1,-.3)*euler(-0.5,-1.57,0)*euler(-.2,0,0),.2)
  906. FakeHandleweld.C0=clerp(FakeHandleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  907. end
  908. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  909. Anim="Fall"
  910. if attack==false then
  911. Neck.C0=clerp(Neck.C0,necko*euler(0.4,0,0),.3)
  912. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  913. RootJoint.C0=clerp(RootJoint.C0,RootCF*euler(0,0,0),.3)
  914. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0.3,0,0.2),.3)
  915. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  916. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0.3,0,-0.2),.3)
  917. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  918. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.4,1.57,0),.2)
  919. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.2,-1.57,0),.2)
  920. FakeHandleweld.C0=clerp(FakeHandleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  921. end
  922. elseif torvel<1 and hitfloor~=nil then
  923. Anim="Idle"
  924. if attack==false then
  925. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-45)),.3)
  926. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(45)),.3)
  927. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(45))*angles(math.rad(-25),0,0),.3)
  928. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-10)),.3)
  929. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  930. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  931. FakeHandleweld.C0=clerp(FakeHandleweld.C0,cf(.2,.5,0)*angles(math.rad(0),math.rad(0),math.rad(-25)),.3)
  932. end
  933. elseif torvel>2 and hitfloor~=nil then
  934. Anim="Walk"
  935. if attack==false then
  936. change=1
  937. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  938. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  939. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-15*math.cos(sine/9)),math.rad(0),math.rad(5)),.3)
  940. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(35*math.cos(sine/9)),math.rad(0),math.rad(-5)),.3)
  941. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  942. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  943. FakeHandleweld.C0=clerp(FakeHandleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  944. end
  945. end
  946. end
  947. local FireColors = {'Navy blue', 'New Yeller'}
  948. local p = Instance.new('Part', Character.Torso)
  949. p.Transparency=.5
  950. p.BrickColor = BrickColor.new(FireColors[math.random(1,#FireColors)])
  951. p.FormFactor = 'Custom'
  952. p.Size = Vector3.new(.8, .8, .8)
  953. p.CanCollide = false
  954. p.Anchored = true
  955. p.Locked = true
  956. p.CFrame = center.CFrame * CFrame.Angles(math.random(0,3),math.random(0,3),math.random(0,3))
  957. Instance.new('BlockMesh', p)
  958. coroutine.wrap(function()
  959. for i = 1, 10 do
  960. p.Mesh.Scale = p.Mesh.Scale - Vector3.new(.1, .1, .1)
  961. p.CFrame = p.CFrame * CFrame.new(0, -.15, 0)
  962. wait()
  963. end
  964. end)()
  965. game:service'Debris':AddItem(p, 2)
  966. end
Add Comment
Please, Sign In to add comment