Advertisement
Darkraiii7

Untitled

Nov 19th, 2018
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 67.73 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. warn'any options for magic'
  87. plr = owner
  88. char = plr.Character
  89. hum = char.Humanoid
  90. local cam = game.Workspace.CurrentCamera
  91. t = char.Torso
  92. h = char.Head
  93. ra = char["Right Arm"]
  94. la = char["Left Arm"]
  95. rl = char["Right Leg"]
  96. ll = char["Left Leg"]
  97. tors = char.Torso
  98. lleg = char["Left Leg"]
  99. root = char.HumanoidRootPart
  100. hed = char.Head
  101. rleg = char["Right Leg"]
  102. rarm = char["Right Arm"]
  103. larm = char["Left Arm"]
  104. vt = Vector3.new
  105. bc = BrickColor.new
  106. br = BrickColor.random
  107. it = Instance.new
  108. cf = CFrame.new
  109.  
  110.  
  111. local Create = LoadLibrary("RbxUtility").Create
  112.  
  113. CFuncs = {
  114. ["Part"] = {
  115. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  116. local Part = Create("Part"){
  117. Parent = Parent,
  118. Reflectance = Reflectance,
  119. Transparency = Transparency,
  120. CanCollide = false,
  121. Locked = true,
  122. BrickColor = BrickColor.new(tostring(BColor)),
  123. Name = Name,
  124. Size = Size,
  125. Material = Material,
  126. }
  127. RemoveOutlines(Part)
  128. return Part
  129. end;
  130. };
  131.  
  132. ["Mesh"] = {
  133. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  134. local Msh = Create(Mesh){
  135. Parent = Part,
  136. Offset = OffSet,
  137. Scale = Scale,
  138. }
  139. if Mesh == "SpecialMesh" then
  140. Msh.MeshType = MeshType
  141. Msh.MeshId = MeshId
  142. end
  143. return Msh
  144. end;
  145. };
  146.  
  147. ["Mesh"] = {
  148. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  149. local Msh = Create(Mesh){
  150. Parent = Part,
  151. Offset = OffSet,
  152. Scale = Scale,
  153. }
  154. if Mesh == "SpecialMesh" then
  155. Msh.MeshType = MeshType
  156. Msh.MeshId = MeshId
  157. end
  158. return Msh
  159. end;
  160. };
  161.  
  162. ["Weld"] = {
  163. Create = function(Parent, Part0, Part1, C0, C1)
  164. local Weld = Create("Weld"){
  165. Parent = Parent,
  166. Part0 = Part0,
  167. Part1 = Part1,
  168. C0 = C0,
  169. C1 = C1,
  170. }
  171. return Weld
  172. end;
  173. };
  174.  
  175. ["Sound"] = {
  176. Create = function(id, par, vol, pit)
  177. coroutine.resume(coroutine.create(function()
  178. local S = Create("Sound"){
  179. Volume = vol,
  180. Pitch = pit or 1,
  181. SoundId = id,
  182. Parent = par or workspace,
  183. }
  184. wait()
  185. S:play()
  186. game:GetService("Debris"):AddItem(S, 10)
  187. end))
  188. end;
  189. };
  190.  
  191. ["ParticleEmitter"] = {
  192. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  193. local fp = Create("ParticleEmitter"){
  194. Parent = Parent,
  195. Color = ColorSequence.new(Color1, Color2),
  196. LightEmission = LightEmission,
  197. Size = Size,
  198. Texture = Texture,
  199. Transparency = Transparency,
  200. ZOffset = ZOffset,
  201. Acceleration = Accel,
  202. Drag = Drag,
  203. LockedToPart = LockedToPart,
  204. VelocityInheritance = VelocityInheritance,
  205. EmissionDirection = EmissionDirection,
  206. Enabled = Enabled,
  207. Lifetime = LifeTime,
  208. Rate = Rate,
  209. Rotation = Rotation,
  210. RotSpeed = RotSpeed,
  211. Speed = Speed,
  212. VelocitySpread = VelocitySpread,
  213. }
  214. return fp
  215. end;
  216. };
  217.  
  218. CreateTemplate = {
  219.  
  220. };
  221. }
  222.  
  223.  
  224.  
  225. New = function(Object, Parent, Name, Data)
  226. local Object = Instance.new(Object)
  227. for Index, Value in pairs(Data or {}) do
  228. Object[Index] = Value
  229. end
  230. Object.Parent = Parent
  231. Object.Name = Name
  232. return Object
  233. end
  234. local m = Instance.new("Model",char)
  235.  
  236. function CreatePart(parent,transparency,reflectance,material,brickcolor)
  237. local p = Instance.new("Part")
  238. p.Parent = parent
  239. p.Size = Vector3.new(1,1,1)
  240. p.Transparency = transparency
  241. p.Reflectance = reflectance
  242. p.CanCollide = false
  243. p.Locked = true
  244. p.BrickColor = brickcolor
  245. p.Material = material
  246. return p
  247. end
  248.  
  249. function CreateMesh(parent,meshtype,x1,y1,z1)
  250. local mesh = Instance.new("SpecialMesh",parent)
  251. mesh.MeshType = meshtype
  252. mesh.Scale = Vector3.new(x1,y1,z1)
  253. return mesh
  254. end
  255.  
  256. function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
  257. local mesh = Instance.new("SpecialMesh",parent)
  258. mesh.MeshType = "FileMesh"
  259. mesh.MeshId = meshid
  260. mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
  261. mesh.Scale = Vector3.new(x1,y1,z1)
  262. mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
  263. return mesh
  264. end
  265.  
  266. function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
  267. local weld = Instance.new("Weld")
  268. weld.Parent = parent
  269. weld.Part0 = part0
  270. weld.Part1 = part1
  271. weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
  272. weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
  273. return weld
  274. end
  275.  
  276.  
  277. local sorb = CreatePart(m,1,1,"SmoothPlastic",BrickColor.random())
  278. CreateWeld(sorb,rarm,sorb,0,2,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  279. local sorb2 = CreatePart(m,1,1,"SmoothPlastic",BrickColor.random())
  280. CreateWeld(sorb2,larm,sorb2,0,2,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
  281.  
  282. Player=owner
  283. Character=Player.Character
  284. PlayerGui=Player.PlayerGui
  285. Backpack=Player.Backpack
  286. Torso=Character.Torso
  287. Head=Character.Head
  288. Humanoid=Character.Humanoid
  289. m=Instance.new('Model',Character)
  290. LeftArm=Character["Left Arm"]
  291. LeftLeg=Character["Left Leg"]
  292. RightArm=Character["Right Arm"]
  293. RightLeg=Character["Right Leg"]
  294. LS=Torso["Left Shoulder"]
  295. LH=Torso["Left Hip"]
  296. RS=Torso["Right Shoulder"]
  297. RH=Torso["Right Hip"]
  298. Face = Head.face
  299. Neck=Torso.Neck
  300. it=Instance.new
  301. attacktype=1
  302. vt=Vector3.new
  303. cf=CFrame.new
  304. euler=CFrame.fromEulerAnglesXYZ
  305. angles=CFrame.Angles
  306. cloaked=false
  307. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  308. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  309. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  310. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  311. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  312. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  313. RootPart=Character.HumanoidRootPart
  314. RootJoint=RootPart.RootJoint
  315. RootCF=euler(-1.57,0,3.14)
  316. attack = false
  317. attackdebounce = false
  318. deb=false
  319. equipped=true
  320. hand=false
  321. MMouse=nil
  322. combo=0
  323. mana=0
  324. trispeed=.2
  325. attackmode='none'
  326. local idle=0
  327. local Anim="Idle"
  328. local Effects={}
  329. local gun=false
  330. local shoot=false
  331. local sine = 0
  332. local change = 1
  333. player=nil
  334.  
  335.  
  336. --save shoulders
  337. RSH, LSH=nil, nil
  338. --welds
  339. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  340. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  341. LH=Torso["Left Hip"]
  342. RH=Torso["Right Hip"]
  343. TorsoColor=Torso.BrickColor
  344. function NoOutline(Part)
  345. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  346. end
  347. player=Player
  348. ch=Character
  349. RSH=ch.Torso["Right Shoulder"]
  350. LSH=ch.Torso["Left Shoulder"]
  351. --
  352. RSH.Parent=nil
  353. LSH.Parent=nil
  354. --
  355. RW.Name="Right Shoulder"
  356. RW.Part0=ch.Torso
  357. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  358. RW.C1=cf(0, 0.5, 0)
  359. RW.Part1=ch["Right Arm"]
  360. RW.Parent=ch.Torso
  361. --
  362. LW.Name="Left Shoulder"
  363. LW.Part0=ch.Torso
  364. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  365. LW.C1=cf(0, 0.5, 0)
  366. LW.Part1=ch["Left Arm"]
  367. LW.Parent=ch.Torso
  368.  
  369. local Stats=Instance.new("BoolValue")
  370. Stats.Name="Stats"
  371. Stats.Parent=Character
  372. local Atk=Instance.new("NumberValue")
  373. Atk.Name="Damage"
  374. Atk.Parent=Stats
  375. Atk.Value=1
  376. local Def=Instance.new("NumberValue")
  377. Def.Name="Defense"
  378. Def.Parent=Stats
  379. Def.Value=1
  380. local Speed=Instance.new("NumberValue")
  381. Speed.Name="Speed"
  382. Speed.Parent=Stats
  383. Speed.Value=1
  384. local Mvmt=Instance.new("NumberValue")
  385. Mvmt.Name="Movement"
  386. Mvmt.Parent=Stats
  387. Mvmt.Value=1
  388.  
  389. local donum=0
  390.  
  391.  
  392. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  393. local fp=it("Part")
  394. fp.formFactor=formfactor
  395. fp.Parent=parent
  396. fp.Reflectance=reflectance
  397. fp.Transparency=transparency
  398. fp.CanCollide=false
  399. fp.Locked=true
  400. fp.BrickColor=brickcolor
  401. fp.Name=name
  402. fp.Size=size
  403. fp.Position=Torso.Position
  404. NoOutline(fp)
  405. fp.Material="SmoothPlastic"
  406. fp:BreakJoints()
  407. return fp
  408. end
  409.  
  410. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  411. local mesh=it(Mesh)
  412. mesh.Parent=part
  413. if Mesh=="SpecialMesh" then
  414. mesh.MeshType=meshtype
  415. if meshid~="nil" then
  416. mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
  417. end
  418. end
  419. mesh.Offset=offset
  420. mesh.Scale=scale
  421. return mesh
  422. end
  423.  
  424. function weld(parent,part0,part1,c0)
  425. local weld=it("Weld")
  426. weld.Parent=parent
  427. weld.Part0=part0
  428. weld.Part1=part1
  429. weld.C0=c0
  430. return weld
  431. end
  432.  
  433. local Color1=Torso.BrickColor
  434.  
  435. local bodvel=Instance.new("BodyVelocity")
  436. local bg=Instance.new("BodyGyro")
  437.  
  438. function swait(num)
  439. if num==0 or num==nil then
  440. game:service'RunService'.Stepped:wait(0)
  441. else
  442. for i=0,num do
  443. game:service'RunService'.Stepped:wait(0)
  444. end
  445. end
  446. end
  447.  
  448.  
  449. so = function(id,par,vol,pit)
  450. coroutine.resume(coroutine.create(function()
  451. local sou = Instance.new("Sound",par or workspace)
  452. sou.Volume=vol
  453. sou.Pitch=pit or 1
  454. sou.SoundId=id
  455. swait()
  456. sou:play()
  457. game:GetService("Debris"):AddItem(sou,6)
  458. end))
  459. end
  460.  
  461. function clerp(a,b,t)
  462. local qa = {QuaternionFromCFrame(a)}
  463. local qb = {QuaternionFromCFrame(b)}
  464. local ax, ay, az = a.x, a.y, a.z
  465. local bx, by, bz = b.x, b.y, b.z
  466. local _t = 1-t
  467. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  468. end
  469.  
  470. function QuaternionFromCFrame(cf)
  471. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  472. local trace = m00 + m11 + m22
  473. if trace > 0 then
  474. local s = math.sqrt(1 + trace)
  475. local recip = 0.5/s
  476. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  477. else
  478. local i = 0
  479. if m11 > m00 then
  480. i = 1
  481. end
  482. if m22 > (i == 0 and m00 or m11) then
  483. i = 2
  484. end
  485. if i == 0 then
  486. local s = math.sqrt(m00-m11-m22+1)
  487. local recip = 0.5/s
  488. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  489. elseif i == 1 then
  490. local s = math.sqrt(m11-m22-m00+1)
  491. local recip = 0.5/s
  492. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  493. elseif i == 2 then
  494. local s = math.sqrt(m22-m00-m11+1)
  495. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  496. end
  497. end
  498. end
  499.  
  500. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  501. local xs, ys, zs = x + x, y + y, z + z
  502. local wx, wy, wz = w*xs, w*ys, w*zs
  503. local xx = x*xs
  504. local xy = x*ys
  505. local xz = x*zs
  506. local yy = y*ys
  507. local yz = y*zs
  508. local zz = z*zs
  509. 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))
  510. end
  511.  
  512. function QuaternionSlerp(a, b, t)
  513. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  514. local startInterp, finishInterp;
  515. if cosTheta >= 0.0001 then
  516. if (1 - cosTheta) > 0.0001 then
  517. local theta = math.acos(cosTheta)
  518. local invSinTheta = 1/math.sin(theta)
  519. startInterp = math.sin((1-t)*theta)*invSinTheta
  520. finishInterp = math.sin(t*theta)*invSinTheta
  521. else
  522. startInterp = 1-t
  523. finishInterp = t
  524. end
  525. else
  526. if (1+cosTheta) > 0.0001 then
  527. local theta = math.acos(-cosTheta)
  528. local invSinTheta = 1/math.sin(theta)
  529. startInterp = math.sin((t-1)*theta)*invSinTheta
  530. finishInterp = math.sin(t*theta)*invSinTheta
  531. else
  532. startInterp = t-1
  533. finishInterp = t
  534. end
  535. end
  536. 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
  537. end
  538.  
  539. local function CFrameFromTopBack(at, top, back)
  540. local right = top:Cross(back)
  541. return CFrame.new(at.x, at.y, at.z,
  542. right.x, top.x, back.x,
  543. right.y, top.y, back.y,
  544. right.z, top.z, back.z)
  545. end
  546.  
  547. function Triangle(a, b, c)
  548. local edg1 = (c-a):Dot((b-a).unit)
  549. local edg2 = (a-b):Dot((c-b).unit)
  550. local edg3 = (b-c):Dot((a-c).unit)
  551. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  552. a, b, c = a, b, c
  553. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  554. a, b, c = b, c, a
  555. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  556. a, b, c = c, a, b
  557. else
  558. assert(false, "unreachable")
  559. end
  560.  
  561. local len1 = (c-a):Dot((b-a).unit)
  562. local len2 = (b-a).magnitude - len1
  563. local width = (a + (b-a).unit*len1 - c).magnitude
  564.  
  565. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  566.  
  567. local list = {}
  568.  
  569. if len1 > 0.01 then
  570. local w1 = Instance.new('WedgePart', m)
  571. game:GetService("Debris"):AddItem(w1,5)
  572. w1.Material = "SmoothPlastic"
  573. w1.FormFactor = 'Custom'
  574. w1.BrickColor = BrickColor.new("Really red")
  575. w1.Transparency = 0
  576. w1.Reflectance = 0
  577. w1.Material = "SmoothPlastic"
  578. w1.CanCollide = false
  579. local l1 = Instance.new("PointLight",w1)
  580. l1.Color = Color3.new(170,0,0)
  581. NoOutline(w1)
  582. local sz = Vector3.new(0.2, width, len1)
  583. w1.Size = sz
  584. local sp = Instance.new("SpecialMesh",w1)
  585. sp.MeshType = "Wedge"
  586. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  587. w1:BreakJoints()
  588. w1.Anchored = true
  589. w1.Parent = workspace
  590. w1.Transparency = 0.7
  591. table.insert(Effects,{w1,"Disappear",.01})
  592. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  593. table.insert(list,w1)
  594. end
  595.  
  596. if len2 > 0.01 then
  597. local w2 = Instance.new('WedgePart', m)
  598. game:GetService("Debris"):AddItem(w2,5)
  599. w2.Material = "SmoothPlastic"
  600. w2.FormFactor = 'Custom'
  601. w2.BrickColor = BrickColor.new("Really red")
  602. w2.Transparency = 0
  603. w2.Reflectance = 0
  604. w2.Material = "SmoothPlastic"
  605. w2.CanCollide = false
  606. local l2 = Instance.new("PointLight",w2)
  607. l2.Color = Color3.new(170,0,0)
  608. NoOutline(w2)
  609. local sz = Vector3.new(0.2, width, len2)
  610. w2.Size = sz
  611. local sp = Instance.new("SpecialMesh",w2)
  612. sp.MeshType = "Wedge"
  613. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  614. w2:BreakJoints()
  615. w2.Anchored = true
  616. w2.Parent = workspace
  617. w2.Transparency = 0.7
  618. table.insert(Effects,{w2,"Disappear",.01})
  619. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  620. table.insert(list,w2)
  621. end
  622. return unpack(list)
  623. end
  624.  
  625.  
  626. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  627. if hit.Parent==nil then
  628. return
  629. end
  630. h=hit.Parent:FindFirstChild("Humanoid")
  631. for _,v in pairs(hit.Parent:children()) do
  632. if v:IsA("Humanoid") then
  633. h=v
  634. end
  635. end
  636. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  637. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  638. end
  639. if hit.Parent.className=="Hat" then
  640. hit=hit.Parent.Parent:findFirstChild("Head")
  641. end
  642. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  643. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  644. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  645. return
  646. end]]
  647. -- hs(hit,1.2)
  648. c=Instance.new("ObjectValue")
  649. c.Name="creator"
  650. c.Value=owner
  651. c.Parent=h
  652. game:GetService("Debris"):AddItem(c,.5)
  653. Damage=math.random(minim,maxim)
  654. -- h:TakeDamage(Damage)
  655. blocked=false
  656. block=hit.Parent:findFirstChild("Block")
  657. if block~=nil then
  658. print(block.className)
  659. if block.className=="NumberValue" then
  660. if block.Value>0 then
  661. blocked=true
  662. if decreaseblock==nil then
  663. block.Value=block.Value-1
  664. end
  665. end
  666. end
  667. if block.className=="IntValue" then
  668. if block.Value>0 then
  669. blocked=true
  670. if decreaseblock~=nil then
  671. block.Value=block.Value-1
  672. end
  673. end
  674. end
  675. end
  676. if blocked==false then
  677. -- h:TakeDamage(Damage)
  678. h.Health=h.Health-Damage
  679. showDamage(hit.Parent,Damage,.5,BrickColor.new("Really red"))
  680. else
  681. h.Health=h.Health-(Damage/2)
  682. showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue"))
  683. end
  684. if Type=="Knockdown" then
  685. hum=hit.Parent.Humanoid
  686. hum.PlatformStand=true
  687. coroutine.resume(coroutine.create(function(HHumanoid)
  688. swait(1)
  689. HHumanoid.PlatformStand=false
  690. end),hum)
  691. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  692. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  693. local bodvol=Instance.new("BodyVelocity")
  694. bodvol.velocity=angle*knockback
  695. bodvol.P=5000
  696. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  697. bodvol.Parent=hit
  698. rl=Instance.new("BodyAngularVelocity")
  699. rl.P=3000
  700. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  701. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  702. rl.Parent=hit
  703. game:GetService("Debris"):AddItem(bodvol,.5)
  704. game:GetService("Debris"):AddItem(rl,.5)
  705. elseif Type=="Normal" then
  706. vp=Instance.new("BodyVelocity")
  707. vp.P=500
  708. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  709. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  710. if KnockbackType==1 then
  711. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  712. elseif KnockbackType==2 then
  713. vp.velocity=Property.CFrame.lookVector*knockback
  714. end
  715. if knockback>0 then
  716. vp.Parent=hit.Parent.Torso
  717. end
  718. game:GetService("Debris"):AddItem(vp,.5)
  719. elseif Type=="Up" then
  720. local bodyVelocity=Instance.new("BodyVelocity")
  721. bodyVelocity.velocity=vt(0,60,0)
  722. bodyVelocity.P=5000
  723. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  724. bodyVelocity.Parent=hit
  725. game:GetService("Debris"):AddItem(bodyVelocity,1)
  726. rl=Instance.new("BodyAngularVelocity")
  727. rl.P=3000
  728. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  729. rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  730. rl.Parent=hit
  731. game:GetService("Debris"):AddItem(rl,.5)
  732. elseif Type=="Snare" then
  733. bp=Instance.new("BodyPosition")
  734. bp.P=2000
  735. bp.D=100
  736. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  737. bp.position=hit.Parent.Torso.Position
  738. bp.Parent=hit.Parent.Torso
  739. game:GetService("Debris"):AddItem(bp,1)
  740. elseif Type=="Target" then
  741. if Targetting==false then
  742. ZTarget=hit.Parent.Torso
  743. coroutine.resume(coroutine.create(function(Part)
  744. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  745. swait(5)
  746. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  747. end),ZTarget)
  748. TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  749. targetgui=Instance.new("BillboardGui")
  750. targetgui.Parent=ZTarget
  751. targetgui.Size=UDim2.new(10,100,10,100)
  752. targ=Instance.new("ImageLabel")
  753. targ.Parent=targetgui
  754. targ.BackgroundTransparency=1
  755. targ.Image="rbxassetid://4834067"
  756. targ.Size=UDim2.new(1,0,1,0)
  757. cam.CameraType="Scriptable"
  758. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  759. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  760. workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  761. Targetting=true
  762. RocketTarget=ZTarget
  763. for i=1,Property do
  764. --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  765. if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  766. swait()
  767. end
  768. --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
  769. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  770. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  771. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  772. end
  773. Targetting=false
  774. RocketTarget=nil
  775. targetgui.Parent=nil
  776. cam.CameraType="Custom"
  777. end
  778. end
  779. debounce=Instance.new("BoolValue")
  780. debounce.Name="DebounceHit"
  781. debounce.Parent=hit.Parent
  782. debounce.Value=true
  783. game:GetService("Debris"):AddItem(debounce,Delay)
  784. c=Instance.new("ObjectValue")
  785. c.Name="creator"
  786. c.Value=Player
  787. c.Parent=h
  788. game:GetService("Debris"):AddItem(c,.5)
  789. CRIT=false
  790. hitDeb=true
  791. AttackPos=6
  792. end
  793. end
  794.  
  795. showDamage=function(Char,Dealt,du,Color)
  796. m=Instance.new("Model")
  797. m.Name=tostring(Dealt)
  798. h=Instance.new("Humanoid")
  799. h.Health=0
  800. h.MaxHealth=0
  801. h.Parent=m
  802. c=Instance.new("Part")
  803. c.Transparency=0
  804. c.BrickColor=Color
  805. c.Transparency = 1
  806. c.Name="Head"
  807. c.TopSurface=0
  808. c.BottomSurface=0
  809. c.formFactor="Plate"
  810. c.Size=Vector3.new(1,.4,1)
  811.  
  812. local txt = Instance.new("BillboardGui", c)
  813. txt.Adornee = c
  814. txt.Name = "_status"
  815. txt.Size = UDim2.new(2, 0, 1.2, 0)
  816. txt.StudsOffset = Vector3.new(-9, 8, 0)
  817. local text = Instance.new("TextLabel", txt)
  818. text.Size = UDim2.new(10, 0, 7, 0)
  819. text.FontSize = "Size12"
  820. text.TextScaled = true
  821. text.TextTransparency = 0.5
  822. text.BackgroundTransparency = 1
  823. text.TextTransparency = 0.5
  824. text.TextStrokeTransparency = 0.5
  825. text.Font = "SciFi"
  826. text.TextStrokeColor3 = Color3.new(0,0,0)
  827. v=Instance.new("Part")
  828. v.Name = "ColorBrick"
  829. v.Parent=c
  830. v.FormFactor="Symmetric"
  831. v.Anchored=true
  832. v.CanCollide=false
  833. v.BottomSurface="Smooth"
  834. v.TopSurface="Smooth"
  835. v.Size=Vector3.new(10,5,3)
  836. v.Transparency=1
  837. v.CFrame=c.CFrame
  838. v.BrickColor=BrickColor.random()
  839. v.Transparency=1
  840. text.TextColor3 = t.BrickColor.Color
  841. v.Shape="Block"
  842. text.Text = tostring(Dealt)
  843. ms=Instance.new("CylinderMesh")
  844. ms.Scale=Vector3.new(.8,.8,.8)
  845. --[[local hitsounds={"199149137","199149186","199149221","199149235","199149269","199149297"}
  846. local rndm=math.random(1,#hitsounds)
  847. local r=rndm
  848. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id="..hitsounds[r],c,1.25,1)]]--
  849. if CRIT==true then
  850. ms.Scale=Vector3.new(1,1.25,1)
  851. end
  852. ms.Parent=c
  853. c.Reflectance=0
  854. Instance.new("BodyGyro").Parent=c
  855. c.Parent=m
  856. if Char:findFirstChild("Head")~=nil then
  857. c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  858. elseif Char.Parent:findFirstChild("Head")~=nil then
  859. c.CFrame=CFrame.new(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0))
  860. end
  861. f=Instance.new("BodyPosition")
  862. f.P=2000
  863. f.D=100
  864. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  865. f.position=c.Position+Vector3.new(0,3,0)
  866. f.Parent=c
  867. game:GetService("Debris"):AddItem(m,.5+du)
  868. c.CanCollide=false
  869. m.Parent=workspace
  870. c.CanCollide=false
  871. end
  872.  
  873. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  874. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  875. end
  876.  
  877. function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
  878. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  879. prt.Anchored=true
  880. prt.CFrame=cframe
  881. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
  882. --http://www.roblox.com/asset/?id=4770560
  883. game:GetService("Debris"):AddItem(prt,2)
  884. CF=prt.CFrame
  885. coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
  886. for i=0,1,0.2 do
  887. wait()
  888. Part.CFrame=CF*cf(0,0,-0.4)
  889. end
  890. for i=0,1,delay do
  891. wait()
  892. --Part.CFrame=CF*cf((math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5)
  893. Mesh.Scale=Mesh.Scale
  894. end
  895. for i=0,1,0.1 do
  896. wait()
  897. Part.Transparency=i
  898. end
  899. Part.Parent=nil
  900. end),prt,msh,CF)
  901. end
  902.  
  903. function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  904. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  905. prt.Anchored=true
  906. prt.Material = "Neon"
  907. prt.CFrame=cframe
  908. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  909. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  910. game:GetService("Debris"):AddItem(prt,5)
  911. coroutine.resume(coroutine.create(function(Part,Mesh)
  912. for i=0,1,delay do
  913. swait()
  914. Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  915. Part.Transparency=i
  916. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  917. end
  918. Part.Parent=nil
  919. end),prt,msh)
  920. end
  921.  
  922. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  923. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  924. prt.Anchored=true
  925. prt.Material = "Neon"
  926. prt.CFrame=cframe
  927. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  928. game:GetService("Debris"):AddItem(prt,5)
  929. coroutine.resume(coroutine.create(function(Part,Mesh)
  930. local rtype = rottype
  931. for i=0,1,delay do
  932. swait()
  933. if rtype == 1 then
  934. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  935. elseif rtype == 2 then
  936. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  937. end
  938. Part.Transparency=i
  939. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  940. end
  941. Part.Parent=nil
  942. end),prt,msh)
  943. end
  944.  
  945. function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  946. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  947. prt.Anchored=true
  948. prt.CFrame=cframe
  949. prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  950. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  951. game:GetService("Debris"):AddItem(prt,5)
  952. coroutine.resume(coroutine.create(function(Part,Mesh)
  953. for i=0,1,delay do
  954. wait()
  955. Part.Transparency=i
  956. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  957. end
  958. Part.Parent=nil
  959. end),prt,msh)
  960. end
  961.  
  962. function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
  963. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  964. prt.Anchored=true
  965. prt.Material = "Neon"
  966. prt.CFrame=cframe
  967. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  968. game:GetService("Debris"):AddItem(prt,5)
  969. coroutine.resume(coroutine.create(function(Part,Mesh)
  970. local rtype = rottype
  971. for i=0,1,delay do
  972. swait()
  973. if rtype == 1 then
  974. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  975. elseif rtype == 2 then
  976. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  977. end
  978. Part.Transparency=i
  979. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  980. end
  981. Part.Parent=nil
  982. end),prt,msh)
  983. end
  984.  
  985. function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  986. local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
  987. prt.Anchored=true
  988. prt.Material = "Neon"
  989. prt.CFrame=cframe
  990. local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  991. local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
  992. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  993. game:GetService("Debris"):AddItem(prt,5)
  994. coroutine.resume(coroutine.create(function(Part,Mesh)
  995. local rtype = rottype
  996. for i=0,1,delay do
  997. swait()
  998. if rtype == 1 then
  999. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1000. elseif rtype == 2 then
  1001. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1002. end
  1003. dec.Transparency=i
  1004. dec2.Transparency=i
  1005. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  1006. end
  1007. Part.Parent=nil
  1008. end),prt,msh)
  1009. end
  1010.  
  1011. function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
  1012. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1013. prt.Anchored=true
  1014. prt.Material = "Neon"
  1015. prt.CFrame=cframe
  1016. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
  1017. game:GetService("Debris"):AddItem(prt,5)
  1018. coroutine.resume(coroutine.create(function(Part,Mesh)
  1019. local rtype = rottype
  1020. for i=0,1,delay do
  1021. swait()
  1022. if rtype == 1 then
  1023. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1024. elseif rtype == 2 then
  1025. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1026. end
  1027. prt.Transparency=i
  1028. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  1029. end
  1030. Part.Parent=nil
  1031. end),prt,msh)
  1032. end
  1033.  
  1034. function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype)
  1035. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1036. prt.Anchored=true
  1037. prt.Material = "Neon"
  1038. prt.CFrame=cframe
  1039. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1))
  1040. game:GetService("Debris"):AddItem(prt,5)
  1041. coroutine.resume(coroutine.create(function(Part,Mesh)
  1042. local rtype = rottype
  1043. for i=0,1,delay do
  1044. swait()
  1045. if rtype == 1 then
  1046. prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0)
  1047. elseif rtype == 2 then
  1048. prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0)
  1049. end
  1050. prt.Transparency=i
  1051. Mesh.Scale=Mesh.Scale+vt(x3,0,z3)
  1052. end
  1053. Part.Parent=nil
  1054. end),prt,msh)
  1055. end
  1056.  
  1057. function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype)
  1058. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1059. prt.Anchored=true
  1060. prt.Material = "Neon"
  1061. prt.CFrame=cframe
  1062. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1063. game:GetService("Debris"):AddItem(prt,5)
  1064. coroutine.resume(coroutine.create(function(Part,Mesh)
  1065. local rtype = rottype
  1066. for i=0,1,delay do
  1067. swait()
  1068. if rtype == 1 then
  1069. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
  1070. elseif rtype == 2 then
  1071. prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
  1072. end
  1073. prt.Transparency=i
  1074. Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
  1075. end
  1076. Part.Parent=nil
  1077. end),prt,msh)
  1078. end
  1079.  
  1080. function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  1081. local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1082. prt.Anchored=false
  1083. prt.CFrame=cframe
  1084. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1085. local wld=weld(prt,prt,Parent,cframe)
  1086. game:GetService("Debris"):AddItem(prt,5)
  1087. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  1088. for i=0,1,delay do
  1089. wait()
  1090. Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
  1091. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1092. Part.Transparency=i
  1093. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1094. end
  1095. Part.Parent=nil
  1096. end),prt,msh,wld)
  1097. end
  1098.  
  1099. function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
  1100. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1101. prt.Anchored=false
  1102. prt.CFrame=cframe
  1103. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1104. local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
  1105. game:GetService("Debris"):AddItem(prt,5)
  1106. coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
  1107. for i=0,1,delay do
  1108. wait()
  1109. Weld.C0=euler(i*20,0,0)
  1110. --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1111. Part.Transparency=i
  1112. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1113. end
  1114. Part.Parent=nil
  1115. end),prt,msh,wld)
  1116. end
  1117.  
  1118. function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1119. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1120. prt.Anchored=true
  1121. prt.CFrame=cframe
  1122. local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
  1123. game:GetService("Debris"):AddItem(prt,2)
  1124. coroutine.resume(coroutine.create(function(Part,Mesh)
  1125. for i=0,1,delay do
  1126. wait()
  1127. Part.CFrame=Part.CFrame
  1128. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1129. local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1130. prt2.Anchored=true
  1131. prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1132. local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  1133. game:GetService("Debris"):AddItem(prt2,2)
  1134. coroutine.resume(coroutine.create(function(Part,Mesh)
  1135. for i=0,1,0.1 do
  1136. wait()
  1137. Part.CFrame=Part.CFrame*cf(0,0.5,0)
  1138. end
  1139. Part.Parent=nil
  1140. end),prt2,msh2)
  1141. end
  1142. for i=0,1,delay*2 do
  1143. wait()
  1144. Part.CFrame=Part.CFrame
  1145. Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
  1146. end
  1147. Part.Parent=nil
  1148. end),prt,msh)
  1149. end
  1150.  
  1151. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1152. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1153. prt.Anchored=true
  1154. prt.CFrame=cframe
  1155. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1156. game:GetService("Debris"):AddItem(prt,2)
  1157. coroutine.resume(coroutine.create(function(Part,Mesh)
  1158. for i=0,1,delay do
  1159. wait()
  1160. Part.CFrame=Part.CFrame
  1161. Part.Transparency=i
  1162. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1163. end
  1164. Part.Parent=nil
  1165. end),prt,msh)
  1166. end
  1167.  
  1168. function BreakEffect(brickcolor,cframe,x1,y1,z1)
  1169. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1170. prt.Anchored=true
  1171. prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1172. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1173. game:GetService("Debris"):AddItem(prt,2)
  1174. coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
  1175. CF=Part.CFrame
  1176. Numbb=0
  1177. randnumb=math.random()/10
  1178. rand1=math.random()/10
  1179. for i=0,1,rand1 do
  1180. wait()
  1181. CF=CF*cf(0,math.random()/2,0)
  1182. --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
  1183. Part.CFrame=CF*euler(Numbb,0,0)
  1184. Part.Transparency=i
  1185. Numbb=Numbb+randnumb
  1186. end
  1187. Part.Parent=nil
  1188. end),prt,CF,Numbb,randnumb)
  1189. end
  1190.  
  1191. function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1192. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1193. prt.Anchored=true
  1194. prt.CFrame=cframe
  1195. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
  1196. game:GetService("Debris"):AddItem(prt,5)
  1197. coroutine.resume(coroutine.create(function(Part,Mesh)
  1198. for i=0,1,delay do
  1199. wait()
  1200. Part.CFrame=Part.CFrame*euler(0,0.7,0)
  1201. Part.Transparency=i
  1202. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1203. end
  1204. Part.Parent=nil
  1205. end),prt,msh)
  1206. end
  1207.  
  1208. function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1209. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1210. prt.Anchored=true
  1211. prt.CFrame=cframe
  1212. msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  1213. game:GetService("Debris"):AddItem(prt,2)
  1214. coroutine.resume(coroutine.create(function(Part,Mesh)
  1215. for i=0,1,delay do
  1216. wait()
  1217. Part.CFrame=Part.CFrame*cf(0,y3/2,0)
  1218. Part.Transparency=i
  1219. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1220. end
  1221. Part.Parent=nil
  1222. end),prt,msh)
  1223. end
  1224.  
  1225. function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
  1226. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1227. prt.Anchored=true
  1228. prt.CFrame=cframe*cf(x,y,z)
  1229. msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
  1230. game:GetService("Debris"):AddItem(prt,5)
  1231. coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
  1232. local num=math.random()
  1233. local num2=math.random(-3,2)+math.random()
  1234. local numm=0
  1235. for i=0,1,delay*2 do
  1236. swait()
  1237. Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
  1238. Part.Transparency=i
  1239. numm=numm+0.01
  1240. end
  1241. Part.Parent=nil
  1242. Mesh.Parent=nil
  1243. end),prt,msh,x,y,z)
  1244. end
  1245.  
  1246. function dmgstart(dmg,what)
  1247. hitcon = what.Touched:connect(function(hit)
  1248. local hum = hit.Parent:FindFirstChild("Humanoid")
  1249. if hum and not hum:IsDescendantOf(Character) then
  1250. hum:TakeDamage(dmg)
  1251. end
  1252. end)
  1253. end
  1254.  
  1255. function dmgstop()
  1256. hitcon:disconnect()
  1257. end
  1258.  
  1259. function Cloak()
  1260. Face.Parent=nil
  1261. cloaked=true
  1262. for _,v in pairs(Torso.Parent:children()) do
  1263. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  1264. coroutine.resume(coroutine.create(function()
  1265. for i=0,1,0.2 do
  1266. wait()
  1267. v.Transparency=i
  1268. end
  1269. v.Transparency=1
  1270. end))
  1271. end
  1272. if v.className=="Hat" then
  1273. hatp=v.Handle
  1274. coroutine.resume(coroutine.create(function(derp)
  1275. for i=0,1,0.2 do
  1276. wait()
  1277. derp.Transparency=i
  1278. end
  1279. derp.Transparency=1
  1280. end),hatp)
  1281. end
  1282. end
  1283. for _,v in pairs(m:children()) do
  1284. if v.className=="Part" then
  1285. coroutine.resume(coroutine.create(function()
  1286. for i=0,1,0.2 do
  1287. wait()
  1288. v.Transparency=i
  1289. end
  1290. v.Transparency=1
  1291. end))
  1292. end
  1293. end
  1294. end
  1295.  
  1296. function UnCloak()
  1297. so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
  1298. Face.Parent=Head
  1299. cloaked=false
  1300. for _,v in pairs(Torso.Parent:children()) do
  1301. if v.className=="Part" and v.Name~="HumanoidRootPart" then
  1302. coroutine.resume(coroutine.create(function()
  1303. for i=0,1,0.1 do
  1304. wait()
  1305. v.Transparency=v.Transparency-0.1
  1306. end
  1307. v.Transparency=0
  1308. end))
  1309. end
  1310. if v.className=="Hat" then
  1311. hatp=v.Handle
  1312. coroutine.resume(coroutine.create(function(derp)
  1313. for i=0,1,0.1 do
  1314. wait()
  1315. derp.Transparency=derp.Transparency-0.1
  1316. end
  1317. derp.Transparency=0
  1318. end),hatp)
  1319. end
  1320. end
  1321. for _,v in pairs(m:children()) do
  1322. if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then
  1323. coroutine.resume(coroutine.create(function()
  1324. for i=0,1,0.1 do
  1325. wait()
  1326. v.Transparency=v.Transparency-0.1
  1327. end
  1328. v.Transparency=0
  1329. end))
  1330. v.Transparency=0
  1331. end
  1332. end
  1333. end
  1334.  
  1335. local jumped = false
  1336. function jump()
  1337. attack = true
  1338. jumped = true
  1339. hum.WalkSpeed = 0
  1340. MagicBlock(bc("White"),root.CFrame,15,15,15,-0.25,-0.25,-0.25,0.015)
  1341. CFuncs["Sound"].Create("rbxassetid://169445572", root, 1, 1)
  1342. CFuncs["Sound"].Create("rbxassetid://169380495", root, 1, 0.7)
  1343. for i = 0,15,0.1 do
  1344. swait()
  1345. MagicBlock(bc("White"),sorb2.CFrame,3,3,3,0.05,0.05,0.05,0.05)
  1346. MagicBlock(bc("White"),sorb.CFrame,3,3,3,0.05,0.05,0.05,0.05)
  1347. RH.C0=clerp(RH.C0,cf(1,0.45,-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(50)),.05)
  1348. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(15)),.05)
  1349. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-1.5)* angles(math.rad(50),math.rad(0),math.rad(0)),0.05)
  1350. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.05)
  1351. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(20)), 0.05)
  1352. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-20)), 0.05)
  1353. end
  1354. local bv = Instance.new("BodyVelocity")
  1355. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1356. bv.velocity = Vector3.new(0,500,0)
  1357. bv.Parent = root
  1358. game:GetService("Debris"):AddItem(bv, 0.5)
  1359. local rng = Instance.new("Part", char)
  1360. rng.Anchored = true
  1361. rng.BrickColor = BrickColor.new("White")
  1362. rng.CanCollide = false
  1363. rng.FormFactor = 3
  1364. rng.Name = "Ring"
  1365. rng.Size = Vector3.new(1, 1, 1)
  1366. rng.Transparency = 0
  1367. rng.TopSurface = 0
  1368. rng.BottomSurface = 0
  1369. rng.Position = root.Position
  1370. rng.CFrame = rng.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
  1371. local rngm = Instance.new("SpecialMesh", rng)
  1372. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  1373. local rng2 = rng:Clone()
  1374. rng2.Parent = char
  1375. local rng2m = rng2.Mesh
  1376. local rng3 = rng:Clone()
  1377. rng3.Parent = char
  1378. local rng3m = rng3.Mesh
  1379. local rng4 = rng:Clone()
  1380. rng4.Parent = char
  1381. local rng4m = rng4.Mesh
  1382. local rng5 = rng:Clone()
  1383. rng5.Parent = char
  1384. local rng5m = rng5.Mesh
  1385. CFuncs["Sound"].Create("rbxassetid://324867021", rng, 10, 1)
  1386. wait()
  1387. local scaler = 10
  1388. local scaler2 = 10
  1389. game:GetService("Debris"):AddItem(bv, 2.4)
  1390. hum.WalkSpeed = 50
  1391. MagicBlock(bc("White"),root.CFrame,15,15,15,10,10,10,0.015)
  1392. for i = 0,10,0.1 do
  1393. swait()
  1394. rng.Transparency = rng.Transparency + 0.01
  1395. rng2.Transparency = rng2.Transparency + 0.01
  1396. rng3.Transparency = rng3.Transparency + 0.01
  1397. rng4.Transparency = rng4.Transparency + 0.01
  1398. rng5.Transparency = rng5.Transparency + 0.01
  1399. scaler = scaler - 0.125
  1400. scaler2 = scaler2 - 0.1
  1401. rng2m.Scale = rng2m.Scale + Vector3.new(scaler/1.25, scaler/1.25, 20)
  1402. rng3m.Scale = rng3m.Scale + Vector3.new(scaler/1.5, scaler/1.5, 30)
  1403. rng4m.Scale = rng4m.Scale + Vector3.new(scaler/1.75, scaler/1.75, 40)
  1404. rng5m.Scale = rng5m.Scale + Vector3.new(scaler/2, scaler/2, 50)
  1405. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  1406. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(5)),.5)
  1407. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(5)),.5)
  1408. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-5),math.rad(0),math.rad(0)),0.5)
  1409. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-5),math.rad(0),math.rad(0)),.5)
  1410. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(50)), 0.5)
  1411. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-50)), 0.5)
  1412. end
  1413. game:GetService("Debris"):AddItem(rng, 0.1)
  1414. game:GetService("Debris"):AddItem(rng2, 0.1)
  1415. game:GetService("Debris"):AddItem(rng3, 0.1)
  1416. game:GetService("Debris"):AddItem(rng4, 0.1)
  1417. game:GetService("Debris"):AddItem(rng5, 0.1)
  1418. hum.WalkSpeed = 16
  1419. attack = false
  1420. jumped = false
  1421. end
  1422.  
  1423. function dash()
  1424. attack = true
  1425. jumped = true
  1426. hum.WalkSpeed = 0
  1427. local bv = Instance.new("BodyVelocity")
  1428. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1429. bv.velocity = root.CFrame.lookVector*150
  1430. bv.Parent = root
  1431. game:GetService("Debris"):AddItem(bv, 1)
  1432. local rng = Instance.new("Part", char)
  1433. rng.Anchored = true
  1434. rng.BrickColor = BrickColor.new("White")
  1435. rng.CanCollide = false
  1436. rng.FormFactor = 3
  1437. rng.Name = "Ring"
  1438. rng.Size = Vector3.new(1, 1, 1)
  1439. rng.Transparency = 0
  1440. rng.TopSurface = 0
  1441. rng.BottomSurface = 0
  1442. rng.CFrame = root.CFrame
  1443. local rngm = Instance.new("SpecialMesh", rng)
  1444. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  1445. local rng2 = rng:Clone()
  1446. rng2.Parent = char
  1447. rng2.CFrame = root.CFrame + root.CFrame.lookVector*10
  1448. local rng2m = rng2.Mesh
  1449. local rng3 = rng:Clone()
  1450. rng3.Parent = char
  1451. rng3.CFrame = root.CFrame + root.CFrame.lookVector*20
  1452. local rng3m = rng3.Mesh
  1453. local rng4 = rng:Clone()
  1454. rng4.Parent = char
  1455. rng4.CFrame = root.CFrame + root.CFrame.lookVector*30
  1456. local rng4m = rng4.Mesh
  1457. local rng5 = rng:Clone()
  1458. rng5.Parent = char
  1459. rng5.CFrame = root.CFrame + root.CFrame.lookVector*40
  1460. local rng5m = rng5.Mesh
  1461. CFuncs["Sound"].Create("rbxassetid://324867021", root, 1, 1)
  1462. wait()
  1463. local scaler = 10/5
  1464. local scaler2 = 10/5
  1465. local hit = larm.Touched:connect(function(hit)
  1466. Damagefunc(hit,25,34,math.random(10,20),"Normal",root,.2,1)
  1467. end)
  1468. for i = 0,10,0.1 do
  1469. swait()
  1470. MagicBlock(bc("White"),sorb2.CFrame,3,3,3,0.05,0.05,0.05,0.05)
  1471. rng.Transparency = rng.Transparency + 0.01
  1472. rng2.Transparency = rng2.Transparency + 0.01
  1473. rng3.Transparency = rng3.Transparency + 0.01
  1474. rng4.Transparency = rng4.Transparency + 0.01
  1475. rng5.Transparency = rng5.Transparency + 0.01
  1476. scaler = scaler - 0.125/5
  1477. scaler2 = scaler2 - 0.1/5
  1478. rng2m.Scale = rng2m.Scale + Vector3.new(scaler2/1.25, scaler2/1.25, 0)
  1479. rng3m.Scale = rng3m.Scale + Vector3.new(scaler2/1.5, scaler2/1.5, 0)
  1480. rng4m.Scale = rng4m.Scale + Vector3.new(scaler2/1.75, scaler2/1.75, 0)
  1481. rng5m.Scale = rng5m.Scale + Vector3.new(scaler2/2, scaler2/2, 0)
  1482. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  1483. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-25)),.5)
  1484. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(5)),.5)
  1485. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(-80)),0.5)
  1486. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(80)),.5)
  1487. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(50)), 0.5)
  1488. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-110)), 0.5)
  1489. end
  1490. game:GetService("Debris"):AddItem(rng, 0.1)
  1491. game:GetService("Debris"):AddItem(rng2, 0.1)
  1492. game:GetService("Debris"):AddItem(rng3, 0.1)
  1493. game:GetService("Debris"):AddItem(rng4, 0.1)
  1494. game:GetService("Debris"):AddItem(rng5, 0.1)
  1495. hum.WalkSpeed = 16
  1496. hit:disconnect()
  1497. attack = false
  1498. jumped = false
  1499. end
  1500.  
  1501. function boom()
  1502. attack = true
  1503. jumped = true
  1504. hum.WalkSpeed = 0
  1505. MagicBlock(bc("White"),sorb.CFrame,15,15,15,-0.25,-0.25,-0.25,0.015)
  1506. CFuncs["Sound"].Create("rbxassetid://169445572", root, 1, 1)
  1507. CFuncs["Sound"].Create("rbxassetid://169380495", root, 1, 0.7)
  1508. for i = 0,15,0.1 do
  1509. swait()
  1510. MagicBlock(bc("White"),sorb.CFrame,3,3,3,0.05,0.05,0.05,0.05)
  1511. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.05)
  1512. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.05)
  1513. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-80)),0.05)
  1514. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(80)),.05)
  1515. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(20)), 0.05)
  1516. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-90)), 0.05)
  1517. end
  1518. local rng = Instance.new("Part", char)
  1519. rng.Anchored = true
  1520. rng.BrickColor = BrickColor.new("White")
  1521. rng.CanCollide = false
  1522. rng.FormFactor = 3
  1523. rng.Name = "Ring"
  1524. rng.Size = Vector3.new(1, 1, 1)
  1525. rng.Transparency = 0
  1526. rng.TopSurface = 0
  1527. rng.BottomSurface = 0
  1528. rng.Position = root.Position
  1529. rng.CFrame = rng.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
  1530. local rngm = Instance.new("SpecialMesh", rng)
  1531. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  1532. local rng2 = rng:Clone()
  1533. rng2.Parent = char
  1534. local rng2m = rng2.Mesh
  1535. local rng3 = rng:Clone()
  1536. rng3.Parent = char
  1537. local rng3m = rng3.Mesh
  1538. local rng4 = rng:Clone()
  1539. rng4.Parent = char
  1540. local rng4m = rng4.Mesh
  1541. local rng5 = rng:Clone()
  1542. rng5.Parent = char
  1543. local rng5m = rng5.Mesh
  1544. local hit = rng5.Touched:connect(function(hit)
  1545. Damagefunc(hit,10,25,math.random(10,20),"Normal",root,.2,1)
  1546. end)
  1547. MagicBlock(bc("White"),root.CFrame,15,15,15,5,5,5,0.015)
  1548. CFuncs["Sound"].Create("rbxassetid://187137517", rng, 10, 1)
  1549. CFuncs["Sound"].Create("rbxassetid://597291504", rng, 5, 0.85)
  1550. CFuncs["Sound"].Create("rbxassetid://144699494", rng, 10, 1)
  1551. wait()
  1552. local scaler = 10
  1553. local scaler2 = 10
  1554. for i = 0,10,0.1 do
  1555. swait()
  1556. rng.Transparency = rng.Transparency + 0.01
  1557. rng2.Transparency = rng2.Transparency + 0.01
  1558. rng3.Transparency = rng3.Transparency + 0.01
  1559. rng4.Transparency = rng4.Transparency + 0.01
  1560. rng5.Transparency = rng5.Transparency + 0.01
  1561. scaler = scaler - 0.125
  1562. scaler2 = scaler2 - 0.1
  1563. rng2m.Scale = rng2m.Scale + Vector3.new(scaler2/1.75, scaler2/1.75, 4)
  1564. rng3m.Scale = rng3m.Scale + Vector3.new(scaler2/1.5, scaler2/1.5, 3)
  1565. rng4m.Scale = rng4m.Scale + Vector3.new(scaler2/1.25, scaler2/1.25, 2)
  1566. rng5m.Scale = rng5m.Scale + Vector3.new(scaler2, scaler2, 1)
  1567. rng5.Size = rng5m.Scale
  1568. rng5.CFrame = rng.CFrame
  1569. rngm.Scale = rngm.Scale + Vector3.new(scaler2/2, scaler2/2, 5)
  1570. RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-30),math.rad(0),math.rad(0)),.5)
  1571. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.5)
  1572. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-1)* angles(math.rad(30),math.rad(0),math.rad(80)),0.5)
  1573. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-80)),.5)
  1574. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(40)), 0.5)
  1575. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-50)), 0.5)
  1576. end
  1577. hit:disconnect()
  1578. game:GetService("Debris"):AddItem(rng, 1)
  1579. game:GetService("Debris"):AddItem(rng2, 1)
  1580. game:GetService("Debris"):AddItem(rng3, 1)
  1581. game:GetService("Debris"):AddItem(rng4, 1)
  1582. game:GetService("Debris"):AddItem(rng5, 1)
  1583. hum.WalkSpeed = 16
  1584. attack = false
  1585. jumped = false
  1586. end
  1587.  
  1588. function shooty()
  1589. attack = true
  1590. MagicBlock(bc("White"),sorb.CFrame,15,15,15,-0.25,-0.25,-0.25,0.015)
  1591. CFuncs["Sound"].Create("rbxassetid://169445572", root, 1, 1)
  1592. CFuncs["Sound"].Create("rbxassetid://169380495", root, 1, 0.7)
  1593. for i = 0,15,0.1 do
  1594. swait()
  1595. MagicBlock(bc("White"),sorb.CFrame,3,3,3,0.05,0.05,0.05,0.05)
  1596. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-80)),0.05)
  1597. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(80)),.05)
  1598. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(20)), 0.05)
  1599. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-90)), 0.05)
  1600. end
  1601. CFuncs["Sound"].Create("rbxassetid://187137517", root, 1, 1)
  1602. local a = Instance.new("Part",Character)
  1603. a.Name = "Direction"
  1604. a.Anchored = true
  1605. a.BrickColor = bc("Bright red")
  1606. a.Material = "Neon"
  1607. a.Transparency = 1
  1608. a.CanCollide = false
  1609. local ray = Ray.new(
  1610. root.CFrame.p, -- origin
  1611. (mouse.Hit.p - root.CFrame.p).unit * 500 -- direction
  1612. )
  1613. local ignore = Character
  1614. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  1615. a.BottomSurface = 10
  1616. a.TopSurface = 10
  1617. local distance = (root.CFrame.p - position).magnitude
  1618. a.Size = Vector3.new(0.1, 0.1, 0.1)
  1619. a.CFrame = CFrame.new(root.CFrame.p, position) * CFrame.new(0, 0, 0)
  1620. local lb = Instance.new("Part")
  1621. lb.Parent = char
  1622. lb.BrickColor = bc("White")
  1623. lb.CanCollide = false
  1624. lb.Material = "Neon"
  1625. lb.Anchored = true
  1626. lb.TopSurface = 0
  1627. lb.BottomSurface = 0
  1628. lb.Transparency = 0
  1629. lb.Size = vt(0.5,0.5,0.5)
  1630. lb.CFrame = sorb.CFrame
  1631. lb.Anchored = false
  1632. local thingery = Instance.new("SpecialMesh",lb)
  1633. thingery.MeshType = "Sphere"
  1634. thingery.Scale = vt(25,25,25)
  1635. game:GetService("Debris"):AddItem(lb, 10)
  1636. local bv = Instance.new("BodyVelocity")
  1637. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1638. bv.velocity = a.CFrame.lookVector*150
  1639. bv.Parent = lb
  1640. game:GetService("Debris"):AddItem(a, 0.1)
  1641. wait(0.05)
  1642. local hitted = false
  1643. lb.Touched:connect(function(hit)
  1644. if hitted == false then
  1645. hitted = true
  1646. lb.Anchored = true
  1647. lb.Transparency = 1
  1648. local rng = Instance.new("Part", char)
  1649. rng.Anchored = true
  1650. rng.BrickColor = BrickColor.new("White")
  1651. rng.CanCollide = false
  1652. rng.FormFactor = 3
  1653. rng.Name = "Ring"
  1654. rng.Size = Vector3.new(1, 1, 1)
  1655. rng.Transparency = 0
  1656. rng.TopSurface = 0
  1657. rng.BottomSurface = 0
  1658. rng.CFrame = lb.CFrame
  1659. rng.CFrame = rng.CFrame * CFrame.Angles(math.rad(math.random(-360,360)), math.rad(math.random(-360,360)), math.rad(math.random(-360,360)))
  1660. local rngm = Instance.new("SpecialMesh", rng)
  1661. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  1662. local rng2 = rng:Clone()
  1663. rng2.Parent = char
  1664. local rng2m = rng2.Mesh
  1665. local rng3 = rng:Clone()
  1666. rng3.Parent = char
  1667. local rng3m = rng3.Mesh
  1668. local rng4 = rng:Clone()
  1669. rng4.Parent = char
  1670. local rng4m = rng4.Mesh
  1671. local rng5 = rng:Clone()
  1672. rng5.Parent = char
  1673. rng5.CFrame = rng5.CFrame * CFrame.Angles(math.rad(math.random(-360,360)), math.rad(math.random(-360,360)), math.rad(math.random(-360,360)))
  1674. local rng5m = rng5.Mesh
  1675. rng2.CFrame = rng2.CFrame * CFrame.Angles(math.rad(math.random(-360,360)), math.rad(math.random(-360,360)), math.rad(math.random(-360,360)))
  1676. rng3.CFrame = rng3.CFrame * CFrame.Angles(math.rad(math.random(-360,360)), math.rad(math.random(-360,360)), math.rad(math.random(-360,360)))
  1677. rng4.CFrame = rng4.CFrame * CFrame.Angles(math.rad(math.random(-360,360)), math.rad(math.random(-360,360)), math.rad(math.random(-360,360)))
  1678. MagicBlock(bc("White"),lb.CFrame,15,15,15,5,5,5,0.015)
  1679. local rng6 = rng:Clone()
  1680. rng6.Material = "Neon"
  1681. rng6.Parent = char
  1682. local rng6m = rng6.Mesh
  1683. rng6m.Scale = vt(1,1,1)
  1684. rng6m.MeshType = "Sphere"
  1685. local hita = rng6.Touched:connect(function(hit)
  1686. Damagefunc(hit,10,25,math.random(10,20),"Normal",root,.2,1)
  1687. end)
  1688. CFuncs["Sound"].Create("rbxassetid://187137517", rng, 5, 1)
  1689. CFuncs["Sound"].Create("rbxassetid://597291504", rng, 5, 0.75)
  1690. CFuncs["Sound"].Create("rbxassetid://144699494", rng, 5, 1)
  1691. local scaler = 5
  1692. local scaler2 = 5
  1693. for i = 0,20,0.1 do
  1694. swait()
  1695. rng.Transparency = rng.Transparency + 0.005
  1696. rng2.Transparency = rng2.Transparency + 0.005
  1697. rng3.Transparency = rng3.Transparency + 0.005
  1698. rng4.Transparency = rng4.Transparency + 0.005
  1699. rng5.Transparency = rng5.Transparency + 0.005
  1700. rng6.Transparency = rng6.Transparency + 0.005
  1701. scaler = scaler - 0.005/2
  1702. scaler2 = scaler2 - 0.05/2
  1703. rng6.Size = rng6.Size + Vector3.new(scaler2/3, scaler2/3, scaler2/3)
  1704. rng6.CFrame = rng.CFrame
  1705. rng2m.Scale = rng2m.Scale + Vector3.new(scaler2/1.5, scaler2/1.5, 0)
  1706. rng3m.Scale = rng3m.Scale + Vector3.new(scaler2/1.5, scaler2/1.5, 0)
  1707. rng4m.Scale = rng4m.Scale + Vector3.new(scaler2/2, scaler2/2, 0)
  1708. rng5m.Scale = rng5m.Scale + Vector3.new(scaler2, scaler2, 0)
  1709. rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
  1710. end
  1711. hita:disconnect()
  1712. game:GetService("Debris"):AddItem(rng, 1)
  1713. game:GetService("Debris"):AddItem(rng2, 1)
  1714. game:GetService("Debris"):AddItem(rng3, 1)
  1715. game:GetService("Debris"):AddItem(rng4, 1)
  1716. game:GetService("Debris"):AddItem(rng5, 1)
  1717. game:GetService("Debris"):AddItem(rng6, 1)
  1718. end
  1719. end)
  1720. for i = 0,2,0.1 do
  1721. swait()
  1722. MagicBlock(bc("White"),sorb.CFrame,3,3,3,0.05,0.05,0.05,0.05)
  1723. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(80)),0.5)
  1724. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-80)),.5)
  1725. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(20)), 0.5)
  1726. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-90)), 0.5)
  1727. end
  1728. attack = false
  1729. end
  1730.  
  1731. function superpunch()
  1732. attack = true
  1733. jumped = true
  1734. hum.WalkSpeed = 0
  1735. MagicBlock(bc("White"),sorb.CFrame,15,15,15,-0.25,-0.25,-0.25,0.015)
  1736. CFuncs["Sound"].Create("rbxassetid://169445572", root, 1, 1)
  1737. CFuncs["Sound"].Create("rbxassetid://169380495", root, 1, 0.7)
  1738. for i = 0,15,0.1 do
  1739. swait()
  1740. MagicBlock(bc("White"),sorb.CFrame,3,3,3,0.05,0.05,0.05,0.05)
  1741. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.05)
  1742. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.05)
  1743. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-80)),0.05)
  1744. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(80)),.05)
  1745. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-20)), 0.05)
  1746. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-90)), 0.05)
  1747. end
  1748. local rng = Instance.new("Part", char)
  1749. rng.Anchored = true
  1750. rng.BrickColor = BrickColor.new("White")
  1751. rng.CanCollide = false
  1752. rng.FormFactor = 3
  1753. rng.Name = "Ring"
  1754. rng.Size = Vector3.new(1, 1, 1)
  1755. rng.Transparency = 0
  1756. rng.TopSurface = 0
  1757. rng.BottomSurface = 0
  1758. rng.CFrame = root.CFrame
  1759. local rngm = Instance.new("SpecialMesh", rng)
  1760. rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
  1761. local rng2 = rng:Clone()
  1762. rng2.Parent = char
  1763. local rng2m = rng2.Mesh
  1764. local rng3 = rng:Clone()
  1765. rng3.Parent = char
  1766. local rng3m = rng3.Mesh
  1767. local rng4 = rng:Clone()
  1768. rng4.Parent = char
  1769. local rng4m = rng4.Mesh
  1770. local rng5 = rng:Clone()
  1771. rng5.Parent = char
  1772. local rng5m = rng5.Mesh
  1773. local rng6 = rng:Clone()
  1774. rng6.Material = "Neon"
  1775. rng6.Parent = char
  1776. local rng6m = rng6.Mesh
  1777. rng6m.Scale = vt(1,1,1)
  1778. rng6m.MeshType = "Sphere"
  1779. local hita = rng6.Touched:connect(function(hit)
  1780. Damagefunc(hit,10,25,math.random(10,20),"Normal",root,.2,1)
  1781. end)
  1782. rng2.CFrame = root.CFrame
  1783. rng3.CFrame = root.CFrame
  1784. rng4.CFrame = root.CFrame
  1785. rng5.CFrame = root.CFrame
  1786. rng6.CFrame = root.CFrame
  1787. CFuncs["Sound"].Create("rbxassetid://260430117", rng, 5, 1)
  1788. CFuncs["Sound"].Create("rbxassetid://187137517", rng, 5, 0.85)
  1789. CFuncs["Sound"].Create("rbxassetid://169628396", rng, 5, 1)
  1790. CFuncs["Sound"].Create("rbxassetid://137994058", rng, 5, 1)
  1791. CFuncs["Sound"].Create("rbxassetid://138186576", rng, 5, 1)
  1792. wait()
  1793. local scaler = 10/5
  1794. local scaler2 = 10/5
  1795. MagicBlock(bc("White"),root.CFrame,15,15,15,5,5,5,0.015)
  1796. for i = 0,10,0.1 do
  1797. swait()
  1798. MagicBlock(bc("White"),rng6.CFrame,5,5,5,5,5,5,0.1)
  1799. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*scaler2
  1800. rng2.CFrame = rng2.CFrame + rng2.CFrame.lookVector*scaler2/1.25
  1801. rng3.CFrame = rng3.CFrame + rng3.CFrame.lookVector*scaler2/1.5
  1802. rng4.CFrame = rng4.CFrame + rng4.CFrame.lookVector*scaler2/1.75
  1803. rng5.CFrame = rng5.CFrame + rng5.CFrame.lookVector*scaler2/2
  1804. rng6.Size = rng6.Size + Vector3.new(scaler2/3, scaler2/3, scaler2/3)
  1805. rng6.CFrame = rng.CFrame
  1806. rng.Transparency = rng.Transparency + 0.01
  1807. rng2.Transparency = rng2.Transparency + 0.01
  1808. rng3.Transparency = rng3.Transparency + 0.01
  1809. rng4.Transparency = rng4.Transparency + 0.01
  1810. rng5.Transparency = rng5.Transparency + 0.01
  1811. rng6.Transparency = rng6.Transparency + 0.01
  1812. scaler = scaler - 0.125/5
  1813. scaler2 = scaler2 - 0.1/5
  1814. rng2m.Scale = rng2m.Scale + Vector3.new(scaler2/2.5, scaler2/2.5, 1.5)
  1815. rng3m.Scale = rng3m.Scale + Vector3.new(scaler2/2, scaler2/2, 1)
  1816. rng4m.Scale = rng4m.Scale + Vector3.new(scaler2/1.5, scaler2/1.5, 0.5)
  1817. rng5m.Scale = rng5m.Scale + Vector3.new(scaler2, scaler2, 0)
  1818. rngm.Scale = rngm.Scale + Vector3.new(scaler2/3, scaler2/3, 2)
  1819. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(80)),0.5)
  1820. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-80)),.5)
  1821. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(20)), 0.5)
  1822. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-90)), 0.5)
  1823. end
  1824. hita:disconnect()
  1825. game:GetService("Debris"):AddItem(rng, 1)
  1826. game:GetService("Debris"):AddItem(rng2, 1)
  1827. game:GetService("Debris"):AddItem(rng3, 1)
  1828. game:GetService("Debris"):AddItem(rng4, 1)
  1829. game:GetService("Debris"):AddItem(rng5, 1)
  1830. hum.WalkSpeed = 16
  1831. attack = false
  1832. jumped = false
  1833. end
  1834.  
  1835.  
  1836. mouse.KeyDown:connect(function(k)
  1837. if k == "z" and attack == false and RootPart.Velocity.y == 0 and hitfloor~=nil then
  1838. jump()
  1839. end
  1840. if k == "x" and attack == false then
  1841. dash()
  1842. end
  1843. if k == "c" and attack == false and RootPart.Velocity.y == 0 and hitfloor~=nil then
  1844. boom()
  1845. end
  1846. if k == "v" and attack == false then
  1847. shooty()
  1848. end
  1849. if k == "b" and attack == false then
  1850. superpunch()
  1851. end
  1852. end)
  1853. Humanoid.Animator.Parent = nil
  1854. idleanim=.4
  1855. while true do
  1856. swait()
  1857. sine = sine + change
  1858. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  1859. local velderp=RootPart.Velocity.y
  1860. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  1861. if equipped==true or equipped==false then
  1862. if attack==false then
  1863. idle=idle+1
  1864. else
  1865. idle=0
  1866. end
  1867. if idle>=500 then
  1868. if attack==false then
  1869. --Sheath()
  1870. end
  1871. end
  1872. if RootPart.Velocity.y > 1 and hitfloor==nil then
  1873. Anim="Jump"
  1874. if attack==false then
  1875. Neck.C0=clerp(Neck.C0,necko*euler(-0.2,0,0),.3)
  1876. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  1877. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0.25)*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1878. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.5,0,0.5)*angles(math.rad(-25),math.rad(0),math.rad(0)),.3)
  1879. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1880. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.5,0,-0.5),.3)
  1881. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1882. RH.C0=clerp(RH.C0,cf(1,-1,-.3)*euler(-0.5,1.57,0)*euler(-.2,0,0),.2)
  1883. LH.C0=clerp(LH.C0,cf(-1,-1,-.3)*euler(-0.5,-1.57,0)*euler(-.2,0,0),.2)
  1884. end
  1885. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  1886. Anim="Fall"
  1887. if attack==false then
  1888. Neck.C0=clerp(Neck.C0,necko*euler(0.4,0,0),.3)
  1889. Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3)
  1890. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0.25)*angles(math.rad(5),math.rad(0),math.rad(0)),.3)
  1891. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0.3,0,-0.2),.3)
  1892. LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1893. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0.3,0,0.2)*angles(math.rad(-25),math.rad(0),math.rad(0)),.3)
  1894. RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3)
  1895. RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.4,1.57,0),.2)
  1896. LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.2,-1.57,0),.2)
  1897. end
  1898. elseif torvel<1 and hitfloor~=nil then
  1899. Anim="Idle"
  1900. if jumped == false then
  1901. RH.C0=clerp(RH.C0,cf(1,-1 - 0.15 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5 - 2.5 * math.cos(sine / 32)),math.rad(0),math.rad(0 + 7.5 * math.cos(sine / 32))),.3)
  1902. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.15 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5 - 2.5 * math.cos(sine / 32)),math.rad(0),math.rad(0 + 7.5 * math.cos(sine / 32))),.3)
  1903. end
  1904. if attack==false then
  1905. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.15 * math.cos(sine / 25))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1906. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0 - 5 * math.cos(sine / 25)),math.rad(0),math.rad(0)),.3)
  1907. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(5 + 2.5 * math.cos(sine / 25))),.3)
  1908. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-5 - 2.5 * math.cos(sine / 25))),.3)
  1909. end
  1910. elseif torvel>2 and torvel<22 and hitfloor~=nil then
  1911. Anim="Walk"
  1912. if jumped == false then
  1913. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 4),-0.25 - 0.15 * math.cos(sine / 4))*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 25 * math.cos(sine / 8))),.3)
  1914. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 4),-0.25 - 0.15 * math.cos(sine / 4))*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 25 * math.cos(sine / 8))),.3)
  1915. end
  1916. if attack==false then
  1917. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 - 0.05 * math.cos(sine / 4))*angles(math.rad(15),math.rad(0),math.rad(0)),.3)
  1918. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1919. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0 - 25 * math.cos(sine / 8)),math.rad(0),math.rad(10 + 1.25 * math.cos(sine / 16))),.3)
  1920. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0 + 25 * math.cos(sine / 8)),math.rad(0),math.rad(-10 - 1.25 * math.cos(sine / 16))),.3)
  1921. end
  1922. elseif torvel>=22 and hitfloor~=nil then
  1923. Anim="Run"
  1924. if jumped == false then
  1925. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 75 * math.cos(sine / 3))),.3)
  1926. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 75 * math.cos(sine / 3))),.3)
  1927. end
  1928. if attack==false then
  1929. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-0.25 + 0.05 * math.cos(sine / 32))* angles(math.rad(35),math.rad(0),math.rad(0)),.3)
  1930. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  1931. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(-60),math.rad(25)),.3)
  1932. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-25)),.3)
  1933. end
  1934. end
  1935. end
  1936. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement