Advertisement
geovanycool

Untitled

Oct 14th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 54.31 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.  
  88. de=true
  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. LeftArm=Character["Left Arm"]
  97. LeftLeg=Character["Left Leg"]
  98. RightArm=Character["Right Arm"]
  99. RightLeg=Character["Right Leg"]
  100. LS=Torso["Left Shoulder"]
  101. LH=Torso["Left Hip"]
  102. RS=Torso["Right Shoulder"]
  103. Character=Player.Character
  104. PlayerGui=Player.PlayerGui
  105. Backpack=Player.Backpack
  106. Torso=Character.Torso
  107. Head=Character.Head
  108. Humanoid=Character.Humanoid
  109. LeftArm=Character["Left Arm"]
  110. LeftLeg=Character["Left Leg"]
  111. RightArm=Character["Right Arm"]
  112. RightLeg=Character["Right Leg"]
  113. LS=Torso["Left Shoulder"]
  114. LH=Torso["Left Hip"]
  115. RS=Torso["Right Shoulder"]
  116. RH=Torso["Right Hip"]
  117. Face = Head.face
  118. Neck=Torso.Neck
  119. it=Instance.new
  120. attacktype=1
  121. vt=Vector3.new
  122. cf=CFrame.new
  123. euler=CFrame.fromEulerAnglesXYZ
  124. angles=CFrame.Angles
  125. cloaked=false
  126. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  127. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  128. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  129. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  130. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  131. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  132. RootPart=Character.HumanoidRootPart
  133. RootJoint=RootPart.RootJoint
  134. RootCF=euler(-1.57,0,3.14)
  135. attack = false
  136. attackdebounce = false
  137. deb=false
  138. equipped=true
  139. hand=false
  140. Mouse=nil
  141. combo=0
  142. mana=0
  143. trispeed=.2
  144. attackmode='none'
  145. local idle=0
  146. local Anim="Idle"
  147. local Effects={}
  148. local gun=false
  149. local shoot=false
  150. player=nil
  151. mana=0
  152. --save shoulders
  153. RSH, LSH=nil, nil
  154. --welds
  155. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  156. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  157. LH=Torso["Left Hip"]
  158. RH=Torso["Right Hip"]
  159. TorsoColor=Torso.BrickColor
  160. function NoOutline(Part)
  161. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  162. end
  163. player=Player
  164. ch=Character
  165. RSH=ch.Torso["Right Shoulder"]
  166. LSH=ch.Torso["Left Shoulder"]
  167. --
  168. RSH.Parent=nil
  169. LSH.Parent=nil
  170. --
  171. RW.Name="Right Shoulder"
  172. RW.Part0=ch.Torso
  173. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  174. RW.C1=cf(0, 0.5, 0)
  175. RW.Part1=ch["Right Arm"]
  176. RW.Parent=ch.Torso
  177. --
  178. LW.Name="Left Shoulder"
  179. LW.Part0=ch.Torso
  180. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  181. LW.C1=cf(0, 0.5, 0)
  182. LW.Part1=ch["Left Arm"]
  183. LW.Parent=ch.Torso
  184.  
  185.  
  186.  
  187. local function weldBetween(a, b)
  188. local weldd = Instance.new("ManualWeld")
  189. weldd.Part0 = a
  190. weldd.Part1 = b
  191. weldd.C0 = CFrame.new()
  192. weldd.C1 = b.CFrame:inverse() * a.CFrame
  193. weldd.Parent = a
  194. return weldd
  195. end
  196.  
  197. function swait(num)
  198. if num==0 or num==nil then
  199. game:service'RunService'.Heartbeat:wait(0)
  200. else
  201. for i=0,num do
  202. game:service'RunService'.Heartbeat:wait(0)
  203. end
  204. end
  205. end
  206.  
  207. a = Instance.new("ScreenGui")
  208. a.Name="CooldownGUI"
  209. a.Parent=Player.PlayerGui
  210.  
  211. b = Instance.new("Frame")
  212. b.Parent=a
  213. b.Visible=true
  214. b.BackgroundTransparency=0.3
  215. b.BackgroundColor3=Color3.fromRGB(0, 0, 0)
  216. b.BorderColor3=Color3.fromRGB(255, 255, 255)
  217. b.BorderSizePixel=3
  218. b.Position=UDim2.new(0.7, 0, 0.75, 0)
  219. b.Size=UDim2.new(0, 200, 0, 100)
  220.  
  221. c = Instance.new("Frame")
  222. c.Parent=a
  223. c.Visible=true
  224. c.BackgroundTransparency=0.3
  225. c.BorderColor3=Color3.fromRGB(255, 255, 255)
  226. c.BorderSizePixel=3
  227. c.BackgroundColor3=Color3.fromRGB(0, 0, 0)
  228. c.Position=UDim2.new(0.875, 0, 0.75, 0)
  229. c.Size=UDim2.new(0, 200, 0, 100)
  230.  
  231. d = Instance.new("Frame")
  232. d.Parent=a
  233. d.Visible=true
  234. d.BackgroundTransparency=0.3
  235. d.BorderColor3=Color3.fromRGB(255, 255, 255)
  236. d.BorderSizePixel=3
  237. d.BackgroundColor3=Color3.fromRGB(0, 0, 0)
  238. d.Position=UDim2.new(0.875, 0, 0.95, 0)
  239. d.Size=UDim2.new(0, 200, 0, 100)
  240.  
  241. e = Instance.new("Frame")
  242. e.Parent=a
  243. e.Visible=true
  244. e.BackgroundTransparency=0.3
  245. e.BorderColor3=Color3.fromRGB(255, 255, 255)
  246. e.BorderSizePixel=3
  247. e.BackgroundColor3=Color3.fromRGB(0, 0, 0)
  248. e.Position=UDim2.new(0.7, 0, 0.95, 0)
  249. e.Size=UDim2.new(0, 200, 0, 100)
  250.  
  251. f = Instance.new("Frame")
  252. f.Parent=a
  253. f.Visible=true
  254. f.BackgroundTransparency=0.3
  255. f.BorderColor3=Color3.fromRGB(255, 255, 255)
  256. f.BorderSizePixel=3
  257. f.BackgroundColor3=Color3.fromRGB(0, 0, 0)
  258. f.Position=UDim2.new(1.675, 0, 0.95, 0)
  259. f.Size=UDim2.new(0, 200, 0, 100)
  260.  
  261. g = Instance.new("Frame")
  262. g.Parent=a
  263. g.Visible=true
  264. g.BackgroundTransparency=0.3
  265. g.BorderColor3=Color3.fromRGB(255, 255, 255)
  266. g.BorderSizePixel=3
  267. g.BackgroundColor3=Color3.fromRGB(0, 0, 0)
  268. g.Position=UDim2.new(1.675, 0, 0.75, 0)
  269. g.Size=UDim2.new(0, 200, 0, 100)
  270.  
  271. b2=Instance.new("TextLabel")
  272. b2.Parent=a
  273. b2.BackgroundTransparency=1
  274. b2.BorderColor3=Color3.fromRGB(139, 139, 139)
  275. b2.BorderSizePixel=3
  276. b2.Position=b.Position
  277. b2.Size=UDim2.new(0, 200, 0, 100)
  278. b2.Visible=true
  279. b2.ZIndex=3
  280. b2.Font="SourceSansItalic"
  281. b2.FontSize="Size32"
  282. b2.TextColor3=Color3.fromRGB(255, 255, 255)
  283. b2.TextScaled=false
  284. b2.TextStrokeColor3=Color3.fromRGB(139, 139, 139)
  285. b2.TextTransparency=0
  286. b2.Text=[[
  287. Shock
  288. (Z)
  289. ]]
  290.  
  291. c2=Instance.new("TextLabel")
  292. c2.Parent=a
  293. c2.BackgroundTransparency=1
  294. c2.BorderColor3=Color3.fromRGB(139, 139, 139)
  295. c2.BorderSizePixel=3
  296. c2.Position=c.Position
  297. c2.Size=UDim2.new(0, 200, 0, 100)
  298. c2.Visible=true
  299. c2.ZIndex=3
  300. c2.Font="SourceSansItalic"
  301. c2.FontSize="Size32"
  302. c2.TextColor3=Color3.fromRGB(255, 255, 255)
  303. c2.TextScaled=false
  304. c2.TextStrokeColor3=Color3.fromRGB(139, 139, 139)
  305. c2.TextTransparency=0
  306. c2.Text=[[
  307. Dominator
  308. (X)
  309. ]]
  310.  
  311. d2=Instance.new("TextLabel")
  312. d2.Parent=a
  313. d2.BackgroundTransparency=1
  314. d2.BorderColor3=Color3.fromRGB(139, 139, 139)
  315. d2.BorderSizePixel=3
  316. d2.Position=d.Position
  317. d2.Size=UDim2.new(0, 200, 0, 100)
  318. d2.Visible=true
  319. d2.ZIndex=3
  320. d2.Font="SourceSansItalic"
  321. d2.FontSize="Size32"
  322. d2.TextColor3=Color3.fromRGB(255, 255, 255)
  323. d2.TextScaled=false
  324. d2.TextStrokeColor3=Color3.fromRGB(139, 139, 139)
  325. d2.TextTransparency=0
  326. d2.Text=[[
  327. Eliminator
  328. (V)
  329. ]]
  330.  
  331. e2=Instance.new("TextLabel")
  332. e2.Parent=a
  333. e2.BackgroundTransparency=1
  334. e2.BorderColor3=Color3.fromRGB(139, 139, 139)
  335. e2.BorderSizePixel=3
  336. e2.Position=e.Position
  337. e2.Size=UDim2.new(0, 200, 0, 100)
  338. e2.Visible=true
  339. e2.ZIndex=3
  340. e2.Font="SourceSansItalic"
  341. e2.FontSize="Size32"
  342. e2.TextColor3=Color3.fromRGB(255, 255, 255)
  343. e2.TextScaled=false
  344. e2.TextStrokeColor3=Color3.fromRGB(139, 139, 139)
  345. e2.TextTransparency=0
  346. e2.Text=[[
  347. Obliteration
  348. (C)
  349. ]]
  350.  
  351. function NoOutline(Part)
  352. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  353. end
  354.  
  355. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size,material)
  356. local fp = it("Part")
  357. fp.formFactor = formfactor
  358. fp.Parent = parent
  359. fp.Reflectance = reflectance
  360. fp.Transparency = transparency
  361. fp.CanCollide = false
  362. fp.Locked=true
  363. fp.BrickColor = brickcolor
  364. fp.Name = name
  365. fp.Size = size
  366. fp.Position = Torso.Position
  367. NoOutline(fp)
  368. fp.Material=material
  369. fp:BreakJoints()
  370. return fp
  371. end
  372.  
  373. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  374. local mesh = it(Mesh)
  375. mesh.Parent = part
  376. if Mesh=="SpecialMesh" then
  377. mesh.MeshType = meshtype
  378. mesh.MeshId = meshid
  379. end
  380. mesh.Offset=offset
  381. mesh.Scale=scale
  382. return mesh
  383. end
  384.  
  385. function weld(parent,part0,part1,c0)
  386. local weld = it("Weld")
  387. weld.Parent = parent
  388. weld.Part0 = part0
  389. weld.Part1 = part1
  390. weld.C0 = c0
  391. return weld
  392. end
  393.  
  394.  
  395. local function CFrameFromTopBack(at, top, back)
  396. local right = top:Cross(back)
  397. return CFrame.new(at.x, at.y, at.z,
  398. right.x, top.x, back.x,
  399. right.y, top.y, back.y,
  400. right.z, top.z, back.z)
  401. end
  402.  
  403. function Triangle(a, b, c)
  404. local edg1 = (c-a):Dot((b-a).unit)
  405. local edg2 = (a-b):Dot((c-b).unit)
  406. local edg3 = (b-c):Dot((a-c).unit)
  407. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  408. a, b, c = a, b, c
  409. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  410. a, b, c = b, c, a
  411. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  412. a, b, c = c, a, b
  413. else
  414. assert(false, "unreachable")
  415. end
  416.  
  417.  
  418. local len1 = (c-a):Dot((b-a).unit)
  419. local len2 = (b-a).magnitude - len1
  420. local width = (a + (b-a).unit*len1 - c).magnitude
  421.  
  422. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  423.  
  424. local list = {}
  425.  
  426. local Color = BrickColor.new("Dark grey")
  427.  
  428. if len1 > 0.01 then
  429. local w1 = Instance.new('WedgePart', m)
  430. game:GetService("Debris"):AddItem(w1,5)
  431. w1.Material = "SmoothPlastic"
  432. w1.FormFactor = 'Custom'
  433. w1.BrickColor = BrickColor.new("Really black")
  434. w1.Transparency = 0
  435. w1.Reflectance = 0
  436. w1.Material = "SmoothPlastic"
  437. w1.CanCollide = false
  438. NoOutline(w1)
  439. local sz = Vector3.new(0.2, width, len1)
  440. w1.Size = sz
  441. local sp = Instance.new("SpecialMesh",w1)
  442. sp.MeshType = "Wedge"
  443. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  444. w1:BreakJoints()
  445. w1.Anchored = true
  446. w1.Parent = workspace
  447. w1.Transparency = 0.7
  448. table.insert(Effects,{w1,"Disappear",.01})
  449. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  450. table.insert(list,w1)
  451. end
  452.  
  453. if len2 > 0.01 then
  454. local w2 = Instance.new('WedgePart', m)
  455. game:GetService("Debris"):AddItem(w2,5)
  456. w2.Material = "SmoothPlastic"
  457. w2.FormFactor = 'Custom'
  458. w2.BrickColor = BrickColor.new("Really red")
  459. w2.Transparency = 0
  460. w2.Reflectance = 0
  461. w2.Material = "SmoothPlastic"
  462. w2.CanCollide = false
  463. NoOutline(w2)
  464. local sz = Vector3.new(0.2, width, len2)
  465. w2.Size = sz
  466. local sp = Instance.new("SpecialMesh",w2)
  467. sp.MeshType = "Wedge"
  468. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  469. w2:BreakJoints()
  470. w2.Anchored = true
  471. w2.Parent = workspace
  472. w2.Transparency = 0.7
  473. table.insert(Effects,{w2,"Disappear",.01})
  474. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  475. table.insert(list,w2)
  476. end
  477. return unpack(list)
  478. end
  479.  
  480. so = function(id,par,vol,pit)
  481. coroutine.resume(coroutine.create(function()
  482. local sou = Instance.new("Sound",par or workspace)
  483. sou.Volume=vol
  484. sou.Pitch=pit or 1
  485. sou.SoundId=id
  486. swait()
  487. sou:play()
  488. game:GetService("Debris"):AddItem(sou,6)
  489. end))
  490. end
  491.  
  492. function clerp(a,b,t)
  493. local qa = {QuaternionFromCFrame(a)}
  494. local qb = {QuaternionFromCFrame(b)}
  495. local ax, ay, az = a.x, a.y, a.z
  496. local bx, by, bz = b.x, b.y, b.z
  497. local _t = 1-t
  498. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  499. end
  500.  
  501. function QuaternionFromCFrame(cf)
  502. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  503. local trace = m00 + m11 + m22
  504. if trace > 0 then
  505. local s = math.sqrt(1 + trace)
  506. local recip = 0.5/s
  507. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  508. else
  509. local i = 0
  510. if m11 > m00 then
  511. i = 1
  512. end
  513. if m22 > (i == 0 and m00 or m11) then
  514. i = 2
  515. end
  516. if i == 0 then
  517. local s = math.sqrt(m00-m11-m22+1)
  518. local recip = 0.5/s
  519. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  520. elseif i == 1 then
  521. local s = math.sqrt(m11-m22-m00+1)
  522. local recip = 0.5/s
  523. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  524. elseif i == 2 then
  525. local s = math.sqrt(m22-m00-m11+1)
  526. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  527. end
  528. end
  529. end
  530.  
  531. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  532. local xs, ys, zs = x + x, y + y, z + z
  533. local wx, wy, wz = w*xs, w*ys, w*zs
  534. local xx = x*xs
  535. local xy = x*ys
  536. local xz = x*zs
  537. local yy = y*ys
  538. local yz = y*zs
  539. local zz = z*zs
  540. 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))
  541. end
  542.  
  543. function QuaternionSlerp(a, b, t)
  544. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  545. local startInterp, finishInterp;
  546. if cosTheta >= 0.0001 then
  547. if (1 - cosTheta) > 0.0001 then
  548. local theta = math.acos(cosTheta)
  549. local invSinTheta = 1/math.sin(theta)
  550. startInterp = math.sin((1-t)*theta)*invSinTheta
  551. finishInterp = math.sin(t*theta)*invSinTheta
  552. else
  553. startInterp = 1-t
  554. finishInterp = t
  555. end
  556. else
  557. if (1+cosTheta) > 0.0001 then
  558. local theta = math.acos(-cosTheta)
  559. local invSinTheta = 1/math.sin(theta)
  560. startInterp = math.sin((t-1)*theta)*invSinTheta
  561. finishInterp = math.sin(t*theta)*invSinTheta
  562. else
  563. startInterp = t-1
  564. finishInterp = t
  565. end
  566. end
  567. 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
  568. end
  569.  
  570. --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)
  571.  
  572.  
  573. function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  574. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  575. end
  576.  
  577. Damagefunc=function(Part,hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  578. if hit.Parent==nil then
  579. return
  580. end
  581. local h=hit.Parent:FindFirstChild("Humanoid")
  582. for _,v in pairs(hit.Parent:children()) do
  583. if v:IsA("Humanoid") then
  584. h=v
  585. end
  586. end
  587. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  588. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  589. end
  590. if hit.Parent.className=="Hat" then
  591. hit=hit.Parent.Parent:findFirstChild("Head")
  592. end
  593. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  594. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  595. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  596. return
  597. end]]
  598. -- hs(hit,1.2)
  599. local c=Instance.new("ObjectValue")
  600. c.Name="creator"
  601. c.owner
  602. c.Parent=h
  603. game:GetService("Debris"):AddItem(c,.5)
  604. local Damage=math.random(minim,maxim)
  605. -- h:TakeDamage(Damage)
  606. local blocked=false
  607. local block=hit.Parent:findFirstChild("Block")
  608. if block~=nil then
  609. print(block.className)
  610. if block.className=="NumberValue" then
  611. if block.Value>0 then
  612. blocked=true
  613. if decreaseblock==nil then
  614. block.Value=block.Value-1
  615. end
  616. end
  617. end
  618. if block.className=="IntValue" then
  619. if block.Value>0 then
  620. blocked=true
  621. if decreaseblock~=nil then
  622. block.Value=block.Value-1
  623. end
  624. end
  625. end
  626. end
  627. if blocked==false then
  628. -- h:TakeDamage(Damage)
  629. h.Health=h.Health-Damage
  630. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, Part.BrickColor.Color)
  631. else
  632. h.Health=h.Health-(Damage/2)
  633. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Bright blue").Color)
  634. end
  635. if Type=="Knockdown" then
  636. local hum=hit.Parent.Humanoid
  637. hum.PlatformStand=true
  638. coroutine.resume(coroutine.create(function(HHumanoid)
  639. swait(1)
  640. HHumanoid.PlatformStand=false
  641. end),hum)
  642. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  643. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  644. local bodvol=Instance.new("BodyVelocity")
  645. bodvol.velocity=angle*knockback
  646. bodvol.P=5000
  647. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  648. bodvol.Parent=hit
  649. local rl=Instance.new("BodyAngularVelocity")
  650. rl.P=3000
  651. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  652. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  653. rl.Parent=hit
  654. game:GetService("Debris"):AddItem(bodvol,.5)
  655. game:GetService("Debris"):AddItem(rl,.5)
  656. elseif Type=="Normal" then
  657. local vp=Instance.new("BodyVelocity")
  658. vp.P=500
  659. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  660. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  661. if KnockbackType==1 then
  662. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  663. elseif KnockbackType==2 then
  664. vp.velocity=Property.CFrame.lookVector*knockback
  665. end
  666. if knockback>0 then
  667. vp.Parent=hit.Parent.Torso
  668. end
  669. game:GetService("Debris"):AddItem(vp,.5)
  670. elseif Type=="Up" then
  671. local bodyVelocity=Instance.new("BodyVelocity")
  672. bodyVelocity.velocity=vt(0,60,0)
  673. bodyVelocity.P=5000
  674. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  675. bodyVelocity.Parent=hit
  676. game:GetService("Debris"):AddItem(bodyVelocity,1)
  677. local rl=Instance.new("BodyAngularVelocity")
  678. rl.P=3000
  679. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  680. rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  681. rl.Parent=hit
  682. game:GetService("Debris"):AddItem(rl,.5)
  683. elseif Type=="Snare" then
  684. local bp=Instance.new("BodyPosition")
  685. bp.P=2000
  686. bp.D=100
  687. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  688. bp.position=hit.Parent.Torso.Position
  689. bp.Parent=hit.Parent.Torso
  690. game:GetService("Debris"):AddItem(bp,1)
  691. elseif Type=="Target" then
  692. local Targetting = false
  693. if Targetting==false then
  694. ZTarget=hit.Parent.Torso
  695. coroutine.resume(coroutine.create(function(Part)
  696. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  697. swait(5)
  698. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  699. end),ZTarget)
  700. local TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  701. local targetgui=Instance.new("BillboardGui")
  702. targetgui.Parent=ZTarget
  703. targetgui.Size=UDim2.new(10,100,10,100)
  704. local targ=Instance.new("ImageLabel")
  705. targ.Parent=targetgui
  706. targ.BackgroundTransparency=1
  707. targ.Image="rbxassetid://4834067"
  708. targ.Size=UDim2.new(1,0,1,0)
  709. local cam = game.Workspace.CurrentCamera
  710. cam.CameraType="Scriptable"
  711. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  712. local dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  713. workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  714. Targetting=true
  715. RocketTarget=ZTarget
  716. for i=1,Property do
  717. --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  718. if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  719. swait()
  720. end
  721. --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
  722. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  723. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  724. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  725. end
  726. Targetting=false
  727. RocketTarget=nil
  728. targetgui.Parent=nil
  729. cam.CameraType="Custom"
  730. end
  731. end
  732. local debounce=Instance.new("BoolValue")
  733. debounce.Name="DebounceHit"
  734. debounce.Parent=hit.Parent
  735. debounce.Value=true
  736. game:GetService("Debris"):AddItem(debounce,Delay)
  737. c=Instance.new("ObjectValue")
  738. c.Name="creator"
  739. c.Value=Player
  740. c.Parent=h
  741. game:GetService("Debris"):AddItem(c,.5)
  742. end
  743. end
  744.  
  745.  
  746. function ShowDamage(Pos, Text, Time, Color)
  747. local Rate = (1 / 30)
  748. local Pos = (Pos or Vector3.new(0, 0, 0))
  749. local Text = (Text or "")
  750. local Time = (Time or 2)
  751. local Color = (Color or Color3.new(1, 0, 0))
  752. local EffectPart=part(1,workspace,0,0,BrickColor.new("Really black"),"Effect",vt(0,0,0),"Granite")
  753. EffectPart.Anchored = true
  754. local BillboardGui = Instance.new("BillboardGui")
  755. BillboardGui.Size = UDim2.new(3, 0, 3, 0)
  756. BillboardGui.Adornee = EffectPart
  757. local TextLabel = Instance.new("TextLabel")
  758. TextLabel.BackgroundTransparency = 1
  759. TextLabel.Size = UDim2.new(1, 0, 1, 0)
  760. TextLabel.Text = Text
  761. TextLabel.TextColor3 = Color
  762. TextLabel.TextScaled = true
  763. TextLabel.Font = Enum.Font.ArialBold
  764. TextLabel.Parent = BillboardGui
  765. BillboardGui.Parent = EffectPart
  766. game.Debris:AddItem(EffectPart, (Time + 0.1))
  767. EffectPart.Parent = game:GetService("Workspace")
  768. Delay(0, function()
  769. local Frames = (Time / Rate)
  770. for Frame = 1, Frames do
  771. wait(Rate)
  772. local Percent = (Frame / Frames)
  773. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  774. TextLabel.TextTransparency = Percent
  775. end
  776. if EffectPart and EffectPart.Parent then
  777. EffectPart:Destroy()
  778. end
  779. end)
  780. end
  781.  
  782. function MagniDamage(Hit,Part,magni,mindam,maxdam,knock,Type)
  783. for _,c in pairs(workspace:children()) do
  784. local hum=c:findFirstChild("Humanoid")
  785. if hum~=nil then
  786. local head=c:findFirstChild("Torso")
  787. if head~=nil then
  788. local targ=head.Position-Part.Position
  789. local mag=targ.magnitude
  790. if mag<=magni and c.Name~=Player.Name then
  791. Damagefunc(Hit,head,mindam,maxdam,knock,Type,RootPart,.2,1,3)
  792. end
  793. end
  794. end
  795. end
  796. end
  797.  
  798. mod3 = Instance.new("Model",RightLeg)
  799.  
  800. function Stomp()
  801. local function fpart(formfactor,parent,reflectance,transparency,brickcolor,name,size,material)
  802. local fp = it("Part")
  803. fp.formFactor = formfactor
  804. fp.Parent = parent
  805. fp.Reflectance = reflectance
  806. fp.Transparency = transparency
  807. fp.CanCollide = false
  808. fp.Locked=true
  809. fp.BrickColor = brickcolor
  810. fp.Name = name
  811. fp.Size = size
  812. fp.Position = Torso.Position
  813. NoOutline(fp)
  814. fp.Material=material
  815. fp:BreakJoints()
  816. return fp
  817. end
  818. local function fmesh(Mesh,part,meshtype,meshid,offset,scale)
  819. local mesh = it(Mesh)
  820. mesh.Parent = part
  821. if Mesh=="SpecialMesh" then
  822. mesh.MeshType = meshtype
  823. mesh.MeshId = meshid
  824. end
  825. mesh.Offset=offset
  826. mesh.Scale=scale
  827. return mesh
  828. end
  829. local part = fpart("Custom",mod3,0,0.7,BrickColor.new("Crimson"),"Wave",vt(0.2,0.2,0.2),"Neon")
  830. part.Anchored = true
  831. local mesh = fmesh("SpecialMesh",part,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(25,25,25))
  832. local part2 = fpart("Custom",mod3,0,0.7,BrickColor.new("Crimson"),"Wave",vt(0.2,0.2,0.2),"Neon")
  833. part2.Anchored = true
  834. local mesh2 = fmesh("SpecialMesh",part2,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(15,15,15))
  835. local part3 = fpart("Custom",mod3,0,0.7,BrickColor.new("Crimson"),"Wave",vt(0.2,0.2,0.2),"Neon")
  836. part3.CFrame=RightLeg.CFrame*CFrame.new(0,-3,0)
  837. part3.Anchored = true
  838. local mesh3 = fmesh("SpecialMesh",part3,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(12,12,12))
  839. MagniDamage(part,part,30,10,15,math.random(10,20),"Knockdown")
  840. coroutine.resume(coroutine.create(function()
  841. for i=0,3.8,0.05 do
  842. wait()
  843. part.CFrame=part.CFrame
  844. part.Transparency=i
  845. mesh.Scale=mesh.Scale+Vector3.new(2.8,2.8,2.8)
  846. part2.CFrame=part2.CFrame
  847. part2.Transparency=i
  848. mesh2.Scale=mesh2.Scale+Vector3.new(1,1,1)
  849. part3.CFrame=part3.CFrame
  850. part3.Transparency=i
  851. mesh3.Scale=mesh3.Scale+Vector3.new(1.5,1.5,1.5)
  852. end
  853. end))
  854. end
  855.  
  856. model = Instance.new("Model",Character)
  857. model.Name = "Realm"
  858.  
  859. local handle=part(1,model,0,0,BrickColor.new("Really black"),"Handle",vt(0.2, 1.5, 0.2),"Granite")
  860. local prt1=part(1,model,0,0,BrickColor.new("Really black"),"Part1",vt(1.22, 7.2, 0.22),"Granite")
  861. local prt2=part(1,model,0,0,BrickColor.new("Maroon"),"Part2",vt(0.22, 2.4, 0.22),"Neon")
  862. local prt3=part(1,model,0,0,BrickColor.new("Maroon"),"Part3",vt(0.42, 0.85, 1.05),"Neon")
  863. local prt4=part(1,model,0,0,BrickColor.new("Really black"),"Part4",vt(0.22, 1.5, 0.22),"Granite")
  864. local prt5=part(1,model,0,0,BrickColor.new("Really black"),"Part5",vt(0.44, 0.6, 0.8),"Granite")
  865. local prt6=part(1,model,0,0,BrickColor.new("Maroon"),"Part6",vt(1.6, 1.4, 0.2),"Neon")
  866. local prt7=part(0,model,0,0,BrickColor.new("Really black"),"Part7",vt(0.4, 0.4, 0.4),"Granite")
  867. local prt8=part(1,model,0,0,BrickColor.new("Really black"),"Part8",vt(0.4, 0.3, 0.22),"Granite")
  868. local prt9=part(1,model,0,0,BrickColor.new("Really black"),"Part9",vt(0.4, 1.3, 1.5),"Granite")
  869. local prt10=part(1,model,0,0,BrickColor.new("Maroon"),"Part10",vt(0.3, 1.5, 1.7),"Neon")
  870. local prt11=part(1,model,0,0,BrickColor.new("Maroon"),"Part11",vt(0.4, 1.4, 0.22),"Neon")
  871. local prt13=part(1,model,0,0,BrickColor.new("Maroon"),"Part13",vt(1.3, 7.3, 0.2),"Neon")
  872. local prt15=part(1,model,0,0,BrickColor.new("Maroon"),"Part15",vt(1, 0.5, 0.22),"Neon")
  873. local prt16=part(1,model,0,0,BrickColor.new("Maroon"),"Part16",vt(1, 0.5, 0.22),"Neon")
  874.  
  875. local handlemesh=mesh("SpecialMesh",handle,"FileMesh","http://www.roblox.com/asset/?id=1033714",vt(0,0,0),vt(0.2,5,0.2))
  876. local msh2=mesh("SpecialMesh",prt2,"FileMesh","http://www.roblox.com/asset/?id=1033714",vt(0,0,0),vt(0.2, 5, 0.2))
  877. local msh3=mesh("SpecialMesh",prt3,"Cylinder","",vt(0,0,0),vt(1,1,2))
  878. local msh4=mesh("SpecialMesh",prt4,"FileMesh","http://www.roblox.com/asset/?id=1033714",vt(0,0,0),vt(0.2, 5, 0.2))
  879. local msh5=mesh("SpecialMesh",prt5,"Cylinder","",vt(0,0,0),vt(1,1,1))
  880. local msh6=mesh("SpecialMesh",prt6,"Sphere","",vt(0,0,0),vt(1,1,1))
  881. local msh8=mesh("SpecialMesh",prt8,"FileMesh","http://www.roblox.com/asset/?id=192551369",vt(0,0,0),vt(0.5, 0.5, 0.2))
  882. local msh9=mesh("SpecialMesh",prt9,"Cylinder","",vt(0,0,0),vt(1, 1, 2))
  883. local msh10=mesh("SpecialMesh",prt10,"Cylinder","",vt(0,0,0),vt(1, 1, 2))
  884.  
  885. local handleweld=weld(handle,handle,RightArm,euler(89.75, 0, 0)*cf(0,1,0))
  886. local wld1=weld(prt1,prt1,handle,euler(0, 80.1, 0)*cf(-0, 4.95, -0.02))
  887. local wld2=weld(prt2,prt2,handle,euler(0, 80.1, 0)*cf(0.005, 0.15, -0.005))
  888. local wld3=weld(prt3,prt3,handle,euler(0, 12.5, 0)*cf(-0, 1.303, -0.028))
  889. local wld4=weld(prt4,prt4,handle,euler(0, 80.1, 0)*cf(0.005, 0.4, -0.005))
  890. local wld5=weld(prt5,prt5,handle,euler(0, 12.5, 0)*cf(-0, 1.303, -0.028))
  891. local wld6=weld(prt6,prt6,handle,euler(0, 80.1, 0)*cf(-0, 8.8, -0.02))
  892. local wld7=weld(prt7,prt7,handle,euler(0, 80.1, 0)*cf(0.005, -1.8, -0.005))
  893. local wld8=weld(prt8,prt8,handle,euler(0, -80.1, 0)*cf(-0, 1.6, -0.02))
  894. local wld9=weld(prt9,prt9,handle,euler(0, 12.5, 0)*cf(-0, 1.303, -0.028))
  895. local wld10=weld(prt10,prt10,handle,euler(0, 12.5, 0)*cf(-0, 1.303, -0.028))
  896. local wld11=weld(prt11,prt11,handle,euler(0, 80.1, 0)*cf(-0.113, 8.501, -0.01))
  897. local wld13=weld(prt13,prt13,handle,euler(0, 80.1, 0)*cf(-0, 4.95, -0.02))
  898. local wld15=weld(prt15,prt15,handle,euler(0, 80.1, 0)*cf(-0.011, 3.903, 0))
  899. local wld16=weld(prt16,prt16,handle,euler(0, 80.1, 0)*cf(-0.011, 5.903, 0))
  900.  
  901. function attackone()
  902. attack = true
  903. local hitsounds={"199149137","199149186","199149221","199149235","199149269","199149297"}
  904. local con=prt1.Touched:connect(function(hit)
  905. Damagefunc(prt1,hit,5,13,5,"Normal",RootPart,.2,1,3)
  906. end)
  907. local fx=prt1.Touched:connect(function(part)
  908. local human=part.Parent:findFirstChild("Humanoid")
  909. if human~=nil and bounce==false then
  910. bounce=true
  911. local rndm=math.random(1,#hitsounds)
  912. local r=rndm
  913. so("http://www.roblox.com/asset/?id="..hitsounds[r],part.Parent,1,1)
  914. end
  915. end)
  916. for i = 0,1,0.1 do
  917. swait()
  918. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-50)),0.4)
  919. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(50)),0.4)
  920. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(10), math.rad(100)),0.4)
  921. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-60)),0.4)
  922. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(120),math.rad(0)),0.4)
  923. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.4)
  924. end
  925. so("http://www.roblox.com/asset/?id=199145841",handle,1,.9)
  926. for i = 0,1,0.1 do
  927. swait()
  928. local blcf = prt1.CFrame*CFrame.new(0,.5,0)
  929. if scfr and (prt1.Position-scfr.p).magnitude > .1 then
  930. local h = 10
  931. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  932. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  933. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  934. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  935. scfr = blcf
  936. elseif not scfr then
  937. scfr = blcf
  938. end
  939. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(80)),0.4)
  940. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(-10),math.rad(-80)),0.4)
  941. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(120), math.rad(90)),0.4)
  942. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)),0.4)
  943. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(50),math.rad(0)),0.4)
  944. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),0.4)
  945. end
  946. attack = false
  947. bounce=false
  948. scfr=nil
  949. fx:disconnect()
  950. con:disconnect()
  951. end
  952.  
  953. function attacktwo()
  954. attack=true
  955. local hitsounds={"199149137","199149186","199149221","199149235","199149269","199149297"}
  956. local con=prt1.Touched:connect(function(hit)
  957. Damagefunc(prt1,hit,5,15,5,"Normal",RootPart,.2,1,3) end)
  958. local fx=prt1.Touched:connect(function(part)
  959. local human=part.Parent:findFirstChild("Humanoid")
  960. if human~=nil and bounce==false then
  961. bounce=true
  962. local rndm=math.random(1,#hitsounds)
  963. local r=rndm
  964. so("http://www.roblox.com/asset/?id="..hitsounds[r],part.Parent,1,1)
  965. end
  966. end)
  967. for i=0,1,.1 do
  968. swait()
  969. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(70)),0.4)
  970. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(-10),math.rad(-70)),0.4)
  971. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(120), math.rad(90)),0.4)
  972. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)),0.4)
  973. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(40),math.rad(0)),0.4)
  974. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-140),math.rad(-10)),0.4)
  975. end
  976. so("http://www.roblox.com/asset/?id=199145887",handle,1,1)
  977. for i = 0,1,0.1 do
  978. swait()
  979. local blcf = prt1.CFrame*CFrame.new(0,.5,0)
  980. if scfr and (prt1.Position-scfr.p).magnitude > .1 then
  981. local h = 10
  982. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  983. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  984. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  985. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  986. scfr = blcf
  987. elseif not scfr then
  988. scfr = blcf
  989. end
  990. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-80)),0.4)
  991. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(80)),0.4)
  992. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(10), math.rad(90)),0.4)
  993. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)),0.4)
  994. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(140),math.rad(0)),0.4)
  995. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-40),math.rad(-10)),0.4)
  996. end
  997. scfr=nil
  998. attack=false
  999. bounce=false
  1000. con:disconnect()
  1001. fx:disconnect()
  1002. end
  1003.  
  1004. function Wave()
  1005. local function wpart(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  1006. local fp=it("Part")
  1007. fp.formFactor=formfactor
  1008. fp.Parent=parent
  1009. fp.Reflectance=reflectance
  1010. fp.Transparency=transparency
  1011. fp.CanCollide=false
  1012. fp.Locked=true
  1013. fp.BrickColor=BrickColor.new(tostring(brickcolor))
  1014. fp.Name=name
  1015. fp.Size=size
  1016. fp.Position=Character.Torso.Position
  1017. NoOutline(fp)
  1018. fp.Material=material
  1019. fp:BreakJoints()
  1020. return fp
  1021. end
  1022. attack=true
  1023. local hitsounds={"199149137","199149186","199149221","199149235","199149269","199149297"}
  1024. local con=prt1.Touched:connect(function(hit)
  1025. Damagefunc(prt1,hit,4,31,5,"Normal",RootPart,.2,1,3) end)
  1026. local fx=prt1.Touched:connect(function(part)
  1027. local human=part.Parent:findFirstChild("Humanoid")
  1028. if human~=nil and bounce==false then
  1029. bounce=true
  1030. local rndm=math.random(1,#hitsounds)
  1031. local r=rndm
  1032. so("http://www.roblox.com/asset/?id="..hitsounds[r],part.Parent,1,1)
  1033. end
  1034. end)
  1035. for i=0,1,.1 do
  1036. swait()
  1037. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-30)),0.4)
  1038. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(30)),.3)
  1039. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(20)),0.4)
  1040. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(25), math.rad(0), math.rad(-30)),0.4)
  1041. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(105),math.rad(0)),0.4)
  1042. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-75),math.rad(-10)),0.4)
  1043. end
  1044. so("http://www.roblox.com/asset/?id=199145913",handle,1,.9)
  1045. local hit,pos=rayCast(prt1.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,100,Character)
  1046. if hit~=nil then
  1047. local ref=wpart(3,workspace,"SmoothPlastic",0,1,BrickColor.new("Black"),"Effect",vt())
  1048. ref.Anchored=true
  1049. ref.CFrame=cf(pos)
  1050. game:GetService("Debris"):AddItem(ref,3)
  1051. local function BlastEffect(brickcolor,cframe,x1,y1,z1,x2,y2,z2)
  1052. local prt=wpart(3,workspace,"SmoothPlastic",0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  1053. prt.Anchored=true
  1054. prt.CFrame = cframe
  1055. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
  1056. coroutine.resume(coroutine.create(function()
  1057. for i=0,1,0.05 do
  1058. wait()
  1059. prt.Transparency=i
  1060. msh.Scale=msh.Scale+vt(x2,y2,z2)
  1061. end
  1062. prt.Parent=nil
  1063. end))
  1064. end
  1065. local function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  1066. local prt=wpart(3,workspace,"SmoothPlastic",0,0,brickcolor,"Effect",vt())
  1067. prt.Anchored=true
  1068. prt.CFrame=cframe
  1069. local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  1070. game:GetService("Debris"):AddItem(prt,2)
  1071. coroutine.resume(coroutine.create(function(Part,Mesh)
  1072. local wld=nil
  1073. for i=0,1,delay do
  1074. wait()
  1075. Part.CFrame=Part.CFrame
  1076. Part.Transparency=i
  1077. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  1078. end
  1079. Part.Parent=nil
  1080. end),prt,msh)
  1081. end
  1082. for i = 5,1,-1 do
  1083. BlastEffect(BrickColor.new("Maroon"),cf(pos),1,1,1,1,1,1)
  1084. MagicCircle(BrickColor.new("Maroon"),cf(pos),3,3,3,5,5,5,0.05)
  1085. swait()
  1086. end
  1087. MagniDamage(ref,ref,13,15,25,math.random(10,20),"Knockdown")
  1088. end
  1089. for i = 0,1,0.1 do
  1090. swait()
  1091. local blcf = prt1.CFrame*CFrame.new(0,.5,0)
  1092. if scfr and (prt1.Position-scfr.p).magnitude > .1 then
  1093. local h = 5
  1094. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  1095. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1096. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  1097. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1098. scfr = blcf
  1099. elseif not scfr then
  1100. scfr = blcf
  1101. end
  1102. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(50)),0.4)
  1103. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-50)),.3)
  1104. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)),0.4)
  1105. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)),0.4)
  1106. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(80),math.rad(0)),0.4)
  1107. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-100),math.rad(-10)),0.4)
  1108. end
  1109. attack=false
  1110. bounce=false
  1111. scfr=nil
  1112. con:disconnect()
  1113. fx:disconnect()
  1114. end
  1115.  
  1116. function Charge()
  1117. attack = true
  1118. local hitsounds={"199149137","199149186","199149221","199149235","199149269","199149297"}
  1119. local con=prt1.Touched:connect(function(hit)
  1120. Damagefunc(prt1,hit,10,40,50,"Normal",RootPart,.2,1,3) end)
  1121. local fx=prt1.Touched:connect(function(part)
  1122. local human=part.Parent:findFirstChild("Humanoid")
  1123. if human~=nil and bounce==false then
  1124. bounce=true
  1125. local rndm=math.random(1,#hitsounds)
  1126. local r=rndm
  1127. so("http://www.roblox.com/asset/?id="..hitsounds[r],part.Parent,1,1)
  1128. end
  1129. end)
  1130. for i = 0,1,0.1 do
  1131. swait()
  1132. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(-5),math.rad(-60)),.3)
  1133. Torso.Neck.C0=clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.3)
  1134. RW.C0=clerp(RW.C0,cf(1.5, 0.8, 0.2) * angles(math.rad(5), math.rad(-15), math.rad(112)), 0.3)
  1135. LW.C0=clerp(LW.C0,cf(-1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(-20)), 0.3)
  1136. RH.C0=clerp(RH.C0,cf(1.1,-1,0)*angles(math.rad(-5),math.rad(120),math.rad(-8)),.3)
  1137. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(5),math.rad(-60),math.rad(0)),.3)
  1138. end
  1139. so("http://www.roblox.com/asset/?id=199145433",prt1,1,1.1)
  1140. local v=it("BodyVelocity",Torso)
  1141. v.maxForce=Vector3.new(4e+005,4e+005,4e+005)*1
  1142. v.velocity=RootPart.CFrame.lookVector*100
  1143. function ppart(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  1144. local fp=it("Part")
  1145. fp.formFactor=formfactor
  1146. fp.Parent=parent
  1147. fp.Reflectance=reflectance
  1148. fp.Transparency=transparency
  1149. fp.CanCollide=false
  1150. fp.Locked=true
  1151. fp.BrickColor=BrickColor.new(tostring(brickcolor))
  1152. fp.Name=name
  1153. fp.Size=size
  1154. fp.Position=Character.Torso.Position
  1155. NoOutline(fp)
  1156. fp.Material=material
  1157. fp:BreakJoints()
  1158. return fp
  1159. end
  1160. for i=5,1,-1 do
  1161. for i=1,4 do
  1162. local prt=ppart(3,workspace,"SmoothPlastic",0,0,"Maroon","Effect",vt(0.5,0.5,0.5))
  1163. prt.Anchored=true
  1164. prt.Position=prt1.Position
  1165. local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(1,1,1))
  1166. coroutine.resume(coroutine.create(function(Part,Mesh)
  1167. for i=0,1,0.03 do
  1168. wait()
  1169. Part.CFrame=Part.CFrame
  1170. Part.Transparency=i
  1171. Mesh.Scale=Mesh.Scale+vt(1,1,1)
  1172. end
  1173. Part.Parent=nil
  1174. end),prt,msh)
  1175. MagniDamage(prt,prt,15,5,15,-10,"Normal")
  1176. end
  1177. swait(3)
  1178. end
  1179. local hitbox = prt1.Touched:connect(function(hit)
  1180. Damagefunc(prt1,hit,5,10,15,"Normal",RootPart,.2,1,3)
  1181. end)
  1182. hitbox:disconnect()
  1183. for i = 0,1,0.1 do
  1184. swait()
  1185. local blcf = prt1.CFrame*cf(0,0,0)
  1186. if scfr and (prt1.Position-scfr.p).magnitude > .1 then
  1187. local h = 5
  1188. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  1189. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1190. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  1191. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1192. scfr = blcf
  1193. elseif not scfr then
  1194. scfr = blcf
  1195. end
  1196. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(5),math.rad(60)),.3)
  1197. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
  1198. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-10), math.rad(60), math.rad(100)), 0.3)
  1199. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-15)), 0.3)
  1200. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  1201. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  1202. end
  1203. v.Parent=nil
  1204. scfr=nil
  1205. attack = false
  1206. bounce=false
  1207. con:disconnect()
  1208. fx:disconnect()
  1209. end
  1210.  
  1211. function Execution()
  1212. local function spart(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  1213. local fp=it("Part")
  1214. fp.formFactor=formfactor
  1215. fp.Parent=parent
  1216. fp.Reflectance=reflectance
  1217. fp.Transparency=transparency
  1218. fp.CanCollide=false
  1219. fp.Locked=true
  1220. fp.BrickColor=BrickColor.new(tostring(brickcolor))
  1221. fp.Name=name
  1222. fp.Size=size
  1223. fp.Position=Character.Torso.Position
  1224. NoOutline(fp)
  1225. fp.Material=material
  1226. fp:BreakJoints()
  1227. return fp
  1228. end
  1229. attack=true
  1230. local con1=prt1.Touched:connect(function(hit)
  1231. Damagefunc(prt1,hit,12,25,100,"Normal",RootPart,.2,1)
  1232. end)
  1233. for i=0,1,0.03 do
  1234. swait()
  1235. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(60)),.1)
  1236. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-60)),.1)
  1237. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(0),math.rad(90),math.rad(120)),.1)
  1238. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(100), math.rad(0), math.rad(0)), 0.1)
  1239. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(-10)),.1)
  1240. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.2)
  1241. end
  1242. so("http://roblox.com/asset/?id=92597369",prt1,1,0.5)
  1243. so("http://roblox.com/asset/?id=28144425",Torso,1,0.5)
  1244. hitconasdf = prt1.Touched:connect(function(hit)
  1245. local hum12 = hit.Parent:FindFirstChild("Humanoid")
  1246. if hum12 and not hum12:IsDescendantOf(Character) then
  1247. so('http://roblox.com/asset/?id=154965973',prt1,1,0.8)
  1248. hitconasdf:disconnect()
  1249. end
  1250. end)
  1251. for i=0,1,0.03 do
  1252. swait()
  1253. local blcf = prt1.CFrame*CFrame.new(0,.5,0)
  1254. if scfr and (prt1.Position-scfr.p).magnitude > .1 then
  1255. local h = 5
  1256. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  1257. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1258. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  1259. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1260. scfr = blcf
  1261. elseif not scfr then
  1262. scfr = blcf
  1263. end
  1264. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-90)),.2)
  1265. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(60)),.2)
  1266. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(0),math.rad(-20),math.rad(70)),.2)
  1267. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-40)), 0.2)
  1268. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(-10)),.2)
  1269. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.2)
  1270. end
  1271. attack=false
  1272. con1:disconnect()
  1273. scfr = nil
  1274. pcall(function()
  1275. hitconasdf:disconnect()
  1276. end)
  1277. end
  1278.  
  1279. function Destroyer()
  1280. attack=true
  1281. local hitsounds={"199149137","199149186","199149221","199149235","199149269","199149297"}
  1282. local con=prt1.Touched:connect(function(hit)
  1283. Damagefunc(prt1,hit,4,31,5,"Normal",RootPart,.2,1,3) end)
  1284. local fx=prt1.Touched:connect(function(part)
  1285. local human=part.Parent:findFirstChild("Humanoid")
  1286. if human~=nil and bounce==false then
  1287. bounce=true
  1288. local rndm=math.random(1,#hitsounds)
  1289. local r=rndm
  1290. so("http://www.roblox.com/asset/?id="..hitsounds[r],part.Parent,1,1)
  1291. end
  1292. end)
  1293. for i=0,1,.1 do
  1294. swait()
  1295. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-30)),0.4)
  1296. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(30)),.3)
  1297. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(20)),0.4)
  1298. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(25), math.rad(0), math.rad(-30)),0.4)
  1299. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(105),math.rad(0)),0.4)
  1300. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-75),math.rad(-10)),0.4)
  1301. end
  1302. Stomp()
  1303. for i = 0,1,0.1 do
  1304. swait()
  1305. local blcf = prt1.CFrame*CFrame.new(0,.5,0)
  1306. if scfr and (prt1.Position-scfr.p).magnitude > .1 then
  1307. local h = 5
  1308. local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
  1309. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1310. local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
  1311. if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
  1312. scfr = blcf
  1313. elseif not scfr then
  1314. scfr = blcf
  1315. end
  1316. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(50)),0.4)
  1317. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-50)),.3)
  1318. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)),0.4)
  1319. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)),0.4)
  1320. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(80),math.rad(0)),0.4)
  1321. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-100),math.rad(-10)),0.4)
  1322. end
  1323. attack=false
  1324. bounce=false
  1325. scfr=nil
  1326. con:disconnect()
  1327. fx:disconnect()
  1328. end
  1329.  
  1330. Mouse.Button1Down:connect(function()
  1331. if attack==false then
  1332. if attacktype==1 then
  1333. attack=true
  1334. attacktype=2
  1335. attackone()
  1336. elseif attacktype==2 then
  1337. attack=true
  1338. attacktype=1
  1339. attacktwo()
  1340. end
  1341. end
  1342. end)
  1343.  
  1344. skillattack1 = false
  1345. skillattack2 = false
  1346. skillattack3 = false
  1347. skillattack4 = false
  1348.  
  1349. Mouse.KeyDown:connect(function(k)
  1350. k=k:lower()
  1351. if skillattack1 == false and attack == false and k == 'z' then
  1352. b.Size=UDim2.new(0, 0, 0, 100)
  1353. Wave()
  1354. for i = 1, 50 do
  1355. skillattack1=true
  1356. b.Size=b.Size+UDim2.new(0, 4, 0, 0)
  1357. wait()
  1358. end
  1359. skillattack1=false
  1360. elseif skillattack2 == false and attack == false and k == 'v' then
  1361. d.Size=UDim2.new(0, 0, 0, 100)
  1362. Execution()
  1363. for i = 1, 200 do
  1364. skillattack2=true
  1365. d.Size=d.Size+UDim2.new(0, 1, 0, 0)
  1366. wait()
  1367. end
  1368. skillattack2=false
  1369. elseif skillattack3 == false and attack == false and k == 'c' then
  1370. e.Size=UDim2.new(0, 0, 0, 100)
  1371. Charge()
  1372. for i = 1, 50 do
  1373. skillattack3=true
  1374. e.Size=e.Size+UDim2.new(0, 4, 0, 0)
  1375. wait()
  1376. end
  1377. skillattack3=false
  1378. elseif skillattack4 == false and attack == false and k == 'x' then
  1379. c.Size=UDim2.new(0, 0, 0, 100)
  1380. Destroyer()
  1381. for i = 1, 100 do
  1382. skillattack4=true
  1383. c.Size=c.Size+UDim2.new(0, 2, 0, 0)
  1384. wait()
  1385. end
  1386. skillattack4=false
  1387. end
  1388. end)
  1389.  
  1390.  
  1391. local sine = 0
  1392. local change = 1
  1393. local val = 0
  1394.  
  1395. while true do
  1396. swait()
  1397. sine = sine + change
  1398. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  1399. local velderp=RootPart.Velocity.y
  1400. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  1401. if equipped==true or equipped==false then
  1402. if attack==false then
  1403. idle=idle+1
  1404. else
  1405. idle=0
  1406. end
  1407. if idle>=500 then
  1408. if attack==false then
  1409. --Sheath()
  1410. end
  1411. end
  1412. if RootPart.Velocity.y > 1 and hitfloor==nil then
  1413. Anim="Jump"
  1414. if attack==false then
  1415. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1416. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-1.5),math.rad(0),math.rad(0)),.3)
  1417. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-15), math.rad(0), math.rad(15)), 0.3)
  1418. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-15), math.rad(0), math.rad(-15)), 0.3)
  1419. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(20),math.rad(90),math.rad(-20)),.3)
  1420. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-20),math.rad(-90),math.rad(20)),.3)
  1421. end
  1422. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  1423. Anim="Fall"
  1424. if attack==false then
  1425. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1426. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(0)),.3)
  1427. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-15), math.rad(0), math.rad(25)), 0.3)
  1428. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-15), math.rad(0), math.rad(-25)), 0.3)
  1429. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(10),math.rad(90),math.rad(20)),.3)
  1430. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-10),math.rad(-90),math.rad(-20)),.3)
  1431. end
  1432. elseif torvel<1 and hitfloor~=nil then
  1433. Anim="Idle"
  1434. if attack==false then
  1435. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(15),math.rad(0),math.rad(-10)),.3)
  1436. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1437. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(40), math.rad(10), math.rad(-10)), 0.3)
  1438. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(5), math.rad(0), math.rad(-5)), 0.3)
  1439. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(80),math.rad(10)),.3)
  1440. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-70),math.rad(-20)),.3)
  1441. end
  1442. elseif torvel>2 and hitfloor~=nil then
  1443. Anim="Walk"
  1444. if attack==false then
  1445. change=3
  1446. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(00)),.3)
  1447. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  1448. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(20)), 0.3)
  1449. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-10)), 0.3)
  1450. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(10)),.3)
  1451. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(-10)),.3)
  1452. end
  1453. end
  1454. end
  1455. if #Effects>0 then
  1456. --table.insert(Effects,{prt,"Block1",delay})
  1457. for e=1,#Effects do
  1458. if Effects[e]~=nil then
  1459. --for j=1,#Effects[e] do
  1460. local Thing=Effects[e]
  1461. if Thing~=nil then
  1462. local Part=Thing[1]
  1463. local Mode=Thing[2]
  1464. local Delay=Thing[3]
  1465. local IncX=Thing[4]
  1466. local IncY=Thing[5]
  1467. local IncZ=Thing[6]
  1468. if Thing[1].Transparency<=1 then
  1469. if Thing[2]=="Block1" then
  1470. Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1471. Mesh=Thing[1].Mesh
  1472. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1473. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1474. elseif Thing[2]=="Cylinder" then
  1475. --local TheCF=Thing[1].CFrame
  1476. --Thing[1].CFrame=TheCF
  1477. Mesh=Thing[1].Mesh
  1478. Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
  1479. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1480. elseif Thing[2]=="Elec" then
  1481. Mesh=Thing[1].Mesh
  1482. Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9])
  1483. --Thing[3]=Thing[3]+Delay
  1484. Thing[1].Transparency=Thing[1].Transparency+Thing[3]
  1485. --print(Thing[1].Transparency)
  1486.  
  1487. --[[local prt=part(3,workspace,0,0,BrickColor.new("White"),"Part",vt(1,1,1))
  1488. prt.Anchored=true
  1489. game:GetService("Debris"):AddItem(prt,2)
  1490. xval=math.random()
  1491. yval=math.random()
  1492. zval=math.random()
  1493. msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(xval,yval,zval))
  1494. Effects[#Effects+1]={prt,"Elec",0.05,x,y,z,xval,yval,zval}]]
  1495. --[[coroutine.resume(coroutine.create(function(Part,Mesh,Frame,xvaal,yvaal,zvaal)
  1496. Part.CFrame=cf(Frame)*cf(math.random(-x,x),math.random(-y,y),math.random(-z,z))
  1497. for i=0,1,0.05 do
  1498. swait()
  1499. xvaal=xvaal-0.1
  1500. yvaal=yvaal-0.1
  1501. zvaal=zvaal-0.1
  1502. Mesh.Scale=vt(xvaal,yvaal,zvaal)
  1503. Part.Transparency=i
  1504. end
  1505. Part.Parent=nil
  1506. end),prt,msh,cff,xval,yval,zval)]]
  1507. end
  1508. else
  1509. Part.Parent=nil
  1510. table.remove(Effects,e)
  1511. end
  1512. end
  1513. --end
  1514. end
  1515. end
  1516. end
  1517. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement