Advertisement
lafur

Untitled

Nov 6th, 2018
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --https://github.com/Mokiros/roblox-FE-compatibility
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  4. local RealPlayer = Player
  5. do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end --Made by noobygames12
  6.  
  7. p = game.Players.LocalPlayer
  8. char = p.Character
  9. torso = char.Torso
  10. neck = char.Torso.Neck
  11.  
  12. Player=game:GetService("Players").LocalPlayer
  13. Character=Player.Character
  14. PlayerGui=Player.PlayerGui
  15. Backpack=Player.Backpack
  16. Torso=Character.Torso
  17. Head=Character.Head
  18. Humanoid=Character.Humanoid
  19. LeftArm=Character["Left Arm"]
  20. LeftLeg=Character["Left Leg"]
  21. RightArm=Character["Right Arm"]
  22. RightLeg=Character["Right Leg"]
  23. cam=game.Workspace.CurrentCamera
  24. LS=Torso["Left Shoulder"]
  25. LH=Torso["Left Hip"]
  26. RS=Torso["Right Shoulder"]
  27. RH=Torso["Right Hip"]
  28. Face = Head.face
  29. Neck=Torso.Neck
  30. it=Instance.new
  31. attacktype=1
  32. vt=Vector3.new
  33. cf=CFrame.new
  34. euler=CFrame.fromEulerAnglesXYZ
  35. angles=CFrame.Angles
  36. cloaked=false
  37. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  38. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  39. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  40. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  41. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  42. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  43. RootPart=Character.HumanoidRootPart
  44. RootJoint=RootPart.RootJoint
  45. RootCF=euler(-1.57,0,3.14)
  46. attack = false
  47. bounce=false
  48. cooldown=false
  49. deeznuts=false
  50. attackdebounce = false
  51. deb=false
  52. equipped=true
  53. hand=false
  54. MMouse=nil
  55. combo=0
  56. mana=0
  57. trispeed=.2
  58. attackmode='none'
  59. local idle=0
  60. local Anim="Idle"
  61. local Effects={}
  62. local gun=false
  63. local shoot=false
  64. player=nil
  65. mana=0
  66. cam = workspace.CurrentCamera
  67. ZTarget = nil
  68. RocketTarget = nil
  69. local m = Instance.new("Model",Character)
  70. m.Name = "WeaponModel"
  71.  
  72. mouse=Player:GetMouse()
  73. --save shoulders
  74. RSH, LSH=nil, nil
  75. --welds
  76. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  77. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  78. LH=Torso["Left Hip"]
  79. RH=Torso["Right Hip"]
  80. TorsoColor=Torso.BrickColor
  81. function NoOutline(Part)
  82. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  83. end
  84. player=Player
  85. ch=Character
  86. RSH=ch.Torso["Right Shoulder"]
  87. LSH=ch.Torso["Left Shoulder"]
  88. --
  89. RSH.Parent=nil
  90. LSH.Parent=nil
  91. --
  92. RW.Name="Right Shoulder"
  93. RW.Part0=ch.Torso
  94. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  95. RW.C1=cf(0, 0.5, 0)
  96. RW.Part1=ch["Right Arm"]
  97. RW.Parent=ch.Torso
  98. --
  99. LW.Name="Left Shoulder"
  100. LW.Part0=ch.Torso
  101. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  102. LW.C1=cf(0, 0.5, 0)
  103. LW.Part1=ch["Left Arm"]
  104. LW.Parent=ch.Torso
  105.  
  106. function swait(num)
  107. if num==0 or num==nil then
  108. game:service'RunService'.Heartbeat:wait(0)
  109. else
  110. for i=0,num do
  111. game:service'RunService'.Heartbeat:wait(0)
  112. end
  113. end
  114. end
  115.  
  116.  
  117. local Player = game.Players.localPlayer
  118. local Character = Player.Character
  119. local red = 255
  120. local green = 255
  121. local blue = 255
  122. local Humanoid = Character.Humanoid
  123. local mouse = Player:GetMouse()
  124. local m = Instance.new("Model", Character)
  125. m.Name = "WeaponModel"
  126. local LeftArm = Character["Left Arm"]
  127. local RightArm = Character["Right Arm"]
  128. local LeftLeg = Character["Left Leg"]
  129. local RightLeg = Character["Right Leg"]
  130. local Head = Character.Head
  131. local Torso = Character.Torso
  132. local cam = game.Workspace.CurrentCamera
  133. local RootPart = Character.HumanoidRootPart
  134. local RootJoint = RootPart.RootJoint
  135. local equipped = false
  136. local attack = false
  137. local Anim = "Idle"
  138. local idle = 0
  139. local attacktype = 1
  140. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  141. local velocity = RootPart.Velocity.y
  142. local sine = 0
  143. local change = 1
  144. local grabbed = false
  145. local cn = CFrame.new
  146. local mr = math.rad
  147. local angles = CFrame.Angles
  148. local ud = UDim2.new
  149. local c3 = Color3.new
  150. local lim = 0
  151. local st = 0
  152. local necko = cn(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  153. local attacktype = 1
  154. local ZTarget, RocketTarget = nil, nil
  155. local euler = CFrame.fromEulerAnglesXYZ
  156. function clerp(a,b,t)
  157. local qa = {QuaternionFromCFrame(a)}
  158. local qb = {QuaternionFromCFrame(b)}
  159. local ax, ay, az = a.x, a.y, a.z
  160. local bx, by, bz = b.x, b.y, b.z
  161. local _t = 1-t
  162. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  163. end
  164.  
  165. function QuaternionFromCFrame(cf)
  166. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  167. local trace = m00 + m11 + m22
  168. if trace > 0 then
  169. local s = math.sqrt(1 + trace)
  170. local recip = 0.5/s
  171. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  172. else
  173. local i = 0
  174. if m11 > m00 then
  175. i = 1
  176. end
  177. if m22 > (i == 0 and m00 or m11) then
  178. i = 2
  179. end
  180. if i == 0 then
  181. local s = math.sqrt(m00-m11-m22+1)
  182. local recip = 0.5/s
  183. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  184. elseif i == 1 then
  185. local s = math.sqrt(m11-m22-m00+1)
  186. local recip = 0.5/s
  187. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  188. elseif i == 2 then
  189. local s = math.sqrt(m22-m00-m11+1)
  190. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  191. end
  192. end
  193. end
  194.  
  195. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  196. local xs, ys, zs = x + x, y + y, z + z
  197. local wx, wy, wz = w*xs, w*ys, w*zs
  198. local xx = x*xs
  199. local xy = x*ys
  200. local xz = x*zs
  201. local yy = y*ys
  202. local yz = y*zs
  203. local zz = z*zs
  204. 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))
  205. end
  206.  
  207. function QuaternionSlerp(a, b, t)
  208. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  209. local startInterp, finishInterp;
  210. if cosTheta >= 0.0001 then
  211. if (1 - cosTheta) > 0.0001 then
  212. local theta = math.acos(cosTheta)
  213. local invSinTheta = 1/math.sin(theta)
  214. startInterp = math.sin((1-t)*theta)*invSinTheta
  215. finishInterp = math.sin(t*theta)*invSinTheta
  216. else
  217. startInterp = 1-t
  218. finishInterp = t
  219. end
  220. else
  221. if (1+cosTheta) > 0.0001 then
  222. local theta = math.acos(-cosTheta)
  223. local invSinTheta = 1/math.sin(theta)
  224. startInterp = math.sin((t-1)*theta)*invSinTheta
  225. finishInterp = math.sin(t*theta)*invSinTheta
  226. else
  227. startInterp = t-1
  228. finishInterp = t
  229. end
  230. end
  231. 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
  232. end
  233. rayCast = function(Position, Direction, Range, Ignore)
  234. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  235. end
  236. local v = game.Players.localPlayer
  237. local torso = v.Character.Torso
  238.  
  239. plr = game.Players.LocalPlayer
  240. char = game.Players.LocalPlayer.Character
  241. hum = game.Players.LocalPlayer.Character.Humanoid
  242. t = game.Players.LocalPlayer.Character.Torso
  243. h = game.Players.LocalPlayer.Character.Head
  244. ra = game.Players.LocalPlayer.Character["Right Arm"]
  245. la = game.Players.LocalPlayer.Character["Left Arm"]
  246. rl = game.Players.LocalPlayer.Character["Right Leg"]
  247. ll = game.Players.LocalPlayer.Character["Left Leg"]
  248. tors = Character.Torso
  249. lleg = Character["Left Leg"]
  250. root = Character.HumanoidRootPart
  251. hed = Character.Head
  252. rleg = Character["Right Leg"]
  253. rarm = Character["Right Arm"]
  254. larm = Character["Left Arm"]
  255. bsize1 = NumberSequenceKeypoint.new(3,3,3)
  256. bsize2 = NumberSequenceKeypoint.new(10,10,10)
  257. local Effects = {}
  258. attack = false
  259. local attacking = false
  260. vt = Vector3.new
  261. bc = BrickColor.new
  262. br = BrickColor.random
  263. it = Instance.new
  264. cf = CFrame.new
  265. euler = CFrame.fromEulerAnglesXYZ
  266. angles = CFrame.Angles
  267. matr = math.random
  268. local colororg = BrickColor.new("Dark indigo") -- set color u like
  269. local meshtype = "Sphere" -- only for specialmesh
  270. mouse = plr:GetMouse()
  271.  
  272.  
  273. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  274. if hit.Parent==nil then
  275. return
  276. end
  277. h=hit.Parent:FindFirstChild("Humanoid")
  278. for _,v in pairs(hit.Parent:children()) do
  279. if v:IsA("Humanoid") then
  280. h=v
  281. end
  282. end
  283. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  284. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  285. end
  286. if hit.Parent.className=="Hat" then
  287. hit=hit.Parent.Parent:findFirstChild("Head")
  288. end
  289. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  290. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  291. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  292. return
  293. end]]
  294. -- hs(hit,1.2)
  295. c=Instance.new("ObjectValue")
  296. c.Name="creator"
  297. c.Value=game:service("Players").LocalPlayer
  298. c.Parent=h
  299. game:GetService("Debris"):AddItem(c,.5)
  300. Damage=math.random(minim,maxim)
  301. -- h:TakeDamage(Damage)
  302. blocked=false
  303. block=hit.Parent:findFirstChild("Block")
  304. if block~=nil then
  305. print(block.className)
  306. if block.className=="NumberValue" then
  307. if block.Value>0 then
  308. blocked=true
  309. if decreaseblock==nil then
  310. block.Value=block.Value-1
  311. end
  312. end
  313. end
  314. if block.className=="IntValue" then
  315. if block.Value>0 then
  316. blocked=true
  317. if decreaseblock~=nil then
  318. block.Value=block.Value-1
  319. end
  320. end
  321. end
  322. end
  323. if blocked==false then
  324. -- h:TakeDamage(Damage)
  325. h.Health=h.Health-Damage
  326. showDamage(hit.Parent,Damage,3,TorsoColor)
  327. else
  328. h.Health=h.Health-(Damage/2)
  329. showDamage(hit.Parent,Damage/2,3,BrickColor.new("Bright blue"))
  330. end
  331. if Type=="Knockdown" then
  332. hum=hit.Parent.Humanoid
  333. hum.PlatformStand=true
  334. coroutine.resume(coroutine.create(function(HHumanoid)
  335. swait(1)
  336. HHumanoid.PlatformStand=false
  337. end),hum)
  338. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  339. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  340. local bodvol=Instance.new("BodyVelocity")
  341. bodvol.velocity=angle*knockback
  342. bodvol.P=5000
  343. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  344. bodvol.Parent=hit
  345. rl=Instance.new("BodyAngularVelocity")
  346. rl.P=3000
  347. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  348. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  349. rl.Parent=hit
  350. game:GetService("Debris"):AddItem(bodvol,.5)
  351. game:GetService("Debris"):AddItem(rl,.5)
  352. elseif Type=="Normal" then
  353. vp=Instance.new("BodyVelocity")
  354. vp.P=500
  355. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  356. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  357. if KnockbackType==1 then
  358. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  359. elseif KnockbackType==2 then
  360. vp.velocity=Property.CFrame.lookVector*knockback
  361. end
  362. if knockback>0 then
  363. vp.Parent=hit.Parent.Torso
  364. end
  365. game:GetService("Debris"):AddItem(vp,.5)
  366. elseif Type=="Up" then
  367. local bodyVelocity=Instance.new("BodyVelocity")
  368. bodyVelocity.velocity=vt(0,10,0)
  369. bodyVelocity.P=1000
  370. bodyVelocity.maxForce=Vector3.new(1e+009, 1e+009, 1e+009)
  371. bodyVelocity.Parent=hit
  372. game:GetService("Debris"):AddItem(bodyVelocity,1)
  373. rl=Instance.new("BodyAngularVelocity")
  374. rl.P=3000
  375. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  376. rl.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  377. rl.Parent=hit
  378. game:GetService("Debris"):AddItem(rl,.5)
  379. elseif Type=="Snare" then
  380. bp=Instance.new("BodyPosition")
  381. bp.P=2000
  382. bp.D=100
  383. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  384. bp.position=hit.Parent.Torso.Position
  385. bp.Parent=hit.Parent.Torso
  386. game:GetService("Debris"):AddItem(bp,1)
  387. elseif Type=="Target" then
  388. if Targetting==false then
  389. ZTarget=hit.Parent.Torso
  390. coroutine.resume(coroutine.create(function(Part)
  391. swait(5)
  392. end),ZTarget)
  393. TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  394. targetgui=Instance.new("BillboardGui")
  395. targetgui.Parent=ZTarget
  396. targetgui.Size=UDim2.new(10,100,10,100)
  397. targ=Instance.new("ImageLabel")
  398. targ.Parent=targetgui
  399. targ.BackgroundTransparency=1
  400. targ.Image="rbxassetid://4834067"
  401. targ.Size=UDim2.new(1,0,1,0)
  402. cam.CameraType="Scriptable"
  403. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  404. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  405. workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  406. Targetting=true
  407. RocketTarget=ZTarget
  408. for i=1,Property do
  409. --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  410. if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  411. swait()
  412. end
  413. --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
  414. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  415. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  416. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  417. end
  418. Targetting=false
  419. RocketTarget=nil
  420. targetgui.Parent=nil
  421. cam.CameraType="Custom"
  422. end
  423. end
  424. debounce=Instance.new("BoolValue")
  425. debounce.Name="DebounceHit"
  426. debounce.Parent=hit.Parent
  427. debounce.Value=true
  428. game:GetService("Debris"):AddItem(debounce,Delay)
  429. c=Instance.new("ObjectValue")
  430. c.Name="creator"
  431. c.Value=Player
  432. c.Parent=h
  433. game:GetService("Debris"):AddItem(c,.5)
  434. CRIT=false
  435. hitDeb=true
  436. AttackPos=6
  437. end
  438. end
  439.  
  440. showDamage=function(Char,Dealt,du,Color)
  441. m=Instance.new("Model")
  442. m.Name=""
  443. h=Instance.new("Humanoid")
  444. h.Health=0
  445. h.MaxHealth=0
  446. h.Parent=m
  447. c=Instance.new("Part")
  448. c.Transparency=0
  449. c.Material = "Neon"
  450. c.BrickColor=bc("Bright red")
  451. c.Name="Head"
  452. c.TopSurface=0
  453. c.BottomSurface=0
  454. CV="Hot pink"
  455.  
  456. local txt = Instance.new("BillboardGui", c)
  457. txt.Adornee = c
  458. txt.Name = "_status"
  459. txt.Size = UDim2.new(2, 0, 1.2, 0)
  460. txt.StudsOffset = Vector3.new(-9, 8, 0)
  461. local text = Instance.new("TextLabel", txt)
  462. text.Size = UDim2.new(10, 0, 7, 0)
  463. text.FontSize = "Size24"
  464. text.TextScaled = true
  465. text.TextTransparency = 0
  466. text.BackgroundTransparency = 1
  467. text.TextTransparency = 0
  468. text.TextStrokeTransparency = 0
  469. if Dealt < 12 then
  470. text.Font = "Highway"
  471. elseif Dealt < 20 then
  472. text.Font = "SourceSansBold"
  473. elseif Dealt >= 20 then
  474. text.Font = "Fantasy"
  475. end
  476. text.TextStrokeColor3 = BrickColor.new("Really black").Color
  477. local hitsounds={"199149137","199149186","199149221","199149235","199149269","199149297"}
  478. v=Instance.new("Part")
  479. v.Name = "ColorBrick"
  480. v.Parent=c
  481. v.FormFactor="Symmetric"
  482. v.Anchored=true
  483. v.CanCollide=false
  484. v.BottomSurface="Smooth"
  485. v.TopSurface="Smooth"
  486. v.Size=Vector3.new(10,5,3)
  487. v.Transparency=1
  488. v.CFrame=c.CFrame
  489. v.BrickColor=BrickColor.new(CV)
  490. v.Transparency=1
  491. if Dealt < 12 then
  492. text.TextColor3 = BrickColor.new("White").Color
  493. elseif Dealt < 20 then
  494. text.TextColor3 = BrickColor.new("Bright yellow").Color
  495. elseif Dealt >= 20 then
  496. text.TextColor3 = BrickColor.new("Really red").Color
  497. end
  498. v.Shape="Block"
  499. text.Text = tostring(Dealt).. "!"
  500. local dam = Instance.new("Sound",c)
  501. local rndm=math.random(1,#hitsounds)
  502. local r=rndm
  503. dam.SoundId = "http://www.roblox.com/asset/?id="..hitsounds[r]
  504. dam.Volume = 1.25
  505. dam.Pitch = 1
  506. dam:Play()
  507. c.formFactor="Plate"
  508. c.Transparency = 1
  509. c.Size=Vector3.new(1,.4,1)
  510. ms=Instance.new("CylinderMesh")
  511. ms.Scale=Vector3.new(.8,.8,.8)
  512. if CRIT==true then
  513. ms.Scale=Vector3.new(1,1.25,1)
  514. end
  515. ms.Parent=c
  516. c.Reflectance=0
  517. Instance.new("BodyGyro").Parent=c
  518. c.Parent=m
  519. if Char:findFirstChild("Head")~=nil then
  520. c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  521. elseif Char.Parent:findFirstChild("Head")~=nil then
  522. c.CFrame=CFrame.new(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0))
  523. end
  524. f=Instance.new("BodyPosition")
  525. f.P=2000
  526. f.D=100
  527. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  528. f.position=c.Position+Vector3.new(0,3,0)
  529. f.Parent=c
  530. game:GetService("Debris"):AddItem(m,.5+du)
  531. c.CanCollide=false
  532. m.Parent=workspace
  533. c.CanCollide=false
  534. wait(1)
  535. for l = 0, 9 do
  536. text.TextTransparency = text.TextTransparency + 0.1
  537. text.TextStrokeTransparency = text.TextStrokeTransparency + 0.1
  538. wait()
  539. end
  540. end
  541.  
  542. gui = function(GuiType, parent, text, backtrans, backcol, pos, size)
  543. local gui = it(GuiType)
  544. gui.Parent = parent
  545. gui.Text = text
  546. gui.BackgroundTransparency = backtrans
  547. gui.BackgroundColor3 = backcol
  548. gui.SizeConstraint = "RelativeXY"
  549. gui.TextXAlignment = "Center"
  550. gui.TextYAlignment = "Center"
  551. gui.Position = pos
  552. gui.Size = size
  553. gui.Font = "SourceSans"
  554. gui.FontSize = "Size14"
  555. gui.TextWrapped = false
  556. gui.TextStrokeTransparency = 0
  557. gui.TextColor = BrickColor.new("White")
  558. return gui
  559. end
  560.  
  561. local mana = 249
  562. ---- GUI set
  563. local basgui = it("GuiMain")
  564. basgui.Parent = Player.PlayerGui
  565. basgui.Name = "CooldownsGUI"
  566. local basframe = it("Frame")
  567. basframe.Parent = basgui
  568. basframe.BackgroundColor3 = Color3.new(255, 255, 255)
  569. basframe.BackgroundTransparency = 1
  570. basframe.BorderColor3 = Color3.new(17, 17, 17)
  571. basframe.Size = UDim2.new(0.2, 0, 0.2, 0)
  572. basframe.Position = UDim2.new(0.8, 0, 0.8, 0)
  573. local basicgui = gui("TextLabel", basframe, "Basic", 0, BrickColor.new("Bright orange").Color, UDim2.new(-0.15, 0, -0.175, 0), UDim2.new(0.45, 0, 0.35, 0))
  574. basicgui.ZIndex = 2
  575. basicgui.Font = "Highway"
  576. basicgui.BackgroundTransparency = 0.5
  577. basicgui.BorderSizePixel = 0.65
  578. basicgui.TextScaled = true
  579. basicgui.Text = "(Z)\nHotshot"
  580. basicgui.TextSize = 24
  581. local basicgui2 = gui("TextLabel", basframe, "Basic", 0, BrickColor.new("Bright orange").Color, UDim2.new(0.35, 0, -0.175, 0), UDim2.new(0.45, 0, 0.35, 0))
  582. basicgui2.ZIndex = 2
  583. basicgui2.Font = "Highway"
  584. basicgui2.BackgroundTransparency = 0.5
  585. basicgui2.BorderSizePixel = 0.65
  586. basicgui2.TextScaled = true
  587. basicgui2.Text = "(X)\nBlazing Dash"
  588. basicgui2.TextSize = 24
  589. local basicgui3 = gui("TextLabel", basframe, "Basic", 0, BrickColor.new("Bright orange").Color, UDim2.new(-0.15, 0, 0.225, 0), UDim2.new(0.45, 0, 0.35, 0))
  590. basicgui3.ZIndex = 2
  591. basicgui3.Font = "Highway"
  592. basicgui3.BackgroundTransparency = 0.5
  593. basicgui3.BorderSizePixel = 0.65
  594. basicgui3.TextScaled = true
  595. basicgui3.Text = "(C)\nBlazing Boomrang"
  596. basicgui3.TextSize = 24
  597. local basicgui4 = gui("TextLabel", basframe, "Basic", 0, BrickColor.new("Bright orange").Color, UDim2.new(0.35, 0, 0.225, 0), UDim2.new(0.45, 0, 0.35, 0))
  598. basicgui4.ZIndex = 2
  599. basicgui4.Font = "Highway"
  600. basicgui4.BackgroundTransparency = 0.5
  601. basicgui4.BorderSizePixel = 0.65
  602. basicgui4.TextScaled = true
  603. basicgui4.Text = "(V)\nDying Star"
  604. basicgui4.TextSize = 24
  605.  
  606. local healthg = gui("TextLabel", basframe, "Basic", 0, BrickColor.new("Really black").Color, UDim2.new(-0.15, 0, 0.675, 0), UDim2.new(0.95, 0, 0.15, 0))
  607. healthg.ZIndex = 2
  608. healthg.Font = "Highway"
  609. healthg.BackgroundTransparency = 0.5
  610. healthg.BorderSizePixel = 0.65
  611. healthg.TextScaled = true
  612. healthg.Text = "health"
  613. healthg.TextSize = 24
  614.  
  615. local manag = gui("TextLabel", basframe, "Basic", 0, BrickColor.new("Bright blue").Color, UDim2.new(-0.15, 0, -0.35, 0), UDim2.new(0.95, 0, 0.15, 0))
  616. manag.ZIndex = 2
  617. manag.Font = "Highway"
  618. manag.BackgroundTransparency = 0.5
  619. manag.BorderSizePixel = 0.65
  620. manag.TextScaled = true
  621. manag.Text = "health"
  622. manag.TextSize = 24
  623.  
  624. ---------------- Weapon model
  625.  
  626. local handle = Instance.new("Part")
  627. handle.Parent = Character
  628. handle.Size = Vector3.new(1,1,1)
  629. handle.Archivable = true
  630. handle.Transparency = 0.99
  631. handle.BrickColor = BrickColor.new("White")
  632. handle.Material = "Neon"
  633. local handlmesh = Instance.new("BlockMesh",handle)
  634. handlmesh.Scale = Vector3.new(1,1,1)
  635. local handleweld = Instance.new("Weld")
  636. handleweld.Parent = handle
  637. handleweld.Part0 = torso
  638. handleweld.Part1 = handle
  639. handleweld.C1 = CFrame.new(0, 2.5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  640. local par = Instance.new("Part")
  641. par.Parent = Character
  642. par.Size = Vector3.new(0.2,0.2,0.2)
  643. par.Archivable = true
  644. par.Transparency = 0
  645. par.BrickColor = BrickColor.new("Really black")
  646. par.Material = "Metal"
  647. local parmesh = Instance.new("SpecialMesh",par)
  648. parmesh.MeshType = "FileMesh"
  649. parmesh.MeshId = "http://www.roblox.com/asset?id=156292343"
  650. parmesh.Scale = Vector3.new(5,5,5)
  651. local weld12 = Instance.new("Weld")
  652. weld12.Parent = par
  653. weld12.Part0 = handle
  654. weld12.Part1 = par
  655. weld12.C1 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  656. local par2 = Instance.new("Part")
  657. par2.Parent = Character
  658. par2.Size = Vector3.new(0.2,0.2,0.2)
  659. par2.Archivable = true
  660. par2.Transparency = 0
  661. par2.BrickColor = BrickColor.new("Really black")
  662. par2.Material = "Metal"
  663. local parmesh2 = Instance.new("SpecialMesh",par2)
  664. parmesh2.MeshType = "FileMesh"
  665. parmesh2.MeshId = "http://www.roblox.com/asset?id=156292343"
  666. parmesh2.Scale = Vector3.new(5.25,5.25,4.75)
  667. parmesh2.VertexColor = Vector3.new(1,0.5,0)
  668. parmesh2.TextureId = "rbxassetid://269748808"
  669. local weld13 = Instance.new("Weld")
  670. weld13.Parent = par2
  671. weld13.Part0 = handle
  672. weld13.Part1 = par2
  673. weld13.C1 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  674. local par3 = Instance.new("Part")
  675. par3.Parent = Character
  676. par3.Size = Vector3.new(0.2,0.2,0.2)
  677. par3.Archivable = true
  678. par3.Transparency = 0
  679. par3.BrickColor = BrickColor.new("Really black")
  680. par3.Material = "Metal"
  681. local parmesh3 = Instance.new("SpecialMesh",par3)
  682. parmesh3.MeshType = "FileMesh"
  683. parmesh3.MeshId = "http://www.roblox.com/asset?id=156292343"
  684. parmesh3.Scale = Vector3.new(5.65,5.65,4.25)
  685. parmesh3.VertexColor = Vector3.new(1,0.75,0.25)
  686. parmesh3.TextureId = "rbxassetid://269748808"
  687. local weld14 = Instance.new("Weld")
  688. weld14.Parent = par3
  689. weld14.Part0 = handle
  690. weld14.Part1 = par3
  691. weld14.C1 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  692. local par4 = Instance.new("Part")
  693. par4.Parent = Character
  694. par4.Size = Vector3.new(0.2,0.2,0.2)
  695. par4.Archivable = true
  696. par4.Transparency = 0
  697. par4.BrickColor = BrickColor.new("Really black")
  698. par4.Material = "Metal"
  699. local parmesh4 = Instance.new("SpecialMesh",par4)
  700. parmesh4.MeshType = "FileMesh"
  701. parmesh4.MeshId = "http://www.roblox.com/asset/?id=3270017"
  702. parmesh4.Scale = Vector3.new(4.5,4.5,1.25)
  703. parmesh4.VertexColor = Vector3.new(1,0.75,0)
  704. parmesh4.TextureId = "rbxassetid://269748808"
  705. local weld15 = Instance.new("Weld")
  706. weld15.Parent = par4
  707. weld15.Part0 = handle
  708. weld15.Part1 = par4
  709. weld15.C1 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  710. local par4a = Instance.new("Part")
  711. par4a.Parent = Character
  712. par4a.Size = Vector3.new(0.2,0.2,0.2)
  713. par4a.Archivable = true
  714. par4a.Transparency = 0
  715. par4a.BrickColor = BrickColor.new("Really black")
  716. par4a.Material = "Metal"
  717. local parmesh4a = Instance.new("SpecialMesh",par4a)
  718. parmesh4a.MeshType = "FileMesh"
  719. parmesh4a.MeshId = "http://www.roblox.com/asset/?id=3270017"
  720. parmesh4a.Scale = Vector3.new(1.25,7.5,1)
  721. parmesh4a.VertexColor = Vector3.new(1,0.5,0)
  722. parmesh4a.TextureId = "rbxassetid://269748808"
  723. local weld15a = Instance.new("Weld")
  724. weld15a.Parent = par4a
  725. weld15a.Part0 = par4
  726. weld15a.Part1 = par4a
  727. weld15a.C1 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  728. local par4b = Instance.new("Part")
  729. par4b.Parent = Character
  730. par4b.Size = Vector3.new(0.2,0.2,0.2)
  731. par4b.Archivable = true
  732. par4b.Transparency = 0
  733. par4b.BrickColor = BrickColor.new("Really black")
  734. par4b.Material = "Metal"
  735. local parmesh4b = Instance.new("SpecialMesh",par4b)
  736. parmesh4b.MeshType = "FileMesh"
  737. parmesh4b.MeshId = "http://www.roblox.com/asset/?id=3270017"
  738. parmesh4b.Scale = Vector3.new(7.5,1.25,1)
  739. parmesh4b.VertexColor = Vector3.new(1,0.5,0)
  740. parmesh4b.TextureId = "rbxassetid://269748808"
  741. local weld15b = Instance.new("Weld")
  742. weld15b.Parent = par4b
  743. weld15b.Part0 = par4
  744. weld15b.Part1 = par4b
  745. weld15b.C1 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  746. local par5 = Instance.new("Part")
  747. par5.Parent = Character
  748. par5.Size = Vector3.new(0.2,0.2,0.2)
  749. par5.Archivable = true
  750. par5.Transparency = 0
  751. par5.BrickColor = BrickColor.new("Really black")
  752. par5.Material = "Metal"
  753. local parmesh5 = Instance.new("SpecialMesh",par5)
  754. parmesh5.MeshType = "FileMesh"
  755. parmesh5.MeshId = "http://www.roblox.com/asset/?id=3270017"
  756. parmesh5.Scale = Vector3.new(1,1,0.75)
  757. parmesh5.VertexColor = Vector3.new(1,0.75,0)
  758. parmesh5.TextureId = "rbxassetid://269748808"
  759. local weld16 = Instance.new("Weld")
  760. weld16.Parent = par5
  761. weld16.Part0 = handle
  762. weld16.Part1 = par5
  763. weld16.C1 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  764. local par5a = Instance.new("Part")
  765. par5a.Parent = Character
  766. par5a.Size = Vector3.new(0.2,0.2,0.2)
  767. par5a.Archivable = true
  768. par5a.Transparency = 0
  769. par5a.BrickColor = BrickColor.new("Really black")
  770. par5a.Material = "Metal"
  771. local parmesh5a = Instance.new("SpecialMesh",par5a)
  772. parmesh5a.MeshType = "FileMesh"
  773. parmesh5a.MeshId = "http://www.roblox.com/asset/?id=3270017"
  774. parmesh5a.Scale = Vector3.new(3,0.75,0.5)
  775. parmesh5a.VertexColor = Vector3.new(1,0.5,0)
  776. parmesh5a.TextureId = "rbxassetid://269748808"
  777. local weld16a = Instance.new("Weld")
  778. weld16a.Parent = par5a
  779. weld16a.Part0 = par5
  780. weld16a.Part1 = par5a
  781. weld16a.C1 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  782. local par5b = Instance.new("Part")
  783. par5b.Parent = Character
  784. par5b.Size = Vector3.new(0.2,0.2,0.2)
  785. par5b.Archivable = true
  786. par5b.Transparency = 0
  787. par5b.BrickColor = BrickColor.new("Really black")
  788. par5b.Material = "Metal"
  789. local parmesh5b = Instance.new("SpecialMesh",par5b)
  790. parmesh5b.MeshType = "FileMesh"
  791. parmesh5b.MeshId = "http://www.roblox.com/asset/?id=3270017"
  792. parmesh5b.Scale = Vector3.new(0.75,3,0.5)
  793. parmesh5b.VertexColor = Vector3.new(1,0.5,0)
  794. parmesh5b.TextureId = "rbxassetid://269748808"
  795. local weld16b = Instance.new("Weld")
  796. weld16b.Parent = par5b
  797. weld16b.Part0 = par5
  798. weld16b.Part1 = par5b
  799. weld16b.C1 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  800. local par6 = Instance.new("Part")
  801. par6.Parent = Character
  802. par6.Size = Vector3.new(0.2,0.2,0.2)
  803. par6.Archivable = true
  804. par6.Transparency = 0
  805. par6.BrickColor = BrickColor.new("Really black")
  806. par6.Material = "Metal"
  807. local parmesh6 = Instance.new("SpecialMesh",par6)
  808. parmesh6.MeshType = "FileMesh"
  809. parmesh6.MeshId = "http://www.roblox.com/asset/?id=9756362"
  810. parmesh6.Scale = Vector3.new(1.65,1.65,0.115)
  811. parmesh6.VertexColor = Vector3.new(1,0.35,0)
  812. parmesh6.TextureId = "rbxassetid://269748808"
  813. local weld17 = Instance.new("Weld")
  814. weld17.Parent = par6
  815. weld17.Part0 = handle
  816. weld17.Part1 = par6
  817. weld17.C1 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  818. local par6a = Instance.new("Part")
  819. par6a.Parent = Character
  820. par6a.Size = Vector3.new(0.2,0.2,0.2)
  821. par6a.Archivable = true
  822. par6a.Transparency = 0
  823. par6a.BrickColor = BrickColor.new("Really black")
  824. par6a.Material = "Metal"
  825. local parmesh6a = Instance.new("SpecialMesh",par6a)
  826. parmesh6a.MeshType = "FileMesh"
  827. parmesh6a.MeshId = "http://www.roblox.com/asset/?id=9756362"
  828. parmesh6a.Scale = Vector3.new(7.5,0.95,0.115)
  829. parmesh6a.VertexColor = Vector3.new(1,0.35,0)
  830. parmesh6a.TextureId = "rbxassetid://269748808"
  831. local weld17a = Instance.new("Weld")
  832. weld17a.Parent = par6a
  833. weld17a.Part0 = par6
  834. weld17a.Part1 = par6a
  835. weld17a.C1 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(45))
  836. local par6b = Instance.new("Part")
  837. par6b.Parent = Character
  838. par6b.Size = Vector3.new(0.2,0.2,0.2)
  839. par6b.Archivable = true
  840. par6b.Transparency = 0
  841. par6b.BrickColor = BrickColor.new("Really black")
  842. par6b.Material = "Metal"
  843. local parmesh6b = Instance.new("SpecialMesh",par6b)
  844. parmesh6b.MeshType = "FileMesh"
  845. parmesh6b.MeshId = "http://www.roblox.com/asset/?id=9756362"
  846. parmesh6b.Scale = Vector3.new(7.5,0.95,0.115)
  847. parmesh6b.VertexColor = Vector3.new(1,0.35,0)
  848. parmesh6b.TextureId = "rbxassetid://269748808"
  849. local weld17b = Instance.new("Weld")
  850. weld17b.Parent = par6b
  851. weld17b.Part0 = par6
  852. weld17b.Part1 = par6b
  853. weld17b.C1 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-45))
  854. local par7 = Instance.new("Part")
  855. par7.Parent = Character
  856. par7.Size = Vector3.new(0.2,0.2,0.2)
  857. par7.Archivable = true
  858. par7.Transparency = 0
  859. par7.BrickColor = BrickColor.new("Really black")
  860. par7.Material = "Metal"
  861. local parmesh7 = Instance.new("SpecialMesh",par7)
  862. parmesh7.MeshType = "FileMesh"
  863. parmesh7.MeshId = "http://www.roblox.com/asset/?id=3270017"
  864. parmesh7.Scale = Vector3.new(4.375,4.375,2.15)
  865. local weld18 = Instance.new("Weld")
  866. weld18.Parent = par7
  867. weld18.Part0 = handle
  868. weld18.Part1 = par7
  869. weld18.C1 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  870. local par8 = Instance.new("Part")
  871. par8.Parent = Character
  872. par8.Size = Vector3.new(0.2,0.2,0.2)
  873. par8.Archivable = true
  874. par8.Transparency = 0
  875. par8.BrickColor = BrickColor.new("Really black")
  876. par8.Material = "Metal"
  877. local parmesh8 = Instance.new("SpecialMesh",par8)
  878. parmesh8.MeshType = "FileMesh"
  879. parmesh8.MeshId = "http://www.roblox.com/asset/?id=3270017"
  880. parmesh8.Scale = Vector3.new(4.365,4.365,2.165)
  881. parmesh8.VertexColor = Vector3.new(1,0.25,0)
  882. parmesh8.TextureId = "rbxassetid://269748808"
  883. local weld19 = Instance.new("Weld")
  884. weld19.Parent = par8
  885. weld19.Part0 = handle
  886. weld19.Part1 = par8
  887. weld19.C1 = CFrame.new(0,0,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
  888. ----- lol
  889. handle.CanCollide = false
  890. par.CanCollide = false
  891. par2.CanCollide = false
  892. par3.CanCollide = false
  893. par4.CanCollide = false
  894. par4a.CanCollide = false
  895. par4b.CanCollide = false
  896. par5.CanCollide = false
  897. par5a.CanCollide = false
  898. par5b.CanCollide = false
  899. par6.CanCollide = false
  900. par6a.CanCollide = false
  901. par6b.CanCollide = false
  902. par7.CanCollide = false
  903. par8.CanCollide = false
  904. ----
  905.  
  906. function attackone()
  907. attack = true
  908. handleweld.Part0 = rarm
  909. for i = 0,2,0.1 do
  910. swait()
  911. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-50)),.3)
  912. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(50)),.3)
  913. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(50 - 2.5 * math.cos(sine / 32))), 0.3)
  914. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-25 + 2.5 * math.cos(sine / 32))), 0.3)
  915. handleweld.C1 = clerp(handleweld.C1, CFrame.new(0, 2.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  916. weld15.C1 = clerp(weld15.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * math.cos(sine / 32))), 0.3)
  917. weld16.C1 = clerp(weld16.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
  918. weld17.C1 = clerp(weld17.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
  919. end
  920. local slas = Instance.new("Sound",handle)
  921. slas.SoundId = "rbxassetid://199145095"
  922. slas.Volume = 1.75
  923. slas.Pitch = 1
  924. slas:Play()
  925. local hit = handle.Touched:connect(function(hit)
  926. Damagefunc(hit,5,6,5,"Normal",root,.2,1)
  927. end)
  928. for i = 0,1,0.1 do
  929. swait()
  930. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),.3)
  931. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-90)),.3)
  932. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(50)), 0.3)
  933. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-25 + 2.5 * math.cos(sine / 32))), 0.3)
  934. handleweld.C1 = clerp(handleweld.C1, CFrame.new(0, 5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  935. weld15.C1 = clerp(weld15.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * math.cos(sine / 32))), 0.3)
  936. weld16.C1 = clerp(weld16.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
  937. weld17.C1 = clerp(weld17.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
  938. end
  939. attack = false
  940. hit:disconnect()
  941. wait(3)
  942. slas:Destroy()
  943. end
  944.  
  945. function attacktwo()
  946. attack = true
  947. handleweld.Part0 = rarm
  948. for i = 0,2,0.1 do
  949. swait()
  950. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-50)),.3)
  951. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(50)),.3)
  952. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(90), math.rad(50 - 2.5 * math.cos(sine / 32))), 0.3)
  953. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-25 + 2.5 * math.cos(sine / 32))), 0.3)
  954. handleweld.C1 = clerp(handleweld.C1, CFrame.new(0, 2.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  955. weld15.C1 = clerp(weld15.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * math.cos(sine / 32))), 0.3)
  956. weld16.C1 = clerp(weld16.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
  957. weld17.C1 = clerp(weld17.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
  958. end
  959. local slas = Instance.new("Sound",handle)
  960. slas.SoundId = "rbxassetid://199145095"
  961. slas.Volume = 1.75
  962. slas.Pitch = 0.9
  963. slas:Play()
  964. local hit = handle.Touched:connect(function(hit)
  965. Damagefunc(hit,5,6,5,"Normal",root,.2,1)
  966. end)
  967. for i = 0,1,0.5 do
  968. swait()
  969. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(50)),.3)
  970. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-50)),.3)
  971. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(50)), 0.3)
  972. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-25 + 2.5 * math.cos(sine / 32))), 0.3)
  973. handleweld.C1 = clerp(handleweld.C1, CFrame.new(0, 10, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  974. weld15.C1 = clerp(weld15.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * math.cos(sine / 32))), 0.3)
  975. weld16.C1 = clerp(weld16.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
  976. weld17.C1 = clerp(weld17.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
  977. end
  978. for i = 0,1,0.5 do
  979. swait()
  980. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(50)),.3)
  981. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-50)),.3)
  982. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(50)), 0.3)
  983. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-25 + 2.5 * math.cos(sine / 32))), 0.3)
  984. handleweld.C1 = clerp(handleweld.C1, CFrame.new(0, 15, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.25)
  985. weld15.C1 = clerp(weld15.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * math.cos(sine / 32))), 0.3)
  986. weld16.C1 = clerp(weld16.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
  987. weld17.C1 = clerp(weld17.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
  988. end
  989. for i = 0,1,0.5 do
  990. swait()
  991. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(50)),.3)
  992. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-50)),.3)
  993. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(50)), 0.3)
  994. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-25 + 2.5 * math.cos(sine / 32))), 0.3)
  995. handleweld.C1 = clerp(handleweld.C1, CFrame.new(0, 20, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.25)
  996. weld15.C1 = clerp(weld15.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * math.cos(sine / 32))), 0.3)
  997. weld16.C1 = clerp(weld16.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
  998. weld17.C1 = clerp(weld17.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
  999. end
  1000. for i = 0,3,0.5 do
  1001. swait()
  1002. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(50)),.3)
  1003. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-50)),.3)
  1004. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(50)), 0.3)
  1005. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-25 + 2.5 * math.cos(sine / 32))), 0.3)
  1006. handleweld.C1 = clerp(handleweld.C1, CFrame.new(0, 25, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.25)
  1007. weld15.C1 = clerp(weld15.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * math.cos(sine / 32))), 0.3)
  1008. weld16.C1 = clerp(weld16.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
  1009. weld17.C1 = clerp(weld17.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
  1010. end
  1011. attack = false
  1012. hit:disconnect()
  1013. wait(3)
  1014. slas:Destroy()
  1015. end
  1016.  
  1017. function attackthree()
  1018. attack = true
  1019. handleweld.Part0 = rarm
  1020. for i = 0,2,0.1 do
  1021. swait()
  1022. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-50)),.3)
  1023. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(50)),.3)
  1024. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, -0.25) * angles(math.rad(90), math.rad(0), math.rad(-50 - 2.5 * math.cos(sine / 32))), 0.3)
  1025. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-25 + 2.5 * math.cos(sine / 32))), 0.3)
  1026. handleweld.C1 = clerp(handleweld.C1, CFrame.new(0, 0, 3.25) * angles(math.rad(0), math.rad(90), math.rad(90)), 0.1)
  1027. weld15.C1 = clerp(weld15.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * math.cos(sine / 32))), 0.3)
  1028. weld16.C1 = clerp(weld16.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
  1029. weld17.C1 = clerp(weld17.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
  1030. end
  1031. local hit = handle.Touched:connect(function(hit)
  1032. Damagefunc(hit,5,6,5,"Normal",root,.2,1)
  1033. end)
  1034. local slas = Instance.new("Sound",handle)
  1035. slas.SoundId = "rbxassetid://199145095"
  1036. slas.Volume = 1.75
  1037. slas.Pitch = 0.95
  1038. slas:Play()
  1039. for i = 0,2,0.1 do
  1040. swait()
  1041. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(75)),.3)
  1042. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-75)),.3)
  1043. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, -0.25) * angles(math.rad(90), math.rad(0), math.rad(75 - 2.5 * math.cos(sine / 32))), 0.3)
  1044. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-25 + 2.5 * math.cos(sine / 32))), 0.3)
  1045. handleweld.C1 = clerp(handleweld.C1, CFrame.new(0, 0, 7.5) * angles(math.rad(0), math.rad(90), math.rad(90)), 0.3)
  1046. weld15.C1 = clerp(weld15.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * math.cos(sine / 32))), 0.3)
  1047. weld16.C1 = clerp(weld16.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
  1048. weld17.C1 = clerp(weld17.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
  1049. end
  1050. slas:Destroy()
  1051. attack = false
  1052. hit:disconnect()
  1053. end
  1054.  
  1055. function attackfour()
  1056. attack = true
  1057. handleweld.Part0 = rarm
  1058. local tra = Instance.new("ParticleEmitter",handle)
  1059. tra.Texture = "rbxassetid://296874871"
  1060. tra.LightEmission = 0.95
  1061. tra.Color = ColorSequence.new(Color3.new(1,0.5,0))
  1062. tra.Rate = 1000
  1063. tra.Lifetime = NumberRange.new(0.25)
  1064. tra.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,10,0),NumberSequenceKeypoint.new(1,0,0)})
  1065. tra.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(1,0.85,0)})
  1066. tra.Speed = NumberRange.new(0)
  1067. tra.Rotation = NumberRange.new(-500,500)
  1068. tra.VelocitySpread = 90000
  1069. tra.LockedToPart = true
  1070. tra.RotSpeed = NumberRange.new(-500,500)
  1071. for i = 0,5,0.1 do
  1072. swait()
  1073. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-50)),.3)
  1074. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(50)),.3)
  1075. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, -0.25) * angles(math.rad(90), math.rad(0), math.rad(-50 - 2.5 * math.cos(sine / 32))), 0.3)
  1076. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-25 + 2.5 * math.cos(sine / 32))), 0.3)
  1077. handleweld.C1 = clerp(handleweld.C1, CFrame.new(0, 0, 3.25) * angles(math.rad(0), math.rad(90), math.rad(90)), 0.1)
  1078. weld15.C1 = clerp(weld15.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * math.cos(sine / 32))), 0.3)
  1079. weld16.C1 = clerp(weld16.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
  1080. weld17.C1 = clerp(weld17.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
  1081. end
  1082. local traz = Instance.new("ParticleEmitter",handle)
  1083. traz.Texture = "rbxassetid://296874871"
  1084. traz.LightEmission = 0.95
  1085. traz.Color = ColorSequence.new(Color3.new(1,0.5,0))
  1086. traz.Rate = 1000000
  1087. traz.Lifetime = NumberRange.new(0.5)
  1088. traz.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,15,0)})
  1089. traz.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  1090. traz.Speed = NumberRange.new(50)
  1091. traz.Rotation = NumberRange.new(-500,500)
  1092. traz.VelocitySpread = 90000
  1093. traz.RotSpeed = NumberRange.new(-500,500)
  1094. local sa = Instance.new("Sound",handle)
  1095. sa.SoundId = "rbxassetid://519795084"
  1096. sa.Volume = 1.25
  1097. sa.Pitch = 1.5
  1098. sa:Play()
  1099. tra.Rate = 0
  1100. local lb = Instance.new("Part")
  1101. lb.Parent = char
  1102. lb.Material = "Neon"
  1103. lb.Color = Color3.new(1,0.5,0)
  1104. lb.CanCollide = false
  1105. lb.Shape = "Ball"
  1106. lb.CFrame = handle.CFrame
  1107. lb.Anchored = true
  1108. lb.Size = vt(3,3,3)
  1109. local thing = Instance.new("SpecialMesh",lb)
  1110. thing.MeshType = meshtype
  1111. lb.Touched:connect(function(hit)
  1112. Damagefunc(hit,7,8,5,"Normal",root,.2,1)
  1113. end)
  1114. lb.Anchored = false
  1115. local trail = Instance.new("ParticleEmitter",lb)
  1116. trail.Texture = "rbxassetid://296874871"
  1117. trail.LightEmission = 0.95
  1118. trail.Color = ColorSequence.new(lb.BrickColor.Color)
  1119. trail.Rate = 10000
  1120. trail.Lifetime = NumberRange.new(1.5)
  1121. trail.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,5,0),NumberSequenceKeypoint.new(1,0,0)})
  1122. trail.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.95,0),NumberSequenceKeypoint.new(1,1,0)})
  1123. trail.Speed = NumberRange.new(0,0)
  1124. trail.Rotation = NumberRange.new(-500,500)
  1125. trail.RotSpeed = NumberRange.new(-500,500)
  1126. local bv = Instance.new("BodyVelocity")
  1127. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1128. bv.velocity = mouse.Hit.lookVector *175
  1129. bv.Parent = lb
  1130. traz.Rate = 0
  1131. for i = 0,1,0.1 do
  1132. swait()
  1133. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.5,0)* angles(math.rad(0),math.rad(0),math.rad(-85)),.3)
  1134. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(85)),.3)
  1135. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, -0.25) * angles(math.rad(90), math.rad(0), math.rad(25 - 2.5 * math.cos(sine / 32))), 0.3)
  1136. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-25 + 2.5 * math.cos(sine / 32))), 0.3)
  1137. handleweld.C1 = clerp(handleweld.C1, CFrame.new(0, 0, 3.25) * angles(math.rad(0), math.rad(90), math.rad(90)), 0.1)
  1138. weld15.C1 = clerp(weld15.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * math.cos(sine / 32))), 0.3)
  1139. weld16.C1 = clerp(weld16.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
  1140. weld17.C1 = clerp(weld17.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
  1141. end
  1142. attack = false
  1143. wait(10)
  1144. traz:Destroy()
  1145. tra:Destroy()
  1146. sa:Destroy()
  1147. lb:Destroy()
  1148. end
  1149. hold = false
  1150.  
  1151. function do1()
  1152. attack = true
  1153. handleweld.Part0 = rarm
  1154. local tra = Instance.new("ParticleEmitter",handle)
  1155. tra.Texture = "rbxassetid://296874871"
  1156. tra.LightEmission = 0.95
  1157. tra.Color = ColorSequence.new(Color3.new(1,0.5,0))
  1158. tra.Rate = 1000
  1159. tra.Lifetime = NumberRange.new(0.25)
  1160. tra.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,10,0),NumberSequenceKeypoint.new(1,0,0)})
  1161. tra.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(1,0.85,0)})
  1162. tra.Speed = NumberRange.new(0)
  1163. tra.Rotation = NumberRange.new(-500,500)
  1164. tra.VelocitySpread = 90000
  1165. tra.LockedToPart = true
  1166. tra.RotSpeed = NumberRange.new(-500,500)
  1167. while true do
  1168. swait()
  1169. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-50)),.3)
  1170. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(50)),.3)
  1171. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, -0.25) * angles(math.rad(90), math.rad(0), math.rad(-50 - 2.5 * math.cos(sine / 32))), 0.3)
  1172. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-50 + 2.5 * math.cos(sine / 32))), 0.3)
  1173. handleweld.C1 = clerp(handleweld.C1, CFrame.new(0, 0, 3.25) * angles(math.rad(0), math.rad(90), math.rad(90)), 0.1)
  1174. weld15.C1 = clerp(weld15.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * math.cos(sine / 32))), 0.3)
  1175. weld16.C1 = clerp(weld16.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
  1176. weld17.C1 = clerp(weld17.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
  1177. if hold == false then
  1178. break
  1179. end
  1180. end
  1181. local traz = Instance.new("ParticleEmitter",handle)
  1182. traz.Texture = "rbxassetid://296874871"
  1183. traz.LightEmission = 0.95
  1184. traz.Color = ColorSequence.new(Color3.new(1,0.5,0))
  1185. traz.Rate = 1000000
  1186. traz.Lifetime = NumberRange.new(0.5)
  1187. traz.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,15,0)})
  1188. traz.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  1189. traz.Speed = NumberRange.new(50)
  1190. traz.Rotation = NumberRange.new(-500,500)
  1191. traz.VelocitySpread = 90000
  1192. traz.RotSpeed = NumberRange.new(-500,500)
  1193. local sa = Instance.new("Sound",handle)
  1194. sa.SoundId = "rbxassetid://519795084"
  1195. sa.Volume = 1.25
  1196. sa.Pitch = 1.15
  1197. sa:Play()
  1198. tra.Rate = 0
  1199. local lb = Instance.new("Part")
  1200. lb.Parent = char
  1201. lb.Material = "Neon"
  1202. lb.Color = Color3.new(1,0.5,0)
  1203. lb.CanCollide = false
  1204. lb.Shape = "Ball"
  1205. lb.CFrame = handle.CFrame
  1206. lb.Anchored = true
  1207. lb.Size = vt(7.5,7.5,7.5)
  1208. local thing = Instance.new("SpecialMesh",lb)
  1209. thing.MeshType = meshtype
  1210. lb.Touched:connect(function(hit)
  1211. Damagefunc(hit,10,15,5,"Normal",root,.2,1)
  1212. end)
  1213. lb.Anchored = false
  1214. local trail = Instance.new("ParticleEmitter",lb)
  1215. trail.Texture = "rbxassetid://296874871"
  1216. trail.LightEmission = 0.95
  1217. trail.Color = ColorSequence.new(lb.BrickColor.Color)
  1218. trail.Rate = 10000
  1219. trail.Lifetime = NumberRange.new(1.5)
  1220. trail.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,5,0),NumberSequenceKeypoint.new(1,0,0)})
  1221. trail.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.95,0),NumberSequenceKeypoint.new(1,1,0)})
  1222. trail.Speed = NumberRange.new(0,0)
  1223. trail.Rotation = NumberRange.new(-500,500)
  1224. trail.RotSpeed = NumberRange.new(-500,500)
  1225. local bv = Instance.new("BodyVelocity")
  1226. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1227. bv.velocity = mouse.Hit.lookVector *175
  1228. bv.Parent = lb
  1229. traz.Rate = 0
  1230. for i = 0,1,0.1 do
  1231. swait()
  1232. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.5,0)* angles(math.rad(0),math.rad(0),math.rad(-85)),.3)
  1233. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(85)),.3)
  1234. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, -0.25) * angles(math.rad(90), math.rad(0), math.rad(25 - 2.5 * math.cos(sine / 32))), 0.3)
  1235. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-25 + 2.5 * math.cos(sine / 32))), 0.3)
  1236. handleweld.C1 = clerp(handleweld.C1, CFrame.new(0, 0, 3.25) * angles(math.rad(0), math.rad(90), math.rad(90)), 0.1)
  1237. weld15.C1 = clerp(weld15.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * math.cos(sine / 32))), 0.3)
  1238. weld16.C1 = clerp(weld16.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
  1239. weld17.C1 = clerp(weld17.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
  1240. end
  1241. attack = false
  1242. wait(10)
  1243. traz:Destroy()
  1244. tra:Destroy()
  1245. sa:Destroy()
  1246. lb:Destroy()
  1247. end
  1248.  
  1249. function do2()
  1250. attack = true
  1251. handleweld.Part0 = rarm
  1252. for i = 0,2,0.1 do
  1253. swait()
  1254. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-50)),.3)
  1255. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(50)),.3)
  1256. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, -0.25) * angles(math.rad(90), math.rad(0), math.rad(-50 - 2.5 * math.cos(sine / 32))), 0.3)
  1257. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-25 + 2.5 * math.cos(sine / 32))), 0.3)
  1258. handleweld.C1 = clerp(handleweld.C1, CFrame.new(0, 0, 3.25) * angles(math.rad(0), math.rad(90), math.rad(90)), 0.1)
  1259. weld15.C1 = clerp(weld15.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * math.cos(sine / 32))), 0.3)
  1260. weld16.C1 = clerp(weld16.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
  1261. weld17.C1 = clerp(weld17.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
  1262. end
  1263. local traz2 = Instance.new("ParticleEmitter",handle)
  1264. traz2.Texture = "rbxassetid://296874871"
  1265. traz2.LightEmission = 0.95
  1266. traz2.Color = ColorSequence.new(Color3.new(1,0.5,0))
  1267. traz2.Rate = 1000000
  1268. traz2.Lifetime = NumberRange.new(1)
  1269. traz2.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,10,0),NumberSequenceKeypoint.new(1,50,0)})
  1270. traz2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  1271. traz2.Speed = NumberRange.new(25,50)
  1272. traz2.Rotation = NumberRange.new(-500,500)
  1273. traz2.VelocitySpread = 90000
  1274. traz2.RotSpeed = NumberRange.new(-500,500)
  1275. local traz = Instance.new("ParticleEmitter",handle)
  1276. traz.Texture = "rbxassetid://296874871"
  1277. traz.LightEmission = 0.95
  1278. traz.Color = ColorSequence.new(Color3.new(1,0.5,0))
  1279. traz.Rate = 1000000
  1280. traz.Lifetime = NumberRange.new(0.5)
  1281. traz.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,5,0),NumberSequenceKeypoint.new(1,15,0)})
  1282. traz.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
  1283. traz.Speed = NumberRange.new(0)
  1284. traz.Rotation = NumberRange.new(-500,500)
  1285. traz.VelocitySpread = 90000
  1286. traz.RotSpeed = NumberRange.new(-500,500)
  1287. root.Velocity = root.CFrame.lookVector*250
  1288. local hit = handle.Touched:connect(function(hit)
  1289. Damagefunc(hit,10,14,5,"Normal",root,.2,1)
  1290. end)
  1291. local slas = Instance.new("Sound",handle)
  1292. slas.SoundId = "rbxassetid://412756170"
  1293. slas.Volume = 2.5
  1294. slas.Pitch = 0.75
  1295. slas:Play()
  1296. wait(0.05)
  1297. traz2.Rate = 0
  1298. for i = 0,3.5,0.1 do
  1299. swait()
  1300. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(75)),.3)
  1301. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-75)),.3)
  1302. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, -0.25) * angles(math.rad(90), math.rad(0), math.rad(75 - 2.5 * math.cos(sine / 32))), 0.3)
  1303. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-25 + 2.5 * math.cos(sine / 32))), 0.3)
  1304. handleweld.C1 = clerp(handleweld.C1, CFrame.new(0, 0, 7.5) * angles(math.rad(0), math.rad(90), math.rad(90)), 0.3)
  1305. weld15.C1 = clerp(weld15.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * math.cos(sine / 32))), 0.3)
  1306. weld16.C1 = clerp(weld16.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
  1307. weld17.C1 = clerp(weld17.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
  1308. end
  1309. traz.Rate = 0
  1310. attack = false
  1311. hit:disconnect()
  1312. wait(10)
  1313. traz2:Destroy()
  1314. traz:Destroy()
  1315. slas:Destroy()
  1316. end
  1317.  
  1318. function do3()
  1319. attack = true
  1320. local van = 1
  1321. for i = 0,3,0.1 do
  1322. swait()
  1323. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1324. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-25),math.rad(0),math.rad(0)),.3)
  1325. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(180), math.rad(0), math.rad(5 - 2.5 * math.cos(sine / 32))), 0.3)
  1326. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(180), math.rad(0), math.rad(-5 + 2.5 * math.cos(sine / 32))), 0.3)
  1327. handleweld.C1 = clerp(handleweld.C1, CFrame.new(0, 0, -3.25) * angles(math.rad(0), math.rad(90), math.rad(90)), 0.1)
  1328. weld15.C1 = clerp(weld15.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * math.cos(sine / 32))), 0.3)
  1329. weld16.C1 = clerp(weld16.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
  1330. weld17.C1 = clerp(weld17.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
  1331. end
  1332. local slas = Instance.new("Sound",handle)
  1333. slas.SoundId = "rbxassetid://412756170"
  1334. slas.Volume = 2.5
  1335. slas.Pitch = 0.75
  1336. slas:Play()
  1337. local traz = Instance.new("ParticleEmitter",handle)
  1338. traz.Texture = "rbxassetid://296874871"
  1339. traz.LightEmission = 0.95
  1340. traz.Color = ColorSequence.new(Color3.new(1,0.5,0))
  1341. traz.Rate = 1000000
  1342. traz.Lifetime = NumberRange.new(0.5)
  1343. traz.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,5,0),NumberSequenceKeypoint.new(1,10,0)})
  1344. traz.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
  1345. traz.Speed = NumberRange.new(0)
  1346. traz.Rotation = NumberRange.new(-500,500)
  1347. traz.VelocitySpread = 90000
  1348. traz.RotSpeed = NumberRange.new(-500,500)
  1349. local hit = handle.Touched:connect(function(hit)
  1350. Damagefunc(hit,19,25,5,"Normal",root,.2,1)
  1351. end)
  1352. for i = 0,3,0.1 do
  1353. swait()
  1354. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1355. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1356. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(5 - 2.5 * math.cos(sine / 32))), 0.3)
  1357. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-5 + 2.5 * math.cos(sine / 32))), 0.3)
  1358. handleweld.C1 = clerp(handleweld.C1, CFrame.new(75, 0, 0) * angles(math.rad(0), math.rad(90), math.rad(90)), 0.1)
  1359. weld15.C1 = clerp(weld15.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * math.cos(sine / 32))), 0.3)
  1360. weld16.C1 = clerp(weld16.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
  1361. weld17.C1 = clerp(weld17.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
  1362. end
  1363. for i = 0,1,0.5 do
  1364. swait()
  1365. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1366. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1367. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(5 - 2.5 * math.cos(sine / 32))), 0.3)
  1368. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-5 + 2.5 * math.cos(sine / 32))), 0.3)
  1369. handleweld.C1 = clerp(handleweld.C1, CFrame.new(50, 0, 0) * angles(math.rad(0), math.rad(90), math.rad(90)), 0.1)
  1370. weld15.C1 = clerp(weld15.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * math.cos(sine / 32))), 0.3)
  1371. weld16.C1 = clerp(weld16.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
  1372. weld17.C1 = clerp(weld17.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
  1373. end
  1374. for i = 0,1,0.5 do
  1375. swait()
  1376. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1377. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1378. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(5 - 2.5 * math.cos(sine / 32))), 0.3)
  1379. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-5 + 2.5 * math.cos(sine / 32))), 0.3)
  1380. handleweld.C1 = clerp(handleweld.C1, CFrame.new(25, 0, 0) * angles(math.rad(0), math.rad(90), math.rad(90)), 0.1)
  1381. weld15.C1 = clerp(weld15.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * math.cos(sine / 32))), 0.3)
  1382. weld16.C1 = clerp(weld16.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
  1383. weld17.C1 = clerp(weld17.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
  1384. end
  1385. for i = 0,5,0.1 do
  1386. swait()
  1387. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1388. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1389. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(5 - 2.5 * math.cos(sine / 32))), 0.3)
  1390. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-5 + 2.5 * math.cos(sine / 32))), 0.3)
  1391. handleweld.C1 = clerp(handleweld.C1, CFrame.new(5, 0, 0) * angles(math.rad(0), math.rad(90), math.rad(90)), 0.1)
  1392. weld15.C1 = clerp(weld15.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * math.cos(sine / 32))), 0.3)
  1393. weld16.C1 = clerp(weld16.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
  1394. weld17.C1 = clerp(weld17.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
  1395. end
  1396. hit:disconnect()
  1397. traz.Rate = 0
  1398. attack = false
  1399. wait(5)
  1400. traz:Destroy()
  1401. slas:Destroy()
  1402. end
  1403.  
  1404. function DeleteParent(parent)
  1405. for i,v in pairs(parent:children()) do
  1406. if v:IsA("Part") then
  1407. v:Destroy()
  1408. end
  1409. end
  1410. end
  1411.  
  1412. function do4()
  1413. attack = true
  1414. hum.WalkSpeed = 0
  1415. local van = 1
  1416. local lba = Instance.new("Part")
  1417. local slas = Instance.new("Sound",lba)
  1418. slas.SoundId = "rbxassetid://137463716"
  1419. slas.Volume = 1.5
  1420. slas.Pitch = 0.25
  1421. slas:Play()
  1422. local slas2 = Instance.new("Sound",lba)
  1423. slas2.SoundId = "rbxassetid://342793847"
  1424. slas2.Volume = 1.5
  1425. slas2.Pitch = 0.5
  1426. slas2:Play()
  1427. lba.Parent = char
  1428. lba.Material = "Neon"
  1429. lba.BrickColor = BrickColor.new("Persimmon")
  1430. lba.CanCollide = false
  1431. lba.Shape = "Ball"
  1432. lba.CFrame = handle.CFrame
  1433. lba.Anchored = true
  1434. lba.Size = vt(1,1,1)
  1435. local thing = Instance.new("SpecialMesh",lba)
  1436. thing.MeshType = meshtype
  1437. for i = 0,50,0.1 do
  1438. swait()
  1439. van = van + 0.05
  1440. thing.Scale = thing.Scale + vt(0.085,0.085,0.085)
  1441. lba.CFrame = handle.CFrame + vt(0,van,0)
  1442. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1443. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-25),math.rad(0),math.rad(0)),.3)
  1444. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(180), math.rad(0), math.rad(5 - 2.5 * math.cos(sine / 32))), 0.3)
  1445. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(180), math.rad(0), math.rad(-5 + 2.5 * math.cos(sine / 32))), 0.3)
  1446. handleweld.C1 = clerp(handleweld.C1, CFrame.new(0, 0, -3.25) * angles(math.rad(0), math.rad(90), math.rad(90)), 0.1)
  1447. weld15.C1 = clerp(weld15.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * math.cos(sine / 32))), 0.3)
  1448. weld16.C1 = clerp(weld16.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
  1449. weld17.C1 = clerp(weld17.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 32))), 0.3)
  1450. end
  1451. for z = 0, 9 do
  1452. for i = 0, 24 do
  1453. thing.Scale = thing.Scale - vt(0.15,0.15,0.15)
  1454. local lb = Instance.new("Part")
  1455. lb.Parent = handle
  1456. lb.Material = "Neon"
  1457. lb.BrickColor = BrickColor.new("Persimmon")
  1458. lb.CanCollide = false
  1459. lb.Shape = "Ball"
  1460. lb.CFrame = lba.CFrame
  1461. lb.Anchored = false
  1462. lb.Size = vt(5,5,5)
  1463. lb.CFrame = lba.CFrame
  1464. local bv = Instance.new("BodyVelocity")
  1465. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1466. bv.velocity = vt(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1467. bv.Parent = lb
  1468. local sound = it("Sound",lb)
  1469. sound.Volume = 0.5
  1470. sound.SoundId = "rbxassetid://178452221"
  1471. sound.Pitch = 0.5
  1472. sound:Play()
  1473. lb.Touched:connect(function(hit)
  1474. Damagefunc(hit,20,30,5,"Normal",root,.2,1)
  1475. end)
  1476. wait()
  1477. end
  1478. end
  1479. lba:Destroy()
  1480. hum.WalkSpeed = 16
  1481. attack = false
  1482. wait(10)
  1483. DeleteParent(handle)
  1484. end
  1485.  
  1486. attackcombo = 0
  1487.  
  1488. mouse.Button1Down:connect(function()
  1489. if hold == false then
  1490. if attack == false and attackcombo == 0 then
  1491. attackcombo = 1
  1492. attackone()
  1493. elseif attack == false and attackcombo == 1 then
  1494. attackcombo = 2
  1495. attacktwo()
  1496. elseif attack == false and attackcombo == 2 then
  1497. attackcombo = 3
  1498. attackthree()
  1499. elseif attack == false and attackcombo == 3 then
  1500. attackcombo = 0
  1501. attackfour()
  1502. end
  1503. end
  1504. if attack == true and hold == true then
  1505. hold = false
  1506. end
  1507. end)
  1508.  
  1509. mouse.KeyDown:connect(function(key)
  1510. if key == "z" and attack == false and hold == false and mana >= 25 then
  1511. hold = true
  1512. mana = mana - 25
  1513. do1()
  1514. end
  1515. if key == "x" and attack == false and mana >= 40 then
  1516. mana = mana - 40
  1517. do2()
  1518. end
  1519. if key == "c" and attack == false and mana >= 60 then
  1520. mana = mana - 60
  1521. do3()
  1522. end
  1523. if key == "v" and attack == false and mana >= 100 then
  1524. mana = mana - 100
  1525. do4()
  1526. end
  1527. end)
  1528.  
  1529. game:GetService("RunService").Stepped:connect(function()
  1530. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  1531. velocity = RootPart.Velocity.y
  1532. sine = sine + change
  1533. local hit, pos = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
  1534. if equipped == true or equipped == false then
  1535. healthg.Text = math.floor(hum.Health).. "/" ..math.floor(hum.MaxHealth)
  1536. manag.Text = "Mana: " ..math.floor(mana)
  1537. if mana <= 250 then
  1538. mana = mana + 0.25
  1539. end
  1540. if RootPart.Velocity.y > 1 and hit == nil then
  1541. Anim = "Jump"
  1542. if attack == false then
  1543. handleweld.Part0 = torso
  1544. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3)
  1545. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(2.5),math.rad(0),math.rad(0)),.3)
  1546. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.65, 0) * angles(math.rad(-10), math.rad(0), math.rad(50)), 0.3)
  1547. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.65, 0) * angles(math.rad(-10), math.rad(0), math.rad(-50)), 0.3)
  1548. handleweld.C1 = clerp(handleweld.C1, CFrame.new(0, -1.5, -1) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1549. weld15.C1 = clerp(weld15.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * math.cos(sine / 82))), 0.3)
  1550. weld16.C1 = clerp(weld16.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 82))), 0.3)
  1551. weld17.C1 = clerp(weld17.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 82))), 0.3)
  1552. end
  1553. else
  1554. if RootPart.Velocity.y < -1 and hit == nil then
  1555. Anim = "Fall"
  1556. if attack == false then
  1557. handleweld.Part0 = torso
  1558. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(5),math.rad(0),math.rad(0)),.3)
  1559. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(2.5),math.rad(0),math.rad(0)),.3)
  1560. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.65, 0) * angles(math.rad(-10), math.rad(0), math.rad(90)), 0.3)
  1561. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.65, 0) * angles(math.rad(-10), math.rad(0), math.rad(-90)), 0.3)
  1562. handleweld.C1 = clerp(handleweld.C1, CFrame.new(0, -1.5, -1) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1563. weld15.C1 = clerp(weld15.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * math.cos(sine / 82))), 0.3)
  1564. weld16.C1 = clerp(weld16.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 82))), 0.3)
  1565. weld17.C1 = clerp(weld17.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 82))), 0.3)
  1566. end
  1567. else
  1568. if Torsovelocity < 1 and hit ~= nil then
  1569. Anim = "Idle"
  1570. if attack == false then
  1571. change = 1
  1572. handleweld.Part0 = torso
  1573. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1574. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  1575. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(10 - 5 * math.cos(sine / 32))), 0.3)
  1576. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-10 + 5 * math.cos(sine / 32))), 0.3)
  1577. handleweld.C1 = clerp(handleweld.C1, CFrame.new(0, -1.5, -1) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1578. weld15.C1 = clerp(weld15.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * math.cos(sine / 82))), 0.3)
  1579. weld16.C1 = clerp(weld16.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 82))), 0.3)
  1580. weld17.C1 = clerp(weld17.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 82))), 0.3)
  1581. end
  1582. else
  1583. if Torsovelocity > 2 and hit ~= nil then
  1584. Anim = "Walk"
  1585. if attack == false then
  1586. handleweld.Part0 = torso
  1587. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 2.5))* angles(math.rad(15),math.rad(0),math.rad(0)),.3)
  1588. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  1589. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0 + 45 * math.cos(sine / 5)), math.rad(0), math.rad(10)), 0.3)
  1590. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0 - 45 * math.cos(sine / 5)), math.rad(0), math.rad(-10)), 0.3)
  1591. handleweld.C1 = clerp(handleweld.C1, CFrame.new(0, -1.5, -1) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  1592. weld15.C1 = clerp(weld15.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 + 360 * math.cos(sine / 82))), 0.3)
  1593. weld16.C1 = clerp(weld16.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 82))), 0.3)
  1594. weld17.C1 = clerp(weld17.C1, CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0 - 360 * math.cos(sine / 82))), 0.3)
  1595. end
  1596. end
  1597. end
  1598. end
  1599. end
  1600. end
  1601. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement