Advertisement
kawetrollface

Untitled

Jun 28th, 2017
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 40.65 KB | None | 0 0
  1. --By NoobyGames12
  2.  
  3. p = game.Players.LocalPlayer
  4. char = p.Character
  5. torso = char.Torso
  6. neck = char.Torso.Neck
  7.  
  8. Player=game:GetService("Players").LocalPlayer
  9. Character=Player.Character
  10. PlayerGui=Player.PlayerGui
  11. Backpack=Player.Backpack
  12. Torso=Character.Torso
  13. Head=Character.Head
  14. Humanoid=Character.Humanoid
  15. LeftArm=Character["Left Arm"]
  16. LeftLeg=Character["Left Leg"]
  17. RightArm=Character["Right Arm"]
  18. RightLeg=Character["Right Leg"]
  19. cam=game.Workspace.CurrentCamera
  20. LS=Torso["Left Shoulder"]
  21. LH=Torso["Left Hip"]
  22. RS=Torso["Right Shoulder"]
  23. RH=Torso["Right Hip"]
  24. Face = Head.face
  25. Neck=Torso.Neck
  26. it=Instance.new
  27. attacktype=1
  28. vt=Vector3.new
  29. cf=CFrame.new
  30. euler=CFrame.fromEulerAnglesXYZ
  31. angles=CFrame.Angles
  32. cloaked=false
  33. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  34. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  35. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  36. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  37. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  38. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  39. RootPart=Character.HumanoidRootPart
  40. RootJoint=RootPart.RootJoint
  41. RootCF=euler(-1.57,0,3.14)
  42. attack = false
  43. bounce=false
  44. cooldown=false
  45. deeznuts=false
  46. attackdebounce = false
  47. deb=false
  48. equipped=true
  49. hand=false
  50. MMouse=nil
  51. combo=0
  52. mana=0
  53. trispeed=.2
  54. attackmode='none'
  55. local idle=0
  56. local Anim="Idle"
  57. local Effects={}
  58. local gun=false
  59. local shoot=false
  60. player=nil
  61. mana=0
  62. cam = workspace.CurrentCamera
  63. ZTarget = nil
  64. RocketTarget = nil
  65. local m = Instance.new("Model",Character)
  66. m.Name = "WeaponModel"
  67.  
  68. mouse=Player:GetMouse()
  69. --save shoulders
  70. RSH, LSH=nil, nil
  71. --welds
  72. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  73. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  74. LH=Torso["Left Hip"]
  75. RH=Torso["Right Hip"]
  76. TorsoColor=Torso.BrickColor
  77. function NoOutline(Part)
  78. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  79. end
  80. player=Player
  81. ch=Character
  82. RSH=ch.Torso["Right Shoulder"]
  83. LSH=ch.Torso["Left Shoulder"]
  84. --
  85. RSH.Parent=nil
  86. LSH.Parent=nil
  87. --
  88. RW.Name="Right Shoulder"
  89. RW.Part0=ch.Torso
  90. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  91. RW.C1=cf(0, 0.5, 0)
  92. RW.Part1=ch["Right Arm"]
  93. RW.Parent=ch.Torso
  94. --
  95. LW.Name="Left Shoulder"
  96. LW.Part0=ch.Torso
  97. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  98. LW.C1=cf(0, 0.5, 0)
  99. LW.Part1=ch["Left Arm"]
  100. LW.Parent=ch.Torso
  101.  
  102. function swait(num)
  103. if num==0 or num==nil then
  104. game:service'RunService'.Heartbeat:wait(0)
  105. else
  106. for i=0,num do
  107. game:service'RunService'.Heartbeat:wait(0)
  108. end
  109. end
  110. end
  111.  
  112.  
  113. local Player = game.Players.localPlayer
  114. local Character = Player.Character
  115. local red = 255
  116. local green = 255
  117. local blue = 255
  118. local Humanoid = Character.Humanoid
  119. local mouse = Player:GetMouse()
  120. local m = Instance.new("Model", Character)
  121. m.Name = "WeaponModel"
  122. local LeftArm = Character["Left Arm"]
  123. local RightArm = Character["Right Arm"]
  124. local LeftLeg = Character["Left Leg"]
  125. local RightLeg = Character["Right Leg"]
  126. local Head = Character.Head
  127. local Torso = Character.Torso
  128. local cam = game.Workspace.CurrentCamera
  129. local RootPart = Character.HumanoidRootPart
  130. local RootJoint = RootPart.RootJoint
  131. local equipped = false
  132. local attack = false
  133. local Anim = "Idle"
  134. local idle = 0
  135. local attacktype = 1
  136. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  137. local velocity = RootPart.Velocity.y
  138. local sine = 0
  139. local change = 1
  140. local grabbed = false
  141. local cn = CFrame.new
  142. local mr = math.rad
  143. local angles = CFrame.Angles
  144. local ud = UDim2.new
  145. local c3 = Color3.new
  146. local lim = 0
  147. local st = 0
  148. local necko = cn(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  149. local attacktype = 1
  150. local ZTarget, RocketTarget = nil, nil
  151. local euler = CFrame.fromEulerAnglesXYZ
  152. function clerp(a,b,t)
  153. local qa = {QuaternionFromCFrame(a)}
  154. local qb = {QuaternionFromCFrame(b)}
  155. local ax, ay, az = a.x, a.y, a.z
  156. local bx, by, bz = b.x, b.y, b.z
  157. local _t = 1-t
  158. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  159. end
  160.  
  161. function QuaternionFromCFrame(cf)
  162. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  163. local trace = m00 + m11 + m22
  164. if trace > 0 then
  165. local s = math.sqrt(1 + trace)
  166. local recip = 0.5/s
  167. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  168. else
  169. local i = 0
  170. if m11 > m00 then
  171. i = 1
  172. end
  173. if m22 > (i == 0 and m00 or m11) then
  174. i = 2
  175. end
  176. if i == 0 then
  177. local s = math.sqrt(m00-m11-m22+1)
  178. local recip = 0.5/s
  179. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  180. elseif i == 1 then
  181. local s = math.sqrt(m11-m22-m00+1)
  182. local recip = 0.5/s
  183. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  184. elseif i == 2 then
  185. local s = math.sqrt(m22-m00-m11+1)
  186. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  187. end
  188. end
  189. end
  190.  
  191. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  192. local xs, ys, zs = x + x, y + y, z + z
  193. local wx, wy, wz = w*xs, w*ys, w*zs
  194. local xx = x*xs
  195. local xy = x*ys
  196. local xz = x*zs
  197. local yy = y*ys
  198. local yz = y*zs
  199. local zz = z*zs
  200. 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))
  201. end
  202.  
  203. function QuaternionSlerp(a, b, t)
  204. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  205. local startInterp, finishInterp;
  206. if cosTheta >= 0.0001 then
  207. if (1 - cosTheta) > 0.0001 then
  208. local theta = math.acos(cosTheta)
  209. local invSinTheta = 1/math.sin(theta)
  210. startInterp = math.sin((1-t)*theta)*invSinTheta
  211. finishInterp = math.sin(t*theta)*invSinTheta
  212. else
  213. startInterp = 1-t
  214. finishInterp = t
  215. end
  216. else
  217. if (1+cosTheta) > 0.0001 then
  218. local theta = math.acos(-cosTheta)
  219. local invSinTheta = 1/math.sin(theta)
  220. startInterp = math.sin((t-1)*theta)*invSinTheta
  221. finishInterp = math.sin(t*theta)*invSinTheta
  222. else
  223. startInterp = t-1
  224. finishInterp = t
  225. end
  226. end
  227. 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
  228. end
  229. rayCast = function(Position, Direction, Range, Ignore)
  230. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  231. end
  232. local v = game.Players.localPlayer
  233. local torso = v.Character.Torso
  234.  
  235. plr = game.Players.LocalPlayer
  236. char = game.Players.LocalPlayer.Character
  237. hum = game.Players.LocalPlayer.Character.Humanoid
  238. t = game.Players.LocalPlayer.Character.Torso
  239. h = game.Players.LocalPlayer.Character.Head
  240. ra = game.Players.LocalPlayer.Character["Right Arm"]
  241. la = game.Players.LocalPlayer.Character["Left Arm"]
  242. rl = game.Players.LocalPlayer.Character["Right Leg"]
  243. ll = game.Players.LocalPlayer.Character["Left Leg"]
  244. tors = Character.Torso
  245. lleg = Character["Left Leg"]
  246. root = Character.HumanoidRootPart
  247. hed = Character.Head
  248. rleg = Character["Right Leg"]
  249. rarm = Character["Right Arm"]
  250. larm = Character["Left Arm"]
  251. bsize1 = NumberSequenceKeypoint.new(3,3,3)
  252. bsize2 = NumberSequenceKeypoint.new(10,10,10)
  253. local Effects = {}
  254. attack = false
  255. local attacking = false
  256. vt = Vector3.new
  257. bc = BrickColor.new
  258. br = BrickColor.random
  259. it = Instance.new
  260. cf = CFrame.new
  261. euler = CFrame.fromEulerAnglesXYZ
  262. angles = CFrame.Angles
  263. matr = math.random
  264. local colororg = BrickColor.new("Dark indigo") -- set color u like
  265. local meshtype = "Sphere" -- only for specialmesh
  266. mouse = plr:GetMouse()
  267.  
  268.  
  269. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  270. if hit.Parent==nil then
  271. return
  272. end
  273. h=hit.Parent:FindFirstChild("Humanoid")
  274. for _,v in pairs(hit.Parent:children()) do
  275. if v:IsA("Humanoid") then
  276. h=v
  277. end
  278. end
  279. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  280. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  281. end
  282. if hit.Parent.className=="Hat" then
  283. hit=hit.Parent.Parent:findFirstChild("Head")
  284. end
  285. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  286. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  287. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  288. return
  289. end]]
  290. -- hs(hit,1.2)
  291. c=Instance.new("ObjectValue")
  292. c.Name="creator"
  293. c.Value=game:service("Players").LocalPlayer
  294. c.Parent=h
  295. game:GetService("Debris"):AddItem(c,.5)
  296. Damage=math.random(minim,maxim)
  297. -- h:TakeDamage(Damage)
  298. blocked=false
  299. block=hit.Parent:findFirstChild("Block")
  300. if block~=nil then
  301. print(block.className)
  302. if block.className=="NumberValue" then
  303. if block.Value>0 then
  304. blocked=true
  305. if decreaseblock==nil then
  306. block.Value=block.Value-1
  307. end
  308. end
  309. end
  310. if block.className=="IntValue" then
  311. if block.Value>0 then
  312. blocked=true
  313. if decreaseblock~=nil then
  314. block.Value=block.Value-1
  315. end
  316. end
  317. end
  318. end
  319. if blocked==false then
  320. -- h:TakeDamage(Damage)
  321. h.Health=h.Health-Damage
  322. showDamage(hit.Parent,Damage,3,TorsoColor)
  323. else
  324. h.Health=h.Health-(Damage/2)
  325. showDamage(hit.Parent,Damage/2,3,BrickColor.new("Bright blue"))
  326. end
  327. if Type=="Knockdown" then
  328. hum=hit.Parent.Humanoid
  329. hum.PlatformStand=true
  330. coroutine.resume(coroutine.create(function(HHumanoid)
  331. swait(1)
  332. HHumanoid.PlatformStand=false
  333. end),hum)
  334. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  335. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  336. local bodvol=Instance.new("BodyVelocity")
  337. bodvol.velocity=angle*knockback
  338. bodvol.P=5000
  339. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  340. bodvol.Parent=hit
  341. rl=Instance.new("BodyAngularVelocity")
  342. rl.P=3000
  343. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  344. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  345. rl.Parent=hit
  346. game:GetService("Debris"):AddItem(bodvol,.5)
  347. game:GetService("Debris"):AddItem(rl,.5)
  348. elseif Type=="Normal" then
  349. vp=Instance.new("BodyVelocity")
  350. vp.P=500
  351. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  352. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  353. if KnockbackType==1 then
  354. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  355. elseif KnockbackType==2 then
  356. vp.velocity=Property.CFrame.lookVector*knockback
  357. end
  358. if knockback>0 then
  359. vp.Parent=hit.Parent.Torso
  360. end
  361. game:GetService("Debris"):AddItem(vp,.5)
  362. elseif Type=="Up" then
  363. local bodyVelocity=Instance.new("BodyVelocity")
  364. bodyVelocity.velocity=vt(0,10,0)
  365. bodyVelocity.P=1000
  366. bodyVelocity.maxForce=Vector3.new(1e+009, 1e+009, 1e+009)
  367. bodyVelocity.Parent=hit
  368. game:GetService("Debris"):AddItem(bodyVelocity,1)
  369. rl=Instance.new("BodyAngularVelocity")
  370. rl.P=3000
  371. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  372. rl.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
  373. rl.Parent=hit
  374. game:GetService("Debris"):AddItem(rl,.5)
  375. elseif Type=="Snare" then
  376. bp=Instance.new("BodyPosition")
  377. bp.P=2000
  378. bp.D=100
  379. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  380. bp.position=hit.Parent.Torso.Position
  381. bp.Parent=hit.Parent.Torso
  382. game:GetService("Debris"):AddItem(bp,1)
  383. elseif Type=="Target" then
  384. if Targetting==false then
  385. ZTarget=hit.Parent.Torso
  386. coroutine.resume(coroutine.create(function(Part)
  387. swait(5)
  388. end),ZTarget)
  389. TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  390. targetgui=Instance.new("BillboardGui")
  391. targetgui.Parent=ZTarget
  392. targetgui.Size=UDim2.new(10,100,10,100)
  393. targ=Instance.new("ImageLabel")
  394. targ.Parent=targetgui
  395. targ.BackgroundTransparency=1
  396. targ.Image="rbxassetid://4834067"
  397. targ.Size=UDim2.new(1,0,1,0)
  398. cam.CameraType="Scriptable"
  399. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  400. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  401. workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  402. Targetting=true
  403. RocketTarget=ZTarget
  404. for i=1,Property do
  405. --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  406. if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  407. swait()
  408. end
  409. --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
  410. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  411. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  412. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  413. end
  414. Targetting=false
  415. RocketTarget=nil
  416. targetgui.Parent=nil
  417. cam.CameraType="Custom"
  418. end
  419. end
  420. debounce=Instance.new("BoolValue")
  421. debounce.Name="DebounceHit"
  422. debounce.Parent=hit.Parent
  423. debounce.Value=true
  424. game:GetService("Debris"):AddItem(debounce,Delay)
  425. c=Instance.new("ObjectValue")
  426. c.Name="creator"
  427. c.Value=Player
  428. c.Parent=h
  429. game:GetService("Debris"):AddItem(c,.5)
  430. CRIT=false
  431. hitDeb=true
  432. AttackPos=6
  433. end
  434. end
  435.  
  436. showDamage=function(Char,Dealt,du,Color)
  437. m=Instance.new("Model")
  438. m.Name=""
  439. h=Instance.new("Humanoid")
  440. h.Health=0
  441. h.MaxHealth=0
  442. h.Parent=m
  443. c=Instance.new("Part")
  444. c.Transparency=0
  445. c.Material = "Neon"
  446. c.BrickColor=bc("Bright red")
  447. c.Name="Head"
  448. c.TopSurface=0
  449. c.BottomSurface=0
  450. CV="Hot pink"
  451.  
  452. local txt = Instance.new("BillboardGui", c)
  453. txt.Adornee = c
  454. txt.Name = "_status"
  455. txt.Size = UDim2.new(2, 0, 1.2, 0)
  456. txt.StudsOffset = Vector3.new(-9, 8, 0)
  457. local text = Instance.new("TextLabel", txt)
  458. text.Size = UDim2.new(10, 0, 7, 0)
  459. text.FontSize = "Size24"
  460. text.TextScaled = true
  461. text.TextTransparency = 0
  462. text.BackgroundTransparency = 1
  463. text.TextTransparency = 0
  464. text.TextStrokeTransparency = 0
  465. if Dealt < 12 then
  466. text.Font = "Highway"
  467. elseif Dealt < 20 then
  468. text.Font = "SourceSansBold"
  469. elseif Dealt >= 20 then
  470. text.Font = "Fantasy"
  471. end
  472. text.TextStrokeColor3 = BrickColor.new("Really black").Color
  473. local hitsounds={"199149137","199149186","199149221","199149235","199149269","199149297"}
  474. v=Instance.new("Part")
  475. v.Name = "ColorBrick"
  476. v.Parent=c
  477. v.FormFactor="Symmetric"
  478. v.Anchored=true
  479. v.CanCollide=false
  480. v.BottomSurface="Smooth"
  481. v.TopSurface="Smooth"
  482. v.Size=Vector3.new(10,5,3)
  483. v.Transparency=1
  484. v.CFrame=c.CFrame
  485. v.BrickColor=BrickColor.new(CV)
  486. v.Transparency=1
  487. if Dealt < 12 then
  488. text.TextColor3 = BrickColor.new("White").Color
  489. elseif Dealt < 20 then
  490. text.TextColor3 = BrickColor.new("Bright yellow").Color
  491. elseif Dealt >= 20 then
  492. text.TextColor3 = BrickColor.new("Really red").Color
  493. end
  494. v.Shape="Block"
  495. text.Text = tostring(Dealt).. "!"
  496. local dam = Instance.new("Sound",c)
  497. local rndm=math.random(1,#hitsounds)
  498. local r=rndm
  499. dam.SoundId = "http://www.roblox.com/asset/?id="..hitsounds[r]
  500. dam.Volume = 1.25
  501. dam.Pitch = 1
  502. dam:Play()
  503. c.formFactor="Plate"
  504. c.Transparency = 1
  505. c.Size=Vector3.new(1,.4,1)
  506. ms=Instance.new("CylinderMesh")
  507. ms.Scale=Vector3.new(.8,.8,.8)
  508. if CRIT==true then
  509. ms.Scale=Vector3.new(1,1.25,1)
  510. end
  511. ms.Parent=c
  512. c.Reflectance=0
  513. Instance.new("BodyGyro").Parent=c
  514. c.Parent=m
  515. if Char:findFirstChild("Head")~=nil then
  516. c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  517. elseif Char.Parent:findFirstChild("Head")~=nil then
  518. c.CFrame=CFrame.new(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0))
  519. end
  520. f=Instance.new("BodyPosition")
  521. f.P=2000
  522. f.D=100
  523. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  524. f.position=c.Position+Vector3.new(0,3,0)
  525. f.Parent=c
  526. game:GetService("Debris"):AddItem(m,.5+du)
  527. c.CanCollide=false
  528. m.Parent=workspace
  529. c.CanCollide=false
  530. wait(1)
  531. for l = 0, 9 do
  532. text.TextTransparency = text.TextTransparency + 0.1
  533. text.TextStrokeTransparency = text.TextStrokeTransparency + 0.1
  534. wait()
  535. end
  536. end
  537.  
  538. gui = function(GuiType, parent, text, backtrans, backcol, pos, size)
  539. local gui = it(GuiType)
  540. gui.Parent = parent
  541. gui.Text = text
  542. gui.BackgroundTransparency = backtrans
  543. gui.BackgroundColor3 = backcol
  544. gui.SizeConstraint = "RelativeXY"
  545. gui.TextXAlignment = "Center"
  546. gui.TextYAlignment = "Center"
  547. gui.Position = pos
  548. gui.Size = size
  549. gui.Font = "SourceSans"
  550. gui.FontSize = "Size14"
  551. gui.TextWrapped = false
  552. gui.TextStrokeTransparency = 0
  553. gui.TextColor = BrickColor.new("White")
  554. return gui
  555. end
  556. ---- GUI set
  557. local basgui = it("GuiMain")
  558. basgui.Parent = Player.PlayerGui
  559. basgui.Name = "CooldownsGUI"
  560. local basframe = it("Frame")
  561. basframe.Parent = basgui
  562. basframe.BackgroundColor3 = Color3.new(255, 255, 255)
  563. basframe.BackgroundTransparency = 1
  564. basframe.BorderColor3 = Color3.new(17, 17, 17)
  565. basframe.Size = UDim2.new(0.2, 0, 0.2, 0)
  566. basframe.Position = UDim2.new(0.8, 0, 0.8, 0)
  567. local basicgui = gui("TextLabel", basframe, "Basic", 0, BrickColor.new("White").Color, UDim2.new(0.35, 0, -0.125, 0), UDim2.new(0.45, 0, 0.35, 0))
  568. basicgui.ZIndex = 2
  569. basicgui.Font = "Highway"
  570. basicgui.BackgroundTransparency = 0.5
  571. basicgui.BorderSizePixel = 0.65
  572. basicgui.TextScaled = true
  573. basicgui.Text = "(X)\nMeteor"
  574. basicgui.TextSize = 24
  575. local basicgui2 = gui("TextLabel", basframe, "Basic", 0, BrickColor.new("White").Color, UDim2.new(-0.15, 0, -0.125, 0), UDim2.new(0.45, 0, 0.35, 0))
  576. basicgui2.ZIndex = 2
  577. basicgui2.Font = "Highway"
  578. basicgui2.BackgroundTransparency = 0.5
  579. basicgui2.BorderSizePixel = 0.65
  580. basicgui2.TextScaled = true
  581. basicgui2.Text = "(Z)\nLarge Bullet"
  582. basicgui2.TextSize = 24
  583. local basicgui3 = gui("TextLabel", basframe, "Basic", 0, BrickColor.new("White").Color, UDim2.new(-0.15, 0, 0.225, 0), UDim2.new(0.45, 0, 0.35, 0))
  584. basicgui3.ZIndex = 2
  585. basicgui3.Font = "Highway"
  586. basicgui3.BackgroundTransparency = 0.5
  587. basicgui3.BorderSizePixel = 0.65
  588. basicgui3.TextScaled = true
  589. basicgui3.Text = "(C)\nMeteor Rain"
  590. basicgui3.TextSize = 24
  591. local basicgui4 = gui("TextLabel", basframe, "Basic", 0, BrickColor.new("White").Color, UDim2.new(0.35, 0, 0.225, 0), UDim2.new(0.45, 0, 0.35, 0))
  592. basicgui4.ZIndex = 2
  593. basicgui4.Font = "Highway"
  594. basicgui4.BackgroundTransparency = 0.5
  595. basicgui4.BorderSizePixel = 0.65
  596. basicgui4.TextScaled = true
  597. basicgui4.Text = "(V)\nKarma Meteor"
  598. basicgui4.TextSize = 24
  599.  
  600. 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))
  601. healthg.ZIndex = 2
  602. healthg.Font = "Highway"
  603. healthg.BackgroundTransparency = 0.5
  604. healthg.BorderSizePixel = 0.65
  605. healthg.TextScaled = true
  606. healthg.Text = "health"
  607. healthg.TextSize = 24
  608.  
  609. char.Humanoid.Animator.Parent = nil
  610.  
  611. function BasicProjectile()
  612. attack = true
  613. for i = 0,2,0.1 do
  614. swait()
  615. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),.3)
  616. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-90)),.3)
  617. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(90)), 0.3)
  618. 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)
  619. end
  620. local sa = Instance.new("Sound",rarm)
  621. sa.SoundId = "rbxassetid://365002938" -- needs current appropiate sound for this
  622. sa.Volume = 1
  623. sa.Pitch = 1.5
  624. sa:Play()
  625. local lb = Instance.new("Part")
  626. lb.Parent = char
  627. lb.Material = "Neon"
  628. lb.Color = BrickColor.new("White").Color
  629. lb.CanCollide = false
  630. lb.Shape = "Ball"
  631. lb.CFrame = rarm.CFrame
  632. lb.Anchored = true
  633. lb.Transparency = 0
  634. lb.Size = vt(2.5,2.5,2.5)
  635. local thing = Instance.new("SpecialMesh",lb)
  636. thing.MeshType = meshtype
  637. local hitted = false
  638. lb.Anchored = false
  639. local bv = Instance.new("BodyVelocity")
  640. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  641. bv.velocity = mouse.Hit.lookVector *75
  642. bv.Parent = lb
  643. wait(0.05)
  644. lb.Touched:connect(function(hit)
  645. if hitted == false then
  646. hitted = true
  647. local sa = Instance.new("Sound",lb)
  648. sa.SoundId = "rbxassetid://138210320" -- needs current appropiate sound for this
  649. sa.Volume = 1
  650. sa.Pitch = 1
  651. sa:Play()
  652. lb.Anchored = true
  653. lb.Transparency = 1
  654. local aa = Instance.new("Part")
  655. aa.Parent = lb
  656. aa.Material = "Neon"
  657. aa.Color = BrickColor.new("White").Color
  658. aa.CanCollide = false
  659. aa.Shape = "Ball"
  660. aa.CFrame = lb.CFrame
  661. aa.Anchored = true
  662. aa.Transparency = 0
  663. aa.Size = vt(1,1,1)
  664. aa.CFrame = lb.CFrame
  665. local thinger = Instance.new("SpecialMesh",aa)
  666. thinger.MeshType = meshtype
  667. thinger.Scale = vt(2.5,2.5,2.5)
  668. for i = 0, 19 do
  669. wait()
  670. thinger.Scale = thinger.Scale + vt(1.5,1.5,1.5)
  671. aa.Transparency = aa.Transparency + 0.05
  672. end
  673. Damagefunc(hit,1,5,5,"Normal",root,.2,1)
  674. wait(3)
  675. lb:Destroy()
  676. end
  677. end)
  678. attack = false
  679. wait(2.5)
  680. sa:Destroy()
  681. wait(50)
  682. lb:Destroy()
  683. end
  684.  
  685. function FirstSkill()
  686. attack = true
  687. for i = 0,2,0.1 do
  688. swait()
  689. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),.3)
  690. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-90)),.3)
  691. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(90)), 0.3)
  692. 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)
  693. end
  694. local sa = Instance.new("Sound",rarm)
  695. sa.SoundId = "rbxassetid://365002938" -- needs current appropiate sound for this
  696. sa.Volume = 1
  697. sa.Pitch = 1
  698. sa:Play()
  699. local lb = Instance.new("Part")
  700. lb.Parent = char
  701. lb.Material = "Neon"
  702. lb.Color = BrickColor.new("White").Color
  703. lb.CanCollide = false
  704. lb.Shape = "Ball"
  705. lb.CFrame = rarm.CFrame
  706. lb.Anchored = true
  707. lb.Transparency = 0
  708. lb.Size = vt(3,3,3)
  709. local thing = Instance.new("SpecialMesh",lb)
  710. thing.MeshType = meshtype
  711. thing.Scale = vt(1.5,1.5,1.5)
  712. local hitted = false
  713. lb.Anchored = false
  714. local bv = Instance.new("BodyVelocity")
  715. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  716. bv.velocity = mouse.Hit.lookVector *75
  717. bv.Parent = lb
  718. wait(0.05)
  719. lb.Touched:connect(function(hit)
  720. if hitted == false then
  721. hitted = true
  722. local sa = Instance.new("Sound",lb)
  723. sa.SoundId = "rbxassetid://138210320" -- needs current appropiate sound for this
  724. sa.Volume = 1
  725. sa.Pitch = 0.85
  726. sa:Play()
  727. lb.Anchored = true
  728. lb.Transparency = 1
  729. local aa = Instance.new("Part")
  730. aa.Parent = lb
  731. aa.Material = "Neon"
  732. aa.Color = BrickColor.new("White").Color
  733. aa.CanCollide = false
  734. aa.Shape = "Ball"
  735. aa.CFrame = lb.CFrame
  736. aa.Anchored = true
  737. aa.Transparency = 0
  738. aa.Size = vt(1,1,1)
  739. aa.CFrame = lb.CFrame
  740. local thinger = Instance.new("SpecialMesh",aa)
  741. thinger.MeshType = meshtype
  742. thinger.Scale = vt(4,4,4)
  743. for i = 0, 19 do
  744. wait()
  745. thinger.Scale = thinger.Scale + vt(1.5,1.5,1.5)
  746. aa.Transparency = aa.Transparency + 0.05
  747. end
  748. Damagefunc(hit,4,10,5,"Normal",root,.2,1)
  749. wait(3)
  750. lb:Destroy()
  751. end
  752. end)
  753. attack = false
  754. wait(2.5)
  755. sa:Destroy()
  756. wait(50)
  757. lb:Destroy()
  758. end
  759.  
  760. function SecondSkill()
  761. attack = true
  762. for i = 0,2,0.1 do
  763. swait()
  764. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  765. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  766. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(180)), 0.3)
  767. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.3)
  768. end
  769. local sa = Instance.new("Sound",rarm)
  770. sa.SoundId = "rbxassetid://365002938" -- needs current appropiate sound for this
  771. sa.Volume = 0
  772. sa.Pitch = 0
  773. sa:Play()
  774. local lb = Instance.new("Part")
  775. lb.Parent = char
  776. lb.Material = "Neon"
  777. lb.Color = BrickColor.new("White").Color
  778. lb.CanCollide = false
  779. lb.Shape = "Ball"
  780. lb.CFrame = tors.CFrame + Vector3.new(0,50,0)
  781. lb.Anchored = true
  782. lb.Transparency = 0
  783. lb.Size = vt(15,15,15)
  784. local thing = Instance.new("SpecialMesh",lb)
  785. thing.MeshType = meshtype
  786. local hitted = false
  787. lb.Anchored = false
  788. local bv = Instance.new("BodyVelocity")
  789. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  790. bv.velocity = mouse.Hit.lookVector *75
  791. bv.Parent = lb
  792. wait(0.05)
  793. lb.Touched:connect(function(hit)
  794. if hitted == false then
  795. hitted = true
  796. local sa = Instance.new("Sound",lb)
  797. sa.SoundId = "rbxassetid://633129949" -- needs current appropiate sound for this
  798. sa.Volume = 2.25
  799. sa.Pitch = 0.75
  800. sa:Play()
  801. local sa = Instance.new("Sound",lb)
  802. sa.SoundId = "rbxassetid://633129949" -- needs current appropiate sound for this
  803. sa.Volume = 1.75
  804. sa.Pitch = 0.65
  805. sa:Play()
  806. local sa = Instance.new("Sound",lb)
  807. sa.SoundId = "rbxassetid://138186576" -- needs current appropiate sound for this
  808. sa.Volume = 5
  809. sa.Pitch = 1
  810. sa:Play()
  811. lb.Anchored = true
  812. lb.Transparency = 1
  813. local aa = Instance.new("Part")
  814. aa.Parent = lb
  815. aa.Material = "Neon"
  816. aa.Color = BrickColor.new("White").Color
  817. aa.CanCollide = false
  818. aa.Shape = "Ball"
  819. aa.CFrame = lb.CFrame
  820. aa.Anchored = true
  821. aa.Transparency = 0
  822. aa.Size = vt(1,1,1)
  823. aa.CFrame = lb.CFrame
  824. local thinger = Instance.new("SpecialMesh",aa)
  825. thinger.MeshType = meshtype
  826. thinger.Scale = vt(15,15,15)
  827.  
  828. local aa2 = Instance.new("Part")
  829. aa2.Parent = lb
  830. aa2.Material = "Neon"
  831. aa2.Color = BrickColor.new("White").Color
  832. aa2.CanCollide = false
  833. aa2.Shape = "Ball"
  834. aa2.CFrame = lb.CFrame
  835. aa2.Anchored = true
  836. aa2.Transparency = 0.5
  837. aa2.Size = vt(1,1,1)
  838. aa2.CFrame = lb.CFrame
  839. local thinger2 = Instance.new("SpecialMesh",aa2)
  840. thinger2.MeshType = meshtype
  841. thinger2.Scale = vt(14.5,14.5,14.5)
  842. for i = 0, 19 do
  843. wait()
  844. thinger.Scale = thinger.Scale + vt(4.5,4.5,4.5)
  845. thinger2.Scale = thinger2.Scale + vt(1.5,1.5,1.5)
  846. end
  847. for i = 0, 9 do
  848. wait()
  849. thinger.Scale = thinger.Scale + vt(3.25,3.25,3.25)
  850. thinger2.Scale = thinger2.Scale + vt(1.25,1.25,1.25)
  851. aa.Transparency = aa.Transparency + 0.05
  852. end
  853. for i = 0, 9 do
  854. wait()
  855. thinger.Scale = thinger.Scale + vt(1.5,1.5,1.5)
  856. thinger2.Scale = thinger2.Scale + vt(1,1,1)
  857. aa.Transparency = aa.Transparency + 0.05
  858. end
  859. Damagefunc(hit,10,16,5,"Normal",root,.2,1)
  860. for i = 0, 99 do
  861. wait()
  862. thinger2.Scale = thinger2.Scale + vt(0.75,0.75,0.75)
  863. aa2.Transparency = aa2.Transparency + 0.01
  864. end
  865. lb:Destroy()
  866. end
  867. end)
  868. attack = false
  869. for i = 0, 49 do
  870. wait()
  871. bv.velocity = mouse.Hit.lookVector *75
  872. end
  873. wait(2.5)
  874. sa:Destroy()
  875. wait(50)
  876. lb:Destroy()
  877. end
  878.  
  879. function ThirdSkill()
  880. attack = true
  881. for i = 0,5,0.1 do
  882. swait()
  883. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  884. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  885. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(180)), 0.3)
  886. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.3)
  887. end
  888. local sa = Instance.new("Sound",rarm)
  889. sa.SoundId = "rbxassetid://365002938" -- needs current appropiate sound for this
  890. sa.Volume = 0
  891. sa.Pitch = 0
  892. sa:Play()
  893. for e = 0, 4 do
  894. local lb = Instance.new("Part")
  895. lb.Parent = char
  896. lb.Material = "Neon"
  897. lb.Color = BrickColor.new("White").Color
  898. lb.CanCollide = false
  899. lb.Shape = "Ball"
  900. lb.CFrame = tors.CFrame + Vector3.new(math.random(-50,50),100,math.random(-50,50))
  901. lb.Anchored = true
  902. lb.Transparency = 0
  903. lb.Size = vt(15,15,15)
  904. local thing = Instance.new("SpecialMesh",lb)
  905. thing.MeshType = meshtype
  906. local hitted = false
  907. lb.Anchored = false
  908. wait(0.05)
  909. lb.Touched:connect(function(hit)
  910. if hitted == false then
  911. hitted = true
  912. local sa = Instance.new("Sound",lb)
  913. sa.SoundId = "rbxassetid://633129949" -- needs current appropiate sound for this
  914. sa.Volume = 2.25
  915. sa.Pitch = 0.75
  916. sa:Play()
  917. local sa = Instance.new("Sound",lb)
  918. sa.SoundId = "rbxassetid://633129949" -- needs current appropiate sound for this
  919. sa.Volume = 1.75
  920. sa.Pitch = 0.65
  921. sa:Play()
  922. local sa = Instance.new("Sound",lb)
  923. sa.SoundId = "rbxassetid://138186576" -- needs current appropiate sound for this
  924. sa.Volume = 5
  925. sa.Pitch = 1
  926. sa:Play()
  927. lb.Anchored = true
  928. lb.Transparency = 1
  929. local aa = Instance.new("Part")
  930. aa.Parent = lb
  931. aa.Material = "Neon"
  932. aa.Color = BrickColor.new("White").Color
  933. aa.CanCollide = false
  934. aa.Shape = "Ball"
  935. aa.CFrame = lb.CFrame
  936. aa.Anchored = true
  937. aa.Transparency = 0
  938. aa.Size = vt(1,1,1)
  939. aa.CFrame = lb.CFrame
  940. local thinger = Instance.new("SpecialMesh",aa)
  941. thinger.MeshType = meshtype
  942. thinger.Scale = vt(15,15,15)
  943.  
  944. local aa2 = Instance.new("Part")
  945. aa2.Parent = lb
  946. aa2.Material = "Neon"
  947. aa2.Color = BrickColor.new("White").Color
  948. aa2.CanCollide = false
  949. aa2.Shape = "Ball"
  950. aa2.CFrame = lb.CFrame
  951. aa2.Anchored = true
  952. aa2.Transparency = 0.5
  953. aa2.Size = vt(1,1,1)
  954. aa2.CFrame = lb.CFrame
  955. local thinger2 = Instance.new("SpecialMesh",aa2)
  956. thinger2.MeshType = meshtype
  957. thinger2.Scale = vt(14.5,14.5,14.5)
  958. for i = 0, 19 do
  959. wait()
  960. thinger.Scale = thinger.Scale + vt(4.5,4.5,4.5)
  961. thinger2.Scale = thinger2.Scale + vt(1.5,1.5,1.5)
  962. end
  963. for i = 0, 9 do
  964. wait()
  965. thinger.Scale = thinger.Scale + vt(3.25,3.25,3.25)
  966. thinger2.Scale = thinger2.Scale + vt(1.25,1.25,1.25)
  967. aa.Transparency = aa.Transparency + 0.05
  968. end
  969. for i = 0, 9 do
  970. wait()
  971. thinger.Scale = thinger.Scale + vt(1.5,1.5,1.5)
  972. thinger2.Scale = thinger2.Scale + vt(1,1,1)
  973. aa.Transparency = aa.Transparency + 0.05
  974. end
  975. Damagefunc(hit,14,19,5,"Normal",root,.2,1)
  976. for i = 0, 99 do
  977. wait()
  978. thinger2.Scale = thinger2.Scale + vt(0.75,0.75,0.75)
  979. aa2.Transparency = aa2.Transparency + 0.01
  980. end
  981. lb:Destroy()
  982. end
  983. end)
  984. end
  985. attack = false
  986. wait(2.5)
  987. sa:Destroy()
  988. end
  989.  
  990. function ForthSkill()
  991. attack = true
  992. for i = 0,1,0.1 do
  993. swait()
  994. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  995. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  996. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(180)), 0.3)
  997. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.3)
  998. end
  999. local l = Instance.new("Part")
  1000. l.Parent = char
  1001. l.Material = "Neon"
  1002. l.Color = BrickColor.new("White").Color
  1003. l.CanCollide = false
  1004. l.Shape = "Ball"
  1005. l.CFrame = mouse.Hit
  1006. l.Anchored = true
  1007. l.Transparency = 0.5
  1008. l.Size = vt(1,1,1)
  1009. local thing = Instance.new("SpecialMesh",l)
  1010. thing.MeshType = meshtype
  1011. thing.Scale = vt(30,30,30)
  1012. for i = 0, 99 do
  1013. wait()
  1014. l.CFrame = mouse.Hit
  1015. end
  1016. local sa = Instance.new("Sound",l)
  1017. sa.SoundId = "rbxassetid://742818884" -- needs current appropiate sound for this
  1018. sa.Volume = 5
  1019. sa.Pitch = 1
  1020. sa:Play()
  1021. for i = 0, 19 do
  1022. wait()
  1023. thing.Scale = thing.Scale + vt(1,1,1)
  1024. l.Transparency = l.Transparency + 0.025
  1025. end
  1026. local sa = Instance.new("Sound",rarm)
  1027. sa.SoundId = "rbxassetid://365002938" -- needs current appropiate sound for this
  1028. sa.Volume = 0
  1029. sa.Pitch = 0
  1030. sa:Play()
  1031. local lb = Instance.new("Part")
  1032. lb.Parent = char
  1033. lb.Material = "Neon"
  1034. lb.Color = BrickColor.new("White").Color
  1035. lb.CanCollide = false
  1036. lb.Shape = "Ball"
  1037. lb.CFrame = l.CFrame + Vector3.new(0,750,0)
  1038. lb.Anchored = true
  1039. lb.Transparency = 0
  1040. lb.Size = vt(30,30,30)
  1041. local thing = Instance.new("SpecialMesh",lb)
  1042. thing.MeshType = meshtype
  1043. local hitted = false
  1044. l:Destroy()
  1045. lb.Anchored = false
  1046. wait(0.05)
  1047. lb.Touched:connect(function(hit)
  1048. if hitted == false then
  1049. hitted = true
  1050. local sa = Instance.new("Sound",lb)
  1051. sa.SoundId = "rbxassetid://402347142" -- needs current appropiate sound for this
  1052. sa.Volume = 2.25
  1053. sa.Pitch = 0.75
  1054. sa:Play()
  1055. local sa = Instance.new("Sound",lb)
  1056. sa.SoundId = "rbxassetid://402347142" -- needs current appropiate sound for this
  1057. sa.Volume = 1.75
  1058. sa.Pitch = 0.65
  1059. sa:Play()
  1060. local sa = Instance.new("Sound",lb)
  1061. sa.SoundId = "rbxassetid://138186576" -- needs current appropiate sound for this
  1062. sa.Volume = 5
  1063. sa.Pitch = 1
  1064. sa:Play()
  1065. lb.Anchored = true
  1066. lb.Transparency = 1
  1067. local aa = Instance.new("Part")
  1068. aa.Parent = lb
  1069. aa.Material = "Neon"
  1070. aa.Color = BrickColor.new("White").Color
  1071. aa.CanCollide = false
  1072. aa.Shape = "Ball"
  1073. aa.CFrame = lb.CFrame
  1074. aa.Anchored = true
  1075. aa.Transparency = 0
  1076. aa.Size = vt(1,1,1)
  1077. aa.CFrame = lb.CFrame
  1078. local thinger = Instance.new("SpecialMesh",aa)
  1079. thinger.MeshType = meshtype
  1080. thinger.Scale = vt(30,30,30)
  1081.  
  1082. local aa2 = Instance.new("Part")
  1083. aa2.Parent = lb
  1084. aa2.Material = "Neon"
  1085. aa2.Color = BrickColor.new("White").Color
  1086. aa2.CanCollide = false
  1087. aa2.Shape = "Ball"
  1088. aa2.CFrame = lb.CFrame
  1089. aa2.Anchored = true
  1090. aa2.Transparency = 0
  1091. aa2.Size = vt(1,1,1)
  1092. aa2.CFrame = lb.CFrame
  1093. local thinger2 = Instance.new("SpecialMesh",aa2)
  1094. thinger2.MeshType = meshtype
  1095. thinger2.Scale = vt(29.5,29.5,29.5)
  1096. for i = 0, 19 do
  1097. wait()
  1098. thinger.Scale = thinger.Scale + vt(4.5*2,4.5*2,4.5*2)
  1099. thinger2.Scale = thinger2.Scale + vt(1.5*2,1.5*80,1.5*2)
  1100. end
  1101. for i = 0, 9 do
  1102. wait()
  1103. thinger.Scale = thinger.Scale + vt(3.25*2,3.25*2,3.25*2)
  1104. thinger2.Scale = thinger2.Scale + vt(1.25*2,1.25*80,1.25*2)
  1105. aa.Transparency = aa.Transparency + 0.05
  1106. end
  1107. for i = 0, 9 do
  1108. wait()
  1109. thinger.Scale = thinger.Scale + vt(1.5*2,1.5*2,1.5*2)
  1110. thinger2.Scale = thinger2.Scale + vt(1*2,1*80,1*2)
  1111. aa.Transparency = aa.Transparency + 0.05
  1112. end
  1113. Damagefunc(hit,3400,7700,5,"Normal",root,.2,1)
  1114. for i = 0, 99 do
  1115. wait()
  1116. thinger2.Scale = thinger2.Scale + vt(0.75*2,0.75*80,0.75*2)
  1117. aa2.Transparency = aa2.Transparency + 0.01
  1118. end
  1119. lb:Destroy()
  1120. end
  1121. end)
  1122. attack = false
  1123. wait(2.5)
  1124. sa:Destroy()
  1125. end
  1126.  
  1127. mouse.Button1Down:connect(function()
  1128. if attack == false then
  1129. BasicProjectile()
  1130. end
  1131. end)
  1132.  
  1133. mouse.KeyDown:connect(function(key)
  1134. if key == "z" and attack == false then
  1135. FirstSkill()
  1136. elseif key == "x" and attack == false then
  1137. SecondSkill()
  1138. elseif key == "c" and attack == false then
  1139. ThirdSkill()
  1140. elseif key == "v" and attack == false then
  1141. ForthSkill()
  1142. end
  1143. end)
  1144.  
  1145. game:GetService("RunService").Stepped:connect(function()
  1146. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  1147. velocity = RootPart.Velocity.y
  1148. sine = sine + change
  1149. local hit, pos = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
  1150. if equipped == true or equipped == false then
  1151. healthg.Text = math.floor(hum.Health).. "/" ..math.floor(hum.MaxHealth)
  1152. if RootPart.Velocity.y > 1 and hit == nil then
  1153. Anim = "Jump"
  1154. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1155. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1156. if attack == false then
  1157. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-2.5),math.rad(0),math.rad(0)),.3)
  1158. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(2.5),math.rad(0),math.rad(0)),.3)
  1159. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.65, 0) * angles(math.rad(-10), math.rad(0), math.rad(50)), 0.3)
  1160. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.65, 0) * angles(math.rad(-10), math.rad(0), math.rad(-50)), 0.3)
  1161. end
  1162. else
  1163. if RootPart.Velocity.y < -1 and hit == nil then
  1164. Anim = "Fall"
  1165. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1166. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1167. if attack == false then
  1168. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(5),math.rad(0),math.rad(0)),.3)
  1169. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(2.5),math.rad(0),math.rad(0)),.3)
  1170. RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.65, 0) * angles(math.rad(-10), math.rad(0), math.rad(90)), 0.3)
  1171. LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.65, 0) * angles(math.rad(-10), math.rad(0), math.rad(-90)), 0.3)
  1172. end
  1173. else
  1174. if Torsovelocity < 1 and hit ~= nil then
  1175. Anim = "Idle"
  1176. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1177. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1178. if attack == false then
  1179. change = 1
  1180. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 32))* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1181. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1182. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(5 - 1.5 * math.cos(sine / 32))), 0.3)
  1183. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-5 + 1.5 * math.cos(sine / 32))), 0.3)
  1184. end
  1185. else
  1186. if Torsovelocity > 2 and hit ~= nil then
  1187. Anim = "Walk"
  1188. RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 50 * math.cos(sine / 6))),.3)
  1189. LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 50 * math.cos(sine / 6))),.3)
  1190. if attack == false then
  1191. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 32))* angles(math.rad(5),math.rad(0),math.rad(0)),.3)
  1192. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  1193. 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(5)), 0.3)
  1194. 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(-5)), 0.3)
  1195. end
  1196. end
  1197. end
  1198. end
  1199. end
  1200. end
  1201. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement