Advertisement
Leodu41

banisher scrript triple

Oct 2nd, 2019
254
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. script.Name = "Banisher Gun V3 / 1"
  2. - // =========================================== ====== \\ -
  3. - || CRÉÉ PAR SHACKLUSTER
  4. - \\ =========================================== ====== // -
  5.  
  6. script: ClearAllChildren ()
  7. attendre (0.2)
  8.  
  9. Joueur = jeu: GetService ("Joueurs"). LocalPlayer
  10. PlayerGui = Player.PlayerGui
  11. Cam = workspace.CurrentCamera
  12. Sac à dos = Player.Backpack
  13. Caractère = Joueur.Caractère
  14. Humanoïde = Caractère.Humanoïde
  15. Souris = Player: GetMouse ()
  16. RootPart = Caractère ["HumanoidRootPart"]
  17. Torse = Caractère ["Torse"]
  18. Tête = Caractère ["Tête"]
  19. RightArm = Caractère ["Bras Droit"]
  20. LeftArm = Caractère ["Bras Gauche"]
  21. RightLeg = Caractère ["Jambe droite"]
  22. LeftLeg = Caractère ["Jambe gauche"]
  23. RootJoint = RootPart ["RootJoint"]
  24. Cou = Torse ["Cou"]
  25. RightShoulder = Torse ["épaule droite"]
  26. LeftShoulder = Torse ["Épaule gauche"]
  27. RightHip = Torse ["Hanche Droite"]
  28. LeftHip = Torse ["hanche gauche"]
  29. heure locale = 5
  30. local sick = Instance.new ("Son", torse)
  31. sick.Parent = Torse
  32. sick.Playing = true
  33. sick.Looped = true
  34. malade.volume = 2
  35. sick.Pitch = 0.9
  36. sick.TimePosition = 0
  37. sick.SoundId = "rbxassetid: // 2322650280"
  38.  
  39. IT = Instance.new
  40. CF = CFrame.new
  41. VT = Vector3.new
  42. RAD = math.rad
  43. C3 = Color3.new
  44. UD2 = UDim2.new
  45. BRICKC = BrickColor.new
  46. ANGLES = CFrame.Angles
  47. EULER = CFrame.fromEulerAnglesXYZ
  48. COS = math.cos
  49. ACOS = math.acos
  50. NAS = math.sin
  51. ASIN = math.asin
  52. ABS = math.abs
  53. MRANDOM = math.random
  54. FLOOR = math.floor
  55.  
  56. - // ================================= \\
  57. - || VALEURS UTILES
  58. - \\ =================================
  59.  
  60. Animation_Speed ​​= 3
  61. FORCERESET local = false
  62. Frame_Speed ​​= 1/80 - (1/60) OU (1/80)
  63. vitesse locale = 12
  64. ROOTC0 local = CF (0, 0, 0) * ANGLES (RAD (-90), RAD (0), RAD (180))
  65. NECKC0 local = CF (0, 1, 0) * ANGLES (RAD (-90), RAD (0), RAD (180))
  66. local RIGHTSHOULDERC0 = CF (-0,5, 0, 0) * ANGLES (RAD (0), RAD (90), RAD (0))
  67. local LEFTSHOULDERC0 = CF (0.5, 0, 0) * ANGLES (RAD (0), RAD (-90), RAD (0))
  68. DAMAGEMULTIPLIER local = 1
  69. ANIM local = "inactif"
  70. ATTACK local = faux
  71. local EQUIPPED = false
  72. HOLD local = faux
  73. COMBO local = 1
  74. local Rooted = false
  75. SINE local = 0
  76. TAILLE locale = 1
  77. KEYHOLD local = faux
  78. changement local = 2 / Animation_Speed
  79. local WALKINGANIM = faux
  80. valeur locale1 = false
  81. valeur locale2 = false
  82. local ROBLOXIDLEANIMATION = IT ("Animation")
  83. ROBLOXIDLEANIMATION.Name = "Animation d'inactivité Roblox"
  84. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  85. --ROBLOXIDLEANIMATION.Parent = Humanoid
  86. WEAPONGUI local = IT ("ScreenGui", PlayerGui)
  87. WEAPONGUI.Name = "BanishV3Gui"
  88. Arme locale = IT ("Modèle")
  89. Player_Size = 1 --Taille du joueur.
  90. Weapon.Name = "Ajoute"
  91. Effets locaux = IT ("Dossier", Arme)
  92. Effects.Name = "Effets"
  93. ANIMATOR local = Humanoid.Animator
  94. local ANIMATE = Caractère: FindFirstChild ("Animate")
  95. UNANCHOR local = true
  96. TOBANISH local = {}
  97. script.Parent = PlayerGui
  98.  
  99. - // ================================= \\
  100. - \\ =================================
  101.  
  102.  
  103. - // ================================= \\
  104. - || CŒUR ARTIFICIEL DE SAZERENOS
  105. - \\ =================================
  106.  
  107. ArtificialHB = Instance.new ("BindableEvent", script)
  108. ArtificialHB.Name = "ArtificialHB"
  109.  
  110. script: WaitForChild ("ArtificialHB")
  111.  
  112. frame = Frame_Speed
  113. tf = 0
  114. allowframeloss = false
  115. tossremainder = false
  116. lastframe = tick ()
  117. script.ArtificialHB: Fire ()
  118.  
  119. jeu: GetService ("RunService"). Heartbeat: connecter (fonction (s, p)
  120. tf = tf + s
  121. si tf> = frame alors
  122. si allowframeloss alors
  123. script.ArtificialHB: Fire ()
  124. lastframe = tick ()
  125. autre
  126. pour i = 1, math.floor (tf / frame) do
  127. script.ArtificialHB: Fire ()
  128. fin
  129. lastframe = tick ()
  130. fin
  131. si tossremainder alors
  132. tf = 0
  133. autre
  134. tf = tf - frame * math.floor (tf / frame)
  135. fin
  136. fin
  137. fin)
  138.  
  139. - // ================================= \\
  140. - \\ =================================
  141.  
  142. - // ================================= \\
  143. - || QUELQUES FONCTIONS
  144. - \\ =================================
  145.  
  146. fonction Raycast (POSITION, DIRECTION, PLAGE, IGNOREDECENDANTS)
  147. retourner l'espace de travail: FindPartOnRay (Ray.new (POSITION, DIRECTION.unit * GAMME), IGNOREDECENDANTS)
  148. fin
  149.  
  150. fonction PositiveAngle (NUMBER)
  151. si NUMBER> = 0 alors
  152. NUMBER = 0
  153. fin
  154. retourner NUMBER
  155. fin
  156.  
  157. fonction NegativeAngle (NUMBER)
  158. si NUMBER <= 0 alors
  159. NUMBER = 0
  160. fin
  161. retourner NUMBER
  162. fin
  163.  
  164. fonction Swait (NOMBRE)
  165. si NUMBER == 0 ou NUMBER == nil alors
  166. ArtificialHB.Event: wait ()
  167. autre
  168. pour i = 1, NUMBER fait
  169. ArtificialHB.Event: wait ()
  170. fin
  171. fin
  172. fin
  173.  
  174. fonction CreateMesh (MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  175. NEWMESH local = IT (MAILLE)
  176. si MESH == "SpecialMesh" alors
  177. NEWMESH.MeshType = MESHTYPE
  178. si MESHID ~ = "nil" et MESHID ~ = "" alors
  179. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  180. fin
  181. si TEXTUREID ~ = "nil" et TEXTUREID ~ = "" alors
  182. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  183. fin
  184. fin
  185. NEWMESH.Offset = OFFSET ou VT (0, 0, 0)
  186. NEWMESH.Scale = SCALE
  187. NEWMESH.Parent = PARENT
  188. retour NEWMESH
  189. fin
  190.  
  191. fonction CreatePart (FORMFACTOR, PARENT, MATERIAU, REFLECTANCE, TRANSPARENCE, BRICKCOLOR, NOM, TAILLE, ANCRAGE)
  192. NEWPART local = IT ("Partie")
  193. NEWPART.formFactor = FORMFACTOR
  194. NEWPART.Reflectance = REFLECTANCE
  195. NEWPART.Transparency = TRANSPARENCY
  196. NEWPART.CanCollide = false
  197. NEWPART.Locked = true
  198. NEWPART.Anchored = true
  199. si ANCHOR == false alors
  200. NEWPART.Anchored = false
  201. fin
  202. NEWPART.BrickColor = BRICKC (chaîne de caractères (BRICKCOLOR))
  203. NEWPART.Name = NOM
  204. NEWPART.Size = SIZE
  205. NEWPART.Position = Torso.Position
  206. NEWPART.Material = MATERIAL
  207. NEWPART: BreakJoints ()
  208. NEWPART.Parent = PARENT
  209. retour NEWPART
  210. fin
  211.  
  212. fonction locale soudureBetween (a, b)
  213. local weldingd = Instance.new ("ManualWeld")
  214. weldingd.Part0 = a
  215. weldingd.Part1 = b
  216. weldingd.C0 = CFrame.new ()
  217. weldingd.C1 = b.CFrame: inverse () * a.CFrame
  218. weldingd.Parent = a
  219. retour soudé
  220. fin
  221.  
  222.  
  223. fonction QuaternionFromCFrame (cf)
  224. mx local, mon, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf: composants ()
  225. trace locale = m00 + m11 + m22
  226. si trace> 0 alors
  227. local s = math.sqrt (1 + trace)
  228. recip local = 0.5 / s
  229. retour (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0,5
  230. autre
  231. local i = 0
  232. si m11> m00 alors
  233. i = 1
  234. fin
  235. si m22> (i == 0 et m00 ou m11) alors
  236. i = 2
  237. fin
  238. si i == 0 alors
  239. local s = math.sqrt (m00 - m11 - m22 + 1)
  240. recip local = 0.5 / s
  241. retourne 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  242. elseif i == 1 alors
  243. local s = math.sqrt (m11 - m22 - m00 + 1)
  244. recip local = 0.5 / s
  245. retour (m01 + m10) * recip, 0,5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  246. elseif i == 2 alors
  247. local s = math.sqrt (m22 - m00 - m11 + 1)
  248. recip local = 0.5 / s retour (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  249. fin
  250. fin
  251. fin
  252.  
  253. fonction QuaternionToCFrame (px, py, pz, x, y, z, w)
  254. xs locaux, ys, zs = x + x, y + y, z + z
  255. local wx, wy, wz = w * xs, w * ys, w * zs
  256. local xx = x * xs
  257. local xy = x * ys
  258. local xz = x * zs
  259. local yy = y * ys
  260. local yz = y * zs
  261. local zz = z * zs
  262. retour 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))
  263. fin
  264.  
  265. fonction QuaternionSlerp (a, b, t)
  266. cosTheta locale = a [1] * b [1] + a [2] * b [2] + a [3] * b [3] + a [4] * b [4]
  267. local startInterp, finishInterp;
  268. si cosTheta> = 0.0001 alors
  269. si (1 - cosTheta)> 0,0001 alors
  270. thêta local = ACOS (cosTheta)
  271. invSinTheta local = 1 / SIN (thêta)
  272. startInterp = SIN ((1 - t) * thêta) * invSinTheta
  273. finishInterp = SIN (t * thêta) * invSinTheta
  274. autre
  275. startInterp = 1 - t
  276. finishInterp = t
  277. fin
  278. autre
  279. si (1 + cosTheta)> 0,0001 alors
  280. thêta local = ACOS (-cosTheta)
  281. invSinTheta local = 1 / SIN (thêta)
  282. startInterp = SIN ((t - 1) * thêta) * invSinTheta
  283. finishInterp = SIN (t * thêta) * invSinTheta
  284. autre
  285. startInterp = t - 1
  286. finishInterp = t
  287. fin
  288. fin
  289. retourne un [1] * startInterp + b [1] * finishInterp, un [2] * startInterp + b [2] * finishInterp, un [3] * startInterp + b [3] * finishInterp, un [4] * startInterp + b [4] * finishInterp
  290. fin
  291.  
  292. fonction Clerp (a, b, t)
  293. qa local = {QuaternionFromCFrame (a)}
  294. qb local = {QuaternionFromCFrame (b)}
  295. axe local, ay, az = axe, ay, az
  296. bx local, par, bz = bx, par, bz
  297. local _t = 1 - t
  298. retourne QuaternionToCFrame (_t * ax + t * bx, _t * ay + t * par, _t * az + t * bz, QuaternionSlerp (qa, qb, t))
  299. fin
  300.  
  301. fonction CreateFrame (PARENT, TRANSPARENCE, BORDERSIZEPIXEL, POSITION, TAILLE, COULEUR, BORDERCOLORE, NOM)
  302. frame local = IT ("Frame")
  303. frame.BackgroundTransparency = TRANSPARENCY
  304. frame.BorderSizePixel = BORDERSIZEPIXEL
  305. frame.Position = POSITION
  306. frame.Size = SIZE
  307. frame.BackgroundColor3 = COULEUR
  308. frame.BorderColor3 = BORDERCOLOR
  309. frame.Name = NOM
  310. frame.Parent = PARENT
  311. cadre de retour
  312. fin
  313.  
  314. fonction CreateLabel (PARENT, TEXTE, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  315. label local = IT ("TextLabel")
  316. label.BackgroundTransparency = 1
  317. label.Size = UD2 (1, 0, 1, 0)
  318. label.Position = UD2 (0, 0, 0, 0)
  319. label.TextColor3 = TEXTCOLOR
  320. label.TextStrokeTransparency = STROKETRANSPARENCY
  321. label.TextTransparency = TRANSPARENCY
  322. label.FontSize = TEXTFONTSIZE
  323. label.Font = TEXTFONT
  324. label.BorderSizePixel = BORDERSIZEPIXEL
  325. label.TextScaled = false
  326. label.Text = TEXT
  327. label.Name = NOM
  328. label.Parent = PARENT
  329. étiquette de retour
  330. fin
  331.  
  332. fonction NoOutlines (PART)
  333. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  334. fin
  335.  
  336. fonction CreateWeldOrSnapOrMotor (TYPE, PARENT, PART0, PART1, C0, C1)
  337. local NEWWELD = IT (TYPE)
  338. NEWWELD.Part0 = PART0
  339. NEWWELD.Part1 = PART1
  340. NEWWELD.C0 = C0
  341. NEWWELD.C1 = C1
  342. NEWWELD.Parent = PARENT
  343. retourner NEWWELD
  344. fin
  345.  
  346. local S = IT ("Son")
  347. Fonction CreateSound (ID, PARENT, VOLUME, PITCH, DOESLOOP)
  348. local NEWSOUND = nil
  349. coroutine.resume (coroutine.create (function ()
  350. NEWSOUND = S: Clone ()
  351. NEWSOUND.Parent = PARENT
  352. NEWSOUND.Volume = VOLUME
  353. NEWSOUND.Pitch = PITCH
  354. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  355. NEWSOUND: play ()
  356. si DOESLOOP == true alors
  357. NEWSOUND.Looped = true
  358. autre
  359. répéter wait (1) jusqu'à NEWSOUND.Playing == false ou NEWSOUND.Parent ~ = PARENT
  360. NEWSOUND: remove ()
  361. fin
  362. fin))
  363. retour NEWSOUND
  364. fin
  365.  
  366. fonction CFrameFromTopBack (en haut, en bas)
  367. local droite = top: croix (retour)
  368. retourne CF (at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z )
  369. fin
  370.  
  371. --WACKYEFFECT ({EffectType = "", Taille = VT (1,1,1), Size2 = VT (0,0,0), Transparence = 0, Transparence2 = 1, CFrame = CF (), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Matériau = "Néon", Couleur = C3 (1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  372. fonction WACKYEFFECT (tableau)
  373. TYPE local = (Table.EffectType ou "Sphere")
  374. TAILLE locale = (Table.Size ou VT (1,1,1))
  375. ENDSIZE local = (Table.Size2 ou VT (0,0,0))
  376. TRANSPARENCY local = (Table.Transparency ou 0)
  377. ENDTRANSPARENCY local = (Table.Transparency2 ou 1)
  378. local CFRAME = (Table.CFrame ou Torso.CFrame)
  379. local MOVEDIRECTION = (Table.MoveToPos ou nil)
  380. ROTATION1 locale = (Table.RotationX ou 0)
  381. ROTATION2 locale = (Table.RotationY ou 0)
  382. ROTATION3 locale = (Table.RotationZ ou 0)
  383. MATERIEL local = (Table.Material ou "Neon")
  384. COLOR local = (Table.Color ou C3 (1,1,1))
  385. heure locale = (heure de la table ou 45)
  386. SOUNDID local = (Table.SoundID ou nil)
  387. SOUNDPITCH local = (Table.SoundPitch ou nil)
  388. SOUNDVOLUME local = (Table.SoundVolume ou nil)
  389. coroutine.resume (coroutine.create (function ()
  390. local PLAYSSOUND = false
  391. son local = nul
  392. EFFECT local = CreatePart (3, Effets, MATERIAU, 0, TRANSPARENCE, BRICKC ("Perle"), "Effet", VT (1,1,1), true)
  393. si SOUNDID ~ = nil et SOUNDPITCH ~ = nil et SOUNDVOLUME ~ = nil alors
  394. PLAYSSOUND = true
  395. SOUND = CreateSound (SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  396. fin
  397. EFFECT.Color = COULEUR
  398. MSH local = nul
  399. si TYPE == "Sphère" alors
  400. MSH = CreateMesh ("SpecialMesh", EFFECT, "Sphère", "", "", TAILLE, VT (0,0,0))
  401. elseif TYPE == "Bloquer" alors
  402. MSH = IT ("BlockMesh", EFFECT)
  403. MSH.Scale = VT (SIZE.X, SIZE.X, SIZE.X)
  404. elseif TYPE == "Wave" alors
  405. MSH = CreateMesh ("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT (0,0, -SIZE.X / 8))
  406. elseif TYPE == "Ring" puis
  407. MSH = CreateMesh ("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT (SIZE.X, SIZE.X, 0.1), VT (0,0,0))
  408. elseif TYPE == "Slash" puis
  409. MSH = CreateMesh ("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT (SIZE.X / 10,0, SIZE.X / 10), VT (0,0,0))
  410. elseif TYPE == "Round Slash" puis
  411. MSH = CreateMesh ("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT (SIZE.X / 10,0, SIZE.X / 10), VT (0,0,0))
  412. elseif TYPE == "Swirl" puis
  413. MSH = CreateMesh ("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT (0,0,0))
  414. elseif TYPE == "Crâne" alors
  415. MSH = CreateMesh ("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT (0,0,0))
  416. elseif TYPE == "Crystal" alors
  417. MSH = CreateMesh ("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT (0,0,0))
  418. fin
  419. si MSH ~ = nul alors
  420. local MOVESPEED = nil
  421. si MOVEDIRECTION ~ = nil alors
  422. MOVESPEED = (CFRAME.p - MOVEDIRECTION) .Magnitude / TIME
  423. fin
  424. CROISSANCE locale = TAILLE - FINISSEZ
  425. TRANS local = TRANSPARENCY - ENDTRANSPARENCY
  426. si TYPE == "Block" alors
  427. EFFECT.CFrame = CFRAME * ANGLES (RAD (MRANDOM (0,360)), RAD (MRANDOM (0,360)), RAD (MRANDOM (0,360)))
  428. autre
  429. EFFECT.CFrame = CFRAME
  430. fin
  431. pour LOOP = 1, TIME + 1 do
  432. Swait ()
  433. MSH.Scale = MSH.Scale - CROISSANCE / TEMPS
  434. si TYPE == "Wave" alors
  435. MSH.Offset = VT (0,0, -MSH.Scale.X / 8)
  436. fin
  437. EFFECT.Transparency = EFFECT.Transparency - TRANS / TIME
  438. si TYPE == "Block" alors
  439. EFFECT.CFrame = CFRAME * ANGLES (RAD (MRANDOM (0,360)), RAD (MRANDOM (0,360)), RAD (MRANDOM (0,360)))
  440. autre
  441. EFFECT.CFrame = EFFECT.CFrame * ANGLES (RAD (ROTATION1), RAD (ROTATION2), RAD (ROTATION3))
  442. fin
  443. si MOVEDIRECTION ~ = nil alors
  444. ORI local = EFFECT.Orientation
  445. EFFECT.CFrame = CF (EFFECT.Position, MOVEDIRECTION) * CF (0,0, -MOVESPEED)
  446. EFFECT.Orientation = ORI
  447. fin
  448. fin
  449. si PLAYSSOUND == faux alors
  450. EFFET: remove ()
  451. autre
  452. SOUND.Stopped: Connect (fonction ()
  453. EFFET: remove ()
  454. fin)
  455. fin
  456. autre
  457. si PLAYSSOUND == faux alors
  458. EFFET: remove ()
  459. autre
  460. répéter Swait () jusqu'à SOUND.Playing == false
  461. EFFET: remove ()
  462. fin
  463. fin
  464. fin))
  465. fin
  466.  
  467. fonction MakeForm (PART, TYPE)
  468. si TYPE == "Cyl" alors
  469. MSH local = IT ("CylinderMesh", PART)
  470. elseif TYPE == "Ball" alors
  471. MSH local = IT ("SpecialMesh", PART)
  472. MSH.MeshType = "Sphere"
  473. elseif TYPE == "Wedge" alors
  474. MSH local = IT ("SpecialMesh", PART)
  475. MSH.MeshType = "Wedge"
  476. fin
  477. fin
  478.  
  479. fonction SpawnTrail (FROM, TO, BIG)
  480. local TRAIL = CreatePart (3, Effets, "Néon", 0, 0.5, "Vraiment rouge", "Tracé", VT (0,0,0))
  481. MakeForm (TRAIL, "Cyl")
  482. local DIST = (FROM - TO) .Magnitude
  483. si GRAND == vrai alors
  484. TRAIL.Size = VT (0.8, DIST, 0.8)
  485. autre
  486. TRAIL.Size = VT (0,35, DIST, 0,35)
  487. fin
  488. TRAIL.CFrame = CF (DE, TO) * CF (0, 0, -DIST / 2) * ANGLES (RAD (90), RAD (0), RAD (0))
  489. coroutine.resume (coroutine.create (function ()
  490. pour i = 1, 5 do
  491. Swait ()
  492. TRAIL.Transparency = TRAIL.Transparency + 0.1
  493. fin
  494. TRAIL: remove ()
  495. fin))
  496. fin
  497.  
  498. Débris = jeu: GetService ("Débris")
  499.  
  500. fonction CastProperRay (StartPos, EndPos, Distance, Ignore)
  501. local DIRECTION = CF (StartPos, EndPos) .lookVector
  502. retourne Raycast (StartPos, DIRECTION, Distance, Ignore)
  503. fin
  504.  
  505. fonction turnto (position)
  506. RootPart.CFrame = CFrame.new (RootPart.CFrame.p, VT (position.X, RootPart.Position.Y, position.Z)) * CFrame.new (0, 0, 0)
  507. fin
  508.  
  509.  
  510. - // ================================= \\
  511. - || CRÉATION D'ARMES
  512. - \\ =================================
  513.  
  514.  
  515. Particle local = IT ("ParticleEmitter", nil)
  516. Particle.Enabled = false
  517. Particle.Transparency = NumberSequence.new ({NumberSequenceKeypoint.new (0,0.3), NumberSequenceKeypoint.new (0.3,0), NumberSequenceKeypoint.new (1,1)})
  518. Particle.LightEmission = 0.5
  519. Particle.Rate = 150
  520. Particle.ZOffset = 0.2
  521. Particle.Rotation = NumberRange.new (-180, 180)
  522. Particle.RotSpeed ​​= NumberRange.new (-180, 180)
  523. Particle.Texture = "http://www.roblox.com/asset/?id=304437537"
  524. Particle.Color = ColorSequence.new (C3 (1,0,0), C3 (0.4,0,0))
  525.  
  526. --ParticuleEmetteur ({Vitesse = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Activé = false})
  527. fonction ParticleEmitter (Table)
  528. PRTCL local = Particle: Clone ()
  529. vitesse locale = Table.Speed ​​ou 5
  530. local Drag = Table.Drag ou 0
  531. local Size1 = Table.Size1 ou 1
  532. local Size2 = Table.Size2 ou 5
  533. local Lifetime1 = Table.Lifetime1 ou 1
  534. local Lifetime2 = Table.Lifetime2 ou 1.5
  535. parent local = Table.Parent ou Torse
  536. Emit local = Table.Emit ou 100
  537. Décalage local = Table.Offset ou 360
  538. local Acel = Table.Acel ou VT (0,0,0)
  539. local Enabled = Table.Enabled ou false
  540. PRTCL.Parent = Parent
  541. PRTCL.Size = NumberSequence.new (Size1, Size2)
  542. PRTCL.Lifetime = NumberRange.new (Lifetime1, Lifetime2)
  543. PRTCL.Speed ​​= NumberRange.new (Speed)
  544. PRTCL.VelocitySpread = Décalage
  545. PRTCL.Drag = Drag
  546. PRTCL.Acceleration = Acel
  547. si activé == faux alors
  548. PRTCL: Emit (Emit)
  549. Débris: AddItem (PRTCL, Lifetime2)
  550. autre
  551. PRTCL.Enabled = true
  552. fin
  553. retourner PRTCL
  554. fin
  555.  
  556. local Handle = CreatePart (3, Arme, "Métal", 0, 0, "Gris moyen", "Pièce", VT (0.2,0.6,0.2), false)
  557. local RightArmGrasp = CreateWeldOrSnapOrMotor ("Weld", Handle, RightArm, Handle, CF (0, -1, 0) * ANGLES (RAD (90), RAD (0), RAD (0)), CF (0, 0.21, 0 ))
  558. partie locale = CreatePart (3, Arme, "Métal", 0, 0, "Gris moyen", "Partie", VT (0.2,0.5,0.2), false)
  559. MakeForm (Part, "Wedge")
  560. CreateWeldOrSnapOrMotor ("Weld", Poignée, Poignée, Pièce, CF (0, -0,3, 0,2) * ANGLES (RAD (0), RAD (180), RAD (0)), CF (0, 0, 0))
  561. local Part = CreatePart (3, Arme, "Métal", 0, 0, "Gris moyen", "Partie", VT (0.2,0.3,0.2), false)
  562. MakeForm (Part, "Wedge")
  563. CreateWeldOrSnapOrMotor ("Weld", Poignée, Poignée, Pièce, CF (0, -0,4, 0) * ANGLES (RAD (0), RAD (0), RAD (180)), CF (0, 0, 0))
  564. partie locale = CreatePart (3, Arme, "Métal", 0, 0, "Gris moyen", "Partie", VT (0.3,0.3,0.3), false)
  565. CreateWeldOrSnapOrMotor ("Weld", Poignée, Poignée, Pièce, CF (0, -0,5, 0,2) * ANGLES (RAD (0), RAD (0), CF (0, 0, 0))
  566. partie locale = CreatePart (3, Arme, "Métal", 0, 0, "Gris moyen", "Partie", VT (0.3,0.5,0.5), false)
  567. CreateWeldOrSnapOrMotor ("Weld", Poignée, Poignée, Pièce, CF (0, -0,6, 0,5) * ANGLES (RAD (0), RAD (0), CF (0, 0, 0))
  568. partie locale = CreatePart (3, Arme, "Métal", 0, 0, "Gris moyen", "Partie", VT (0.4,0.4,0.4), false)
  569. MakeForm (Part, "Cyl")
  570. CreateWeldOrSnapOrMotor ("Soudure", Poignée, Poignée, Pièce, CF (0, -0,6, 0,5) * ANGLES (RAD (90), RAD (0), CF (0, 0, 0))
  571. pour i = 1, 8 do
  572. local Piece = CreatePart (3, Arme, "Métal", 0, 0, "Gris moyen", "Oeil", VT (0,0.35,0.41), faux)
  573. CreateWeldOrSnapOrMotor ("Soudure", Poignée, Pièce, Pièce, CF (0, 0, 0) * ANGLES (RAD (0), RAD ((360/8) * i), RAD (0)), CF (0, 0 , 0))
  574. fin
  575. partie locale = CreatePart (3, Arme, "Métal", 0, 0, "Gris moyen", "Oeil", VT (0.38,0.41,0.38), faux)
  576. MakeForm (Part, "Cyl")
  577. CreateWeldOrSnapOrMotor ("Soudure", Poignée, Poignée, Pièce, CF (0, -0,6, 0,5) * ANGLES (RAD (90), RAD (0), CF (0, 0, 0))
  578. partie locale = CreatePart (3, Arme, "Métal", 0, 0, "Gris moyen", "Partie", VT (0.37,0.5,0.37), false)
  579. MakeForm (Part, "Ball")
  580. CreateWeldOrSnapOrMotor ("Weld", Poignée, Poignée, Pièce, CF (0, -0,6, 0,3) * ANGLES (RAD (90), RAD (0), CF (0, 0, 0))
  581. partie locale = CreatePart (3, Arme, "Métal", 0, 0, "Gris moyen", "Partie", VT (0.2,0.7,0.4), false)
  582. MakeForm (Part, "Wedge")
  583. CreateWeldOrSnapOrMotor ("Weld", Poignée, Poignée, Pièce, CF (0, -0,7, 0,5) * ANGLES (RAD (90), RAD (180), RAD (180)), CF (0, 0, 0))
  584. partie locale = CreatePart (3, Arme, "Métal", 0, 0, "Gris moyen", "Partie", VT (0.3,0.4,0.2), false)
  585. CreateWeldOrSnapOrMotor ("Soudure", Poignée, Poignée, Pièce, CF (0, -0,6, 0,7) * ANGLES (RAD (0), RAD (0), CF (0, 0, 0))
  586. partie locale = CreatePart (3, Arme, "Métal", 0, 0, "Gris moyen", "Partie", VT (0.35,0.35,0.35), false)
  587. MakeForm (Part, "Cyl")
  588. CreateWeldOrSnapOrMotor ("Soudure", Poignée, Poignée, Pièce, CF (0, -0,6, 0,7) * ANGLES (RAD (90), RAD (0), CF (0, 0, 0))
  589. partie locale = CreatePart (3, Arme, "Métal", 0, 0, "Gris moyen", "Partie", VT (0.5,0.1,0.5), false)
  590. MakeForm (Part, "Cyl")
  591. CreateWeldOrSnapOrMotor ("Soudure", Poignée, Poignée, Pièce, CF (0, -0,6, 1) * ANGLES (RAD (90), RAD (0), CF (0, 0, 0))
  592. local Part = CreatePart (3, Arme, "Métal", 0, 0, "Gris moyen", "Partie", VT (0.5,0.1,0.45), false)
  593. MakeForm (Part, "Cyl")
  594. CreateWeldOrSnapOrMotor ("Weld", Poignée, Poignée, Pièce, CF (0, -0,6, 1.1) * ANGLES (RAD (90), RAD (0), CF (0, 0, 0))
  595. partie locale = CreatePart (3, Arme, "Métal", 0, 0, "Gris moyen", "Partie", VT (0.2,0.5,0.2), false)
  596. MakeForm (Part, "Wedge")
  597. CreateWeldOrSnapOrMotor ("Soudure", Poignée, Poignée, Pièce, CF (0, -0,55, 0,2) * ANGLES (RAD (-135), RAD (0), CF (0, -0,3, 0) )
  598. LASTPART local = Handle
  599. pour i = 1, 10 do
  600. si LASTPART == Handle alors
  601. local Part = CreatePart (3, Arme, "Métal", 0, 0, "Gris moyen", "Partie", VT (0.1,0.2,0), false)
  602. LASTPART = Part
  603. CreateWeldOrSnapOrMotor ("Soudure", Poignée, Poignée, Pièce, CF (0, -0,1, 0,2) * ANGLES (RAD (90), RAD (0), CF (0, 0, 0))
  604. autre
  605. local Part = CreatePart (3, Arme, "Métal", 0, 0, "Gris moyen", "Partie", VT (0.1,0.05,0), false)
  606. CreateWeldOrSnapOrMotor ("Soudure", poignée, LASTPART, pièce, CF (0, 0.025, 0) * ANGLES (RAD (8), RAD (0), RAD (0)), CF (0, -0,025, 0))
  607. LASTPART = Part
  608. fin
  609. fin
  610.  
  611. local Barrel = CreatePart (3, Arme, "Métal", 0, 0, "Gris moyen", "Pièce", VT (0.15,2,0.15), false)
  612. MakeForm (Barrel, "Cyl")
  613. CreateWeldOrSnapOrMotor ("Weld", Poignée, Poignée, Baril, CF (0, -0,6, 1,8) * ANGLES (RAD (90), RAD (0), CF (0, 0, 0))
  614. partie locale = CreatePart (3, Arme, "Métal", 0, 0, "Gris moyen", "Partie", VT (0.25,1,0.25), false)
  615. MakeForm (Part, "Cyl")
  616. CreateWeldOrSnapOrMotor ("Weld", poignée, baril, pièce, CF (0, -0,6, 0), CF (0, 0, 0))
  617. local Part = CreatePart (3, Arme, "Métal", 0, 0, "Gris moyen", "Partie", VT (0,0.1,0.2), false)
  618. MakeForm (Part, "Wedge")
  619. CreateWeldOrSnapOrMotor ("Weld", poignée, baril, pièce, CF (0, 0.945, 0.1) * ANGLES (RAD (180), RAD (0), RAD (0)), CF (0, 0, 0))
  620. trou local = CreatePart (3, Arme, "Métal", 0, 0, "Gris moyen", "Oeil", VT (0.125,0,0.125), faux)
  621. MakeForm (Trou, "Cyl")
  622. CreateWeldOrSnapOrMotor ("Weld", poignée, baril, trou, CF (0, 0.98, 0), CF (0, 0, 0))
  623. local Part = CreatePart (3, Arme, "Métal", 0, 0, "Gris moyen", "Partie", VT (0,0,0), false)
  624. local GEARWELD = CreateWeldOrSnapOrMotor ("Weld", poignée, poignée, pièce, CF (0, -0,6, 0,7), CF (0, 0, 0))
  625. CreateMesh ("SpecialMesh", Part, "FileMesh", 156292343, "", VT (0.8,0.8,1.5), VT (0,0,0.2))
  626. partie locale = CreatePart (3, Arme, "Métal", 0, 0.5, "Gris moyen", "Oeil", VT (0,0,0), faux)
  627. local GEARWELD2 = CreateWeldOrSnapOrMotor ("Weld", poignée, poignée, pièce, CF (0, -0,6, 0,7), CF (0, 0, 0))
  628. CreateMesh ("SpecialMesh", Part, "FileMesh", 156292343, "", VT (0.9,0.9,0.3), VT (0,0,0.2))
  629. coroutine.resume (coroutine.create (function ()
  630. en attendant () do
  631. GEARWELD.C0 = GEARWELD.C0 * ANGLES (RAD (0), RAD (0), RAD (0 - 25 * NAS (SINE / 25)))
  632. GEARWELD2.C0 = GEARWELD2.C0 * ANGLES (RAD (0), RAD (0), RAD (0 - -25 * NAS (SINE / 25)))
  633. fin
  634. fin))
  635.  
  636. local Hole2 = CreatePart (3, Arme, "Métal", 0, 0, "Gris moyen", "Oeil", VT (0.125,0,0.125), faux)
  637. MakeForm (Hole2, "Cyl")
  638. CreateWeldOrSnapOrMotor ("Weld", poignée, baril, trou 2, CF (0,8, 0,98, 0), CF (0, 0, 0))
  639.  
  640. local Hole3 = CreatePart (3, Arme, "Métal", 0, 0, "Gris moyen", "Oeil", VT (0.125,0,0.125), faux)
  641. MakeForm (Hole3, "Cyl")
  642. CreateWeldOrSnapOrMotor ("Weld", poignée, baril, trou 3, CF (-0,8, 0,98, 0), CF (0, 0, 0))
  643.  
  644. ParticleEmitter ({Speed ​​= 0.02, Drag = 0, Size1 = 0.1, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.5, Parent = Hole, Emit = 100, Offset = 360, Activé = true, Acel = VT (0,5 , 0)})
  645. ParticleEmitter ({Speed ​​= 50, Drag = 0, Size1 = 0.1, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.5, Parent = Hole, Emit = 100, Offset = 360, Activé = true, Acel = VT (0,5 , 0)})
  646. ParticleEmitter ({Vitesse = 10, Drag = 0, Size1 = 0.1, Size2 = 0, Durée de vie1 = 0.3, Durée de vie2 = 0.5, Parent = Trou, Emit = 100, Offset = 360, Activé = true, Acel = VT (0,5 , 0)})
  647. --ParticuleEmitter ({Vitesse = 0.5, Drag = 0, Size1 = 0.2, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.7, Parent = Dangle, Emit = 100, Offset = 360, Activé = true, Acel = VT (0 , 5,0)})
  648.  
  649. pour _, c par paires (Weapon: GetDescendants ()) do
  650. if c.ClassName == "Part" et c.Name ~ = "Eye" et c.Parent ~ = Effects et c.Parent.Parent ~ = Effects alors
  651. c.Material = "Glass"
  652. Couleur = C3 (3,0,0)
  653. elseif c.ClassName == "Part" et c.Name == "Eye", puis
  654. Couleur = C3 (1,0,0)
  655. c.Material = "Neon"
  656. fin
  657. fin
  658.  
  659. Weapon.Parent = Caractère
  660. pour _, c par paires (Weapon: GetChildren ()) do
  661. si c.ClassName == "Part" alors
  662. c.CustomPhysicalProperties = PhysicalProperties.new (0, 0, 0, 0, 0)
  663. fin
  664. fin
  665.  
  666. local SKILLTEXTCOLOR = C3 (1,0,0)
  667. local SKILLFONT = "Antique"
  668. local SKILLTEXTSIZE = 7
  669.  
  670. local SKILL1FRAME = CreateFrame (WEAPONGUI, 1, 2, UD2 (0,1, 0, 0,90, 0), UD2 (0,26, 0, 0,07, 0), C3 (0,0,0), C3 (0, 0, 0) , "Compétence 1 Cadre")
  671. - [[local SKILL2FRAME = CreateFrame (WEAPONGUI, 1, 2, UD2 (0,63, 0, 0,90, 0), UD2 (0,26, 0, 0,07, 0), C3 (0,0,0), C3 (0, 0, 0), "Compétence 2 Cadre")
  672. local SKILL3FRAME = CreateFrame (WEAPONGUI, 1, 2, UD2 (0,215, 0, 0,90, 0), UD2 (0,26, 0, 0,07, 0), C3 (0,0,0), C3 (0, 0, 0) , "Compétence 3 Cadre")
  673. local SKILL4FRAME = CreateFrame (WEAPONGUI, 1, 2, UD2 (0,525, 0, 0,90, 0), UD2 (0,26, 0, 0,07, 0), C3 (0,0,0), C3 (0, 0, 0) , "Compétence 4 Cadre")
  674. local SKILL5FRAME = CreateFrame (WEAPONGUI, 1, 2, UD2 (0,365, 0, 0,90, 0), UD2 (0,26, 0, 0,07, 0), C3 (0,0,0), C3 (0, 0, 0) , "Compétence 5 Cadre")
  675. ]]
  676. local SKILL1TEXT = CreateLabel (SKILL1FRAME, ": / Edit By NameClan", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Texte 1")
  677. - [[local SKILL2TEXT = CreateLabel (SKILL2FRAME, "[B] Capacité 2", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0,7, "Texte 2")
  678. local SKILL3TEXT = CreateLabel (SKILL3FRAME, "[C] Capacité 3", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Texte 3")
  679. local SKILL4TEXT = CreateLabel (SKILL4FRAME, "[V] Capacité 4", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Texte 4")
  680. local SKILL5TEXT = CreateLabel (SKILL5FRAME, "[X] Mercy", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Texte 5")
  681. ]]
  682. fonction printbye (Nom)
  683. MESSAGES locaux = {"Vous ne pouvez pas lutter", "Votre existence est une insulte", "Fade", "Votre existence n'est pas souhaitée", "Vous n'êtes pas autorisé ici", "Vous ne devez pas décider de votre destin, "," sois parti "," tu es déjà mort "," ta vie est une anomalie "," n'ose pas rentrer "," pourquoi résistes-tu "," tu ne peux pas exister ici , "," Pourquoi luttez-vous "," Votre destin était déjà décidé "," Au revoir "," Vous ne pouvez pas ignorer mes ordres "," Vous ne pouvez pas résister à mes ordres "," Vous êtes déjà décédé "}
  684. avertir (MESSAGES [MRANDOM (1, # MESSAGES)] .. Nom .. ".")
  685. fin
  686.  
  687. workspace.ChildAdded: connect (fonction (instance)
  688. pour BANISH = 1, #TOBANISH do
  689. si TOBANISH [BANISH] ~ = nul alors
  690. si instance.Name == TOBANISH [BANISH] alors
  691. coroutine.resume (coroutine.create (function ()
  692. printbye (instance.Name)
  693. instance: ClearAllChildren ()
  694. Debris: AddItem (instance, 0.0005)
  695. fin))
  696. fin
  697. fin
  698. fin
  699. fin)
  700.  
  701. - // ================================= \\
  702. - || ENDOMMAGEMENT
  703. - \\ =================================
  704.  
  705. fonction bannir (ennemi)
  706. si l'ennemi alors
  707. coroutine.resume (coroutine.create (function ()
  708. --if game.Players: FindFirstChild (Foe.Name) puis
  709. table.insert (TOBANISH, Foe.Name)
  710. printbye (Foe.Name)
  711. --fin
  712. Foe.Archivable = true
  713. local CLONE = Ennemi: Clone ()
  714. Ennemi: Détruire ()
  715. CLONE.Parent = Effets
  716. CLONE: BreakJoints ()
  717. MATERIALS local = {"Glass", "Neon"}
  718. pour _, c par paires (CLONE: GetDescendants ()) do
  719. si c: IsA ("BasePart") alors
  720. si c.Name == "Torse" ou c.Name == "UpperTorso" ou c == CLONE.PrimaryPart alors
  721. CreateSound (340722848, c, 10, 1, false)
  722. fin
  723. c.Anchored = true
  724. c.Transparency = c.Transparency + 0,2
  725. c.Material = MATERIALS [MRANDOM (1,2)]
  726. Couleur = C3 (1,0,0)
  727. si c.ClassName == "MeshPart" alors
  728. c.TextureID = ""
  729. fin
  730. si c: FindFirstChildOfClass ("SpecialMesh"), alors
  731. c: FindFirstChildOfClass ("SpecialMesh"). TextureId = ""
  732. fin
  733. si c: FindFirstChildOfClass ("Decal"), alors
  734. c: FindFirstChildOfClass ("Decal"): remove ()
  735. fin
  736. c.Name = "banni"
  737. c.CanCollide = false
  738. autre
  739. c: remove ()
  740. fin
  741. fin
  742. local A = faux
  743. pour i = 1, 35 do
  744. si A == faux alors
  745. A = vrai
  746. elseif A == vrai alors
  747. A = faux
  748. fin
  749. pour _, c par paires (CLONE: GetDescendants ()) do
  750. si c: IsA ("BasePart") alors
  751. c.Anchored = true
  752. c.Material = MATERIALS [MRANDOM (1,2)]
  753. c.Transparency = c.Transparency + 0.8 / 35
  754. si A == faux alors
  755. c.CFrame = c.CFrame * CF (MRANDOM (-45,45) / 45, MRANDOM (-45,45) / 45, MRANDOM (-45,45) / 45)
  756. elseif A == vrai alors
  757. c.CFrame = c.CFrame * CF (MRANDOM (-45,45) / 45, MRANDOM (-45,45) / 45, MRANDOM (-45,45) / 45)
  758. fin
  759. fin
  760. fin
  761. Swait ()
  762. fin
  763. CLONE: remove ()
  764. fin))
  765. fin
  766. fin
  767.  
  768. fonction ApplyAoE (POSITION, GAMME, ISBANISH)
  769. local ENFANTS = espace de travail: GetDescendants ()
  770. pour index, ENFANT par paires (ENFANTS) faire
  771. Si CHILD.ClassName == "Modèle" et CHILD ~ = Caractère alors
  772. local HUM = ENFANT: FindFirstChildOfClass ("Humanoid")
  773. si HUM alors
  774. local TORSO = ENFANT: FindFirstChild ("torse") ou ENFANT: FindFirstChild ("UpperTorso")
  775. si TORSO alors
  776. if (TORSO.Position - POSITION) .Magnitude <= RANGE then
  777. si ISBANISH == vrai alors
  778. Bannir (ENFANT)
  779. autre
  780. si ISBANISH == "Gravity" alors
  781. HUM.PlatformStand = true
  782. si TORSO: FindFirstChild ("V3BanishForce" .. Player.Name), alors
  783. grav local local = Instance.new ("BodyPosition", TORSO)
  784. grav.D = 15
  785. grav.P = 20000
  786. grav.maxForce = Vector3.new (math.huge, math.huge, math.huge)
  787. grav.position = TORSO.Position
  788. grav.Name = "V3BanishForce" .. Player.Name
  789. autre
  790. TORSO: FindFirstChild ("V3BanishForce" .. Player.Name) .position = TORSO.Position + VT (0,0.3,0)
  791. TORSO.RotVelocity = VT (MRANDOM (-25,25), MRANDOM (-25,25), MRANDOM (-25,25))
  792. fin
  793. autre
  794. HUM.PlatformStand = false
  795. fin
  796. fin
  797. elseif ISBANISH == "Gravity" alors
  798. si TORSO: FindFirstChild ("V3BanishForce" .. Player.Name), alors
  799. TORSO: FindFirstChild ("V3BanishForce" .. Player.Name): remove ()
  800. HUM.PlatformStand = false
  801. fin
  802. fin
  803. fin
  804. fin
  805. fin
  806. fin
  807. fin
  808.  
  809. fonction ApplyDamage (Humanoid, Damage, TorsoPart)
  810. défense locale = Instance.new ("BoolValue", Humanoid.Parent)
  811. defence.Name = ("HitBy" .. Player.Name)
  812. jeu: GetService ("Debris"): AddItem (défense, 0.001)
  813. Dommage = Dommage * DAMAGEMULTIPLIER
  814. si Humanoid.Health ~ = 0 alors
  815. CritChance local = MRANDOM (1 100)
  816. si Dommages> Humanoïde.Santé alors
  817. Dommages = math.ceil (Humanoid.Health)
  818. si Dommage == 0 alors
  819. Dommage = 0.1
  820. fin
  821. fin
  822. Humanoid.Health = Humanoid.Health - Dommages
  823. fin
  824. fin
  825.  
  826. fonction ApplyAoE3 (POSITION, PLAGE, MINDMG, MAXDMG, FLING, INSTAKILL)
  827. local ENFANTS = espace de travail: GetDescendants ()
  828. pour index, ENFANT par paires (ENFANTS) faire
  829. si CHILD.ClassName == "Modèle" et CHILD ~ = Caractère et ENFANT.Parent ~ = Effets alors
  830. local HUM = ENFANT: FindFirstChildOfClass ("Humanoid")
  831. si HUM alors
  832. local TORSO = ENFANT: FindFirstChild ("torse") ou ENFANT: FindFirstChild ("UpperTorso")
  833. si TORSO alors
  834. if (TORSO.Position - POSITION) .Magnitude <= RANGE then
  835. si INSTAKILL == vrai alors
  836. ENFANT: BreakJoints ()
  837. autre
  838. DMG local = MRANDOM (MINDMG, MAXDMG)
  839. ApplyDamage (HUM, DMG, TORSO)
  840. fin
  841. si FLING> 0 alors
  842. pour _, c par paires (ENFANT: GetChildren ()) do
  843. si c: IsA ("BasePart") alors
  844. local bv = Instance.new ("BodyVelocity")
  845. bv.maxForce = Vector3.new (1e9, 1e9, 1e9)
  846. bv.velocity = CF (POSITION, TORSO.Position) .lookVector * FLING
  847. bv.Parent = c
  848. Débris: AddItem (bv, 0.05)
  849. fin
  850. fin
  851. fin
  852. fin
  853. fin
  854. fin
  855. fin
  856. fin
  857. fin
  858.  
  859. - // ================================= \\
  860. - || FONCTIONS ET STUFF D'ATTAQUE
  861. - \\ =================================
  862.  
  863. fonction Shot ()
  864. ATTACK = true
  865. Enraciné = faux
  866. pour i = 0, 1, 0.1 / Animation_Speed ​​do
  867. Swait ()
  868. turnto (Mouse.Hit.p)
  869. RootJoint.C0 = Clerp (RootJoint.C0, ROOTC0 * CF (0, 0, -1) * ANGLES (RAD (0), RAD (0), RAD (0), 1 / Animation_Speed)
  870. Neck.C0 = Clerp (Neck.C0, NECKC0 * CF (0, 0, 0 + ((1) - 1)) * * ANGLES (RAD (-45), RAD (0), RAD (0)), 1 / La vitesse d'animation)
  871. RightHip.C0 = Clerp (RightHip.C0, CF (1, -0,4, -1) * ANGLES (RAD (-25), RAD (90), RAD (0)) * ANGLES (RAD (-2), RAD ( 0), RAD (0)), 1 / Animation_Speed)
  872. LeftHip.C0 = Clerp (LeftHip.C0, CF (-1, -1,5, -0,5) * ANGLES (RAD (-90), RAD (-90), RAD (-90), * ANGLES (RAD (-2), RAD (0), RAD (0)), 1 / Animation_Speed)
  873. RightShoulder.C0 = Clerp (RightShoulder.C0, CF (1.5, 0.5, 0) * ANGLES (RAD (90), RAD (0), RAD (0), RAD (-45)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  874. LeftShoulder.C0 = Clerp (LeftShoulder.C0, CF (-1.5, 0.5, 0) * ANGLES (RAD (90), RAD (0), RAD (0), RAD (45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  875. fin
  876. WACKYEFFECT ({Time = 75, EffectType = "Sphere", Size = VT (0,0,0), Size2 = VT (120,120,120), Transparence = 0, Transparency2 = 1, CFrame = RootPart.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Matériau = "Néon", Couleur = C3 (0,0,0), SoundID = 317129949, SoundPitch = MRANDOM (13,15) / 10, SoundVolume = 999999})
  877. répéter
  878. pour i = 0, 0,2, 0,1 / Animation_Speed ​​do
  879. Swait ()
  880. turnto (Mouse.Hit.p)
  881. RootJoint.C0 = Clerp (RootJoint.C0, ROOTC0 * CF (0, 0, -1) * ANGLES (RAD (0), RAD (0), RAD (0), 1 / Animation_Speed)
  882. Neck.C0 = Clerp (Neck.C0, NECKC0 * CF (0, 0, 0 + ((1) - 1)) * * ANGLES (RAD (0), RAD (0), RAD (0)), 1 / Animation_Speed )
  883. RightHip.C0 = Clerp (RightHip.C0, CF (1, -0,4, -1) * ANGLES (RAD (-25), RAD (90), RAD (0)) * ANGLES (RAD (-2), RAD ( 0), RAD (0)), 1 / Animation_Speed)
  884. LeftHip.C0 = Clerp (LeftHip.C0, CF (-1, -1,5, -0,5) * ANGLES (RAD (-90), RAD (-90), RAD (-90), * ANGLES (RAD (-2), RAD (0), RAD (0)), 1 / Animation_Speed)
  885. RightShoulder.C0 = Clerp (RightShoulder.C0, CF (1.5, 0.5, 0) * ANGLES (RAD (90), RAD (0), RAD (0)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  886. LeftShoulder.C0 = Clerp (LeftShoulder.C0, CF (-0,2, 0,5, -0,7) * ANGLES (RAD (90), RAD (0), RAD (45)) * LEFTSHOULDERC0, 0,5 / Animation_Speed)
  887. fin
  888. HIT local, POS = CastProperRay (Hole2.Position, Mouse.Hit.p, 1000, caractère)
  889. SpawnTrail (Hole2.Position, POS)
  890. HIT local, POS = CastProperRay (Hole3.Position, Mouse.Hit.p, 1000, caractère)
  891. SpawnTrail (Hole3.Position, POS)
  892. HIT local, POS = CastProperRay (Hole.Position, Mouse.Hit.p, 1000, caractère)
  893. SpawnTrail (Hole.Position, POS)
  894. si HIT ~ = nul alors
  895. si HIT.Parent ~ = workspace et HIT.Parent.ClassName ~ = "Dossier", alors
  896. Bannir (HIT.Parent)
  897. fin
  898. fin
  899.  
  900. WACKYEFFECT ({Time = 25, EffectType = "Sphere", Taille = VT (0.3,0,0.3), Size2 = VT (1,1.5,1), Transparence = 0, Transparence2 = 1, CFrame = Hole3.CFrame, MoveToPos = Hole3.CFrame * CF (0,0.5,0) .p, RotationX = 0, RotationY = -15, RotationZ = 0, Matériau = "Néon", Couleur = C3 (1,0,0), SoundID = nul, SoundPitch = nil, SoundVolume = nil})
  901. WACKYEFFECT ({Time = 25, EffectType = "Sphere", Taille = VT (0.3,0,0.3), Size2 = VT (2,0.5,2), Transparence = 0, Transparence2 = 1, CFrame = Hole3.CFrame, MoveToPos = nul, RotationX = 0, RotationY = 5, RotationZ = 0, Matériau = "Néon", Couleur = C3 (1,0,0), SoundID = nul, SoundPitch = MRANDOM (8,11) / 10, SoundVolume = 8 })
  902. WACKYEFFECT ({Time = 25, EffectType = "Wave", Taille = VT (0.3,0,0.3), Size2 = VT (1,1.5,1), Transparence = 0, Transparence2 = 1, CFrame = Hole3.CFrame, MoveToPos = Hole3.CFrame * CF (0,0.5,0) .p, RotationX = 0, RotationY = -15, RotationZ = 0, Matériau = "Néon", Couleur = C3 (1,0,0), SoundID = nul, SoundPitch = nil, SoundVolume = nil})
  903. WACKYEFFECT ({Time = 25, EffectType = "Wave", Taille = VT (0.3,0,0.3), Size2 = VT (2,0.5,2), Transparence = 0, Transparence2 = 1, CFrame = Hole3.CFrame, MoveToPos = nul, RotationX = 0, RotationY = 5, RotationZ = 0, Matériau = "Néon", Couleur = C3 (1,0,0), SoundID = 168143115, SoundPitch = MRANDOM (8,11) / 10, SoundVolume = 8 })
  904. WACKYEFFECT ({Time = 25, EffectType = "Wave", Taille = VT (0.3,0,0.3), Size2 = VT (2,0.5,2), Transparence = 0, Transparence2 = 1, CFrame = CF (POS, Trou3 .Position) * ANGLES (RAD (-90), RAD (0), RAD (0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Matériau = "Néon", Couleur = C3 ( 1,0,0), SoundID = nil, SoundPitch = MRANDOM (8,11) / 10, SoundVolume = 8})
  905. WACKYEFFECT ({Time = 25, EffectType = "Wave", Taille = VT (0.3,0,0.3), Size2 = VT (2,0.5,2), Transparence = 0, Transparence2 = 1, CFrame = CF (POS, Trou3 .Position) * ANGLES (RAD (-90), RAD (0), RAD (0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Matériau = "Néon", Couleur = C3 (1 , 0,0), SoundID = nil, SoundPitch = MRANDOM (8,11) / 10, SoundVolume = 8})
  906.  
  907. WACKYEFFECT ({Time = 25, EffectType = "Sphere", Size = VT (0.3,0,0.3.3), Size2 = VT (1,1.5,1), Transparence = 0, Transparence2 = 1, CFrame = Hole2.CFrame, MoveToPos = Trou2.CFrame * CF (0,0.5,0) .p, RotationX = 0, RotationY = -15, RotationZ = 0, Matériau = "Néon", Couleur = C3 (1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  908. WACKYEFFECT ({Time = 25, EffectType = "Sphere", Taille = VT (0.3,0,0.3), Size2 = VT (2,0.5,2), Transparence = 0, Transparence2 = 1, CFrame = Hole2.CFrame, MoveToPos = nul, RotationX = 0, RotationY = 5, RotationZ = 0, Matériau = "Néon", Couleur = C3 (1,0,0), SoundID = nul, SoundPitch = MRANDOM (8,11) / 10, SoundVolume = 8 })
  909. WACKYEFFECT ({Time = 25, EffectType = "Wave", Taille = VT (0.3,0,0.3.3), Taille2 = VT (1,1.5,1), Transparence = 0, Transparence2 = 1, CFrame = Hole2.CFrame, MoveToPos = Trou2.CFrame * CF (0,0.5,0) .p, RotationX = 0, RotationY = -15, RotationZ = 0, Matériau = "Néon", Couleur = C3 (1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  910. WACKYEFFECT ({Time = 25, EffectType = "Wave", Taille = VT (0.3,0,0.3), Size2 = VT (2,0.5,2), Transparence = 0, Transparence2 = 1, CFrame = Hole2.CFrame, MoveToPos = nul, RotationX = 0, RotationY = 5, RotationZ = 0, Matériau = "Néon", Couleur = C3 (1,0,0), SoundID = 168143115, SoundPitch = MRANDOM (8,11) / 10, SoundVolume = 8 })
  911. WACKYEFFECT ({Time = 25, EffectType = "Wave", Taille = VT (0.3,0,0.3), Size2 = VT (2,0.5,2), Transparence = 0, Transparence2 = 1, CFrame = CF (POS, Trou 2). .Position) * ANGLES (RAD (-90), RAD (0), RAD (0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Matériau = "Néon", Couleur = C3 ( 1,0,0), SoundID = nil, SoundPitch = MRANDOM (8,11) / 10, SoundVolume = 8})
  912. WACKYEFFECT ({Time = 25, EffectType = "Wave", Taille = VT (0.3,0,0.3), Size2 = VT (2,0.5,2), Transparence = 0, Transparence2 = 1, CFrame = CF (POS, Trou 2). .Position) * ANGLES (RAD (-90), RAD (0), RAD (0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Matériau = "Néon", Couleur = C3 (1 , 0,0), SoundID = nil, SoundPitch = MRANDOM (8,11) / 10, SoundVolume = 8})
  913.  
  914. WACKYEFFECT ({Time = 25, EffectType = "Sphere", Size = VT (0.3,0,0.3.3), Size2 = VT (1,1.5,1), Transparence = 0, Transparence2 = 1, CFrame = Hole.CFrame, MoveToPos = Trou.CFrame * CF (0,0.5,0) .p, RotationX = 0, RotationY = -15, RotationZ = 0, Matériau = "Néon", Couleur = C3 (1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  915. WACKYEFFECT ({Time = 25, EffectType = "Sphere", Taille = VT (0.3,0,0.3), Size2 = VT (2,0.5,2), Transparence = 0, Transparence2 = 1, CFrame = Trou.CFrame, MoveToPos = nul, RotationX = 0, RotationY = 5, RotationZ = 0, Matériau = "Néon", Couleur = C3 (1,0,0), SoundID = nul, SoundPitch = MRANDOM (8,11) / 10, SoundVolume = 8 })
  916. WACKYEFFECT ({Time = 25, EffectType = "Wave", Taille = VT (0.3,0,0.3), Size2 = VT (1,1.5,1), Transparence = 0, Transparence2 = 1, CFrame = Hole.CFrame, MoveToPos = Trou.CFrame * CF (0,0.5,0) .p, RotationX = 0, RotationY = -15, RotationZ = 0, Matériau = "Néon", Couleur = C3 (1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  917. WACKYEFFECT ({Time = 25, EffectType = "Wave", Taille = VT (0.3,0,0.3), Taille2 = VT (2,0.5,2), Transparence = 0, Transparence2 = 1, CFrame = Trou.CFrame, MoveToPos = nul, RotationX = 0, RotationY = 5, RotationZ = 0, Matériau = "Néon", Couleur = C3 (1,0,0), SoundID = 168143115, SoundPitch = MRANDOM (8,11) / 10, SoundVolume = 8 })
  918. WACKYEFFECT ({Time = 25, EffectType = "Wave", Taille = VT (0.3,0,0.3), Size2 = VT (2,0.5,2), Transparence = 0, Transparence2 = 1, CFrame = CF (POS, Trou .Position) * ANGLES (RAD (-90), RAD (0), RAD (0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Matériau = "Néon", Couleur = C3 ( 1,0,0), SoundID = nil, SoundPitch = MRANDOM (8,11) / 10, SoundVolume = 8})
  919. WACKYEFFECT ({Time = 25, EffectType = "Wave", Taille = VT (0.3,0,0.3), Size2 = VT (2,0.5,2), Transparence = 0, Transparence2 = 1, CFrame = CF (POS, Trou .Position) * ANGLES (RAD (-90), RAD (0), RAD (0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Matériau = "Néon", Couleur = C3 (1 , 0,0), SoundID = nil, SoundPitch = MRANDOM (8,11) / 10, SoundVolume = 8})
  920. pour i = 0, 0,2, 0,1 / Animation_Speed ​​do
  921. Swait ()
  922. RightShoulder.C0 = Clerp (RightShoulder.C0, CF (1.5, 0.5, 0.5) * ANGLES (RAD (95), RAD (15), RAD (0)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  923. LeftShoulder.C0 = Clerp (LeftShoulder.C0, CF (-0,2, 0,5, 0,04) * ANGLES (RAD (95), RAD (0), RAD (45)) * LEFTSHOULDERC0, 0,5 / Animation_Speed)
  924. RootJoint.C0 = Clerp (RootJoint.C0, ROOTC0 * CF (0, 0,1, -1) * ANGLES (RAD (0), RAD (0), RAD (0)), 1 / Animation_Speed)
  925. Neck.C0 = Clerp (Neck.C0, NECKC0 * CF (0, 0.1, 0 + ((1) - 1))) * ANGLES (RAD (25), RAD (0), RAD (0)), 1 / Animation_Speed )
  926. RightHip.C0 = Clerp (RightHip.C0, CF (1, -0,4, -1) * ANGLES (RAD (-25), RAD (90), RAD (0)) * ANGLES (RAD (-2), RAD ( 0), RAD (0)), 1 / Animation_Speed)
  927. LeftHip.C0 = Clerp (LeftHip.C0, CF (-1, -1,5, -0,5) * ANGLES (RAD (-90), RAD (-90), RAD (-90), * ANGLES (RAD (-2), RAD (0), RAD (0)), 1 / Animation_Speed)
  928. fin
  929. jusqu'au KEYHOLD == faux
  930. ATTAQUE = faux
  931. Enraciné = faux
  932. fin
  933.  
  934. fonction Shot2 ()
  935. ATTACK = true
  936. Enraciné = faux
  937. pour i = 0, 3, 0.1 / Animation_Speed ​​do
  938. Swait ()
  939. RootJoint.C0 = Clerp (RootJoint.C0, ROOTC0 * CF (0, 0, 0) * ANGLES (RAD (-25), RAD (0), RAD (0)), 1 / Animation_Speed)
  940. RightShoulder.C0 = Clerp (RightShoulder.C0, CF (1.5, 0.5, 0) * ANGLES (RAD (75), RAD (0), RAD (0), RAD (45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  941. LeftShoulder.C0 = Clerp (LeftShoulder.C0, CF (-1.5, 0.5, 0) * ANGLES (RAD (75), RAD (0), RAD (0), * ANGLES (RAD (0), RAD (0) , RAD (0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  942. RightHip.C0 = Clerp (RightHip.C0, CF (1, -1, 0) * ANGLES (RAD (-25), RAD (70), RAD (0)) * ANGLES (RAD (0), RAD (0) , RAD (0)), 1 / Animation_Speed)
  943. LeftHip.C0 = Clerp (LeftHip.C0, CF (-1, -1, 0) * ANGLES (RAD (-25), RAD (-70), RAD (0)) * ANGLES (RAD (0), RAD ( 0), RAD (0)), 1 / Animation_Speed)
  944. fin
  945. WACKYEFFECT ({Time = 75, EffectType = "Wave", Taille = VT (0,0,0), Size2 = VT (45,45,45), Transparence = 0,5, Transparence2 = 1, CFrame = RootPart.CFrame, MoveToPos = nul, RotationX = 0, RotationY = 0, RotationZ = 0, Matériau = "Néon", Couleur = C3 (0,0,0), SoundID = nil, SoundPitch = 1,2, SoundVolume = 4})
  946. WACKYEFFECT ({Time = 75, EffectType = "Wave", Taille = VT (0,0,0), Size2 = VT (180,180,180), Transparence = 0.5, Transparence2 = 1, CFrame = RootPart.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Matériau = "Néon", Couleur = C3 (0,0,0), SoundID = nil, SoundPitch = 1.2, SoundVolume = 4})
  947. WACKYEFFECT ({Time = 75, EffectType = "Wave", Taille = VT (0,0,0), Size2 = VT (123, 123, 123), Transparence = 0,5, Transparence2 = 1, CFrame = RootPart.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Matériau = "Néon", Couleur = C3 (0,0,0), SoundID = nil, SoundPitch = 1.2, SoundVolume = 4})
  948. WACKYEFFECT ({Time = 75, EffectType = "Sphere", Size = VT (0,0,0), Size2 = VT (1.180,1), Transparence = 0.5, Transparence2 = 1, CFrame = RootPart.CFrame, MoveToPos = nil , RotationX = 0, RotationY = 0, RotationZ = 0, Matériau = "Néon", Couleur = C3 (0,0,0), SoundID = nil, SoundPitch = 1.2, SoundVolume = 4})
  949. WACKYEFFECT ({Time = 75, EffectType = "Sphere", Size = VT (0,0,0), Size2 = VT (150,1,150), Transparence = 0.5, Transparence2 = 1, CFrame = RootPart.CFrame, MoveToPos = nil , RotationX = 0, RotationY = 0, RotationZ = 0, Matériau = "Néon", Couleur = C3 (0,0,0), SoundID = nil, SoundPitch = 1.2, SoundVolume = 4})
  950. WACKYEFFECT ({Time = 75, EffectType = "Wave", Size = VT (0,0,0), Size2 = VT (150,150,150), Transparence = 0.5, Transparence2 = 1, CFrame = RootPart.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Matériau = "Néon", Couleur = C3 (0,0,0), SoundID = nil, SoundPitch = 1.2, SoundVolume = 4})
  951. WACKYEFFECT ({Time = 75, EffectType = "Sphere", Size = VT (0,0,0), Size2 = VT (120,120,120), Transparence = 0, Transparency2 = 1, CFrame = RootPart.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Matériau = "Néon", Couleur = C3 (0,0,0), SoundID = 165970126, SoundPitch = MRANDOM (13,15) / 10, SoundVolume = 100})
  952. WACKYEFFECT ({Time = 75, EffectType = "Sphere", Size = VT (0,0,0), Size2 = VT (120,120,120), Transparence = 0, Transparency2 = 1, CFrame = RootPart.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Matériau = "Néon", Couleur = C3 (0,0,0), SoundID = 165970126, SoundPitch = MRANDOM (13,15) / 10, SoundVolume = 999999})
  953. WACKYEFFECT ({Time = 75, EffectType = "Sphere", Size = VT (0,0,0), Size2 = VT (1.180,1), Transparence = 0.5, Transparence2 = 1, CFrame = RootPart.CFrame, MoveToPos = nil , RotationX = 0, RotationY = 0, RotationZ = 0, Matériau = "Néon", Couleur = C3 (0,0,0), SoundID = nil, SoundPitch = 1.2, SoundVolume = 4})
  954. WACKYEFFECT ({Time = 75, EffectType = "Sphere", Size = VT (0,0,0), Size2 = VT (150,1,150), Transparence = 0.5, Transparence2 = 1, CFrame = RootPart.CFrame, MoveToPos = nil , RotationX = 0, RotationY = 0, RotationZ = 0, Matériau = "Néon", Couleur = C3 (0,0,0), SoundID = nil, SoundPitch = 1.2, SoundVolume = 4})
  955. WACKYEFFECT ({Time = 75, EffectType = "Wave", Size = VT (0,0,0), Size2 = VT (150,150,150), Transparence = 0.5, Transparence2 = 1, CFrame = RootPart.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Matériau = "Néon", Couleur = C3 (0,0,0), SoundID = nil, SoundPitch = 1.2, SoundVolume = 4})
  956. WACKYEFFECT ({Time = 75, EffectType = "Sphere", Size = VT (0,0,0), Size2 = VT (120,120,120), Transparence = 0, Transparency2 = 1, CFrame = RootPart.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Matériau = "Néon", Couleur = C3 (0,0,0), SoundID = 165970126, SoundPitch = MRANDOM (13,15) / 10, SoundVolume = 100})
  957. ApplyAoE3 (RootPart.Position, 95 999 999 999, false)
  958. pour i = 0, 0.5, 0.1 / Animation_Speed ​​do
  959. Swait ()
  960. RootJoint.C0 = Clerp (RootJoint.C0, ROOTC0 * CF (0, 0, 0) * ANGLES (RAD (30), RAD (0), RAD (0)), 1 / Animation_Speed)
  961. RightShoulder.C0 = Clerp (RightShoulder.C0, CF (1.2, 0.5, -0.5) * ANGLES (RAD (75), RAD (0), RAD (-70)) * ANGLES (RAD (0), RAD (0) , RAD (0)) * RIGHTSHOULDERC0, 0.6 / Animation_Speed)
  962. LeftShoulder.C0 = Clerp (LeftShoulder.C0, CF (-1.2, 0.5, -0.5) * ANGLES (RAD (75), RAD (0), RAD (0), * ANGLES (RAD (0), RAD (0) , RAD (0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  963. RightHip.C0 = Clerp (RightHip.C0, CF (1, -1, 0) * ANGLES (RAD (30), RAD (75), RAD (0)) * ANGLES (RAD (0), RAD (0), RAD (0)), 1 / Animation_Speed)
  964. LeftHip.C0 = Clerp (LeftHip.C0, CF (-1, -1, 0) * ANGLES (RAD (30), RAD (-75), RAD (0)) * ANGLES (RAD (0), RAD (0 ), RAD (0)), 1 / Animation_Speed)
  965. fin
  966. ATTAQUE = faux
  967. Enraciné = faux
  968. fin
  969.  
  970. - // ================================= \\
  971. - || Attribuer des choses à des clés
  972. - \\ =================================
  973.  
  974. function MouseDown (Souris)
  975. si ATTACK == false alors
  976. fin
  977. fin
  978.  
  979. fonction MouseUp (Mouse)
  980. HOLD = false
  981. fin
  982.  
  983. fonction KeyDown (clé)
  984. KEYHOLD = true
  985. si Key == "z" et ATTACK == false alors
  986. Coup()
  987. fin
  988.  
  989. si Key == "b" et ATTACK == false alors
  990. AttackTemplate ()
  991. fin
  992.  
  993. si Key == "c" et ATTACK == false alors
  994. Shot2 ()
  995. fin
  996.  
  997. si Key == "v" et ATTACK == false alors
  998. fin
  999.  
  1000. si Key == "x" et ATTACK == false alors
  1001. fin
  1002. fin
  1003.  
  1004. fonction KeyUp (Key)
  1005. KEYHOLD = false
  1006. fin
  1007.  
  1008. Mouse.Button1Down: connect (fonction (NEWKEY)
  1009. MouseDown (NEWKEY)
  1010. fin)
  1011. Mouse.Button1Up: connect (fonction (NEWKEY)
  1012. MouseUp (NEWKEY)
  1013. fin)
  1014. Mouse.KeyDown: connecte (fonction (NEWKEY)
  1015. KeyDown (NEWKEY)
  1016. fin)
  1017. Mouse.KeyUp: connect (fonction (NEWKEY)
  1018. KeyUp (NEWKEY)
  1019. fin)
  1020.  
  1021. - // ================================= \\
  1022. - \\ =================================
  1023.  
  1024.  
  1025. fonction unanchor ()
  1026. si UNANCHOR == true alors
  1027. g = Caractère: GetChildren ()
  1028. pour i = 1, #g do
  1029. si g [i] .ClassName == "Part", alors
  1030. g [i] .Anchored = false
  1031. fin
  1032. fin
  1033. fin
  1034. fin
  1035.  
  1036.  
  1037. - // ================================= \\
  1038. - || ENROULEZ LE TOUT SCRIPT
  1039. - \\ =================================
  1040.  
  1041. Humanoid.Changed: connect (fonction (Saut)
  1042. si Jump == "Jump" et (Disable_Jump == true) alors
  1043. Humanoid.Jump = false
  1044. fin
  1045. fin)
  1046.  
  1047. local CONNECT = nil
  1048.  
  1049. tout en faisant vrai
  1050. Swait ()
  1051. ANIMATE.Parent = nil
  1052. si Caractère: FindFirstChildOfClass ("Humanoid") == nil alors
  1053. Humanoid = IT ("Humanoid", Personnage)
  1054. fin
  1055. pour _, v dans next, Humanoid: GetPlayingAnimationTracks () do
  1056. v: stop ();
  1057. fin
  1058. SINE = SINE + CHANGEMENT
  1059. local TORSOVELOCITY = (RootPart.Velocity * VT (1, 0, 1)). Magnitude
  1060. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1061. local HITFLOOR = Raycast (RootPart.Position, (CF (RootPart.Position, RootPart.Position + VT (0, -1, 0))). lookVector, 4, Caractère)
  1062. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed ​​/ 16)
  1063. si ANIM == "Walk" et TORSOVELOCITY> 1, alors
  1064. RootJoint.C1 = Clerp (RootJoint.C1, ROOTC0 * CF (0, 0, -0,15 * COS (SINE / (WALKSPEEDVALUE / 2))) * ANGLES (RAD (0), RAD (0) - RootPart.RotVelocity.Y / 75, RAD (0)), 2 * (Humanoid.WalkSpeed ​​/ 16) / Animation_Speed)
  1065. Neck.C1 = Clerp (Neck.C1, CF (0, -0,5, 0) * ANGLES (RAD (-90), RAD (0), RAD (180)) * ANGLES (RAD (2.5 * NAS (SIN / ( WALKSPEEDVALUE / 2))), RAD (0), RAD (0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed ​​/ 16) / Animation_Speed)
  1066. RightHip.C1 = Clerp (RightHip.C1, CF (0,5, 0,875 - 0,125 * SIN (SINE / WALKSPEEDVALUE)) - 0,15 * COS (SINE / WALKSPEEDVALUE * 2), -0,125 * COS (SINE / WALKSPEEDVALUE) +0,2+ 0,2 *. COS (SINE / WALKSPEEDVALUE)) * ANGLES (RAD (0), RAD (90), RAD (0)) * ANGLES (RAD (0) - RightLeg.RotVelocity.Y / 75, RAD (0), RAD (0 *). COS (SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed ​​/ 16) / Animation_Speed)
  1067. LeftHip.C1 = Clerp (LeftHip.C1, CF (-0,5, 0,875 + 0,125 * SIN (SINE / WALKSPEEDVALUE)) - 0,15 * COS (SINE / WALKSPEEDVALUE * 2), 0,125 * COS (SINE / WALKSPEEDVALUE) +0,2 +0,2% -0,2 * COS (SINE / WALKSPEEDVALUE)) * ANGLES (RAD (0), RAD (-90), RAD (0)) * ANGLES (RAD (0) + LeftLeg.RotVelocity.Y / 75, RAD (0), RAD (0). 76 * COS (SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed ​​/ 16) / Animation_Speed)
  1068. elseif (ANIM ~ = "Walk") ou (TORSOVELOCITY <1) puis
  1069. RootJoint.C1 = Clerp (RootJoint.C1, ROOTC0 * CF (0, 0, 0) * ANGLES (RAD (0), RAD (0), RAD (0)), 0,2 / Animation_Speed)
  1070. Neck.C1 = Clerp (Neck.C1, CF (0, -0,5, 0) * ANGLES (RAD (-90), RAD (0), RAD (180)) * ANGLES (RAD (0), RAD (0) , RAD (0)), 0.2 / Animation_Speed)
  1071. RightHip.C1 = Clerp (RightHip.C1, CF (0.5, 1, 0) * ANGLES (RAD (0), RAD (90), RAD (0)) * ANGLES (RAD (0), RAD (0), RAD (0)), 0.2 / Animation_Speed)
  1072. LeftHip.C1 = Clerp (LeftHip.C1, CF (-0,5, 1, 0) * ANGLES (RAD (0), RAD (-90), RAD (0)) * ANGLES (RAD (0), RAD (0) , RAD (0)), 0.2 / Animation_Speed)
  1073. fin
  1074. si TORSOVERTICALVELOCITY> 1 et HITFLOOR == nil alors
  1075. ANIM = "Jump"
  1076. si ATTACK == false alors
  1077. RootJoint.C0 = Clerp (RootJoint.C0, ROOTC0 * CF (0, 0, 0) * ANGLES (RAD (0), RAD (0), RAD (0)), 0,2 / Animation_Speed)
  1078. Neck.C0 = Clerp (Neck.C0, NECKC0 * CF (0, 0, 0 + ((1) - 1)) * * ANGLES (RAD (-20), RAD (0), RAD (0)), 0,2 / La vitesse d'animation)
  1079. RightShoulder.C0 = Clerp (RightShoulder.C0, CF (1.5, 0.5, 0) * ANGLES (RAD (45), RAD (0), RAD (25)) * RIGHTSHOULDERC0, 0,15 / Animation_Speed)
  1080. LeftShoulder.C0 = Clerp (LeftShoulder.C0, CF (-1.5, 0.5, 0) * ANGLES (RAD (-40), RAD (0), RAD (0), RAD (-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1081. RightHip.C0 = Clerp (RightHip.C0, CF (1, -1, -0.3) * ANGLES (RAD (0), RAD (90), RAD (0)) * ANGLES (RAD (-5), RAD (0 ), RAD (-20)), 0.2 / Animation_Speed)
  1082. LeftHip.C0 = Clerp (LeftHip.C0, CF (-1, -1, -0.3) * ANGLES (RAD (0), RAD (-90), RAD (0)) * ANGLES (RAD (-5), RAD (0), RAD (20)), 0.2 / Animation_Speed)
  1083. fin
  1084. elseif TORSOVERTICALVELOCITY <-1 et HITFLOOR == nil alors
  1085. ANIM = "Fall"
  1086. si ATTACK == false alors
  1087. RootJoint.C0 = Clerp (RootJoint.C0, ROOTC0 * CF (0, 0, 0) * ANGLES (RAD (0), RAD (0), RAD (0)), 0,2 / Animation_Speed)
  1088. Neck.C0 = Clerp (Neck.C0, NECKC0 * CF (0, 0, 0 + (1 - 1)) * ANGLES (RAD (20), RAD (0), RAD (0)), 0,2 / Animation_Speed )
  1089. RightShoulder.C0 = Clerp (RightShoulder.C0, CF (1.5, 0.5, 0) * ANGLES (RAD (45), RAD (0), RAD (25)) * RIGHTSHOULDERC0, 0,15 / Animation_Speed)
  1090. LeftShoulder.C0 = Clerp (LeftShoulder.C0, CF (-1.5, 0.5, 0) * ANGLES (RAD (0), RAD (0), RAD (0), RAD (-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1091. RightHip.C0 = Clerp (RightHip.C0, CF (1, -1, 0) * ANGLES (RAD (0), RAD (90), RAD (0)) * ANGLES (RAD (0), RAD (0), RAD (20)), 0.2 / Animation_Speed)
  1092. LeftHip.C0 = Clerp (LeftHip.C0, CF (-1, -1, 0) * ANGLES (RAD (0), RAD (-90), RAD (0)) * ANGLES (RAD (0), RAD (0 ), RAD (10)), 0.2 / Animation_Speed)
  1093. fin
  1094. elseif TORSOVELOCITY <1 et HITFLOOR ~ = nil alors
  1095. ANIM = "Idle"
  1096. si ATTACK == false alors
  1097. RootJoint.C0 = Clerp (RootJoint.C0, ROOTC0 * CF (0 * Player_Size, 0 * Player_Size, -1 * Player_Size) * ANGLES (RAD (45), RAD (0 + 0,75 * NAS (SINE / 12) - 1,75 *) COS (SINE / 12)), RAD (2,75 * NAS (SINE / 12))), 0,2 / Animation_Speed ​​* 3)
  1098. Neck.C0 = Clerp (Neck.C0, NECKC0 * CF (0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES (RAD (0), RAD (0 + 0.75 * SIN ( SINE / 8) - 1,75 * COS (SINE / 8)), RAD (2,75 * SIN (SINE / 8))), 0,2 / Animation_Speed)
  1099. RightShoulder.C0 = Clerp (RightShoulder.C0, CF (0.9, 0.5 + 0.05 * SIN (SINE / (SINE / 1)), -0.5) * ANGLES (RAD (100), RAD (0), RAD (-70) ) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1100. LeftShoulder.C0 = Clerp (LeftShoulder.C0, CF (-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES (RAD (90), RAD (25), RAD (45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1101. RightHip.C0 = Clerp (RightHip.C0, CF (1 * Player_Size, -0.3 * Player_Size, -1 * Player_Size) * ANGLES (RAD (0), RAD (90), RAD (0)) * ANGLES (RAD (0) ), RAD (0), RAD (-20)), 0.2 / Animation_Speed)
  1102. LeftHip.C0 = Clerp (LeftHip.C0, CF (-1,2, 0,2 - 0,1 * COS (SINE / 24), -0,4 - 0,1 * COS (SINE / 24)) * ANGLES (RAD (45), RAD (-70 ), RAD (0)) * ANGLES (RAD (0), RAD (0), RAD (10)), 0.2 / Animation_Speed)
  1103. fin
  1104. elseif TORSOVELOCITY> 1 et HITFLOOR ~ = nil alors
  1105. ANIM = "Marche"
  1106. si ATTACK == false alors
  1107. RootJoint.C0 = Clerp (RootJoint.C0, ROOTC0 * CF (0, 0, -0,1) * ANGLES (RAD (-20), RAD (0), RAD (0)), 1 / Animation_Speed)
  1108. Neck.C0 = Clerp (Neck.C0, NECKC0 * CF (0, -0,025, 0 + (1 - 1)) * * ANGLES (RAD (35), RAD (0), RAD (0)), 1 / La vitesse d'animation)
  1109. RightShoulder.C0 = Clerp (RightShoulder.C0, CF (1.5, 0.5, 0) * ANGLES (RAD (80 * SIN (SINE / WALKSPEEDVALUE)), RAD (0), RAD (0)) * ANGLES (RAD (0) , RAD (5), RAD (0 - 40 * NAS (SINE / WALKSPEEDVALUE))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1110. LeftShoulder.C0 = Clerp (LeftShoulder.C0, CF (-1.5, 0.5, 0) * ANGLES (RAD (-80 * NAS (SINE / WALKSPEEDVALUE))), RAD (0), RAD (0)) * ANGLES (RAD (0)) 0), RAD (5), RAD (0 - 40 * NAS (SINE / WALKSPEEDVALUE))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1111. RightHip.C0 = Clerp (RightHip.C0, CF (1, -1, 0) * ANGLES (RAD (-5), RAD (85), RAD (0)) * ANGLES (RAD (0), RAD (0) , RAD (0)), 2 / Animation_Speed)
  1112. LeftHip.C0 = Clerp (LeftHip.C0, CF (-1, -1, 0) * ANGLES (RAD (-5), RAD (-85), RAD (0)) * ANGLES (RAD (0), RAD ( 0), RAD (0)), 2 / Animation_Speed)
  1113. fin
  1114. fin
  1115. unanchor ()
  1116. Humanoid.MaxHealth = "inf"
  1117. Humanoid.Health = "inf"
  1118. si Rooted == false alors
  1119. Disable_Jump = false
  1120. Humanoid.WalkSpeed ​​= Vitesse
  1121. elseif Rooted == vrai alors
  1122. Disable_Jump = true
  1123. Humanoid.WalkSpeed ​​= 0
  1124. fin
  1125. fin
  1126.  
  1127. - // ================================= \\
  1128. - \\ =================================
  1129.  
  1130.  
  1131.  
  1132.  
  1133.  
  1134. - // =========================================== ====== \\ -
  1135. - || FIN DE L'ECRIT
  1136. - \\ =========================================== ====== // -
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement