Advertisement
kebbyfan

awdaweda,kjhkiuwhdlAOQWEHDA;OWIEDHAWPIDEHA'P;WIEHAwHDIAOWHDA

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