Advertisement
Guest User

Super-Evolved Banisher

a guest
Nov 29th, 2018
2,202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 101.02 KB | None | 0 0
  1. script.Name = "BANISHER"
  2. --//====================================================\\--
  3. --|| CREATED BY SHACKLUSTER
  4. --|| EDIT BY NAME CLAN
  5. --|| TRANSFORM TO BANISHER GUN V.4
  6. --|| BY nguyenducloi123
  7. --\\====================================================//--
  8.  
  9. wait(0.2)
  10.  
  11. Player = game:GetService("Players").LocalPlayer
  12. PlayerGui = Player.PlayerGui
  13. chara = Player.Character
  14. Character = Player.Character
  15. Cam = workspace.CurrentCamera
  16. Backpack = Player.Backpack
  17. Character = Player.Character
  18. Humanoid = Character.Humanoid
  19. Mouse = Player:GetMouse()
  20. RootPart = Character["HumanoidRootPart"]
  21. Torso = Character["Torso"]
  22. Head = Character["Head"]
  23. RightArm = Character["Right Arm"]
  24. LeftArm = Character["Left Arm"]
  25. RightLeg = Character["Right Leg"]
  26. LeftLeg = Character["Left Leg"]
  27. RootJoint = RootPart["RootJoint"]
  28. Neck = Torso["Neck"]
  29. RightShoulder = Torso["Right Shoulder"]
  30. LeftShoulder = Torso["Left Shoulder"]
  31. RightHip = Torso["Right Hip"]
  32. LeftHip = Torso["Left Hip"]
  33. local sick = Instance.new("Sound",Character)
  34. sick.Parent = Character
  35. sick.SoundId = "rbxassetid://472032669"
  36. sick.Looped = true
  37. sick.Pitch = 1
  38. sick.Volume = 7
  39. sick:Play()
  40. Character.Archivable = true
  41. Humanoid.DisplayDistanceType = "None"
  42.  
  43. local naeeym = Instance.new("BillboardGui",chara)
  44. naeeym.Size = UDim2.new(0,100,0,40)
  45. naeeym.StudsOffset = Vector3.new(0,2,0)
  46. naeeym.Adornee = chara.Head
  47. local tecks = Instance.new("TextLabel",naeeym)
  48. tecks.BackgroundTransparency = 1
  49. tecks.BorderSizePixel = 0
  50. tecks.Text = "Super-Evolved Banish"
  51. tecks.Font = "Fantasy"
  52. tecks.FontSize = "Size24"
  53. tecks.TextStrokeTransparency = 0
  54. tecks.TextStrokeColor3 = Color3.new(170,0,0)
  55. tecks.TextColor3 = Color3.new(1,0,0)
  56. tecks.Size = UDim2.new(1,0,0.5,0)
  57.  
  58. IT = Instance.new
  59. CF = CFrame.new
  60. VT = Vector3.new
  61. RAD = math.rad
  62. C3 = Color3.new
  63. UD2 = UDim2.new
  64. BRICKC = BrickColor.new
  65. ANGLES = CFrame.Angles
  66. EULER = CFrame.fromEulerAnglesXYZ
  67. COS = math.cos
  68. ACOS = math.acos
  69. SIN = math.sin
  70. ASIN = math.asin
  71. ABS = math.abs
  72. MRANDOM = math.random
  73. FLOOR = math.floor
  74.  
  75. --//=================================\\
  76. --|| USEFUL VALUES
  77. --\\=================================//
  78.  
  79. Animation_Speed = 3
  80. local FORCERESET = false
  81. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  82. local Speed = 16
  83. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  84. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  85. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  86. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  87. local DAMAGEMULTIPLIER = 1
  88. local ANIM = "Idle"
  89. local ATTACK = false
  90. local EQUIPPED = false
  91. local HOLD = false
  92. local COMBO = 1
  93. local Rooted = false
  94. local Gun = IT("Model")
  95. Gun.Name = "Gun"
  96. local SINE = 0
  97. local KEYHOLD = false
  98. local CHANGE = 2 / Animation_Speed
  99. local WALKINGANIM = false
  100. local VALUE1 = false
  101. local VALUE2 = false
  102. local ROBLOXIDLEANIMATION = IT("Animation")
  103. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  104. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  105. --ROBLOXIDLEANIMATION.Parent = Humanoid
  106. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  107. WEAPONGUI.Name = "BanishV3Gui"
  108. local Weapon = IT("Model")
  109. Weapon.Name = "Adds"
  110. local Effects = IT("Folder", Weapon)
  111. Effects.Name = "Effects"
  112. local ANIMATOR = Humanoid.Animator
  113. local ANIMATE = Character:FindFirstChild("Animate")
  114. local UNANCHOR = true
  115. local TOBANISH = {}
  116. script.Parent = PlayerGui
  117.  
  118. --//=================================\\
  119. --\\=================================//
  120.  
  121.  
  122. --//=================================\\
  123. --|| CUSTOMIZATION
  124. --\\=================================//
  125.  
  126. Class_Name = "Sharpshooter"
  127. Weapon_Name = "Add-ons"
  128.  
  129. Custom_Color_1 = BRICKC("Really black"); --1st color for the weapon.
  130. Custom_Color_2 = BRICKC("Maroon"); --2nd color for the weapon.
  131.  
  132. Custom_Color_3 = BRICKC("Really red"); --Color for the abilities.
  133. Custom_Color_4 = BRICKC("Institutional white"); --Color for the secondary bar.
  134. Custom_Color_5 = BRICKC("Institutional white"); --Color for the mana bar.
  135. Custom_Color_6 = BRICKC("Institutional white"); --Color for the health bar.
  136. Custom_Color_7 = BRICKC("Institutional white"); --Color for the stun bar.
  137.  
  138. Custom_Color_8 = BRICKC("Institutional white"); --Background for the mana bar.
  139. Custom_Color_9 = BRICKC("Institutional white"); --Background for the secondary mana bar.
  140. Custom_Color_10 = BRICKC("Institutional white"); --Background for the stun bar.
  141. Custom_Color_11 = BRICKC("Institutional white"); --Background for the health bar.
  142. Custom_Color_12 = BRICKC("Institutional white"); --Background for the abilities.
  143.  
  144.  
  145. Player_Size = 1 --Size of the player.
  146. Animation_Speed = 3
  147. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  148.  
  149. local Speed = 20
  150. local Effects2 = {}
  151.  
  152. --//=================================\\
  153. --|| END OF CUSTOMIZATION
  154. --\\=================================//
  155.  
  156.  
  157. --//=================================\\
  158. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  159. --\\=================================//
  160.  
  161. ArtificialHB = Instance.new("BindableEvent", script)
  162. ArtificialHB.Name = "ArtificialHB"
  163.  
  164. script:WaitForChild("ArtificialHB")
  165.  
  166. frame = Frame_Speed
  167. tf = 0
  168. allowframeloss = false
  169. tossremainder = false
  170. lastframe = tick()
  171. script.ArtificialHB:Fire()
  172.  
  173. game:GetService("RunService").Heartbeat:connect(function(s, p)
  174. tf = tf + s
  175. if tf >= frame then
  176. if allowframeloss then
  177. script.ArtificialHB:Fire()
  178. lastframe = tick()
  179. else
  180. for i = 1, math.floor(tf / frame) do
  181. script.ArtificialHB:Fire()
  182. end
  183. lastframe = tick()
  184. end
  185. if tossremainder then
  186. tf = 0
  187. else
  188. tf = tf - frame * math.floor(tf / frame)
  189. end
  190. end
  191. end)
  192.  
  193. --//=================================\\
  194. --\\=================================//
  195.  
  196. --//=================================\\
  197. --|| SOME FUNCTIONS
  198. --\\=================================//
  199.  
  200. function Clerp(a, b, t)
  201. local qa = {QuaternionFromCFrame(a)}
  202. local qb = {QuaternionFromCFrame(b)}
  203. local ax, ay, az = a.x, a.y, a.z
  204. local bx, by, bz = b.x, b.y, b.z
  205. local _t = 1 - t
  206. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  207. end
  208.  
  209. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  210. local frame = IT("Frame")
  211. frame.BackgroundTransparency = TRANSPARENCY
  212. frame.BorderSizePixel = BORDERSIZEPIXEL
  213. frame.Position = POSITION
  214. frame.Size = SIZE
  215. frame.BackgroundColor3 = COLOR
  216. frame.BorderColor3 = BORDERCOLOR
  217. frame.Name = NAME
  218. frame.Parent = PARENT
  219. return frame
  220. end
  221.  
  222. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  223. local label = IT("TextLabel")
  224. label.BackgroundTransparency = 1
  225. label.Size = UD2(1, 0, 1, 0)
  226. label.Position = UD2(0, 0, 0, 0)
  227. label.TextColor3 = TEXTCOLOR
  228. label.TextStrokeTransparency = STROKETRANSPARENCY
  229. label.TextTransparency = TRANSPARENCY
  230. label.FontSize = TEXTFONTSIZE
  231. label.Font = TEXTFONT
  232. label.BorderSizePixel = BORDERSIZEPIXEL
  233. label.TextScaled = false
  234. label.Text = TEXT
  235. label.Name = NAME
  236. label.Parent = PARENT
  237. return label
  238. end
  239.  
  240. function CreateDebreeRing(FLOOR,POSITION,SIZE,BLOCKSIZE,SWAIT)
  241. if FLOOR ~= nil then
  242. coroutine.resume(coroutine.create(function()
  243. local PART = CreatePart(3, Effects, "Plastic", 0, 1, "Pearl", "DebreeCenter", VT(0,0,0))
  244. PART.CFrame = CF(POSITION)
  245. for i = 1, 45 do
  246. local RingPiece = CreatePart(3, Effects, "Plastic", 0, 0, "Pearl", "DebreePart", BLOCKSIZE)
  247. RingPiece.Material = FLOOR.Material
  248. RingPiece.Color = FLOOR.Color
  249. RingPiece.CFrame = PART.CFrame * ANGLES(RAD(0), RAD(i*8), RAD(0)) * CF(SIZE, 0, 0) * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)))
  250. Debris:AddItem(RingPiece,SWAIT)
  251. end
  252. PART:remove()
  253. end))
  254. end
  255. end
  256.  
  257. function CreateFlyingDebree(FLOOR,POSITION,AMOUNT,BLOCKSIZE,SWAIT,STRENGTH)
  258. if FLOOR ~= nil then
  259. for i = 1, AMOUNT do
  260. local DEBREE = CreatePart(3, Effects, "Neon", FLOOR.Reflectance, FLOOR.Transparency, "Peal", "Debree", BLOCKSIZE, false)
  261. DEBREE.Material = FLOOR.Material
  262. DEBREE.Color = FLOOR.Color
  263. DEBREE.CFrame = POSITION * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)))
  264. DEBREE.Velocity = VT(MRANDOM(-STRENGTH,STRENGTH),MRANDOM(-STRENGTH,STRENGTH),MRANDOM(-STRENGTH,STRENGTH))
  265. coroutine.resume(coroutine.create(function()
  266. Swait(15)
  267. DEBREE.Parent = workspace
  268. DEBREE.CanCollide = true
  269. Debris:AddItem(DEBREE,SWAIT)
  270. end))
  271. end
  272. end
  273. end
  274.  
  275. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  276. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  277. end
  278.  
  279. function PositiveAngle(NUMBER)
  280. if NUMBER >= 0 then
  281. NUMBER = 0
  282. end
  283. return NUMBER
  284. end
  285.  
  286. function NegativeAngle(NUMBER)
  287. if NUMBER <= 0 then
  288. NUMBER = 0
  289. end
  290. return NUMBER
  291. end
  292.  
  293. function Swait(NUMBER)
  294. if NUMBER == 0 or NUMBER == nil then
  295. ArtificialHB.Event:wait()
  296. else
  297. for i = 1, NUMBER do
  298. ArtificialHB.Event:wait()
  299. end
  300. end
  301. end
  302.  
  303. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  304. local NEWMESH = IT(MESH)
  305. if MESH == "SpecialMesh" then
  306. NEWMESH.MeshType = MESHTYPE
  307. if MESHID ~= "nil" and MESHID ~= "" then
  308. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  309. end
  310. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  311. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  312. end
  313. end
  314. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  315. NEWMESH.Scale = SCALE
  316. NEWMESH.Parent = PARENT
  317. return NEWMESH
  318. end
  319.  
  320. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  321. local NEWPART = IT("Part")
  322. NEWPART.formFactor = FORMFACTOR
  323. NEWPART.Reflectance = REFLECTANCE
  324. NEWPART.Transparency = TRANSPARENCY
  325. NEWPART.CanCollide = false
  326. NEWPART.Locked = true
  327. NEWPART.Anchored = true
  328. if ANCHOR == false then
  329. NEWPART.Anchored = false
  330. end
  331. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  332. NEWPART.Name = NAME
  333. NEWPART.Size = SIZE
  334. NEWPART.Position = Torso.Position
  335. NEWPART.Material = MATERIAL
  336. NEWPART:BreakJoints()
  337. NEWPART.Parent = PARENT
  338. return NEWPART
  339. end
  340.  
  341. local function weldBetween(a, b)
  342. local weldd = Instance.new("ManualWeld")
  343. weldd.Part0 = a
  344. weldd.Part1 = b
  345. weldd.C0 = CFrame.new()
  346. weldd.C1 = b.CFrame:inverse() * a.CFrame
  347. weldd.Parent = a
  348. return weldd
  349. end
  350.  
  351.  
  352. function QuaternionFromCFrame(cf)
  353. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  354. local trace = m00 + m11 + m22
  355. if trace > 0 then
  356. local s = math.sqrt(1 + trace)
  357. local recip = 0.5 / s
  358. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  359. else
  360. local i = 0
  361. if m11 > m00 then
  362. i = 1
  363. end
  364. if m22 > (i == 0 and m00 or m11) then
  365. i = 2
  366. end
  367. if i == 0 then
  368. local s = math.sqrt(m00 - m11 - m22 + 1)
  369. local recip = 0.5 / s
  370. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  371. elseif i == 1 then
  372. local s = math.sqrt(m11 - m22 - m00 + 1)
  373. local recip = 0.5 / s
  374. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  375. elseif i == 2 then
  376. local s = math.sqrt(m22 - m00 - m11 + 1)
  377. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  378. end
  379. end
  380. end
  381.  
  382. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  383. local xs, ys, zs = x + x, y + y, z + z
  384. local wx, wy, wz = w * xs, w * ys, w * zs
  385. local xx = x * xs
  386. local xy = x * ys
  387. local xz = x * zs
  388. local yy = y * ys
  389. local yz = y * zs
  390. local zz = z * zs
  391. 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))
  392. end
  393.  
  394. function QuaternionSlerp(a, b, t)
  395. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  396. local startInterp, finishInterp;
  397. if cosTheta >= 0.0001 then
  398. if (1 - cosTheta) > 0.0001 then
  399. local theta = ACOS(cosTheta)
  400. local invSinTheta = 1 / SIN(theta)
  401. startInterp = SIN((1 - t) * theta) * invSinTheta
  402. finishInterp = SIN(t * theta) * invSinTheta
  403. else
  404. startInterp = 1 - t
  405. finishInterp = t
  406. end
  407. else
  408. if (1 + cosTheta) > 0.0001 then
  409. local theta = ACOS(-cosTheta)
  410. local invSinTheta = 1 / SIN(theta)
  411. startInterp = SIN((t - 1) * theta) * invSinTheta
  412. finishInterp = SIN(t * theta) * invSinTheta
  413. else
  414. startInterp = t - 1
  415. finishInterp = t
  416. end
  417. end
  418. 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
  419. end
  420.  
  421. function Clerp(a, b, t)
  422. local qa = {QuaternionFromCFrame(a)}
  423. local qb = {QuaternionFromCFrame(b)}
  424. local ax, ay, az = a.x, a.y, a.z
  425. local bx, by, bz = b.x, b.y, b.z
  426. local _t = 1 - t
  427. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  428. end
  429.  
  430. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  431. local frame = IT("Frame")
  432. frame.BackgroundTransparency = TRANSPARENCY
  433. frame.BorderSizePixel = BORDERSIZEPIXEL
  434. frame.Position = POSITION
  435. frame.Size = SIZE
  436. frame.BackgroundColor3 = COLOR
  437. frame.BorderColor3 = BORDERCOLOR
  438. frame.Name = NAME
  439. frame.Parent = PARENT
  440. return frame
  441. end
  442.  
  443. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  444. local label = IT("TextLabel")
  445. label.BackgroundTransparency = 1
  446. label.Size = UD2(1, 0, 1, 0)
  447. label.Position = UD2(0, 0, 0, 0)
  448. label.TextColor3 = TEXTCOLOR
  449. label.TextStrokeTransparency = STROKETRANSPARENCY
  450. label.TextTransparency = TRANSPARENCY
  451. label.FontSize = TEXTFONTSIZE
  452. label.Font = TEXTFONT
  453. label.BorderSizePixel = BORDERSIZEPIXEL
  454. label.TextScaled = false
  455. label.Text = TEXT
  456. label.Name = NAME
  457. label.Parent = PARENT
  458. return label
  459. end
  460.  
  461. function NoOutlines(PART)
  462. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  463. end
  464.  
  465. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  466. local NEWWELD = IT(TYPE)
  467. NEWWELD.Part0 = PART0
  468. NEWWELD.Part1 = PART1
  469. NEWWELD.C0 = C0
  470. NEWWELD.C1 = C1
  471. NEWWELD.Parent = PARENT
  472. return NEWWELD
  473. end
  474.  
  475. local S = IT("Sound")
  476. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  477. local NEWSOUND = nil
  478. coroutine.resume(coroutine.create(function()
  479. NEWSOUND = S:Clone()
  480. NEWSOUND.Parent = PARENT
  481. NEWSOUND.Volume = VOLUME
  482. NEWSOUND.Pitch = PITCH
  483. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  484. NEWSOUND:play()
  485. if DOESLOOP == true then
  486. NEWSOUND.Looped = true
  487. else
  488. repeat wait(1) until NEWSOUND.Playing == false or NEWSOUND.Parent ~= PARENT
  489. NEWSOUND:remove()
  490. end
  491. end))
  492. return NEWSOUND
  493. end
  494.  
  495. function CFrameFromTopBack(at, top, back)
  496. local right = top:Cross(back)
  497. return 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)
  498. end
  499.  
  500. --WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  501. function WACKYEFFECT(Table)
  502. local TYPE = (Table.EffectType or "Sphere")
  503. local SIZE = (Table.Size or VT(1,1,1))
  504. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  505. local TRANSPARENCY = (Table.Transparency or 0)
  506. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  507. local CFRAME = (Table.CFrame or Torso.CFrame)
  508. local MOVEDIRECTION = (Table.MoveToPos or nil)
  509. local ROTATION1 = (Table.RotationX or 0)
  510. local ROTATION2 = (Table.RotationY or 0)
  511. local ROTATION3 = (Table.RotationZ or 0)
  512. local MATERIAL = (Table.Material or "Neon")
  513. local COLOR = (Table.Color or C3(1,1,1))
  514. local TIME = (Table.Time or 45)
  515. local SOUNDID = (Table.SoundID or nil)
  516. local SOUNDPITCH = (Table.SoundPitch or nil)
  517. local SOUNDVOLUME = (Table.SoundVolume or nil)
  518. coroutine.resume(coroutine.create(function()
  519. local PLAYSSOUND = false
  520. local SOUND = nil
  521. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  522. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  523. PLAYSSOUND = true
  524. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  525. end
  526. EFFECT.Color = COLOR
  527. local MSH = nil
  528. if TYPE == "Sphere" then
  529. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  530. elseif TYPE == "Block" then
  531. MSH = IT("BlockMesh",EFFECT)
  532. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  533. elseif TYPE == "Wave" then
  534. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  535. elseif TYPE == "Ring" then
  536. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  537. elseif TYPE == "Slash" then
  538. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  539. elseif TYPE == "Round Slash" then
  540. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  541. elseif TYPE == "Swirl" then
  542. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  543. elseif TYPE == "Skull" then
  544. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  545. elseif TYPE == "Crystal" then
  546. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  547. end
  548. if MSH ~= nil then
  549. local MOVESPEED = nil
  550. if MOVEDIRECTION ~= nil then
  551. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  552. end
  553. local GROWTH = SIZE - ENDSIZE
  554. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  555. if TYPE == "Block" then
  556. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  557. else
  558. EFFECT.CFrame = CFRAME
  559. end
  560. for LOOP = 1, TIME+1 do
  561. Swait()
  562. MSH.Scale = MSH.Scale - GROWTH/TIME
  563. if TYPE == "Wave" then
  564. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  565. end
  566. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  567. if TYPE == "Block" then
  568. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  569. else
  570. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  571. end
  572. if MOVEDIRECTION ~= nil then
  573. local ORI = EFFECT.Orientation
  574. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  575. EFFECT.Orientation = ORI
  576. end
  577. end
  578. if PLAYSSOUND == false then
  579. EFFECT:remove()
  580. else
  581. SOUND.Stopped:Connect(function()
  582. EFFECT:remove()
  583. end)
  584. end
  585. else
  586. if PLAYSSOUND == false then
  587. EFFECT:remove()
  588. else
  589. repeat Swait() until SOUND.Playing == false
  590. EFFECT:remove()
  591. end
  592. end
  593. end))
  594. end
  595.  
  596. local DECAL = IT("Decal")
  597. function MakeRing()
  598. local RING = CreatePart(3, Effects, "Neon", 0, 1, BRICKC("Really red"), "MagicRing", VT(0, 0, 0), true)
  599. local MSH = IT("BlockMesh", RING)
  600. local TOP = DECAL:Clone()
  601. local BOTTOM = DECAL:Clone()
  602. TOP.Parent = RING
  603. BOTTOM.Parent = RING
  604. TOP.Face = "Top"
  605. BOTTOM.Face = "Bottom"
  606. TOP.Texture = "http://www.roblox.com/asset/?id=127817121"
  607. BOTTOM.Texture = "http://www.roblox.com/asset/?id=127817121"
  608. local function REMOVE()
  609. coroutine.resume(coroutine.create(function()
  610. local SIZE = MSH.Scale.X
  611. for i = 1, 35 do
  612. Swait()
  613. MSH.Scale = MSH.Scale - VT(SIZE, 0, SIZE) / 60
  614. TOP.Transparency = TOP.Transparency + 0.02857142857142857
  615. BOTTOM.Transparency = BOTTOM.Transparency + 0.02857142857142857
  616. RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(-5), RAD(0))
  617. end
  618. RING:remove()
  619. end))
  620. end
  621. return RING, MSH, REMOVE
  622. end
  623.  
  624. function MakeForm(PART,TYPE)
  625. if TYPE == "Cyl" then
  626. local MSH = IT("CylinderMesh",PART)
  627. elseif TYPE == "Ball" then
  628. local MSH = IT("SpecialMesh",PART)
  629. MSH.MeshType = "Sphere"
  630. elseif TYPE == "Wedge" then
  631. local MSH = IT("SpecialMesh",PART)
  632. MSH.MeshType = "Wedge"
  633. end
  634. end
  635.  
  636. function SpawnTrail(FROM,TO,BIG)
  637. local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Really red", "Trail", VT(0,0,0))
  638. MakeForm(TRAIL,"Cyl")
  639. local DIST = (FROM - TO).Magnitude
  640. if BIG == true then
  641. TRAIL.Size = VT(0.5,DIST,0.5)
  642. else
  643. TRAIL.Size = VT(0.25,DIST,0.25)
  644. end
  645. TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0))
  646. coroutine.resume(coroutine.create(function()
  647. for i = 1, 5 do
  648. Swait()
  649. TRAIL.Transparency = TRAIL.Transparency + 0.1
  650. end
  651. TRAIL:remove()
  652. end))
  653. end
  654. --WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  655. function WACKYEFFECT(Table)
  656. local TYPE = (Table.EffectType or "Sphere")
  657. local SIZE = (Table.Size or VT(1,1,1))
  658. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  659. local TRANSPARENCY = (Table.Transparency or 0)
  660. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  661. local CFRAME = (Table.CFrame or Torso.CFrame)
  662. local MOVEDIRECTION = (Table.MoveToPos or nil)
  663. local ROTATION1 = (Table.RotationX or 0)
  664. local ROTATION2 = (Table.RotationY or 0)
  665. local ROTATION3 = (Table.RotationZ or 0)
  666. local MATERIAL = (Table.Material or "Neon")
  667. local COLOR = (Table.Color or C3(1,1,1))
  668. local TIME = (Table.Time or 45)
  669. local SOUNDID = (Table.SoundID or nil)
  670. local SOUNDPITCH = (Table.SoundPitch or nil)
  671. local SOUNDVOLUME = (Table.SoundVolume or nil)
  672. coroutine.resume(coroutine.create(function()
  673. local PLAYSSOUND = false
  674. local SOUND = nil
  675. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Really red"), "Effect", VT(1,1,1), true)
  676. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  677. PLAYSSOUND = true
  678. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  679. end
  680. EFFECT.Color = COLOR
  681. local MSH = nil
  682. if TYPE == "Sphere" then
  683. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  684. elseif TYPE == "Block" then
  685. MSH = IT("BlockMesh",EFFECT)
  686. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  687. elseif TYPE == "Wave" then
  688. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  689. elseif TYPE == "Ring" then
  690. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  691. elseif TYPE == "Slash" then
  692. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  693. elseif TYPE == "Round Slash" then
  694. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  695. elseif TYPE == "Swirl" then
  696. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  697. elseif TYPE == "Skull" then
  698. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  699. elseif TYPE == "Crystal" then
  700. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  701. end
  702. if MSH ~= nil then
  703. local MOVESPEED = nil
  704. if MOVEDIRECTION ~= nil then
  705. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  706. end
  707. local GROWTH = SIZE - ENDSIZE
  708. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  709. if TYPE == "Block" then
  710. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  711. else
  712. EFFECT.CFrame = CFRAME
  713. end
  714. for LOOP = 1, TIME+1 do
  715. Swait()
  716. MSH.Scale = MSH.Scale - GROWTH/TIME
  717. if TYPE == "Wave" then
  718. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  719. end
  720. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  721. if TYPE == "Block" then
  722. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  723. else
  724. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  725. end
  726. if MOVEDIRECTION ~= nil then
  727. local ORI = EFFECT.Orientation
  728. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  729. EFFECT.Orientation = ORI
  730. end
  731. end
  732. if PLAYSSOUND == false then
  733. EFFECT:remove()
  734. else
  735. SOUND.Stopped:Connect(function()
  736. EFFECT:remove()
  737. end)
  738. end
  739. else
  740. if PLAYSSOUND == false then
  741. EFFECT:remove()
  742. else
  743. repeat Swait() until SOUND.Playing == false
  744. EFFECT:remove()
  745. end
  746. end
  747. end))
  748. end
  749.  
  750. function MakeForm(PART,TYPE)
  751. if TYPE == "Cyl" then
  752. local MSH = IT("CylinderMesh",PART)
  753. elseif TYPE == "Ball" then
  754. local MSH = IT("SpecialMesh",PART)
  755. MSH.MeshType = "Sphere"
  756. elseif TYPE == "Wedge" then
  757. local MSH = IT("SpecialMesh",PART)
  758. MSH.MeshType = "Wedge"
  759. end
  760. end
  761.  
  762. function SpawnTrail(FROM,TO,BIG)
  763. local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Really red", "Trail", VT(0,0,0))
  764. MakeForm(TRAIL,"Cyl")
  765. local DIST = (FROM - TO).Magnitude
  766. if BIG == true then
  767. TRAIL.Size = VT(0.5,DIST,0.5)
  768. else
  769. TRAIL.Size = VT(0.25,DIST,0.25)
  770. end
  771. TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0))
  772. coroutine.resume(coroutine.create(function()
  773. for i = 1, 5 do
  774. Swait()
  775. TRAIL.Transparency = TRAIL.Transparency + 0.1
  776. end
  777. TRAIL:remove()
  778. end))
  779. end
  780.  
  781. function SHAKECAM(POSITION, RANGE, INTENSITY, TIME)
  782. local TORSO = Torso
  783. local HUM = Humanoid
  784. if TORSO and RANGE >= (TORSO.Position - POSITION).Magnitude then
  785. coroutine.wrap(function()
  786. VT = Vector3.new
  787. MRANDOM = math.random
  788. local A = TIME
  789. local B = INTENSITY
  790. local C = true
  791. local HUMANOID = Humanoid
  792. local TIMER = A or 35
  793. local SHAKE = B or 5
  794. local FADE = C or true
  795. if HUMANOID then
  796. local FADER = SHAKE / TIMER
  797. for i = 1, TIMER do
  798. wait()
  799. HUMANOID.CameraOffset = VT(MRANDOM(-(SHAKE - FADER * i), SHAKE - FADER * i) / 10, MRANDOM(-(SHAKE - FADER * i), SHAKE - FADER * i) / 10, MRANDOM(-(SHAKE - FADER * i), SHAKE - FADER * i) / 10)
  800. end
  801. HUMANOID.CameraOffset = VT(0, 0, 0)
  802. end
  803.  
  804. end)()
  805. end
  806. end
  807.  
  808. function chatfunc(text)
  809. local chat = coroutine.wrap(function()
  810. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  811. Character:FindFirstChild("TalkingBillBoard"):destroy()
  812. end
  813. local Bill = Instance.new("BillboardGui",Character)
  814. Bill.Size = UDim2.new(0,100,0,40)
  815. Bill.StudsOffset = Vector3.new(0,3,0)
  816. Bill.Adornee = Character.Head
  817. Bill.Name = "TalkingBillBoard"
  818. local Hehe = Instance.new("TextLabel",Bill)
  819. Hehe.BackgroundTransparency = 1
  820. Hehe.BorderSizePixel = 0
  821. Hehe.Text = ""
  822. Hehe.Font = "Bodoni"
  823. Hehe.TextSize = 40
  824. Hehe.TextStrokeTransparency = 0
  825. Hehe.Size = UDim2.new(1,0,0.5,0)
  826. coroutine.resume(coroutine.create(function()
  827. while Hehe ~= nil do
  828. Swait()
  829. Hehe.Position = UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5))
  830. Hehe.Rotation = math.random(-2.5,2.5)
  831. Hehe.TextColor3 = Color3.new(MRANDOM(55,255),0,0)
  832. Hehe.TextStrokeColor3 = Color3.new(0,0,0)
  833. end
  834. end))
  835. for i = 1,string.len(text),1 do
  836. Swait()
  837. Hehe.Text = string.sub(text,1,i)
  838. end
  839. Swait(90)--Re[math.random(1, 93)]
  840. for i = 0, 1, .025 do
  841. Swait()
  842. Bill.ExtentsOffset = Vector3.new(math.random(-i, i), math.random(-i, i), math.random(-i, i))
  843. Hehe.TextStrokeTransparency = i
  844. Hehe.TextTransparency = i
  845. end
  846. Bill:Destroy()
  847. end)
  848. chat()
  849. end
  850.  
  851. Debris = game:GetService("Debris")
  852.  
  853. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  854. local DIRECTION = CF(StartPos,EndPos).lookVector
  855. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  856. end
  857.  
  858. function turnto(position)
  859. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  860. end
  861.  
  862. --//=================================\\
  863. --|| RAGDOLL STUFF
  864. --\\=================================//
  865.  
  866. function recurse(root,callback,i)
  867. i= i or 0
  868. for _,v in pairs(root:GetChildren()) do
  869. i = i + 1
  870. callback(i,v)
  871.  
  872. if #v:GetChildren() > 0 then
  873. i = recurse(v,callback,i)
  874. end
  875. end
  876.  
  877. return i
  878. end
  879.  
  880. function ragdollJoint(character, part0, part1, attachmentName, className, properties)
  881. attachmentName = attachmentName.."RigAttachment"
  882. local constraint = Instance.new(className.."Constraint")
  883. constraint.Attachment0 = part0:FindFirstChild(attachmentName)
  884. constraint.Attachment1 = part1:FindFirstChild(attachmentName)
  885. constraint.Name = "RagdollConstraint"..part1.Name
  886.  
  887. for _,propertyData in next,properties or {} do
  888. constraint[propertyData[1]] = propertyData[2]
  889. end
  890.  
  891. constraint.Parent = character
  892. end
  893.  
  894. function getAttachment0(character, attachmentName)
  895. for _,child in next,character:GetChildren() do
  896. local attachment = child:FindFirstChild(attachmentName)
  897. if attachment then
  898. return attachment
  899. end
  900. end
  901. end
  902.  
  903. function ArtificialHitbox(Part)
  904. local HITBOX = CreatePart(3, Part, "Metal", 0, 1, "Really black", "Hitbox", Part.Size/2, false)
  905. HITBOX.CanCollide = true
  906. HITBOX.CFrame = Part.CFrame
  907. weldBetween(Part,HITBOX)
  908. end
  909.  
  910. function R15Ragdoll(character,KeepArms)
  911. character:BreakJoints()
  912. coroutine.resume(coroutine.create(function()
  913. recurse(character, function(_,v)
  914. if v:IsA("Attachment") then
  915. v.Axis = Vector3.new(0, 1, 0)
  916. v.SecondaryAxis = Vector3.new(0, 0, 1)
  917. v.Rotation = Vector3.new(0, 0, 0)
  918. end
  919. end)
  920. for _,child in next,character:GetChildren() do
  921. if child:IsA("Accoutrement") then
  922. for _,part in next,child:GetChildren() do
  923. if part:IsA("BasePart") and part.Name ~= "HumanoidRootPart" then
  924. local attachment1 = part:FindFirstChildOfClass("Attachment")
  925. local attachment0 = getAttachment0(character,attachment1.Name)
  926. if attachment0 and attachment1 then
  927. local constraint = Instance.new("HingeConstraint")
  928. constraint.Attachment0 = attachment0
  929. constraint.Attachment1 = attachment1
  930. constraint.LimitsEnabled = true
  931. constraint.UpperAngle = 0
  932. constraint.LowerAngle = 0
  933. constraint.Parent = character
  934. end
  935. ArtificialHitbox(part)
  936. elseif part.Name == "HumanoidRootPart" then
  937. part:remove()
  938. end
  939. end
  940. end
  941. end
  942.  
  943. ragdollJoint(character,character.LowerTorso, character.UpperTorso, "Waist", "BallSocket", {
  944. {"LimitsEnabled",true};
  945. {"UpperAngle",5};
  946. })
  947. if character:FindFirstChild("Head") then
  948. ragdollJoint(character,character.UpperTorso, character.Head, "Neck", "BallSocket", {
  949. {"LimitsEnabled",true};
  950. {"UpperAngle",15};
  951. })
  952. end
  953.  
  954. local handProperties = {
  955. {"LimitsEnabled", true};
  956. {"UpperAngle",0};
  957. {"LowerAngle",0};
  958. }
  959. ragdollJoint(character,character.LeftLowerArm, character.LeftHand, "LeftWrist", "Hinge", handProperties)
  960. ragdollJoint(character,character.RightLowerArm, character.RightHand, "RightWrist", "Hinge", handProperties)
  961.  
  962. local shinProperties = {
  963. {"LimitsEnabled", true};
  964. {"UpperAngle", 0};
  965. {"LowerAngle", -75};
  966. }
  967. ragdollJoint(character,character.LeftUpperLeg, character.LeftLowerLeg, "LeftKnee", "Hinge", shinProperties)
  968. ragdollJoint(character,character.RightUpperLeg, character.RightLowerLeg, "RightKnee", "Hinge", shinProperties)
  969.  
  970. local footProperties = {
  971. {"LimitsEnabled", true};
  972. {"UpperAngle", 15};
  973. {"LowerAngle", -45};
  974. }
  975. ragdollJoint(character,character.LeftLowerLeg, character.LeftFoot, "LeftAnkle", "Hinge", footProperties)
  976. ragdollJoint(character,character.RightLowerLeg, character.RightFoot, "RightAnkle", "Hinge", footProperties)
  977. if KeepArms == true then
  978. ragdollJoint(character,character.UpperTorso, character.RightUpperArm, "RightShoulder", "BallSocket")
  979. ragdollJoint(character,character.RightUpperArm, character.RightLowerArm, "RightElbow", "BallSocket")
  980. ragdollJoint(character,character.UpperTorso, character.LeftUpperArm, "LeftShoulder", "BallSocket")
  981. ragdollJoint(character,character.LeftUpperArm, character.LeftLowerArm, "LeftElbow", "BallSocket")
  982. end
  983. ragdollJoint(character,character.LowerTorso, character.LeftUpperLeg, "LeftHip", "BallSocket")
  984. ragdollJoint(character,character.LowerTorso, character.RightUpperLeg, "RightHip", "BallSocket")
  985. Debris:AddItem(character,5)
  986. end))
  987. end
  988.  
  989. function Ragdoll(Character2,CharTorso,KeepArms)
  990. coroutine.resume(coroutine.create(function()
  991. Character2:BreakJoints()
  992. local hum = Character2:findFirstChild("Humanoid")
  993. hum:remove()
  994. local function Scan(ch)
  995. local e
  996. for e = 1,#ch do
  997. Scan(ch[e]:GetChildren())
  998. if ch[e].ClassName == "Weld" or ch[e].ClassName == "Motor6D" then
  999. ch[e]:remove()
  1000. end
  1001. end
  1002. end
  1003. local NEWHUM = IT("Humanoid")
  1004. NEWHUM.Name = "Corpse"
  1005. NEWHUM.Health = 0
  1006. NEWHUM.MaxHealth = 0
  1007. NEWHUM.PlatformStand = true
  1008. NEWHUM.Parent = Character2
  1009. NEWHUM.DisplayDistanceType = "None"
  1010.  
  1011. local ch = Character2:GetChildren()
  1012. local i
  1013. for i = 1,#ch do
  1014. if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then
  1015. ch[i]:remove()
  1016. end
  1017. end
  1018.  
  1019. local Torso2 = Character2.Torso
  1020. local movevector = Vector3.new()
  1021.  
  1022. if Torso2 then
  1023. movevector = CFrame.new(CharTorso.Position,Torso2.Position).lookVector
  1024. local Head = Character2:FindFirstChild("Head")
  1025. if Head then
  1026. local Neck = Instance.new("Weld")
  1027. Neck.Name = "Neck"
  1028. Neck.Part0 = Torso2
  1029. Neck.Part1 = Head
  1030. Neck.C0 = CFrame.new(0, 1.5, 0)
  1031. Neck.C1 = CFrame.new()
  1032. Neck.Parent = Torso2
  1033.  
  1034. end
  1035. local Limb = Character2:FindFirstChild("Right Arm")
  1036. if Limb and KeepArms == true then
  1037.  
  1038. Limb.CFrame = Torso2.CFrame * CFrame.new(1.5, 0, 0)
  1039. local Joint = Instance.new("Glue")
  1040. Joint.Name = "RightShoulder"
  1041. Joint.Part0 = Torso2
  1042. Joint.Part1 = Limb
  1043. Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1044. Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1045. Joint.Parent = Torso2
  1046.  
  1047. local B = Instance.new("Part")
  1048. B.TopSurface = 0
  1049. B.BottomSurface = 0
  1050. B.formFactor = "Symmetric"
  1051. B.Size = Vector3.new(1, 1, 1)
  1052. B.Transparency = 1
  1053. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1054. B.Parent = Character2
  1055. local W = Instance.new("Weld")
  1056. W.Part0 = Limb
  1057. W.Part1 = B
  1058. W.C0 = CFrame.new(0, -0.5, 0)
  1059. W.Parent = Limb
  1060.  
  1061. end
  1062. local Limb = Character2:FindFirstChild("Left Arm")
  1063. if Limb and KeepArms == true then
  1064.  
  1065. Limb.CFrame = Torso2.CFrame * CFrame.new(-1.5, 0, 0)
  1066. local Joint = Instance.new("Glue")
  1067. Joint.Name = "LeftShoulder"
  1068. Joint.Part0 = Torso2
  1069. Joint.Part1 = Limb
  1070. Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1071. Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1072. Joint.Parent = Torso2
  1073.  
  1074. local B = Instance.new("Part")
  1075. B.TopSurface = 0
  1076. B.BottomSurface = 0
  1077. B.formFactor = "Symmetric"
  1078. B.Size = Vector3.new(1, 1, 1)
  1079. B.Transparency = 1
  1080. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1081. B.Parent = Character2
  1082. local W = Instance.new("Weld")
  1083. W.Part0 = Limb
  1084. W.Part1 = B
  1085. W.C0 = CFrame.new(0, -0.5, 0)
  1086. W.Parent = Limb
  1087.  
  1088. end
  1089. local Limb = Character2:FindFirstChild("Right Leg")
  1090. if Limb then
  1091.  
  1092. Limb.CFrame = Torso2.CFrame * CFrame.new(0.5, -2, 0)
  1093. local Joint = Instance.new("Glue")
  1094. Joint.Name = "RightHip"
  1095. Joint.Part0 = Torso2
  1096. Joint.Part1 = Limb
  1097. Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1098. Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1099. Joint.Parent = Torso2
  1100.  
  1101. local B = Instance.new("Part")
  1102. B.TopSurface = 0
  1103. B.BottomSurface = 0
  1104. B.formFactor = "Symmetric"
  1105. B.Size = Vector3.new(1, 1, 1)
  1106. B.Transparency = 1
  1107. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1108. B.Parent = Character2
  1109. local W = Instance.new("Weld")
  1110. W.Part0 = Limb
  1111. W.Part1 = B
  1112. W.C0 = CFrame.new(0, -0.5, 0)
  1113. W.Parent = Limb
  1114.  
  1115. end
  1116. local Limb = Character2:FindFirstChild("Left Leg")
  1117. if Limb then
  1118.  
  1119. Limb.CFrame = Torso2.CFrame * CFrame.new(-0.5, -2, 0)
  1120. local Joint = Instance.new("Glue")
  1121. Joint.Name = "LeftHip"
  1122. Joint.Part0 = Torso2
  1123. Joint.Part1 = Limb
  1124. Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1125. Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  1126. Joint.Parent = Torso2
  1127.  
  1128. local B = Instance.new("Part")
  1129. B.TopSurface = 0
  1130. B.BottomSurface = 0
  1131. B.formFactor = "Symmetric"
  1132. B.Size = Vector3.new(1, 1, 1)
  1133. B.Transparency = 1
  1134. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  1135. B.Parent = Character2
  1136. local W = Instance.new("Weld")
  1137. W.Part0 = Limb
  1138. W.Part1 = B
  1139. W.C0 = CFrame.new(0, -0.5, 0)
  1140. W.Parent = Limb
  1141.  
  1142. end
  1143. --[
  1144. local Bar = Instance.new("Part")
  1145. Bar.TopSurface = 0
  1146. Bar.BottomSurface = 0
  1147. Bar.formFactor = "Symmetric"
  1148. Bar.Size = Vector3.new(1, 1, 1)
  1149. Bar.Transparency = 1
  1150. Bar.CFrame = Torso2.CFrame * CFrame.new(0, 0.5, 0)
  1151. Bar.Parent = Character2
  1152. local Weld = Instance.new("Weld")
  1153. Weld.Part0 = Torso2
  1154. Weld.Part1 = Bar
  1155. Weld.C0 = CFrame.new(0, 0.5, 0)
  1156. Weld.Parent = Torso2
  1157. --]]
  1158. end
  1159. Character2.Parent = workspace
  1160. Debris:AddItem(Character2,5)
  1161.  
  1162. return Character2,Torso2
  1163. end))
  1164. end
  1165.  
  1166. --//=================================\\
  1167. --|| WEAPON CREATION
  1168. --\\=================================//
  1169.  
  1170. local Particle = IT("ParticleEmitter",nil)
  1171. Particle.Enabled = false
  1172. Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.3),NumberSequenceKeypoint.new(0.3,0),NumberSequenceKeypoint.new(1,1)})
  1173. Particle.LightEmission = 0.5
  1174. Particle.Rate = 250
  1175. Particle.ZOffset = 0.2
  1176. Particle.Rotation = NumberRange.new(-180, 180)
  1177. Particle.RotSpeed = NumberRange.new(-180, 180)
  1178. Particle.Texture = "http://www.roblox.com/asset/?id=304437537"
  1179. Particle.Color = ColorSequence.new(C3(1,0,0),C3(1,0,0))
  1180.  
  1181. --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false})
  1182. function ParticleEmitter(Table)
  1183. local PRTCL = Particle:Clone()
  1184. local Speed = Table.Speed or 5
  1185. local Drag = Table.Drag or 0
  1186. local Size1 = Table.Size1 or 1
  1187. local Size2 = Table.Size2 or 5
  1188. local Lifetime1 = Table.Lifetime1 or 1
  1189. local Lifetime2 = Table.Lifetime2 or 1.5
  1190. local Parent = Table.Parent or Torso
  1191. local Emit = Table.Emit or 100
  1192. local Offset = Table.Offset or 360
  1193. local Acel = Table.Acel or VT(0,0,0)
  1194. local Enabled = Table.Enabled or false
  1195. PRTCL.Parent = Parent
  1196. PRTCL.Size = NumberSequence.new(Size1,Size2)
  1197. PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
  1198. PRTCL.Speed = NumberRange.new(Speed)
  1199. PRTCL.VelocitySpread = Offset
  1200. PRTCL.Drag = Drag
  1201. PRTCL.Acceleration = Acel
  1202. if Enabled == false then
  1203. PRTCL:Emit(Emit)
  1204. Debris:AddItem(PRTCL,Lifetime2)
  1205. else
  1206. PRTCL.Enabled = true
  1207. end
  1208. return PRTCL
  1209. end
  1210.  
  1211. local Handle = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.6,0.2),false)
  1212. local RightArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, RightArm, Handle, CF(0,-1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.21, 0))
  1213. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
  1214. MakeForm(Part,"Wedge")
  1215. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0))
  1216. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.3,0.2),false)
  1217. MakeForm(Part,"Wedge")
  1218. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0))
  1219. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.3,0.3),false)
  1220. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1221. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.5),false)
  1222. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1223. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.4,0.4,0.4),false)
  1224. MakeForm(Part,"Cyl")
  1225. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1226. for i = 1, 8 do
  1227. local Piece = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false)
  1228. CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0))
  1229. end
  1230. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.38,0.41,0.38),false)
  1231. MakeForm(Part,"Cyl")
  1232. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1233. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.37,0.5,0.37),false)
  1234. MakeForm(Part,"Ball")
  1235. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1236. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.7,0.4),false)
  1237. MakeForm(Part,"Wedge")
  1238. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0))
  1239. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.4,0.2),false)
  1240. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  1241. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.35,0.35,0.35),false)
  1242. MakeForm(Part,"Cyl")
  1243. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1244. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.5),false)
  1245. MakeForm(Part,"Cyl")
  1246. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1247. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.45),false)
  1248. MakeForm(Part,"Cyl")
  1249. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1250. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false)
  1251. MakeForm(Part,"Wedge")
  1252. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0))
  1253. local LASTPART = Handle
  1254. for i = 1, 10 do
  1255. if LASTPART == Handle then
  1256. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.2,0),false)
  1257. LASTPART = Part
  1258. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1259. else
  1260. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.05,0),false)
  1261. CreateWeldOrSnapOrMotor("Weld", Handle, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0))
  1262. LASTPART = Part
  1263. end
  1264. end
  1265.  
  1266. local Barrel = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.15,2,0.15),false)
  1267. MakeForm(Barrel,"Cyl")
  1268. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Barrel, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1269. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.25,1,0.25),false)
  1270. MakeForm(Part,"Cyl")
  1271. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, -0.6, 0), CF(0, 0, 0))
  1272. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0.1,0.2),false)
  1273. MakeForm(Part,"Wedge")
  1274. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, 0.945, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
  1275. local Hole = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.125,0,0.125),false)
  1276. MakeForm(Hole,"Cyl")
  1277. CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Hole, CF(0, 0.98, 0), CF(0, 0, 0))
  1278. local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0,0),false)
  1279. local GEARWELD = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
  1280. CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2))
  1281. local Part = CreatePart(3, Weapon, "Metal", 0, 0.5, "Mid gray", "Eye", VT(0,0,0),false)
  1282. local GEARWELD2 = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0))
  1283. CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2))
  1284. coroutine.resume(coroutine.create(function()
  1285. while wait() do
  1286. GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(5))
  1287. GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-5))
  1288. end
  1289. end))
  1290.  
  1291. ParticleEmitter({Speed = 0.35, Drag = 0, Size1 = 0.4, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.5, Parent = Hole, Emit = 100, Offset = 360, Enabled = true, Acel = VT(1,5,1)})
  1292. --ParticleEmitter({Speed = 0.5, Drag = 0, Size1 = 0.2, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.7, Parent = Dangle, Emit = 100, Offset = 360, Enabled = true, Acel = VT(0,5,0)})
  1293.  
  1294. for _, c in pairs(Weapon:GetDescendants()) do
  1295. if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then
  1296. c.Material = "Glass"
  1297. c.Color = C3(0,0,0)
  1298. elseif c.ClassName == "Part" and c.Name == "Eye" then
  1299. c.Color = C3(1,0,0)
  1300. c.Material = "Neon"
  1301. end
  1302. end
  1303.  
  1304. Weapon.Parent = Character
  1305. for _, c in pairs(Weapon:GetChildren()) do
  1306. if c.ClassName == "Part" then
  1307. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  1308. end
  1309. end
  1310.  
  1311. local SKILLTEXTCOLOR = C3(1,0,0)
  1312. local SKILLFONT = "Fantasy"
  1313. local SKILLTEXTSIZE = 5
  1314.  
  1315. Humanoid.Died:connect(function()
  1316. ATTACK = true
  1317. end)
  1318.  
  1319. 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), "Skill 1 Frame")
  1320. 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), "Skill 2 Frame")
  1321. 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), "Skill 3 Frame")
  1322. 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), "Skill 4 Frame")
  1323. 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), "Skill 5 Frame")
  1324. local SKILL6FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.100, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 6 Frame")
  1325.  
  1326. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Banish Shot", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 1")
  1327. local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[V] Shot", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 2")
  1328. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[X] Go to Sleep", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 3")
  1329. local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[C] Bullet On Sky", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 4")
  1330. local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[T] Laugh", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 5")
  1331. local SKILL6TEXT = CreateLabel(SKILL6FRAME, "[F] Mercy", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 6")
  1332.  
  1333. function printbye(Name)
  1334. local MESSAGES = {"Stay until It's Over...... "}
  1335. warn(MESSAGES[MRANDOM(1,#MESSAGES)]..Name..".")
  1336. end
  1337.  
  1338. workspace.ChildAdded:connect(function(instance)
  1339. for BANISH = 1, #TOBANISH do
  1340. if TOBANISH[BANISH] ~= nil then
  1341. if instance.Name == TOBANISH[BANISH] then
  1342. coroutine.resume(coroutine.create(function()
  1343. printbye(instance.Name)
  1344. instance:ClearAllChildren()
  1345. Debris:AddItem(instance,0.0005)
  1346. end))
  1347. end
  1348. end
  1349. end
  1350. end)
  1351.  
  1352. --//=================================\\
  1353. --|| DAMAGING
  1354. --\\=================================//
  1355.  
  1356. function ApplyDamage(Humanoid,Damage,OneShot)
  1357. Damage = Damage * DAMAGEMULTIPLIER
  1358. local DEAD = false
  1359. if Humanoid.Health < 2000 and OneShot == false then
  1360. if Humanoid.Health - Damage > 0 then
  1361. Humanoid.Health = Humanoid.Health - Damage
  1362. else
  1363. Humanoid.Parent:BreakJoints()
  1364. DEAD = true
  1365. end
  1366. else
  1367. DEAD = true
  1368. Humanoid.Parent:BreakJoints()
  1369. end
  1370. if DEAD == true then
  1371. local PARTS = {}
  1372. for index, CHILD in pairs(Humanoid.Parent:GetChildren()) do
  1373. if CHILD:IsA("BasePart") then
  1374. table.insert(PARTS,CHILD)
  1375. end
  1376. end
  1377. coroutine.resume(coroutine.create(function()
  1378. wait(2)
  1379. repeat
  1380. Swait()
  1381. local PIECE = nil
  1382. if MRANDOM(1,5) == 1 then
  1383. for E = 1, #PARTS do
  1384. if MRANDOM(1,5) == 1 then
  1385. PIECE = PARTS[E]
  1386. table.remove(PARTS,E)
  1387. break
  1388. end
  1389. end
  1390. end
  1391. if PIECE ~= nil then
  1392. if PIECE.Name == "Head" then
  1393. WACKYEFFECT({Time = MRANDOM(10,30)*5, EffectType = "Box", Size = VT(PIECE.Size.Z,PIECE.Size.Y,PIECE.Size.Z), Size2 = (VT(PIECE.Size.Z,PIECE.Size.Y,PIECE.Size.Z))*MRANDOM(7,14)/10, Transparency = PIECE.Transparency, Transparency2 = 1, CFrame = PIECE.CFrame, MoveToPos = PIECE.Position+VT(0,MRANDOM(5,8)/1.5,0), RotationX = MRANDOM(-25,25)/35, RotationY = MRANDOM(-25,25)/35, RotationZ = MRANDOM(-25,25)/35, Material = "Neon", Color = C3(0.4,0,0), SoundID = 3264923, SoundPitch = MRANDOM(12,16)/10, SoundVolume = 2})
  1394. else
  1395. WACKYEFFECT({Time = MRANDOM(10,30)*5, EffectType = "Box", Size = PIECE.Size, Size2 = PIECE.Size*MRANDOM(7,14)/10, Transparency = PIECE.Transparency, Transparency2 = 1, CFrame = PIECE.CFrame, MoveToPos = PIECE.Position+VT(0,MRANDOM(5,8)/1.5,0), MRANDOM(-25,25)/35, RotationY = MRANDOM(-25,25)/35, RotationZ = MRANDOM(-25,25)/35, Material = "Neon", Color = C3(0.4,0,0), SoundID = 3264923, SoundPitch = MRANDOM(12,16)/10, SoundVolume = 2})
  1396. end
  1397. PIECE:remove()
  1398. end
  1399. until #PARTS == 0
  1400. end))
  1401. end
  1402. end
  1403.  
  1404.  
  1405. function ApplyDamage3(Humanoid,Damage,TorsoPart)
  1406. local defence = Instance.new("BoolValue",Humanoid.Parent)
  1407. defence.Name = ("HitBy"..Player.Name)
  1408. game:GetService("Debris"):AddItem(defence, 0.001)
  1409. Damage = Damage * DAMAGEMULTIPLIER
  1410. if Humanoid.Health ~= 0 then
  1411. local CritChance = MRANDOM(1,100)
  1412. if Damage > Humanoid.Health then
  1413. Damage = math.ceil(Humanoid.Health)
  1414. if Damage == 0 then
  1415. Damage = 0.1
  1416. end
  1417. end
  1418. Humanoid.Health = Humanoid.Health - Damage
  1419. end
  1420. end
  1421.  
  1422. function ApplyDamage3(Humanoid,Damage,TorsoPart)
  1423. local defence = Instance.new("BoolValue",Humanoid.Parent)
  1424. defence.Name = ("HitBy"..Player.Name)
  1425. game:GetService("Debris"):AddItem(defence, 0.001)
  1426. Damage = Damage * DAMAGEMULTIPLIER
  1427. if Humanoid.Health ~= 0 then
  1428. local CritChance = MRANDOM(1,100)
  1429. if Damage > Humanoid.Health then
  1430. Damage = math.ceil(Humanoid.Health)
  1431. if Damage == 0 then
  1432. Damage = 0.1
  1433. end
  1434. end
  1435. Humanoid.Health = Humanoid.Health - Damage
  1436. end
  1437. end
  1438.  
  1439. function ApplyAoE3(POSITION,RANGE,MINDMG,MAXDMG,FLING,INSTAKILL)
  1440. local CHILDREN = workspace:GetDescendants()
  1441. for index, CHILD in pairs(CHILDREN) do
  1442. if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
  1443. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1444. if HUM then
  1445. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1446. if TORSO then
  1447. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  1448. if INSTAKILL == true then
  1449. CHILD:BreakJoints()
  1450. else
  1451. local DMG = MRANDOM(MINDMG,MAXDMG)
  1452. ApplyDamage(HUM,DMG,TORSO)
  1453. end
  1454. if FLING > 0 then
  1455. for _, c in pairs(CHILD:GetChildren()) do
  1456. if c:IsA("BasePart") then
  1457. local bv = Instance.new("BodyVelocity")
  1458. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1459. bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
  1460. bv.Parent = c
  1461. Debris:AddItem(bv,0.05)
  1462. end
  1463. end
  1464. end
  1465. end
  1466. end
  1467. end
  1468. end
  1469. end
  1470. end
  1471.  
  1472. function CameraEnshaking(Length, Intensity)
  1473. coroutine.resume(coroutine.create(function()
  1474. local intensity = 1 * Intensity
  1475. local rotM = 0.01 * Intensity
  1476. for i = 0, Length, 0.1 do
  1477. Swait()
  1478. intensity = intensity - 0.05 * Intensity / Length
  1479. rotM = rotM - 5.0E-4 * Intensity / Length
  1480. Humanoid.CameraOffset = Vector3.new(RAD(MRANDOM(-intensity, intensity)), RAD(MRANDOM(-intensity, intensity)), RAD(MRANDOM(-intensity, intensity)))
  1481. Cam.CFrame = Cam.CFrame * CF(RAD(MRANDOM(-intensity, intensity)), RAD(MRANDOM(-intensity, intensity)), RAD(MRANDOM(-intensity, intensity))) * EULER(RAD(MRANDOM(-intensity, intensity)) * rotM, RAD(MRANDOM(-intensity, intensity)) * rotM, RAD(MRANDOM(-intensity, intensity)) * rotM)
  1482. end
  1483. Humanoid.CameraOffset = Vector3.new(0, 0, 0)
  1484. end))
  1485. end
  1486.  
  1487. function ApplyAoE4(POSITION,RANGE,BRUTAL)
  1488. local CHILDREN = workspace:GetDescendants()
  1489. for index, CHILD in pairs(CHILDREN) do
  1490. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1491. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1492. if HUM then
  1493. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1494. if TORSO then
  1495. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  1496. if BRUTAL == true then
  1497. Kill(CHILD)
  1498. else
  1499. CHILD:BreakJoints()
  1500. end
  1501. end
  1502. end
  1503. end
  1504. end
  1505. end
  1506. end
  1507.  
  1508. function Kill(Char)
  1509. local NewCharacter = IT("Model",Effects)
  1510. NewCharacter.Name = "Ow im ded ;-;"
  1511. for _, c in pairs(Char:GetDescendants()) do
  1512. if c:IsA("BasePart") and c.Transparency == 0 then
  1513. c:BreakJoints()
  1514. c.Material = "Glass"
  1515. c.Color = C3(1,0,0)
  1516. c.CanCollide = true
  1517. c.Transparency = 0.3
  1518. if c:FindFirstChildOfClass("SpecialMesh") then
  1519. c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  1520. end
  1521. if c.Name == "Head" then
  1522. c:ClearAllChildren()
  1523. c.Size = VT(c.Size.Y,c.Size.Y,c.Size.Y)
  1524. end
  1525. if c.ClassName == "MeshPart" then
  1526. c.TextureID = ""
  1527. end
  1528. if c:FindFirstChildOfClass("BodyPosition") then
  1529. c:FindFirstChildOfClass("BodyPosition"):remove()
  1530. end
  1531. if c:FindFirstChildOfClass("ParticleEmitter") then
  1532. c:FindFirstChildOfClass("ParticleEmitter"):remove()
  1533. end
  1534. c.Parent = NewCharacter
  1535. c.Name = "DeadPart"
  1536. c.Velocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))/15
  1537. c.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-15,85),MRANDOM(-45,45))
  1538. end
  1539. end
  1540. Char:remove()
  1541. Debris:AddItem(NewCharacter,5)
  1542. end
  1543.  
  1544. function ApplyAoE(POSITION,RANGE,BRUTAL)
  1545. local CHILDREN = workspace:GetDescendants()
  1546. for index, CHILD in pairs(CHILDREN) do
  1547. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1548. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1549. if HUM then
  1550. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1551. if TORSO then
  1552. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  1553. if BRUTAL == true then
  1554. Kill(CHILD)
  1555. else
  1556. CHILD:BreakJoints()
  1557. end
  1558. end
  1559. end
  1560. end
  1561. end
  1562. end
  1563. end
  1564.  
  1565. function ApplyAoE(POSITION,RANGE,BRUTAL)
  1566. local CHILDREN = workspace:GetDescendants()
  1567. for index, CHILD in pairs(CHILDREN) do
  1568. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1569. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1570. if HUM then
  1571. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1572. if TORSO then
  1573. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  1574. if BRUTAL == true then
  1575. Kill(CHILD)
  1576. else
  1577. CHILD:BreakJoints()
  1578. end
  1579. end
  1580. end
  1581. end
  1582. end
  1583. end
  1584. end
  1585.  
  1586. function Banish(Foe)
  1587. if Foe then
  1588. coroutine.resume(coroutine.create(function()
  1589. --if game.Players:FindFirstChild(Foe.Name) then
  1590. table.insert(TOBANISH,Foe.Name)
  1591. printbye(Foe.Name)
  1592. --end
  1593. Foe.Archivable = true
  1594. local CLONE = Foe:Clone()
  1595. Foe:Destroy()
  1596. CLONE.Parent = Effects
  1597. CLONE:BreakJoints()
  1598. local MATERIALS = {"Glass","Neon"}
  1599. for _, c in pairs(CLONE:GetDescendants()) do
  1600. if c:IsA("BasePart") then
  1601. if c.Name == "Torso" or c.Name == "UpperTorso" or c == CLONE.PrimaryPart then
  1602. CreateSound(138271815, c, 10, 1, false)
  1603. end
  1604. c.Anchored = true
  1605. c.Transparency = c.Transparency + 0.2
  1606. c.Material = MATERIALS[MRANDOM(1,2)]
  1607. c.Color = C3(1,0,0)
  1608. if c.ClassName == "MeshPart" then
  1609. c.TextureID = ""
  1610. end
  1611. if c:FindFirstChildOfClass("SpecialMesh") then
  1612. c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  1613. end
  1614. if c:FindFirstChildOfClass("Decal") then
  1615. c:FindFirstChildOfClass("Decal"):remove()
  1616. end
  1617. c.Name = "Banished"
  1618. c.CanCollide = false
  1619. else
  1620. c:remove()
  1621. end
  1622. end
  1623. local A = false
  1624. for i = 1, 35 do
  1625. if A == false then
  1626. A = true
  1627. elseif A == true then
  1628. A = false
  1629. end
  1630. for _, c in pairs(CLONE:GetDescendants()) do
  1631. if c:IsA("BasePart") then
  1632. c.Anchored = true
  1633. c.Material = MATERIALS[MRANDOM(1,2)]
  1634. c.Transparency = c.Transparency + 0.8/35
  1635. if A == false then
  1636. c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)
  1637. elseif A == true then
  1638. c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45)
  1639. end
  1640. end
  1641. end
  1642. Swait()
  1643. end
  1644. CLONE:remove()
  1645. end))
  1646. end
  1647. end
  1648.  
  1649.  
  1650. function ApplyAoE(POSITION,RANGE,ISBANISH)
  1651. local CHILDREN = workspace:GetDescendants()
  1652. for index, CHILD in pairs(CHILDREN) do
  1653. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1654. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1655. if HUM then
  1656. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1657. if TORSO then
  1658. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  1659. if ISBANISH == true then
  1660. Banish(CHILD)
  1661. else
  1662. if ISBANISH == "Gravity" then
  1663. HUM.PlatformStand = true
  1664. if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
  1665. local grav = Instance.new("BodyPosition",TORSO)
  1666. grav.D = 15
  1667. grav.P = 20000
  1668. grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  1669. grav.position = TORSO.Position
  1670. grav.Name = "V3BanishForce"..Player.Name
  1671. else
  1672. TORSO:FindFirstChild("V3BanishForce"..Player.Name).position = TORSO.Position+VT(0,0.3,0)
  1673. TORSO.RotVelocity = VT(MRANDOM(-25,25),MRANDOM(-25,25),MRANDOM(-25,25))
  1674. end
  1675. else
  1676. HUM.PlatformStand = false
  1677. end
  1678. end
  1679. elseif ISBANISH == "Gravity" then
  1680. if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then
  1681. TORSO:FindFirstChild("V3BanishForce"..Player.Name):remove()
  1682. HUM.PlatformStand = false
  1683. end
  1684. end
  1685. end
  1686. end
  1687. end
  1688. end
  1689. end
  1690.  
  1691. function SpawnSmite(POS)
  1692. local HITFLOOR,HITPOS = Raycast(POS+VT(0,1,0), (CF(POS, POS + VT(0, -1, 0))).lookVector, 100, Character)
  1693. local EMITPOS = HITPOS
  1694. if HITFLOOR ~= nil then
  1695. if HITFLOOR.Parent:FindFirstChildOfClass("Humanoid") then
  1696. HITFLOOR,HITPOS = Raycast(POS+VT(0,1,0), (CF(POS, POS + VT(0, -1, 0))).lookVector, 100, HITFLOOR.Parent)
  1697. EMITPOS = HITPOS
  1698. elseif HITFLOOR.Parent.Parent:FindFirstChildOfClass("Humanoid") then
  1699. HITFLOOR,HITPOS = Raycast(POS+VT(0,1,0), (CF(POS, POS + VT(0, -1, 0))).lookVector, 100, HITFLOOR.Parent.Parent)
  1700. EMITPOS = HITPOS
  1701. end
  1702. end
  1703. if HITFLOOR ~= nil then
  1704. ApplyAoE(EMITPOS,10)
  1705. WACKYEFFECT({EffectType = "Sphere", Size = VT(0,100000,0), Size2 = VT(10,100000,10), Transparency = 0, Transparency2 = 1, CFrame = CF(EMITPOS) * ANGLES(RAD(MRANDOM(-15,15)), RAD(0), RAD(MRANDOM(-15,15))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 419011114, SoundPitch = 1, SoundVolume = 5})
  1706. WACKYEFFECT({EffectType = "Block", Size = VT(0,0,0), Size2 = VT(10,10,10)*2, Transparency = 0, Transparency2 = 1, CFrame = CF(EMITPOS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 5})
  1707. WACKYEFFECT({EffectType = "Block", Size = VT(0,0,0), Size2 = VT(10,10,10)*1.5, Transparency = 0, Transparency2 = 1, CFrame = CF(EMITPOS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 5})
  1708. for i = 1, 5 do
  1709. local TOPOS = CF(EMITPOS)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,12)
  1710. WACKYEFFECT({EffectType = "Slash", Size = VT(0,0,0), Size2 = VT(0.2,0,0.2), Transparency = 0, Transparency2 = 1, CFrame = CF(EMITPOS,TOPOS.p) * ANGLES(RAD(90), RAD(0), RAD(0)), MoveToPos = TOPOS.p, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 419011114, SoundPitch = 1, SoundVolume = 5})
  1711. end
  1712. end
  1713. end
  1714.  
  1715. --//=================================\\
  1716. --|| ATTACK FUNCTIONS AND STUFF
  1717. --\\=================================//
  1718.  
  1719. function eh()
  1720. ATTACK = true
  1721. Rooted = false
  1722. Speed = 20
  1723. Swait()
  1724. local CHILDREN = workspace:GetDescendants()
  1725. for index, CHILD in pairs(CHILDREN) do
  1726. if CHILD.ClassName == "Model" and CHILD ~= Character then
  1727. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1728. if HUM then
  1729. local TORSO = CHILD:FindFirstChild("Head")
  1730. if TORSO then
  1731. if (TORSO.Position - Head.Position).Magnitude <= 25 then
  1732. WACKYEFFECT({Time = 45, EffectType = "Sphere", Size = VT(1,1,1), Size2 = VT(5,5,5), Transparency = 0, Transparency2 = 1, CFrame = CF(TORSO.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1733. TORSO:remove()
  1734. if CHILD:FindFirstChild("Torso") then
  1735. Ragdoll(CHILD,Torso,true)
  1736. elseif CHILD:FindFirstChild("UpperTorso") then
  1737. R15Ragdoll(CHILD,true)
  1738. end
  1739. end
  1740. end
  1741. end
  1742. end
  1743. end
  1744. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = Hole.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1745. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 136523485, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 1})
  1746. for i=0, 0.3, 0.1 / Animation_Speed do
  1747. Swait()
  1748. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25 + MRANDOM(-5,5) - 4 * COS(SINE / 12)), RAD(MRANDOM(-5,5)), RAD(15)), 1 / Animation_Speed)
  1749. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  1750. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0.3) * ANGLES(RAD(180), RAD(0), RAD(0)) * ANGLES(RAD(0), RAD(45), RAD(0)) * RIGHTSHOULDERC0, 0.25 / Animation_Speed)
  1751. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.25 / Animation_Speed)
  1752. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  1753. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  1754. end
  1755. Speed = 20
  1756. ATTACK = false
  1757. Rooted = false
  1758. end
  1759.  
  1760. function Taunt()
  1761. ATTACK = true
  1762. Rooted = true
  1763. CreateSound("1238240145", Torso, 6, 0.9)
  1764. for i=0, 0.6, 0.1 / Animation_Speed do
  1765. Swait()
  1766. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.35 * COS(SINE / 2)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1767. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + MRANDOM(-25,25) - 4 * COS(SINE / 12)), RAD(MRANDOM(-25,25)), RAD(0)), 1.5 / Animation_Speed)
  1768. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.35, 0) * ANGLES(RAD(90), RAD(34), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1769. 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)
  1770. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1771. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1772. end
  1773. for i=0, 0.6, 0.1 / Animation_Speed do
  1774. Swait()
  1775. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.35 * COS(SINE / 2)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1776. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + MRANDOM(-25,25) - 4 * COS(SINE / 12)), RAD(MRANDOM(-25,25)), RAD(0)), 1.5 / Animation_Speed)
  1777. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.35, 0) * ANGLES(RAD(80), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1778. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(15), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1779. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1780. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1781. end
  1782. for i=0, 0.6, 0.1 / Animation_Speed do
  1783. Swait()
  1784. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.35 * COS(SINE / 2)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1785. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + MRANDOM(-25,25) - 4 * COS(SINE / 12)), RAD(MRANDOM(-25,25)), RAD(0)), 1.5 / Animation_Speed)
  1786. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.35, 0) * ANGLES(RAD(90), RAD(34), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1787. 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)
  1788. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1789. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1790. end
  1791. for i=0, 0.6, 0.1 / Animation_Speed do
  1792. Swait()
  1793. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.35 * COS(SINE / 2)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1794. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + MRANDOM(-25,25) - 4 * COS(SINE / 12)), RAD(MRANDOM(-25,25)), RAD(0)), 1.5 / Animation_Speed)
  1795. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.35, 0) * ANGLES(RAD(80), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1796. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(15), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1797. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1798. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1799. end
  1800. for i=0, 0.6, 0.1 / Animation_Speed do
  1801. Swait()
  1802. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.35 * COS(SINE / 2)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1803. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + MRANDOM(-25,25) - 4 * COS(SINE / 12)), RAD(MRANDOM(-25,25)), RAD(0)), 1.5 / Animation_Speed)
  1804. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.35, 0) * ANGLES(RAD(90), RAD(34), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1805. 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)
  1806. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1807. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1808. end
  1809. for i=0, 0.6, 0.1 / Animation_Speed do
  1810. Swait()
  1811. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.35 * COS(SINE / 2)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1812. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + MRANDOM(-25,25) - 4 * COS(SINE / 12)), RAD(MRANDOM(-25,25)), RAD(0)), 1.5 / Animation_Speed)
  1813. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.35, 0) * ANGLES(RAD(80), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1814. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(15), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1815. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1816. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1817. end
  1818. ATTACK = false
  1819. Rooted = false
  1820. end
  1821.  
  1822. function Shot()
  1823. ATTACK = true
  1824. Rooted = false
  1825. for i=0, 0.2, 0.05 / Animation_Speed do
  1826. Swait()
  1827. turnto(Mouse.Hit.p)
  1828. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  1829. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
  1830. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1831. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1832. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1833. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1834. end
  1835. repeat
  1836. for i=0, 0.2, 0.05 / Animation_Speed do
  1837. Swait()
  1838. turnto(Mouse.Hit.p)
  1839. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  1840. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
  1841. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1842. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1843. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1844. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1845. end
  1846. local HIT,POS = CastProperRay(Hole.Position, Mouse.Hit.p, 1000, Character)
  1847. SpawnTrail(Hole.Position,POS)
  1848. if HIT ~= nil then
  1849. if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then
  1850. Banish(HIT.Parent)
  1851. end
  1852. end
  1853. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = Hole.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1854. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 136523485, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  1855. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  1856. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  1857. Humanoid.CameraOffset = VT(MRANDOM(-5,5)/2.5,MRANDOM(-5,5)/2.5,MRANDOM(-5,5)/2.5)/30
  1858. for i=0, 0.2, 0.05 / Animation_Speed do
  1859. Swait()
  1860. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  1861. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.25 / Animation_Speed)
  1862. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(15), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1863. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1864. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1865. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1866. end
  1867. until KEYHOLD == false
  1868. ATTACK = false
  1869. Rooted = false
  1870. end
  1871.  
  1872. function Shot2()
  1873. ATTACK = true
  1874. Rooted = false
  1875. for i=0, 0.2, 0.05 / Animation_Speed do
  1876. Swait()
  1877. turnto(Mouse.Hit.p)
  1878. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  1879. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
  1880. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1881. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1882. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1883. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1884. end
  1885. repeat
  1886. for i=0, 0.2, 0.05 / Animation_Speed do
  1887. Swait()
  1888. turnto(Mouse.Hit.p)
  1889. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  1890. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
  1891. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1892. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1893. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1894. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1895. end
  1896. local HIT,POS = CastProperRay(Hole.Position, Mouse.Hit.p, 1000, Character)
  1897. SpawnTrail(Hole.Position,POS)
  1898. if HIT ~= nil then
  1899. if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then
  1900. Kill(HIT.Parent)
  1901. end
  1902. end
  1903. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = Hole.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1904. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 136523485, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  1905. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  1906. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  1907. Humanoid.CameraOffset = VT(MRANDOM(-5,5)/2.5,MRANDOM(-5,5)/2.5,MRANDOM(-5,5)/2.5)/30
  1908. for i=0, 0.2, 0.05 / Animation_Speed do
  1909. Swait()
  1910. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  1911. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.25 / Animation_Speed)
  1912. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(15), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1913. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1914. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1915. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1916. end
  1917. until KEYHOLD == false
  1918. ATTACK = false
  1919. Rooted = false
  1920. end
  1921.  
  1922. function AttackTemplate()
  1923. ATTACK = true
  1924. Rooted = false
  1925. for i=0, 1, 0.1 / Animation_Speed do
  1926. Swait()
  1927. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed)
  1928. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
  1929. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1930. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1931. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1932. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1933. end
  1934. ATTACK = false
  1935. Rooted = false
  1936. end
  1937.  
  1938. function Finisher()
  1939. local TARGET = Mouse.Target
  1940. if TARGET ~= nil then
  1941. if TARGET.Parent:FindFirstChildOfClass("Humanoid") then
  1942. local HUM = TARGET.Parent:FindFirstChildOfClass("Humanoid")
  1943. local ROOT = TARGET.Parent:FindFirstChild("HumanoidRootPart") or TARGET.Parent:FindFirstChild("Torso") or TARGET.Parent:FindFirstChild("UpperTorso")
  1944. if ROOT and HUM.Health > 0 then
  1945. local FOE = Mouse.Target.Parent
  1946. ATTACK = true
  1947. Rooted = true
  1948. RootPart.CFrame = ROOT.CFrame*CF(-1.35,0,4)
  1949. ROOT.Anchored = true
  1950. CreateSound(670796769, Torso, 9999, 0.6, false)
  1951. CreateSound(362990415, Torso, 5, 1.08, false)
  1952. for i=0, 0.4, 0.1 / Animation_Speed do
  1953. Swait()
  1954. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1955. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1956. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(80), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1957. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1958. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1959. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1960. end
  1961. HUM.PlatformStand = true
  1962. ROOT.CFrame = ROOT.CFrame * CF(0,-2*ROOT.Size.Z,0) * ANGLES(RAD(-90), RAD(0), RAD(0))
  1963. coroutine.resume(coroutine.create(function()
  1964. Swait()
  1965. ROOT.Anchored = true
  1966. end))
  1967. RootPart.CFrame = RootPart.CFrame*CF(0,0,-0.6)
  1968. for i=0, 0.2, 0.1 / Animation_Speed do
  1969. Swait()
  1970. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed)
  1971. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 1 / Animation_Speed)
  1972. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1973. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1974. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1975. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-50), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 1 / Animation_Speed)
  1976. end
  1977. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = Hole.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1978. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 136523485, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  1979. for i=0, 0.2, 0.1 / Animation_Speed do
  1980. Swait()
  1981. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(15)), 1 / Animation_Speed)
  1982. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 1 / Animation_Speed)
  1983. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1984. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1985. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1986. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1987. end
  1988. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = Hole.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1989. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 136523485, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  1990. local AMMO = 6
  1991. local FIRING = true
  1992. local SHOOTING = false
  1993. local TIMER = 70
  1994. CreateSound(147722227, GunPoint, 6, 1.3, false)
  1995. for i=0, 0.2, 0.1 / Animation_Speed do
  1996. Swait()
  1997. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed)
  1998. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 1 / Animation_Speed)
  1999. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(30), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2000. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2001. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2002. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-65), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 1 / Animation_Speed)
  2003. end
  2004. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = Hole.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2005. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 136523485, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  2006. for i = 1, 6 do
  2007. local GUNPOS = Hole.CFrame*CF(0, 0, 0).p
  2008. local DISTANCE = (FOE.Head.Position - GUNPOS).Magnitude
  2009. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = Hole.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2010. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 136523485, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  2011. HUM.Health = HUM.Health/1.5
  2012. for i=0, 0.2, 0.1 / Animation_Speed do
  2013. Swait()
  2014. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed)
  2015. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 1 / Animation_Speed)
  2016. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(70), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2017. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2018. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2019. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-65), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 1 / Animation_Speed)
  2020. end
  2021. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = Hole.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2022. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 136523485, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  2023. for i=0, 0.2, 0.1 / Animation_Speed do
  2024. Swait()
  2025. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed)
  2026. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 1 / Animation_Speed)
  2027. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(30), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2028. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2029. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2030. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-65), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 1 / Animation_Speed)
  2031. end
  2032. end
  2033. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = Hole.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2034. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 136523485, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8})
  2035. ApplyDamage(HUM,0,true)
  2036. FOE:BreakJoints()
  2037. ROOT.Anchored = false
  2038. for i=0, 0.3, 0.1 / Animation_Speed do
  2039. Swait()
  2040. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2041. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25), RAD(0), RAD(15)), 1 / Animation_Speed)
  2042. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  2043. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.525, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(5)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  2044. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2045. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  2046. end
  2047. ATTACK = false
  2048. Rooted = false
  2049. end
  2050. end
  2051. end
  2052. end
  2053.  
  2054.  
  2055. --//=================================\\
  2056. --|| ASSIGN THINGS TO KEYS
  2057. --\\=================================//
  2058.  
  2059. function MouseDown(Mouse)
  2060. if ATTACK == false then
  2061. end
  2062. end
  2063.  
  2064. function MouseUp(Mouse)
  2065. HOLD = false
  2066. end
  2067.  
  2068. function KeyDown(Key)
  2069. KEYHOLD = true
  2070. if Key == "z" and ATTACK == false then
  2071. Shot()
  2072. end
  2073.  
  2074. if Key == "v" and ATTACK == false then
  2075. Shot2()
  2076. end
  2077.  
  2078. if Key == "x" and ATTACK == false then
  2079. Finisher()
  2080. end
  2081.  
  2082. if Key == "f" and ATTACK == false then
  2083. for i=0, 0.3, 0.1 / Animation_Speed do
  2084. Swait()
  2085. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25 + MRANDOM(-5,5) - 4 * COS(SINE / 12)), RAD(MRANDOM(-5,5)), RAD(15)), 1 / Animation_Speed)
  2086. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  2087. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0.3) * ANGLES(RAD(180), RAD(0), RAD(0)) * ANGLES(RAD(0), RAD(45), RAD(0)) * RIGHTSHOULDERC0, 0.25 / Animation_Speed)
  2088. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.25 / Animation_Speed)
  2089. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  2090. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  2091. end
  2092. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = Hole.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  2093. WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 136523485, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 1})
  2094. TOBANISH = {}
  2095. end
  2096.  
  2097. if Key == "t" and ATTACK == false then
  2098. Taunt()
  2099. end
  2100.  
  2101. if Key == "c" and ATTACK == false then
  2102. eh()
  2103. end
  2104. end
  2105.  
  2106. function KeyUp(Key)
  2107. KEYHOLD = false
  2108. end
  2109.  
  2110. Mouse.Button1Down:connect(function(NEWKEY)
  2111. MouseDown(NEWKEY)
  2112. end)
  2113. Mouse.Button1Up:connect(function(NEWKEY)
  2114. MouseUp(NEWKEY)
  2115. end)
  2116. Mouse.KeyDown:connect(function(NEWKEY)
  2117. KeyDown(NEWKEY)
  2118. end)
  2119. Mouse.KeyUp:connect(function(NEWKEY)
  2120. KeyUp(NEWKEY)
  2121. end)
  2122.  
  2123. --//=================================\\
  2124. --\\=================================//
  2125.  
  2126.  
  2127. function unanchor()
  2128. if UNANCHOR == true then
  2129. g = Character:GetChildren()
  2130. for i = 1, #g do
  2131. if g[i].ClassName == "Part" then
  2132. g[i].Anchored = false
  2133. end
  2134. end
  2135. end
  2136. end
  2137.  
  2138.  
  2139. --//=================================\\
  2140. --|| WRAP THE WHOLE SCRIPT UP
  2141. --\\=================================//
  2142.  
  2143. Humanoid.Changed:connect(function(Jump)
  2144. if Jump == "Jump" and (Disable_Jump == true) then
  2145. Humanoid.Jump = false
  2146. end
  2147. end)
  2148.  
  2149. local FF = IT("ForceField",Character)
  2150. FF.Visible = false
  2151.  
  2152. INSTANT = false
  2153. Speed = 20
  2154.  
  2155. while true do
  2156. Swait()
  2157. SINE = SINE + CHANGE
  2158. ANIMATE.Parent = nil
  2159. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  2160. IDLEANIMATION:Play()
  2161. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  2162. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  2163. local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position)
  2164. local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character)
  2165. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  2166. if ATTACK == false and VALUE2 == false then
  2167. end
  2168. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  2169. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2)) * Player_Size) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  2170. Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  2171. RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  2172. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  2173. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  2174. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2175. Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2176. RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2177. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2178. end
  2179. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  2180. ANIM = "Jump"
  2181. if ATTACK == false then
  2182. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2183. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 * Player_Size, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2184. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  2185. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  2186. 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)
  2187. 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)
  2188. end
  2189. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  2190. ANIM = "Fall"
  2191. if ATTACK == false then
  2192. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2193. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2194. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  2195. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  2196. 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)
  2197. 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)
  2198. end
  2199. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  2200. ANIM = "Idle"
  2201. if ATTACK == false then
  2202. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25 + MRANDOM(-5,5) - 4 * COS(SINE / 12)), RAD(MRANDOM(-5,5)), RAD(15)), 1 / Animation_Speed)
  2203. if MRANDOM(1,7) == 1 then
  2204. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + MRANDOM(-25,25) - 4 * COS(SINE / 12)), RAD(MRANDOM(-25,25)), RAD(0)), 1.5 / Animation_Speed)
  2205. end
  2206. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  2207. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(180), RAD(0), RAD(0)) * ANGLES(RAD(0), RAD(45), RAD(0)) * RIGHTSHOULDERC0, 0.25 / Animation_Speed)
  2208. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.25 / Animation_Speed)
  2209. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  2210. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.25 / Animation_Speed)
  2211. end
  2212. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  2213. ANIM = "Walk"
  2214. if ATTACK == false then
  2215. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  2216. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25 + MRANDOM(-5,5) - 4 * COS(SINE / 12)), RAD(MRANDOM(-5,5)), RAD(15)), 1 / Animation_Speed)
  2217. if MRANDOM(1,7) == 1 then
  2218. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + MRANDOM(-25,25) - 4 * COS(SINE / 12)), RAD(MRANDOM(-25,25)), RAD(0)), 1.5 / Animation_Speed)
  2219. end
  2220. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.35, 0) * ANGLES(RAD(0), RAD(180), RAD(180)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  2221. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 0.35 / Animation_Speed)
  2222. RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed)
  2223. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed)
  2224. end
  2225. end
  2226. end
  2227. --end
  2228. Humanoid.DisplayDistanceType = "None"
  2229. SHAKECAM(999999, 25, 25)
  2230. Humanoid.CameraOffset = VT(MRANDOM(-5,5)/4.5,MRANDOM(-5,5)/4.5,MRANDOM(-5,5)/4.5)/60
  2231. unanchor()
  2232. Humanoid.MaxHealth = "inf"
  2233. Humanoid.Health = "inf"
  2234. if Rooted == false then
  2235. Disable_Jump = false
  2236. Humanoid.WalkSpeed = Speed
  2237. elseif Rooted == true then
  2238. Disable_Jump = true
  2239. Humanoid.WalkSpeed = 0
  2240. end
  2241. local MATHS = {"0","1"}
  2242. Humanoid.Name = MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]
  2243. Humanoid.PlatformStand = false
  2244. script.Parent = PlayerGui
  2245. Character.Parent = workspace
  2246. Humanoid.Parent = Character
  2247. --//=================================\\
  2248. --\\=================================//
  2249.  
  2250.  
  2251.  
  2252.  
  2253.  
  2254. --//====================================================\\--
  2255. --|| END OF SCRIPT
  2256. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement