Advertisement
gray_alli28codesrbx

banisher

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