Advertisement
DarkScriptZEditors

Cream...

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