Advertisement
Guest User

Untitled

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