Advertisement
AOM-GU-PRO

SRV

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