Advertisement
ghostteen14

Untitled

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