Advertisement
PiterMosskva_TV

aaa fucking ear bleeder

Feb 1st, 2019
247
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 54.88 KB | None | 0 0
  1. -- This script has been converted to FE by iPxter
  2.  
  3.  
  4. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  5. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  6. do
  7. print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
  8. script.Parent = Player.Character
  9.  
  10. --RemoteEvent for communicating
  11. local Event = Instance.new("RemoteEvent")
  12. Event.Name = "UserInput_Event"
  13.  
  14. --Fake event to make stuff like Mouse.KeyDown work
  15. local function fakeEvent()
  16. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  17. t.connect = t.Connect
  18. return t
  19. end
  20.  
  21. --Creating fake input objects with fake variables
  22. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  23. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  24. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  25. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  26. end}
  27. --Merged 2 functions into one by checking amount of arguments
  28. CAS.UnbindAction = CAS.BindAction
  29.  
  30. --This function will trigger the events that have been :Connect()'ed
  31. local function te(self,ev,...)
  32. local t = m[ev]
  33. if t and t._fakeEvent and t.Function then
  34. t.Function(...)
  35. end
  36. end
  37. m.TrigEvent = te
  38. UIS.TrigEvent = te
  39.  
  40. Event.OnServerEvent:Connect(function(plr,io)
  41. if plr~=Player then return end
  42. if io.isMouse then
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. else
  46. local b = io.UserInputState == Enum.UserInputState.Begin
  47. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  48. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  49. end
  50. for _,t in pairs(CAS.Actions) do
  51. for _,k in pairs(t.Keys) do
  52. if k==io.KeyCode then
  53. t.Function(t.Name,io.UserInputState,io)
  54. end
  55. end
  56. end
  57. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  58. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  59. end
  60. end)
  61. Event.Parent = NLS([==[
  62. local Player = game:GetService("Players").LocalPlayer
  63. local Event = script:WaitForChild("UserInput_Event")
  64.  
  65. local UIS = game:GetService("UserInputService")
  66. local input = function(io,a)
  67. if a then return end
  68. --Since InputObject is a client-side instance, we create and pass table instead
  69. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  70. end
  71. UIS.InputBegan:Connect(input)
  72. UIS.InputEnded:Connect(input)
  73.  
  74. local Mouse = Player:GetMouse()
  75. local h,t
  76. --Give the server mouse data 30 times every second, but only if the values changed
  77. --If player is not moving their mouse, client won't fire events
  78. while wait(1/30) do
  79. if h~=Mouse.Hit or t~=Mouse.Target then
  80. h,t=Mouse.Hit,Mouse.Target
  81. Event:FireServer({isMouse=true,Target=t,Hit=h})
  82. end
  83. end]==],Player.Character)
  84. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  85. end
  86.  
  87. --COVER YOUR EARS MOTHERFUCKER.
  88.  
  89. Player=owner
  90. Character=Player.Character
  91. PlayerGui=Player.PlayerGui
  92. Backpack=Player.Backpack
  93. Torso=Character.Torso
  94. Head=Character.Head
  95. Humanoid=Character.Humanoid
  96. Humanoid.WalkSpeed = 999
  97. m=Instance.new('Model',Character)
  98. LeftArm=Character["Left Arm"]
  99. LeftLeg=Character["Left Leg"]
  100. RightArm=Character["Right Arm"]
  101. RightLeg=Character["Right Leg"]
  102. LS=Torso["Left Shoulder"]
  103. LH=Torso["Left Hip"]
  104. RS=Torso["Right Shoulder"]
  105. RH=Torso["Right Hip"]
  106. Face = Head.face
  107. Neck=Torso.Neck
  108. it=Instance.new
  109. attacktype=1
  110. vt=Vector3.new
  111. cf=CFrame.new
  112. euler=CFrame.fromEulerAnglesXYZ
  113. angles=CFrame.Angles
  114. cloaked=false
  115. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  116. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  117. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  118. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  119. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  120. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  121. RootPart=Character.HumanoidRootPart
  122. RootJoint=RootPart.RootJoint
  123. RootCF=euler(-1.57,0,3.14)
  124. attack = false
  125. attackdebounce = false
  126. deb=false
  127. equipped=true
  128. hand=false
  129. MMouse=nil
  130. combo=0
  131. mana=0
  132. trispeed=.2
  133. attackmode='none'
  134. local idle=0
  135. local Anim="Idle"
  136. local Effects={}
  137. local gun=false
  138. local shoot=false
  139. player=nil
  140. mana=0
  141.  
  142. --save shoulders
  143. RSH, LSH=nil, nil
  144. --welds
  145. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  146. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  147. LH=Torso["Left Hip"]
  148. RH=Torso["Right Hip"]
  149. TorsoColor=Torso.BrickColor
  150. function NoOutline(Part)
  151. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  152. end
  153. player=Player
  154. ch=Character
  155. RSH=ch.Torso["Right Shoulder"]
  156. LSH=ch.Torso["Left Shoulder"]
  157. --
  158. RSH.Parent=nil
  159. LSH.Parent=nil
  160. --
  161. RW.Name="Right Shoulder"
  162. RW.Part0=ch.Torso
  163. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  164. RW.C1=cf(0, 0.5, 0)
  165. RW.Part1=ch["Right Arm"]
  166. RW.Parent=ch.Torso
  167. --
  168. LW.Name="Left Shoulder"
  169. LW.Part0=ch.Torso
  170. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  171. LW.C1=cf(0, 0.5, 0)
  172. LW.Part1=ch["Left Arm"]
  173. LW.Parent=ch.Torso
  174.  
  175. Player=owner
  176. Character=Player.Character
  177. m=Instance.new('Model',Character)
  178.  
  179.  
  180. local function weldBetween(a, b)
  181. local weldd = Instance.new("ManualWeld")
  182. weldd.Part0 = a
  183. weldd.Part1 = b
  184. weldd.C0 = CFrame.new()
  185. weldd.C1 = b.CFrame:inverse() * a.CFrame
  186. weldd.Parent = a
  187. return weldd
  188. end
  189.  
  190. function swait(num)
  191. if num==0 or num==nil then
  192. game:service'RunService'.Stepped:wait(0)
  193. else
  194. for i=0,num do
  195. game:service'RunService'.Stepped:wait(0)
  196. end
  197. end
  198. end
  199.  
  200. function nooutline(part)
  201. part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  202. end
  203.  
  204. function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  205. local fp=it("Part")
  206. fp.formFactor=formfactor
  207. fp.Parent=parent
  208. fp.Reflectance=reflectance
  209. fp.Transparency=transparency
  210. fp.CanCollide=false
  211. fp.Locked=true
  212. fp.BrickColor=BrickColor.new(tostring(brickcolor))
  213. fp.Name=name
  214. fp.Size=size
  215. fp.Position=Character.Torso.Position
  216. nooutline(fp)
  217. fp.Material=material
  218. fp:BreakJoints()
  219. return fp
  220. end
  221.  
  222. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  223. local mesh=it(Mesh)
  224. mesh.Parent=part
  225. if Mesh=="SpecialMesh" then
  226. mesh.MeshType=meshtype
  227. mesh.MeshId=meshid
  228. end
  229. mesh.Offset=offset
  230. mesh.Scale=scale
  231. return mesh
  232. end
  233.  
  234. function weld(parent,part0,part1,c0,c1)
  235. local weld=it("Weld")
  236. weld.Parent=parent
  237. weld.Part0=part0
  238. weld.Part1=part1
  239. weld.C0=c0
  240. weld.C1=c1
  241. return weld
  242. end
  243.  
  244.  
  245. local function CFrameFromTopBack(at, top, back)
  246. local right = top:Cross(back)
  247. return CFrame.new(at.x, at.y, at.z,
  248. right.x, top.x, back.x,
  249. right.y, top.y, back.y,
  250. right.z, top.z, back.z)
  251. end
  252.  
  253. function Triangle(a, b, c)
  254. local edg1 = (c-a):Dot((b-a).unit)
  255. local edg2 = (a-b):Dot((c-b).unit)
  256. local edg3 = (b-c):Dot((a-c).unit)
  257. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  258. a, b, c = a, b, c
  259. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  260. a, b, c = b, c, a
  261. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  262. a, b, c = c, a, b
  263. else
  264. assert(false, "unreachable")
  265. end
  266.  
  267. local len1 = (c-a):Dot((b-a).unit)
  268. local len2 = (b-a).magnitude - len1
  269. local width = (a + (b-a).unit*len1 - c).magnitude
  270.  
  271. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  272.  
  273. local list = {}
  274.  
  275. local TrailColor = ("Dark grey")
  276.  
  277. if len1 > 0.01 then
  278. local w1 = Instance.new('WedgePart', m)
  279. game:GetService("Debris"):AddItem(w1,5)
  280. w1.Material = "SmoothPlastic"
  281. w1.FormFactor = 'Custom'
  282. w1.BrickColor = BrickColor.new(TrailColor)
  283. w1.Transparency = 0
  284. w1.Reflectance = 0
  285. w1.Material = "SmoothPlastic"
  286. w1.CanCollide = false
  287. NoOutline(w1)
  288. local sz = Vector3.new(0.2, width, len1)
  289. w1.Size = sz
  290. local sp = Instance.new("SpecialMesh",w1)
  291. sp.MeshType = "Wedge"
  292. sp.Scale = Vector3.new(0,1,2) * sz/w1.Size
  293. w1:BreakJoints()
  294. w1.Anchored = true
  295. w1.Parent = workspace
  296. w1.Transparency = 0.7
  297. table.insert(Effects,{w1,"Disappear",.01})
  298. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  299. table.insert(list,w1)
  300. end
  301.  
  302. if len2 > 0.01 then
  303. local w2 = Instance.new('WedgePart', m)
  304. game:GetService("Debris"):AddItem(w2,5)
  305. w2.Material = "SmoothPlastic"
  306. w2.FormFactor = 'Custom'
  307. w2.BrickColor = BrickColor.new(TrailColor)
  308. w2.Transparency = 0
  309. w2.Reflectance = 0
  310. w2.Material = "SmoothPlastic"
  311. w2.CanCollide = false
  312. NoOutline(w2)
  313. local sz = Vector3.new(0.2, width, len2)
  314. w2.Size = sz
  315. local sp = Instance.new("SpecialMesh",w2)
  316. sp.MeshType = "Wedge"
  317. sp.Scale = Vector3.new(0,1,2) * sz/w2.Size
  318. w2:BreakJoints()
  319. w2.Anchored = true
  320. w2.Parent = workspace
  321. w2.Transparency = 0.7
  322. table.insert(Effects,{w2,"Disappear",.01})
  323. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  324. table.insert(list,w2)
  325. end
  326. return unpack(list)
  327. end
  328.  
  329.  
  330. so = function(id,par,vol,pit)
  331. coroutine.resume(coroutine.create(function()
  332. local sou = Instance.new("Sound",par or workspace)
  333. sou.Volume=vol
  334. sou.Pitch=pit or 999
  335. sou.SoundId=id
  336. swait()
  337. sou:play()
  338. game:GetService("Debris"):AddItem(sou,999)
  339. end))
  340. end
  341.  
  342. function clerp(a,b,t)
  343. local qa = {QuaternionFromCFrame(a)}
  344. local qb = {QuaternionFromCFrame(b)}
  345. local ax, ay, az = a.x, a.y, a.z
  346. local bx, by, bz = b.x, b.y, b.z
  347. local _t = 1-t
  348. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  349. end
  350.  
  351. function QuaternionFromCFrame(cf)
  352. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  353. local trace = m00 + m11 + m22
  354. if trace > 0 then
  355. local s = math.sqrt(1 + trace)
  356. local recip = 0.5/s
  357. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  358. else
  359. local i = 0
  360. if m11 > m00 then
  361. i = 1
  362. end
  363. if m22 > (i == 0 and m00 or m11) then
  364. i = 2
  365. end
  366. if i == 0 then
  367. local s = math.sqrt(m00-m11-m22+1)
  368. local recip = 0.5/s
  369. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  370. elseif i == 1 then
  371. local s = math.sqrt(m11-m22-m00+1)
  372. local recip = 0.5/s
  373. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  374. elseif i == 2 then
  375. local s = math.sqrt(m22-m00-m11+1)
  376. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  377. end
  378. end
  379. end
  380.  
  381. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  382. local xs, ys, zs = x + x, y + y, z + z
  383. local wx, wy, wz = w*xs, w*ys, w*zs
  384. local xx = x*xs
  385. local xy = x*ys
  386. local xz = x*zs
  387. local yy = y*ys
  388. local yz = y*zs
  389. local zz = z*zs
  390. 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))
  391. end
  392.  
  393. function QuaternionSlerp(a, b, t)
  394. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  395. local startInterp, finishInterp;
  396. if cosTheta >= 0.0001 then
  397. if (1 - cosTheta) > 0.0001 then
  398. local theta = math.acos(cosTheta)
  399. local invSinTheta = 1/math.sin(theta)
  400. startInterp = math.sin((1-t)*theta)*invSinTheta
  401. finishInterp = math.sin(t*theta)*invSinTheta
  402. else
  403. startInterp = 1-t
  404. finishInterp = t
  405. end
  406. else
  407. if (1+cosTheta) > 0.0001 then
  408. local theta = math.acos(-cosTheta)
  409. local invSinTheta = 1/math.sin(theta)
  410. startInterp = math.sin((t-1)*theta)*invSinTheta
  411. finishInterp = math.sin(t*theta)*invSinTheta
  412. else
  413. startInterp = t-1
  414. finishInterp = t
  415. end
  416. end
  417. 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
  418. end
  419.  
  420. --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)
  421.  
  422.  
  423. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  424. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  425. end
  426.  
  427. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  428. if hit.Parent==nil then
  429. return
  430. end
  431. h=hit.Parent:FindFirstChild("Humanoid")
  432. for _,v in pairs(hit.Parent:children()) do
  433. if v:IsA("Humanoid") then
  434. h=v
  435. end
  436. end
  437. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  438. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  439. end
  440. if hit.Parent.className=="Hat" then
  441. hit=hit.Parent.Parent:findFirstChild("Head")
  442. end
  443. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  444. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  445. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  446. return
  447. end]]
  448. -- hs(hit,1.2)
  449. c=Instance.new("ObjectValue")
  450. c.Name="creator"
  451. c.Value=owner
  452. c.Parent=h
  453. game:GetService("Debris"):AddItem(c,.5)
  454. Damage=math.random(minim,maxim)
  455. -- h:TakeDamage(Damage)
  456. blocked=false
  457. block=hit.Parent:findFirstChild("Block")
  458. if block~=nil then
  459. print(block.className)
  460. if block.className=="NumberValue" then
  461. if block.Value>0 then
  462. blocked=true
  463. if decreaseblock==nil then
  464. block.Value=block.Value-1
  465. end
  466. end
  467. end
  468. if block.className=="IntValue" then
  469. if block.Value>0 then
  470. blocked=true
  471. if decreaseblock~=nil then
  472. block.Value=block.Value-1
  473. end
  474. end
  475. end
  476. end
  477. if blocked==false then
  478. -- h:TakeDamage(Damage)
  479. h.Health=h.Health-Damage
  480. showDamage(hit.Parent,Damage,.5,BrickColor.new("New Yeller"))
  481. else
  482. h.Health=h.Health-(Damage/2)
  483. showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue"))
  484. end
  485. if Type=="Knockdown" then
  486. hum=hit.Parent.Humanoid
  487. hum.PlatformStand=true
  488. coroutine.resume(coroutine.create(function(HHumanoid)
  489. swait(1)
  490. HHumanoid.PlatformStand=false
  491. end),hum)
  492. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  493. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  494. local bodvol=Instance.new("BodyVelocity")
  495. bodvol.velocity=angle*knockback
  496. bodvol.P=5000
  497. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  498. bodvol.Parent=hit
  499. rl=Instance.new("BodyAngularVelocity")
  500. rl.P=3000
  501. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  502. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  503. rl.Parent=hit
  504. game:GetService("Debris"):AddItem(bodvol,.5)
  505. game:GetService("Debris"):AddItem(rl,.5)
  506. elseif Type=="Normal" then
  507. vp=Instance.new("BodyVelocity")
  508. vp.P=500
  509. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  510. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  511. if KnockbackType==1 then
  512. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  513. elseif KnockbackType==2 then
  514. vp.velocity=Property.CFrame.lookVector*knockback
  515. end
  516. if knockback>0 then
  517. vp.Parent=hit.Parent.Torso
  518. end
  519. game:GetService("Debris"):AddItem(vp,.5)
  520. elseif Type=="Up" then
  521. local bodyVelocity=Instance.new("BodyVelocity")
  522. bodyVelocity.velocity=vt(0,60,0)
  523. bodyVelocity.P=5000
  524. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  525. bodyVelocity.Parent=hit
  526. game:GetService("Debris"):AddItem(bodyVelocity,2)
  527. rl=Instance.new("BodyAngularVelocity")
  528. rl.P=3000
  529. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  530. rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  531. rl.Parent=hit
  532. game:GetService("Debris"):AddItem(rl,.5)
  533. elseif Type=="Snare" then
  534. bp=Instance.new("BodyPosition")
  535. bp.P=2000
  536. bp.D=100
  537. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  538. bp.position=hit.Parent.Torso.Position
  539. bp.Parent=hit.Parent.Torso
  540. game:GetService("Debris"):AddItem(bp,2)
  541. elseif Type=="Target" then
  542. if Targetting==false then
  543. ZTarget=hit.Parent.Torso
  544. coroutine.resume(coroutine.create(function(Part)
  545. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  546. swait(5)
  547. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  548. end),ZTarget)
  549. TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  550. targetgui=Instance.new("BillboardGui")
  551. targetgui.Parent=ZTarget
  552. targetgui.Size=UDim2.new(10,100,10,100)
  553. targ=Instance.new("ImageLabel")
  554. targ.Parent=targetgui
  555. targ.BackgroundTransparency=1
  556. targ.Image="rbxassetid://4834067"
  557. targ.Size=UDim2.new(1,0,1,0)
  558. cam.CameraType="Scriptable"
  559. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  560. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  561. workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  562. Targetting=true
  563. RocketTarget=ZTarget
  564. for i=1,Property do
  565. --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  566. if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  567. swait()
  568. end
  569. --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
  570. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  571. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  572. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  573. end
  574. Targetting=false
  575. RocketTarget=nil
  576. targetgui.Parent=nil
  577. cam.CameraType="Custom"
  578. end
  579. end
  580. debounce=Instance.new("BoolValue")
  581. debounce.Name="DebounceHit"
  582. debounce.Parent=hit.Parent
  583. debounce.Value=true
  584. game:GetService("Debris"):AddItem(debounce,Delay)
  585. c=Instance.new("ObjectValue")
  586. c.Name="creator"
  587. c.Value=Player
  588. c.Parent=h
  589. game:GetService("Debris"):AddItem(c,.5)
  590. CRIT=false
  591. hitDeb=true
  592. AttackPos=6
  593. end
  594. end
  595.  
  596. showDamage=function(Char,Dealt,du,Color)
  597. m=Instance.new("Model")
  598. m.Name=tostring(Dealt)
  599. h=Instance.new("Humanoid")
  600. h.Health=0
  601. h.MaxHealth=0
  602. h.Parent=m
  603. c=Instance.new("Part")
  604. c.Transparency=0
  605. c.BrickColor=Color
  606. c.Name="Head"
  607. c.TopSurface=0
  608. c.BottomSurface=0
  609. c.formFactor="Plate"
  610. c.Size=Vector3.new(1,.4,2)
  611. ms=Instance.new("CylinderMesh")
  612. ms.Scale=Vector3.new(.8,.8,.8)
  613. if CRIT==true then
  614. ms.Scale=Vector3.new(1,1.25,2)
  615. end
  616. ms.Parent=c
  617. c.Reflectance=0
  618. Instance.new("BodyGyro").Parent=c
  619. c.Parent=m
  620. if Char:findFirstChild("Head")~=nil then
  621. c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  622. elseif Char.Parent:findFirstChild("Head")~=nil then
  623. c.CFrame=CFrame.new(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0))
  624. end
  625. f=Instance.new("BodyPosition")
  626. f.P=2000
  627. f.D=100
  628. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  629. f.position=c.Position+Vector3.new(0,3,0)
  630. f.Parent=c
  631. game:GetService("Debris"):AddItem(m,.5+du)
  632. c.CanCollide=false
  633. m.Parent=workspace
  634. c.CanCollide=false
  635. end
  636.  
  637. HandleA=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","HandleA",Vector3.new(0.400000006, 0.200000003, 0.200000003))
  638. HandleAweld=weld(m,Character["Right Arm"],HandleA,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.14440918e-005, 0, 0.800000191, -0.999999821, -2.98023188e-008, 0, 0, 0, 1, -2.98023224e-008, 0.999999702, 0))
  639. mesh("SpecialMesh",HandleA,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=3270017",Vector3.new(0, 0, 0),Vector3.new(1.22000003, 1.11999989, 1.48000002))
  640. MagicPrtA=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","MagicPrtA",Vector3.new(0.400000066, 0.200000003, 0.400000006))
  641. MagicPrtAweld=weld(m,HandleA,MagicPrtA,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -0.100000858, 3.81469727e-006, 0.999999642, -2.98023064e-008, 2.98023188e-008, 2.98023064e-008, -4.47034836e-008, -0.999999285, 2.98023188e-008, 0.999999404, -2.98023153e-008))
  642. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Hot pink","Part",Vector3.new(0.220000014, 0.200000003, 0.200000003))
  643. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.599983215, -1.0995748, 0.200019836, 0.999999821, -5.43913802e-006, 3.44865896e-008, -3.44864155e-008, 3.01454435e-008, 0.999999344, -5.43913711e-006, -1, 3.01452339e-008))
  644. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  645. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Hot pink","Part",Vector3.new(0.400000006, 0.200000003, 0.200000003))
  646. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599998951, 0, -0.600002289, -2.98023224e-008, 0, 0.999999821, 0, 1, 0, -0.999999821, 0, -2.98023224e-008))
  647. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=3270017",Vector3.new(0, 0, 0),Vector3.new(0.539999962, 0.539999962, 1.48000002))
  648. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 1.20000005, 1))
  649. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.600006104, -0.599998951, 0, -0.999999821, 0, -2.98023224e-008, -2.98023188e-008, 0, 0.999999702, 0, 1, 0))
  650. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  651. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.599983215, -1.29950213, 0.400028229, 0.999999523, -6.69091787e-006, 3.448665e-008, -3.44863018e-008, 3.01455501e-008, 0.999993145, -6.69091651e-006, -0.999999702, 3.0145106e-008))
  652. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  653. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.600000024))
  654. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599973679, 0.100389957, -2.67028809e-005, -0.999999821, 7.28699251e-006, -2.98029086e-008, -2.98028944e-008, 7.16782753e-013, 0.999999344, 7.28699115e-006, 1, -4.99611745e-013))
  655. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Hot pink","Part",Vector3.new(0.220000014, 0.200000003, 0.200000003))
  656. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.599981308, 0.0995743275, 0.19997406, 0.999999344, 5.36441803e-006, -3.42694264e-008, -4.46758364e-009, 5.93965268e-008, -0.999999225, -5.54323105e-006, 0.999999881, 5.9397351e-008))
  657. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  658. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  659. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.599973679, -0.100358725, 0.399974823, 0.999999464, -7.28698978e-006, -2.98017078e-008, -2.98017504e-008, -2.82443882e-013, -0.999998987, 7.28699115e-006, 1, -4.99611745e-013))
  660. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  661. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Hot pink","Part",Vector3.new(0.220000014, 0.200000003, 0.200000003))
  662. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599981308, 0.0995743275, 0.200027466, -0.999999523, -5.43913802e-006, -8.94069458e-008, 5.96046235e-008, 3.01454435e-008, -0.999999225, 5.4391362e-006, -1, -3.01443492e-008))
  663. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  664. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  665. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599994659, -1.29949927, 0.399971008, -0.999999821, 6.75052434e-006, -2.98028091e-008, -2.98025888e-008, 1.03027981e-012, 0.99999243, 6.75052297e-006, 1, -8.29105447e-013))
  666. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  667. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  668. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599975586, -0.100389719, 0.400028229, -0.999999225, 7.25718564e-006, -8.9407493e-008, 8.9407493e-008, -1.14667997e-012, -0.999998987, -7.21248216e-006, -0.999999583, 5.01831974e-013))
  669. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  670. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Hot pink","Part",Vector3.new(0.220000014, 0.799999952, 0.200000003))
  671. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599983215, -0.599738359, -0.200023651, -0.999999821, 6.83996359e-006, -2.98027985e-008, -2.98027842e-008, 7.42544481e-013, 0.999999344, 6.83996223e-006, 1, -5.38696854e-013))
  672. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Hot pink","Part",Vector3.new(0.220000014, 0.200000003, 0.200000003))
  673. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599979401, -1.0995748, 0.199981689, -0.999999642, 5.46872616e-006, -2.51180481e-008, -2.51182009e-008, -3.01454435e-008, 0.999999344, 5.46872525e-006, 0.999999821, 3.01455607e-008))
  674. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  675. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Hot pink","Part",Vector3.new(0.220000014, 0.799999952, 0.200000003))
  676. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599994659, -0.599813223, 0.199977875, -0.999999821, 4.69404995e-006, -2.98026279e-008, -2.98026137e-008, 5.29311675e-013, 0.999999344, 4.69404904e-006, 1, -3.89419237e-013))
  677. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Hot pink","Part",Vector3.new(0.400000006, 0.220000014, 0.200000003))
  678. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.599994659, 0.600000381, 0, 2.98012424e-008, -4.69401448e-006, -0.999994099, 0.999996483, -4.54851326e-013, 2.98017682e-008, 2.14393451e-011, -0.999997139, 4.69402175e-006))
  679. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  680. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.600000024))
  681. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599973679, -1.29961014, -2.67028809e-005, -0.999999821, 7.28699251e-006, -2.98029086e-008, -2.98028944e-008, 7.16782753e-013, 0.999999344, 7.28699115e-006, 1, -4.99611745e-013))
  682. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Hot pink","Part",Vector3.new(0.220000014, 0.200000003, 0.200000003))
  683. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599990845, -0.0995154381, -3.05175781e-005, -0.999999821, 6.75052434e-006, -2.9802866e-008, -2.98028517e-008, 6.63480122e-013, 0.999999344, 6.75052297e-006, 1, -4.62297626e-013))
  684. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.400000006, 0.200000003, 0.200000003))
  685. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0, -1.20000076, 0.999999642, 0, 0, 0, 1, 0, 0, 0, 0.999999642))
  686. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=3270017",Vector3.new(0, 0, 0),Vector3.new(1.22000003, 1.11999989, 1.48000002))
  687. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Hot pink","Part",Vector3.new(0.220000014, 0.200000003, 0.200000003))
  688. Partweld=weld(m,HandleA,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599990845, -1.09951615, -3.05175781e-005, -0.999999821, 6.75052434e-006, -2.9802866e-008, -2.98028517e-008, 6.63480122e-013, 0.999999344, 6.75052297e-006, 1, -4.62297626e-013))
  689.  
  690. HandleB=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","HandleB",Vector3.new(0.400000006, 0.200000003, 0.200000003))
  691. HandleBweld=weld(m,Character["Left Arm"],HandleB,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00098991394, 3.05175781e-005, 0.800000191, 0.999999464, 8.36810372e-008, -4.47034836e-008, -5.96046448e-008, 1.96981595e-008, -0.999999702, -8.36810443e-008, 0.999999702, 1.96981613e-008))
  692. mesh("SpecialMesh",HandleB,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=3270017",Vector3.new(0, 0, 0),Vector3.new(1.22000003, 1.11999989, 1.48000002))
  693. MagicPrtB=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Really black","MagicPrtB",Vector3.new(0.400000066, 0.200000003, 0.400000006))
  694. MagicPrtBweld=weld(m,HandleB,MagicPrtB,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00100708008, -0.100000858, 3.43322754e-005, -0.999999285, 8.94069316e-008, 8.36810301e-008, -8.36810017e-008, 2.50053187e-008, -0.999999285, -7.45057633e-008, -0.999999106, -1.01041664e-008))
  695. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.400000006, 0.200000003, 0.200000003))
  696. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0, -1.20000029, 0.999998927, -1.49011434e-008, 2.75411323e-014, -1.49011434e-008, 0.999999404, 7.10542736e-015, 2.75411323e-014, 7.10542736e-015, 0.999999642))
  697. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=3270017",Vector3.new(0, 0, 0),Vector3.new(1.22000003, 1.11999989, 1.48000002))
  698. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Hot pink","Part",Vector3.new(0.220000014, 0.200000003, 0.200000003))
  699. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599981308, -1.09957433, 0.199989319, -0.999999285, 5.52832898e-006, -2.51180712e-008, -2.51181635e-008, -3.01454222e-008, 0.999999344, 5.51342691e-006, 0.999999523, 3.01455501e-008))
  700. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  701. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 1.20000005, 1))
  702. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.600004196, -0.599998713, 0, -0.999999166, -3.55271368e-015, -2.98023508e-008, -2.98022798e-008, 8.8817842e-015, 0.999999702, -1.49011434e-008, 0.999999404, 7.10542736e-015))
  703. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Hot pink","Part",Vector3.new(0.220000014, 0.799999952, 0.200000003))
  704. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.600004196, -0.599812984, 0.199977875, -0.999999344, 4.69386441e-006, -2.9802635e-008, -2.98025782e-008, 5.54223334e-013, 0.999999344, 4.67896234e-006, 0.999999583, -3.92574862e-013))
  705. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Hot pink","Part",Vector3.new(0.220000014, 0.200000003, 0.200000003))
  706. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.599975586, 0.0995745659, 0.19997406, 0.999998689, 5.24520738e-006, -3.42694086e-008, -4.46761206e-009, 5.93964842e-008, -0.999999225, -5.52832762e-006, 0.999999523, 5.9397351e-008))
  707. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  708. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  709. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599988937, -1.29949903, 0.399974823, -0.999999166, 6.76512536e-006, -2.98028446e-008, -2.98025498e-008, 1.02673425e-012, 0.99999243, 6.75022238e-006, 0.999999404, -8.2600593e-013))
  710. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  711. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  712. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.599973679, -0.100358725, 0.399974823, 0.999998868, -7.40587484e-006, -2.98016953e-008, -2.98017575e-008, -2.93098879e-013, -0.999998987, 7.28666373e-006, 0.999999344, -4.92050845e-013))
  713. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  714. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Hot pink","Part",Vector3.new(0.220000014, 0.200000003, 0.200000003))
  715. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599992752, -0.0995156765, -3.43322754e-005, -0.999999166, 6.76512536e-006, -2.98029015e-008, -2.98027913e-008, 6.73239242e-013, 0.999999344, 6.75022238e-006, 0.999999404, -4.56523708e-013))
  716. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.600000024))
  717. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599983215, -1.2996099, -2.67028809e-005, -0.999999106, 7.30156671e-006, -2.98029335e-008, -2.98028553e-008, 7.35411732e-013, 0.999999344, 7.28666373e-006, 0.999999344, -4.92050845e-013))
  718. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Hot pink","Part",Vector3.new(0.220000014, 0.200000003, 0.200000003))
  719. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.599988937, -1.09957433, 0.200023651, 0.999999285, -5.52832898e-006, 3.44866038e-008, -3.44863622e-008, 3.01454222e-008, 0.999999344, -5.51342691e-006, -0.999999523, 3.0145241e-008))
  720. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  721. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Hot pink","Part",Vector3.new(0.400000006, 0.200000003, 0.200000003))
  722. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599998713, 0, -0.600000381, -2.98022726e-008, 1.77635684e-014, 0.999999821, -1.49011434e-008, 0.999999404, 7.10542736e-015, -0.999999166, -3.55271368e-015, -2.98023508e-008))
  723. mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=3270017",Vector3.new(0, 0, 0),Vector3.new(0.539999962, 0.539999962, 1.48000002))
  724. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  725. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.599985123, -1.29950166, 0.400032043, 0.999998868, -6.85453233e-006, 3.44866748e-008, -3.44862556e-008, 3.01455572e-008, 0.999993145, -6.83962935e-006, -0.999999106, 3.01451237e-008))
  726. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  727. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  728. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599977493, -0.100389481, 0.400024414, -0.999998808, 7.33136903e-006, -8.94075214e-008, 8.94074077e-008, -1.15818466e-012, -0.999998987, -7.28666373e-006, -0.999999046, 5.22248911e-013))
  729. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  730. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Hot pink","Part",Vector3.new(0.220000014, 0.799999952, 0.200000003))
  731. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599985123, -0.599738121, -0.200023651, -0.999999106, 6.95884e-006, -2.98028127e-008, -2.98027487e-008, 7.47846229e-013, 0.999999344, 6.94393748e-006, 0.999999344, -5.43565193e-013))
  732. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Hot pink","Part",Vector3.new(0.220000014, 0.200000003, 0.200000003))
  733. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599985123, 0.0995743275, 0.200031281, -0.999998987, -5.30481157e-006, -8.94069601e-008, 5.9604556e-008, 3.01454079e-008, -0.999999225, 5.4985253e-006, -0.999999583, -3.01443599e-008))
  734. mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  735. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Hot pink","Part",Vector3.new(0.400000006, 0.220000014, 0.200000003))
  736. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.599994421, 0.599998474, -3.81469727e-006, 2.98012459e-008, -4.69401175e-006, -0.999994099, 0.999996006, -1.19209062e-007, 2.98017913e-008, -2.98018108e-008, -0.999996841, 4.69402084e-006))
  737. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  738. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Hot pink","Part",Vector3.new(0.220000014, 0.200000003, 0.200000003))
  739. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599990845, -1.09951591, -3.43322754e-005, -0.999999166, 6.76512536e-006, -2.98029015e-008, -2.98027913e-008, 6.73239242e-013, 0.999999344, 6.75022238e-006, 0.999999404, -4.56523708e-013))
  740. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.600000024))
  741. Partweld=weld(m,HandleB,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599983215, 0.100389719, -2.67028809e-005, -0.999999106, 7.30156671e-006, -2.98029335e-008, -2.98028553e-008, 7.35411732e-013, 0.999999344, 7.28666373e-006, 0.999999344, -4.92050845e-013))
  742.  
  743. local PE1 = Instance.new("ParticleEmitter",MagicPrtA)
  744. PE1.Color = ColorSequence.new(Color3.new (255, 0, 127))
  745. PE1.LightEmission = NumberSequence.new(0.2)
  746. PE1.Size = NumberSequence.new(1.1)
  747. PE1.Texture = "http://www.roblox.com/asset/?id=258908759"
  748. PE1.Lifetime = NumberRange.new(.5)
  749. PE1.Rate = 10
  750. PE1.Transparency = NumberSequence.new(0.2)
  751. PE1.LightEmission = NumberSequence.new(0.2)
  752. PE1.Rotation = NumberRange.new(100)
  753. PE1.Speed = NumberRange.new(0)
  754. PE1.RotSpeed = NumberRange.new(100)
  755.  
  756. local PE2 = Instance.new("ParticleEmitter",MagicPrtB)
  757. PE2.Color = ColorSequence.new(Color3.new (255, 0, 127))
  758. PE2.LightEmission = NumberSequence.new(0.2)
  759. PE2.Size = NumberSequence.new(1.1)
  760. PE2.Texture = "http://www.roblox.com/asset/?id=258908759"
  761. PE2.Lifetime = NumberRange.new(.5)
  762. PE2.Rate = 10
  763. PE2.Transparency = NumberSequence.new(0.2)
  764. PE2.LightEmission = NumberSequence.new(0.2)
  765. PE2.Rotation = NumberRange.new(100)
  766. PE2.Speed = NumberRange.new(0)
  767. PE2.RotSpeed = NumberRange.new(100)
  768.  
  769. so("http://www.roblox.com/asset/?id=159257147",workspace,1,1)
  770.  
  771. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  772. local prt=part(3,workspace,"SmoothPlastic",0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  773. prt.Anchored=true
  774. prt.CFrame=cframe
  775. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  776. game:GetService("Debris"):AddItem(prt,2)
  777. coroutine.resume(coroutine.create(function(Part,Mesh)
  778. for i=0,1,delay do
  779. swait()
  780. Part.CFrame=Part.CFrame
  781. Part.Transparency=i
  782. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  783. end
  784. Part.Parent=nil
  785. end),prt,msh)
  786. end
  787. --example: MagicCircle(BrickColor.new(""),ExamplePart.CFrame,0,0,0,0,0,0,0.01)
  788.  
  789. MagicCircle(BrickColor.new("Hot pink"),Torso.CFrame,1,1,1,5,5,5,0.01)
  790.  
  791. function MagicRing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  792. local prt=part(3,workspace,"SmoothPlastic",0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  793. prt.Anchored=true
  794. prt.CFrame=cframe
  795. local PE1 = Instance.new("ParticleEmitter",prt)
  796. PE1.Color = ColorSequence.new(Color3.new (255, 0, 127))
  797. PE1.LightEmission = NumberSequence.new(0.2)
  798. PE1.Size = NumberSequence.new(2)
  799. PE1.Texture = "http://www.roblox.com/asset/?id=258908759"
  800. PE1.Lifetime = NumberRange.new(5)
  801. PE1.Rate = 10
  802. PE1.Transparency = NumberSequence.new(0.2)
  803. PE1.LightEmission = NumberSequence.new(0.2)
  804. PE1.Speed = NumberRange.new(0)
  805. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1))
  806. game:GetService("Debris"):AddItem(prt,2)
  807. coroutine.resume(coroutine.create(function(Part,Mesh,num)
  808. for i=0,1,delay do
  809. swait()
  810. Part.Transparency=i
  811. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  812. end
  813. Part.Parent=nil
  814. end),prt,msh,(math.random(0,2)+math.random())/5)
  815. end
  816. --example: MagicRing(BrickColor.new(""),ExamplePart.CFrame,0,0,0,0,0,0,0.01)
  817.  
  818. function MMMAGIC(part,x1,y1,z1,x2,y2,z2,color)
  819. local msh1 = it("BlockMesh")
  820. msh1.Scale = vt(0.5,0.5,0.5)
  821. local S=it("Part")
  822. S.Material = "SmoothPlastic"
  823. S.Name="Effect"
  824. S.formFactor=0
  825. S.Size=vt(x1,y1,z1)
  826. S.BrickColor=color
  827. S.Reflectance = 0
  828. S.TopSurface=0
  829. S.BottomSurface=0
  830. S.Transparency=0
  831. S.Anchored=true
  832. S.CanCollide=false
  833. S.CFrame=part.CFrame*cf(x2,y2,z2)*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  834. S.Parent=workspace
  835. msh1.Parent = S
  836. coroutine.resume(coroutine.create(function(Part,CF) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + vt(0.1,0.1,0.1) Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) Part.Transparency=i*.1 wait() end Part.Parent=nil end),S,S.CFrame)
  837. end
  838.  
  839. function attackone()
  840. attack = true
  841. for i = 0,1,0.1 do
  842. swait()
  843. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-50)),.8)
  844. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(50)),.8)
  845. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-20)),.8)
  846. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.5, -.5) * angles(math.rad(70), math.rad(0), math.rad(50)),.8)
  847. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(100),math.rad(-10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.8)
  848. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-70),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.8)
  849. end
  850. for i = 0,1,0.1 do
  851. swait()
  852. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(80)),.8)
  853. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-80)),.8)
  854. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(70)),.8)
  855. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-20)),.8)
  856. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(70),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.8)
  857. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-100),math.rad(10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.8)
  858. end
  859. for i = 0,1,1 do
  860. so("http://www.roblox.com/asset/?id=185295584",workspace,1,1)
  861. MagicCircle(BrickColor.new("Hot pink"),MagicPrtA.CFrame,0.1,0.1,0.1,0.8,0.8,0.8,0.06)
  862. MagicRing(BrickColor.new("Hot pink"),MagicPrtA.CFrame,0.1,0.1,0.1,1,1,1,0.06)
  863. MMMAGIC(MagicPrtA,2,2,2,0,0,0,BrickColor.new("Hot pink"))
  864. end
  865. for i = 0,1,0.2 do
  866. swait()
  867. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(80)),.8)
  868. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-80)),.8)
  869. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(70)),.8)
  870. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-20)),.8)
  871. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(70),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.8)
  872. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-100),math.rad(10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.8)
  873. end
  874. attack = false
  875. end
  876.  
  877. function attacktwo()
  878. attack = true
  879. for i = 0,1,0.1 do
  880. swait()
  881. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(80)),.8)
  882. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-80)),.8)
  883. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(30)),.8)
  884. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(120), math.rad(0), math.rad(-30)),.8)
  885. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(70),math.rad(-10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.8)
  886. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-100),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.8)
  887. end
  888. for i = 0,1,0.1 do
  889. swait()
  890. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-50)),.8)
  891. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(50)),.8)
  892. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(30)),.8)
  893. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-50)),.8)
  894. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(100),math.rad(-10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.8)
  895. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-70),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.8)
  896. end
  897. for i = 0,1,1 do
  898. so("http://www.roblox.com/asset/?id=185295584",workspace,1,1)
  899. MagicCircle(BrickColor.new("Hot pink"),MagicPrtB.CFrame,0.1,0.1,0.1,0.8,0.8,0.8,0.06)
  900. MagicRing(BrickColor.new("Hot pink"),MagicPrtB.CFrame,0.1,0.1,0.1,1,1,1,0.06)
  901. MMMAGIC(MagicPrtB,2,2,2,0,0,0,BrickColor.new("Hot pink"))
  902. end
  903. for i = 0,1,0.2 do
  904. swait()
  905. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-50)),.8)
  906. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(50)),.8)
  907. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(30)),.8)
  908. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-50)),.8)
  909. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(100),math.rad(-10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.8)
  910. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-70),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.8)
  911. end
  912. attack = false
  913. end
  914.  
  915. function attackthree()
  916. attack = true
  917. for i = 0,1,0.1 do
  918. swait()
  919. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.8)
  920. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.8)
  921. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(20)),.8)
  922. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-20)),.8)
  923. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(80),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.8)
  924. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-80),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.8)
  925. end
  926. for i = 0,1,0.1 do
  927. swait()
  928. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(0)),.8)
  929. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.8)
  930. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -.5) * angles(math.rad(90), math.rad(0), math.rad(-70)),.8)
  931. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, -.5) * angles(math.rad(90), math.rad(0), math.rad(70)),.8)
  932. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(80),math.rad(10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.8)
  933. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-80),math.rad(-10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.8)
  934. end
  935. for i = 0,1,1 do
  936. so("http://www.roblox.com/asset/?id=185302814",workspace,1,1)
  937. MagicCircle(BrickColor.new("Hot pink"),Torso.CFrame*cf(0,0,-5),0.5,0.5,0.5,2,2,2,0.06)
  938. MagicRing(BrickColor.new("Hot pink"),Torso.CFrame*cf(0,0,-5),0.5,0.5,0.5,2,2,2,0.06)
  939. end
  940. for i = 0,1,0.2 do
  941. swait()
  942. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(0)),.8)
  943. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.8)
  944. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -.5) * angles(math.rad(90), math.rad(0), math.rad(-70)),.8)
  945. LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, -.5) * angles(math.rad(90), math.rad(0), math.rad(70)),.8)
  946. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(80),math.rad(10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.8)
  947. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-80),math.rad(-10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.8)
  948. end
  949. attack = false
  950. end
  951.  
  952. mouse.Button1Down:connect(function()
  953. if attacktype == 1 then
  954. attacktype = 2
  955. attackone()
  956. elseif attacktype == 2 then
  957. attacktype = 3
  958. attacktwo()
  959. elseif attacktype == 3 then
  960. attacktype = 1
  961. attackthree()
  962. end
  963. end)
  964.  
  965. mouse.KeyDown:connect(function(k)
  966. k=k:lower()
  967.  
  968. end)
  969.  
  970.  
  971. local sine = 0
  972. local change = 1
  973. local val = 0
  974.  
  975. while true do
  976. swait()
  977. sine = sine + change
  978. local torvel=(RootPart.Velocity*Vector3.new(1,0,2)).magnitude
  979. local velderp=RootPart.Velocity.y
  980. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  981. if equipped==true or equipped==false then
  982. if attack==false then
  983. idle=idle+1
  984. else
  985. idle=0
  986. end
  987. if idle>=500 then
  988. if attack==false then
  989. --Sheath()
  990. end
  991. end
  992. if RootPart.Velocity.y > 1 and hitfloor==nil then
  993. Anim="Jump"
  994. if attack==false then
  995. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.8)
  996. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-20),math.rad(0),math.rad(0)),.8)
  997. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(40)),.8)
  998. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-40)),.8)
  999. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(-10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.8)
  1000. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.8)
  1001. end
  1002. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  1003. Anim="Fall"
  1004. if attack==false then
  1005. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.8)
  1006. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(0)),.8)
  1007. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(70)),.8)
  1008. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-70)),.8)
  1009. RH.C0=clerp(RH.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)),.8)
  1010. 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)),.8)
  1011. end
  1012. elseif torvel<1 and hitfloor~=nil then
  1013. Anim="Idle"
  1014. if attack==false then
  1015. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-30)),.8)
  1016. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(30)),.8)
  1017. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(20)),.8)
  1018. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)),.8)
  1019. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(100),math.rad(-10))*angles(math.rad(-5),math.rad(0),math.rad(0)),.8)
  1020. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-70),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.8)
  1021. end
  1022. elseif torvel>2 and hitfloor~=nil then
  1023. Anim="Walk"
  1024. if attack==false then
  1025. change=3
  1026. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(0)),.8)
  1027. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.8)
  1028. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-90*math.cos(sine/1)), math.rad(0), math.rad(15)),.8)
  1029. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90*math.cos(sine/1)), math.rad(0), math.rad(-15)),.8)
  1030. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(-10))*angles(math.rad(-3),math.rad(0),math.rad(0)),.8)
  1031. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(10))*angles(math.rad(-3),math.rad(0),math.rad(0)),.8)
  1032. end
  1033. end
  1034. end
  1035. if #Effects>0 then
  1036. --table.insert(Effects,{prt,"Block1",delay})
  1037. for e=1,#Effects do
  1038. if Effects[e]~=nil then
  1039. --for j=1,#Effects[e] do
  1040. local Thing=Effects[e]
  1041. if Thing~=nil then
  1042. local Part=Thing[1]
  1043. local Mode=Thing[2]
  1044. local Delay=Thing[3]
  1045. local IncX=Thing[4]
  1046. local IncY=Thing[5]
  1047. local IncZ=Thing[6]
  1048. if Thing[1].Transparency<=1 then
  1049. if Thing[2]=="Block1" then
  1050. Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1051. Mesh=Thing[1].Mesh
  1052. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1053. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1054. elseif Thing[2]=="Cylinder" then
  1055. Mesh=Thing[1].Mesh
  1056. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1057. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1058. elseif Thing[2]=="Blood" then
  1059. Mesh=Thing[7]
  1060. Thing[1].CFrame=Thing[1].CFrame*cf(0,.5,0)
  1061. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1062. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1063. elseif Thing[2]=="Elec" then
  1064. Mesh=Thing[1].Mesh
  1065. Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9])
  1066. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1067. elseif Thing[2]=="Disappear" then
  1068. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1069. end
  1070. else
  1071. Part.Parent=nil
  1072. table.remove(Effects,e)
  1073. end
  1074. end
  1075. --end
  1076. end
  1077. end
  1078. end
  1079. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement