Advertisement
Guest User

Bighead Mother Script

a guest
Feb 15th, 2019
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 45.40 KB | None | 0 0
  1. -----------------------
  2. --[[ Name : Bighead Mother ]]--
  3. -------------------------------------------------------
  4. --A script By makhail07
  5. --Footplanting added by Nebula_Zorua (Nebula the Zorua#6969)
  6.  
  7. --Discord Creterisk#2958
  8.  
  9. --NOTE THIS SCRIPT WAS PURELY MADE FROM MY FUCKING IMAGINATION
  10. --IF IT HAPPENS TO LOOK LIKE ANOTHER SCRIPT
  11. --DONT CALL IT A FUCKING BOOTLEG THANK YOU AND ENJOY THE SCRIPT
  12. --YOU FUCKING SKIDS,
  13. --For Those who log/decompile this, If you sell or trade this,
  14. --and I find out who you are, i will take massive action.
  15. -------------------------------------------------------
  16.  
  17. local FavIDs = {
  18. 340106355, --Nefl Crystals
  19. 927529620, --Dimension
  20. 876981900, --Fantasy
  21. 398987889, --Ordinary Days
  22. 1117396305, --Oh wait, it's you.
  23. 885996042, --Action Winter Journey
  24. 919231299, --Sprawling Idiot Effigy
  25. 743466274, --Good Day Sunshine
  26. 727411183, --Knife Fight
  27. 1402748531, --The Earth Is Counting On You!
  28. 595230126 --Robot Language
  29. }
  30.  
  31.  
  32.  
  33. --The reality of my life isn't real but a Universe -makhail07
  34. wait()
  35. local plr = game:service'Players'.LocalPlayer
  36. print('Local Monster is '..plr.Name)
  37. warn'This was inspired by the Biggerhead creature in MisterObvious Roleplay world'
  38. print'press z to go nuts'
  39. local char = plr.Character
  40. local hum = char.Humanoid
  41. local ra = char["Right Arm"]
  42. local la= char["Left Arm"]
  43. local rl= char["Right Leg"]
  44. local ll = char["Left Leg"]
  45. local hed = char.Head
  46. local root = char.HumanoidRootPart
  47. local rootj = root.RootJoint
  48. local tors = char.Torso
  49. local mouse = plr:GetMouse()
  50. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  51. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  52. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  53.  
  54.  
  55. angry = false
  56.  
  57.  
  58. local Eye = Instance.new("Part")
  59. Eye.Parent = char
  60. Eye.Transparency = 1
  61. Eye.Material = ("Neon")
  62. Eye.Name = "Eye"
  63. Eye.Size = Vector3.new(0.5, 0.5, 0.5)
  64. Eye.CFrame = char.Head.CFrame
  65. Eye:BreakJoints()
  66. Eye.CanCollide = false
  67. Eye.BrickColor = BrickColor.new("Medium Stone")
  68. Eye.TopSurface = "Smooth"
  69. Eye.BottomSurface = "Smooth"
  70. Weld = Instance.new("Weld")
  71. Weld.Name = "Weld"
  72. Weld.Part0 = char.Torso
  73. Weld.Part1 = Eye
  74. Weld.Parent = char.Torso
  75. Weld.C0 = CFrame.new(-.45, 0.45, -1.35)*CFrame.fromEulerAnglesXYZ(0, 0, 0.1)
  76. Mesh = Instance.new("SpecialMesh")
  77. Mesh.Parent = Eye
  78. Mesh.MeshType = "Sphere"
  79. Mesh.Scale = Vector3.new(1, 1, 1)
  80.  
  81. local Eye2 = Instance.new("Part")
  82. Eye2.Parent = char
  83. Eye2.Transparency = 1
  84. Eye2.Material = ("Neon")
  85. Eye2.Name = "Eye"
  86. Eye2.Size = Vector3.new(0.5, 0.5, 0.5)
  87. Eye2.CFrame = char.Head.CFrame
  88. Eye2:BreakJoints()
  89. Eye2.CanCollide = false
  90. Eye2.BrickColor = BrickColor.new("Medium Stone")
  91. Eye2.TopSurface = "Smooth"
  92. Eye2.BottomSurface = "Smooth"
  93. Weld = Instance.new("Weld")
  94. Weld.Name = "Weld"
  95. Weld.Part0 = char.Torso
  96. Weld.Part1 = Eye2
  97. Weld.Parent = char.Torso
  98. Weld.C0 = CFrame.new(.45, 0.45, -1.35)*CFrame.fromEulerAnglesXYZ(0, 0, -0.1)
  99. Mesh = Instance.new("SpecialMesh")
  100. Mesh.Parent = Eye2
  101. Mesh.MeshType = "Sphere"
  102. Mesh.Scale = Vector3.new(1, 1, 1)
  103. -------------------------------------------------------
  104. --Start Good Stuff--
  105. -------------------------------------------------------
  106. CF = CFrame.new
  107. angles = CFrame.Angles
  108. attack = false
  109. Euler = CFrame.fromEulerAnglesXYZ
  110. Rad = math.rad
  111. IT = Instance.new
  112. BrickC = BrickColor.new
  113. Cos = math.cos
  114. Acos = math.acos
  115. Sin = math.sin
  116. Asin = math.asin
  117. Abs = math.abs
  118. Mrandom = math.random
  119. Floor = math.floor
  120. -------------------------------------------------------
  121. --End Good Stuff--
  122. -------------------------------------------------------
  123. necko = CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  124. RSH, LSH = nil, nil
  125. RW = Instance.new("Weld")
  126. LW = Instance.new("Weld")
  127. RH = tors["Right Hip"]
  128. LH = tors["Left Hip"]
  129. RSH = tors["Right Shoulder"]
  130. LSH = tors["Left Shoulder"]
  131. RSH.Parent = nil
  132. LSH.Parent = nil
  133. RW.Name = "RW"
  134. RW.Part0 = tors
  135. RW.C0 = CF(1.5, 0.5, 0)
  136. RW.C1 = CF(0, 0.5, 0)
  137. RW.Part1 = ra
  138. RW.Parent = tors
  139. LW.Name = "LW"
  140. LW.Part0 = tors
  141. LW.C0 = CF(-1.5, 0.5, 0)
  142. LW.C1 = CF(0, 0.5, 0)
  143. LW.Part1 = la
  144. LW.Parent = tors
  145. Effects = {}
  146.  
  147. local BC = char["Body Colors"]
  148. BC.HeadColor = BrickColor.new("Really red")
  149. BC.LeftArmColor = BrickColor.new("Really red")
  150. BC.LeftLegColor = BrickColor.new("Really red")
  151. BC.RightArmColor = BrickColor.new("Really red")
  152. BC.RightLegColor = BrickColor.new("Really red")
  153. BC.TorsoColor = BrickColor.new("Really red")
  154.  
  155. hed.Transparency = 1
  156. ra.Transparency = 1
  157. la.Transparency = 1
  158. if hed:FindFirstChildWhichIsA("Decal") then
  159. hed:FindFirstChildWhichIsA("Decal"):Destroy()
  160. end
  161.  
  162. local Haed = Instance.new("SpecialMesh")
  163. Haed.Parent = tors
  164. Haed.MeshId = "http://www.roblox.com/asset/?id=1047997"
  165. Haed.TextureId = "http://www.roblox.com/asset/?id=1048208"
  166. Haed.Scale = Vector3.new(1.5,1.5,1.5)
  167.  
  168. local Leg1 = Instance.new("SpecialMesh")
  169. Leg1.Parent = rl
  170. Leg1.MeshType = "Brick"
  171. Leg1.Scale = Vector3.new(.5,2,.5)
  172.  
  173. local Leg2 = Instance.new("SpecialMesh")
  174. Leg2.Parent = ll
  175. Leg2.MeshType = "Brick"
  176. Leg2.Scale = Vector3.new(.5,2,.5)
  177.  
  178. -------------------------------------------------------
  179. --Start HeartBeat--
  180. -------------------------------------------------------
  181. ArtificialHB = Instance.new("BindableEvent", script)
  182. ArtificialHB.Name = "Heartbeat"
  183. script:WaitForChild("Heartbeat")
  184.  
  185. frame = 1 / 60
  186. tf = 0
  187. allowframeloss = false
  188. tossremainder = false
  189.  
  190.  
  191. lastframe = tick()
  192. script.Heartbeat:Fire()
  193.  
  194.  
  195. game:GetService("RunService").Heartbeat:connect(function(s, p)
  196. tf = tf + s
  197. if tf >= frame then
  198. if allowframeloss then
  199. script.Heartbeat:Fire()
  200. lastframe = tick()
  201. else
  202. for i = 1, math.floor(tf / frame) do
  203. script.Heartbeat:Fire()
  204. end
  205. lastframe = tick()
  206. end
  207. if tossremainder then
  208. tf = 0
  209. else
  210. tf = tf - frame * math.floor(tf / frame)
  211. end
  212. end
  213. end)
  214. -------------------------------------------------------
  215. --End HeartBeat--
  216. -------------------------------------------------------
  217.  
  218. -------------------------------------------------------
  219. --Start Important Functions--
  220. -------------------------------------------------------
  221.  
  222. function thread(f)
  223. coroutine.resume(coroutine.create(f))
  224. end
  225. function clerp(a, b, t)
  226. local qa = {
  227. QuaternionFromCFrame(a)
  228. }
  229. local qb = {
  230. QuaternionFromCFrame(b)
  231. }
  232. local ax, ay, az = a.x, a.y, a.z
  233. local bx, by, bz = b.x, b.y, b.z
  234. local _t = 1 - t
  235. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  236. end
  237. function QuaternionFromCFrame(cf)
  238. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  239. local trace = m00 + m11 + m22
  240. if trace > 0 then
  241. local s = math.sqrt(1 + trace)
  242. local recip = 0.5 / s
  243. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  244. else
  245. local i = 0
  246. if m00 < m11 then
  247. i = 1
  248. end
  249. if m22 > (i == 0 and m00 or m11) then
  250. i = 2
  251. end
  252. if i == 0 then
  253. local s = math.sqrt(m00 - m11 - m22 + 1)
  254. local recip = 0.5 / s
  255. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  256. elseif i == 1 then
  257. local s = math.sqrt(m11 - m22 - m00 + 1)
  258. local recip = 0.5 / s
  259. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  260. elseif i == 2 then
  261. local s = math.sqrt(m22 - m00 - m11 + 1)
  262. local recip = 0.5 / s
  263. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  264. end
  265. end
  266. end
  267. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  268. local xs, ys, zs = x + x, y + y, z + z
  269. local wx, wy, wz = w * xs, w * ys, w * zs
  270. local xx = x * xs
  271. local xy = x * ys
  272. local xz = x * zs
  273. local yy = y * ys
  274. local yz = y * zs
  275. local zz = z * zs
  276. 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))
  277. end
  278. function QuaternionSlerp(a, b, t)
  279. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  280. local startInterp, finishInterp
  281. if cosTheta >= 1.0E-4 then
  282. if 1 - cosTheta > 1.0E-4 then
  283. local theta = math.acos(cosTheta)
  284. local invSinTheta = 1 / Sin(theta)
  285. startInterp = Sin((1 - t) * theta) * invSinTheta
  286. finishInterp = Sin(t * theta) * invSinTheta
  287. else
  288. startInterp = 1 - t
  289. finishInterp = t
  290. end
  291. elseif 1 + cosTheta > 1.0E-4 then
  292. local theta = math.acos(-cosTheta)
  293. local invSinTheta = 1 / Sin(theta)
  294. startInterp = Sin((t - 1) * theta) * invSinTheta
  295. finishInterp = Sin(t * theta) * invSinTheta
  296. else
  297. startInterp = t - 1
  298. finishInterp = t
  299. end
  300. 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
  301. end
  302. function rayCast(Position, Direction, Range, Ignore)
  303. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  304. end
  305. local RbxUtility = LoadLibrary("RbxUtility")
  306. local Create = RbxUtility.Create
  307.  
  308.  
  309. local ArtificialHB = Instance.new("BindableEvent", script)
  310. ArtificialHB.Name = "Heartbeat"
  311.  
  312. script:WaitForChild("Heartbeat")
  313.  
  314. local tf = 0
  315. local allowframeloss = false
  316. local tossremainder = false
  317. local lastframe = tick()
  318. local frame = 1/60
  319. ArtificialHB:Fire()
  320.  
  321. game:GetService("RunService").Heartbeat:connect(function(s, p)
  322. tf = tf + s
  323. if tf >= frame then
  324. if allowframeloss then
  325. script.Heartbeat:Fire()
  326. lastframe = tick()
  327. else
  328. for i = 1, math.floor(tf / frame) do
  329. ArtificialHB:Fire()
  330. end
  331. lastframe = tick()
  332. end
  333. if tossremainder then
  334. tf = 0
  335. else
  336. tf = tf - frame * math.floor(tf / frame)
  337. end
  338. end
  339. end)
  340.  
  341. function swait(num)
  342. if num == 0 or num == nil then
  343. ArtificialHB.Event:wait()
  344. else
  345. for i = 0, num do
  346. ArtificialHB.Event:wait()
  347. end
  348. end
  349. end
  350.  
  351. -------------------------------------------------------
  352. --Start Damage Function--
  353. -------------------------------------------------------
  354. function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  355. if hit.Parent == nil then
  356. return
  357. end
  358. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  359. for _, v in pairs(hit.Parent:children()) do
  360. if v:IsA("Humanoid") then
  361. h = v
  362. end
  363. end
  364. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then
  365.  
  366. hit.Parent:FindFirstChild("Head"):BreakJoints()
  367. end
  368.  
  369. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  370. if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  371. if hit.Parent.DebounceHit.Value == true then
  372. return
  373. end
  374. end
  375. if insta == true then
  376. hit.Parent:FindFirstChild("Head"):BreakJoints()
  377. end
  378. local c = Create("ObjectValue"){
  379. Name = "creator",
  380. Value = game:service("Players").LocalPlayer,
  381. Parent = h,
  382. }
  383. game:GetService("Debris"):AddItem(c, .5)
  384. if HitSound ~= nil and HitPitch ~= nil then
  385. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  386. end
  387. local Damage = math.random(minim, maxim)
  388. local blocked = false
  389. local block = hit.Parent:findFirstChild("Block")
  390. if block ~= nil then
  391. if block.className == "IntValue" then
  392. if block.Value > 0 then
  393. blocked = true
  394. block.Value = block.Value - 1
  395. print(block.Value)
  396. end
  397. end
  398. end
  399. if blocked == false then
  400. h.Health = h.Health - Damage
  401. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
  402. else
  403. h.Health = h.Health - (Damage / 2)
  404. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
  405. end
  406. if Type == "Knockdown" then
  407. local hum = hit.Parent.Humanoid
  408. hum.PlatformStand = true
  409. coroutine.resume(coroutine.create(function(HHumanoid)
  410. swait(1)
  411. HHumanoid.PlatformStand = false
  412. end), hum)
  413. local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  414. local bodvol = Create("BodyVelocity"){
  415. velocity = angle * knockback,
  416. P = 5000,
  417. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  418. Parent = hit,
  419. }
  420. local rl = Create("BodyAngularVelocity"){
  421. P = 3000,
  422. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  423. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  424. Parent = hit,
  425. }
  426. game:GetService("Debris"):AddItem(bodvol, .5)
  427. game:GetService("Debris"):AddItem(rl, .5)
  428. elseif Type == "Normal" then
  429. local vp = Create("BodyVelocity"){
  430. P = 500,
  431. maxForce = Vector3.new(math.huge, 0, math.huge),
  432. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
  433. }
  434. if knockback > 0 then
  435. vp.Parent = hit.Parent.Torso
  436. end
  437. game:GetService("Debris"):AddItem(vp, .5)
  438. elseif Type == "Up" then
  439. local bodyVelocity = Create("BodyVelocity"){
  440. velocity = Vector3.new(0, 20, 0),
  441. P = 5000,
  442. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  443. Parent = hit,
  444. }
  445. game:GetService("Debris"):AddItem(bodyVelocity, .5)
  446. elseif Type == "DarkUp" then
  447. coroutine.resume(coroutine.create(function()
  448. for i = 0, 1, 0.1 do
  449. swait()
  450. Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
  451. end
  452. end))
  453. local bodyVelocity = Create("BodyVelocity"){
  454. velocity = Vector3.new(0, 20, 0),
  455. P = 5000,
  456. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  457. Parent = hit,
  458. }
  459. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  460. elseif Type == "Snare" then
  461. local bp = Create("BodyPosition"){
  462. P = 2000,
  463. D = 100,
  464. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  465. position = hit.Parent.Torso.Position,
  466. Parent = hit.Parent.Torso,
  467. }
  468. game:GetService("Debris"):AddItem(bp, 1)
  469. elseif Type == "Freeze" then
  470. local BodPos = Create("BodyPosition"){
  471. P = 50000,
  472. D = 1000,
  473. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  474. position = hit.Parent.Torso.Position,
  475. Parent = hit.Parent.Torso,
  476. }
  477. local BodGy = Create("BodyGyro") {
  478. maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  479. P = 20e+003,
  480. Parent = hit.Parent.Torso,
  481. cframe = hit.Parent.Torso.CFrame,
  482. }
  483. hit.Parent.Torso.Anchored = true
  484. coroutine.resume(coroutine.create(function(Part)
  485. swait(1.5)
  486. Part.Anchored = false
  487. end), hit.Parent.Torso)
  488. game:GetService("Debris"):AddItem(BodPos, 3)
  489. game:GetService("Debris"):AddItem(BodGy, 3)
  490. end
  491. local debounce = Create("BoolValue"){
  492. Name = "DebounceHit",
  493. Parent = hit.Parent,
  494. Value = true,
  495. }
  496. game:GetService("Debris"):AddItem(debounce, Delay)
  497. c = Create("ObjectValue"){
  498. Name = "creator",
  499. Value = Player,
  500. Parent = h,
  501. }
  502. game:GetService("Debris"):AddItem(c, .5)
  503. end
  504. end
  505. -------------------------------------------------------
  506. --End Damage Function--
  507. -------------------------------------------------------
  508.  
  509. -------------------------------------------------------
  510. --Start Damage Function Customization--
  511. -------------------------------------------------------
  512. function ShowDamage(Pos, Text, Time, Color)
  513. local Rate = (1 / 30)
  514. local Pos = (Pos or Vector3.new(0, 0, 0))
  515. local Text = (Text or "")
  516. local Time = (Time or 2)
  517. local Color = (Color or Color3.new(1, 0, 1))
  518. local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  519. EffectPart.Anchored = true
  520. local BillboardGui = Create("BillboardGui"){
  521. Size = UDim2.new(3, 0, 3, 0),
  522. Adornee = EffectPart,
  523. Parent = EffectPart,
  524. }
  525. local TextLabel = Create("TextLabel"){
  526. BackgroundTransparency = 1,
  527. Size = UDim2.new(1, 0, 1, 0),
  528. Text = Text,
  529. Font = "Bodoni",
  530. TextColor3 = Color,
  531. TextScaled = true,
  532. TextStrokeColor3 = Color3.fromRGB(0,0,0),
  533. Parent = BillboardGui,
  534. }
  535. game.Debris:AddItem(EffectPart, (Time))
  536. EffectPart.Parent = game:GetService("Workspace")
  537. delay(0, function()
  538. local Frames = (Time / Rate)
  539. for Frame = 1, Frames do
  540. wait(Rate)
  541. local Percent = (Frame / Frames)
  542. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  543. TextLabel.TextTransparency = Percent
  544. end
  545. if EffectPart and EffectPart.Parent then
  546. EffectPart:Destroy()
  547. end
  548. end)
  549. end
  550. -------------------------------------------------------
  551. --End Damage Function Customization--
  552. -------------------------------------------------------
  553.  
  554. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  555. for _, c in pairs(workspace:children()) do
  556. local hum = c:findFirstChild("Humanoid")
  557. if hum ~= nil then
  558. local head = c:findFirstChild("Head")
  559. if head ~= nil then
  560. local targ = head.Position - Part.Position
  561. local mag = targ.magnitude
  562. if magni >= mag and c.Name ~= plr.Name then
  563. Damage(head, head, mindam, maxdam, knock, Type, root, 0.1, "http://www.roblox.com/asset/?id=0", 1.2)
  564. end
  565. end
  566. end
  567. end
  568. end
  569.  
  570.  
  571. CFuncs = {
  572. Part = {
  573. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  574. local Part = Create("Part")({
  575. Parent = Parent,
  576. Reflectance = Reflectance,
  577. Transparency = Transparency,
  578. CanCollide = false,
  579. Locked = true,
  580. BrickColor = BrickColor.new(tostring(BColor)),
  581. Name = Name,
  582. Size = Size,
  583. Material = Material
  584. })
  585. RemoveOutlines(Part)
  586. return Part
  587. end
  588. },
  589. Mesh = {
  590. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  591. local Msh = Create(Mesh)({
  592. Parent = Part,
  593. Offset = OffSet,
  594. Scale = Scale
  595. })
  596. if Mesh == "SpecialMesh" then
  597. Msh.MeshType = MeshType
  598. Msh.MeshId = MeshId
  599. end
  600. return Msh
  601. end
  602. },
  603. Mesh = {
  604. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  605. local Msh = Create(Mesh)({
  606. Parent = Part,
  607. Offset = OffSet,
  608. Scale = Scale
  609. })
  610. if Mesh == "SpecialMesh" then
  611. Msh.MeshType = MeshType
  612. Msh.MeshId = MeshId
  613. end
  614. return Msh
  615. end
  616. },
  617. Weld = {
  618. Create = function(Parent, Part0, Part1, C0, C1)
  619. local Weld = Create("Weld")({
  620. Parent = Parent,
  621. Part0 = Part0,
  622. Part1 = Part1,
  623. C0 = C0,
  624. C1 = C1
  625. })
  626. return Weld
  627. end
  628. },
  629. Sound = {
  630. Create = function(id, par, vol, pit)
  631. coroutine.resume(coroutine.create(function()
  632. local S = Create("Sound")({
  633. Volume = vol,
  634. Pitch = pit or 1,
  635. SoundId = id,
  636. Parent = par or workspace
  637. })
  638. wait()
  639. S:play()
  640. game:GetService("Debris"):AddItem(S, 6)
  641. end))
  642. end
  643. },
  644. ParticleEmitter = {
  645. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  646. local fp = Create("ParticleEmitter")({
  647. Parent = Parent,
  648. Color = ColorSequence.new(Color1, Color2),
  649. LightEmission = LightEmission,
  650. Size = Size,
  651. Texture = Texture,
  652. Transparency = Transparency,
  653. ZOffset = ZOffset,
  654. Acceleration = Accel,
  655. Drag = Drag,
  656. LockedToPart = LockedToPart,
  657. VelocityInheritance = VelocityInheritance,
  658. EmissionDirection = EmissionDirection,
  659. Enabled = Enabled,
  660. Lifetime = LifeTime,
  661. Rate = Rate,
  662. Rotation = Rotation,
  663. RotSpeed = RotSpeed,
  664. Speed = Speed,
  665. VelocitySpread = VelocitySpread
  666. })
  667. return fp
  668. end
  669. }
  670. }
  671. function RemoveOutlines(part)
  672. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  673. end
  674. function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  675. local Part = Create("Part")({
  676. formFactor = FormFactor,
  677. Parent = Parent,
  678. Reflectance = Reflectance,
  679. Transparency = Transparency,
  680. CanCollide = false,
  681. Locked = true,
  682. BrickColor = BrickColor.new(tostring(BColor)),
  683. Name = Name,
  684. Size = Size,
  685. Material = Material
  686. })
  687. RemoveOutlines(Part)
  688. return Part
  689. end
  690. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  691. local Msh = Create(Mesh)({
  692. Parent = Part,
  693. Offset = OffSet,
  694. Scale = Scale
  695. })
  696. if Mesh == "SpecialMesh" then
  697. Msh.MeshType = MeshType
  698. Msh.MeshId = MeshId
  699. end
  700. return Msh
  701. end
  702. function CreateWeld(Parent, Part0, Part1, C0, C1)
  703. local Weld = Create("Weld")({
  704. Parent = Parent,
  705. Part0 = Part0,
  706. Part1 = Part1,
  707. C0 = C0,
  708. C1 = C1
  709. })
  710. return Weld
  711. end
  712.  
  713.  
  714. -------------------------------------------------------
  715. --Start Effect Function--
  716. -------------------------------------------------------
  717. EffectModel = Instance.new("Model", char)
  718. Effects = {
  719. Block = {
  720. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  721. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  722. prt.Anchored = true
  723. prt.CFrame = cframe
  724. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  725. game:GetService("Debris"):AddItem(prt, 10)
  726. if Type == 1 or Type == nil then
  727. table.insert(Effects, {
  728. prt,
  729. "Block1",
  730. delay,
  731. x3,
  732. y3,
  733. z3,
  734. msh
  735. })
  736. elseif Type == 2 then
  737. table.insert(Effects, {
  738. prt,
  739. "Block2",
  740. delay,
  741. x3,
  742. y3,
  743. z3,
  744. msh
  745. })
  746. else
  747. table.insert(Effects, {
  748. prt,
  749. "Block3",
  750. delay,
  751. x3,
  752. y3,
  753. z3,
  754. msh
  755. })
  756. end
  757. end
  758. },
  759. Sphere = {
  760. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  761. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  762. prt.Anchored = true
  763. prt.CFrame = cframe
  764. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  765. game:GetService("Debris"):AddItem(prt, 10)
  766. table.insert(Effects, {
  767. prt,
  768. "Cylinder",
  769. delay,
  770. x3,
  771. y3,
  772. z3,
  773. msh
  774. })
  775. end
  776. },
  777. Cylinder = {
  778. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  779. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  780. prt.Anchored = true
  781. prt.CFrame = cframe
  782. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  783. game:GetService("Debris"):AddItem(prt, 10)
  784. table.insert(Effects, {
  785. prt,
  786. "Cylinder",
  787. delay,
  788. x3,
  789. y3,
  790. z3,
  791. msh
  792. })
  793. end
  794. },
  795. Wave = {
  796. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  797. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  798. prt.Anchored = true
  799. prt.CFrame = cframe
  800. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1 / 60, y1 / 60, z1 / 60))
  801. game:GetService("Debris"):AddItem(prt, 10)
  802. table.insert(Effects, {
  803. prt,
  804. "Cylinder",
  805. delay,
  806. x3 / 60,
  807. y3 / 60,
  808. z3 / 60,
  809. msh
  810. })
  811. end
  812. },
  813. Ring = {
  814. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  815. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  816. prt.Anchored = true
  817. prt.CFrame = cframe
  818. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  819. game:GetService("Debris"):AddItem(prt, 10)
  820. table.insert(Effects, {
  821. prt,
  822. "Cylinder",
  823. delay,
  824. x3,
  825. y3,
  826. z3,
  827. msh
  828. })
  829. end
  830. },
  831. Break = {
  832. Create = function(brickcolor, cframe, x1, y1, z1)
  833. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  834. prt.Anchored = true
  835. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  836. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  837. local num = math.random(10, 50) / 1000
  838. game:GetService("Debris"):AddItem(prt, 10)
  839. table.insert(Effects, {
  840. prt,
  841. "Shatter",
  842. num,
  843. prt.CFrame,
  844. math.random() - math.random(),
  845. 0,
  846. math.random(50, 100) / 100
  847. })
  848. end
  849. },
  850. Spiral = {
  851. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  852. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  853. prt.Anchored = true
  854. prt.CFrame = cframe
  855. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://1051557", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  856. game:GetService("Debris"):AddItem(prt, 10)
  857. table.insert(Effects, {
  858. prt,
  859. "Cylinder",
  860. delay,
  861. x3,
  862. y3,
  863. z3,
  864. msh
  865. })
  866. end
  867. },
  868. Push = {
  869. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  870. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  871. prt.Anchored = true
  872. prt.CFrame = cframe
  873. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://437347603", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  874. game:GetService("Debris"):AddItem(prt, 10)
  875. table.insert(Effects, {
  876. prt,
  877. "Cylinder",
  878. delay,
  879. x3,
  880. y3,
  881. z3,
  882. msh
  883. })
  884. end
  885. }
  886. }
  887. function part(formfactor ,parent, reflectance, transparency, brickcolor, name, size)
  888. local fp = IT("Part")
  889. fp.formFactor = formfactor
  890. fp.Parent = parent
  891. fp.Reflectance = reflectance
  892. fp.Transparency = transparency
  893. fp.CanCollide = false
  894. fp.Locked = true
  895. fp.BrickColor = brickcolor
  896. fp.Name = name
  897. fp.Size = size
  898. fp.Position = tors.Position
  899. RemoveOutlines(fp)
  900. fp.Material = "SmoothPlastic"
  901. fp:BreakJoints()
  902. return fp
  903. end
  904.  
  905. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  906. local mesh = IT(Mesh)
  907. mesh.Parent = part
  908. if Mesh == "SpecialMesh" then
  909. mesh.MeshType = meshtype
  910. if meshid ~= "nil" then
  911. mesh.MeshId = "http://www.roblox.com/asset/?id="..meshid
  912. end
  913. end
  914. mesh.Offset = offset
  915. mesh.Scale = scale
  916. return mesh
  917. end
  918.  
  919. function Magic(bonuspeed, type, pos, scale, value, color, MType)
  920. local type = type
  921. local rng = Instance.new("Part", char)
  922. rng.Anchored = true
  923. rng.BrickColor = color
  924. rng.CanCollide = false
  925. rng.FormFactor = 3
  926. rng.Name = "Ring"
  927. rng.Material = "Neon"
  928. rng.Size = Vector3.new(1, 1, 1)
  929. rng.Transparency = 0
  930. rng.TopSurface = 0
  931. rng.BottomSurface = 0
  932. rng.CFrame = pos
  933. local rngm = Instance.new("SpecialMesh", rng)
  934. rngm.MeshType = MType
  935. rngm.Scale = scale
  936. local scaler2 = 1
  937. if type == "Add" then
  938. scaler2 = 1 * value
  939. elseif type == "Divide" then
  940. scaler2 = 1 / value
  941. end
  942. coroutine.resume(coroutine.create(function()
  943. for i = 0, 10 / bonuspeed, 0.1 do
  944. swait()
  945. if type == "Add" then
  946. scaler2 = scaler2 - 0.01 * value / bonuspeed
  947. elseif type == "Divide" then
  948. scaler2 = scaler2 - 0.01 / value * bonuspeed
  949. end
  950. rng.Transparency = rng.Transparency + 0.01 * bonuspeed
  951. rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, scaler2 * bonuspeed)
  952. end
  953. rng:Destroy()
  954. end))
  955. end
  956.  
  957. function Eviscerate(dude)
  958. if dude.Name ~= char then
  959. local bgf = IT("BodyGyro", dude.Head)
  960. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0)
  961. local val = IT("BoolValue", dude)
  962. val.Name = "IsHit"
  963. local ds = coroutine.wrap(function()
  964. dude:WaitForChild("Head"):BreakJoints()
  965. wait(0.5)
  966. target = nil
  967. coroutine.resume(coroutine.create(function()
  968. for i, v in pairs(dude:GetChildren()) do
  969. if v:IsA("Accessory") then
  970. v:Destroy()
  971. end
  972. if v:IsA("Humanoid") then
  973. v:Destroy()
  974. end
  975. if v:IsA("CharacterMesh") then
  976. v:Destroy()
  977. end
  978. if v:IsA("Model") then
  979. v:Destroy()
  980. end
  981. if v:IsA("Part") or v:IsA("MeshPart") then
  982. for x, o in pairs(v:GetChildren()) do
  983. if o:IsA("Decal") then
  984. o:Destroy()
  985. end
  986. end
  987. coroutine.resume(coroutine.create(function()
  988. v.Material = "Neon"
  989. v.CanCollide = false
  990. local PartEmmit1 = IT("ParticleEmitter", v)
  991. PartEmmit1.LightEmission = 1
  992. PartEmmit1.Texture = "rbxassetid://284205403"
  993. PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  994. PartEmmit1.Rate = 150
  995. PartEmmit1.Lifetime = NumberRange.new(1)
  996. PartEmmit1.Size = NumberSequence.new({
  997. NumberSequenceKeypoint.new(0, 0.75, 0),
  998. NumberSequenceKeypoint.new(1, 0, 0)
  999. })
  1000. PartEmmit1.Transparency = NumberSequence.new({
  1001. NumberSequenceKeypoint.new(0, 0, 0),
  1002. NumberSequenceKeypoint.new(1, 1, 0)
  1003. })
  1004. PartEmmit1.Speed = NumberRange.new(0, 0)
  1005. PartEmmit1.VelocitySpread = 30000
  1006. PartEmmit1.Rotation = NumberRange.new(-500, 500)
  1007. PartEmmit1.RotSpeed = NumberRange.new(-500, 500)
  1008. local BodPoss = IT("BodyPosition", v)
  1009. BodPoss.P = 3000
  1010. BodPoss.D = 1000
  1011. BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  1012. BodPoss.position = v.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15))
  1013. v.Color = maincolor.Color
  1014. coroutine.resume(coroutine.create(function()
  1015. for i = 0, 49 do
  1016. swait(1)
  1017. v.Transparency = v.Transparency + 0.08
  1018. end
  1019. wait(0.5)
  1020. PartEmmit1.Enabled = false
  1021. wait(3)
  1022. v:Destroy()
  1023. dude:Destroy()
  1024. end))
  1025. end))
  1026. end
  1027. end
  1028. end))
  1029. end)
  1030. ds()
  1031. end
  1032. end
  1033.  
  1034. function FindNearestHead(Position, Distance, SinglePlayer)
  1035. if SinglePlayer then
  1036. return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude
  1037. end
  1038. local List = {}
  1039. for i, v in pairs(workspace:GetChildren()) do
  1040. if v:IsA("Model") and v:findFirstChild("Head") and v ~= char and Distance >= (v.Head.Position - Position).magnitude then
  1041. table.insert(List, v)
  1042. end
  1043. end
  1044. return List
  1045. end
  1046.  
  1047. function Aura(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos, MType)
  1048. local type = type
  1049. local rng = Instance.new("Part", char)
  1050. rng.Anchored = true
  1051. rng.BrickColor = color
  1052. rng.CanCollide = false
  1053. rng.FormFactor = 3
  1054. rng.Name = "Ring"
  1055. rng.Material = "Neon"
  1056. rng.Size = Vector3.new(1, 1, 1)
  1057. rng.Transparency = 0
  1058. rng.TopSurface = 0
  1059. rng.BottomSurface = 0
  1060. rng.CFrame = pos
  1061. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos
  1062. local rngm = Instance.new("SpecialMesh", rng)
  1063. rngm.MeshType = MType
  1064. rngm.Scale = Vector3.new(x1, y1, z1)
  1065. local scaler2 = 1
  1066. local speeder = FastSpeed
  1067. if type == "Add" then
  1068. scaler2 = 1 * value
  1069. elseif type == "Divide" then
  1070. scaler2 = 1 / value
  1071. end
  1072. coroutine.resume(coroutine.create(function()
  1073. for i = 0, 10 / bonuspeed, 0.1 do
  1074. swait()
  1075. if type == "Add" then
  1076. scaler2 = scaler2 - 0.01 * value / bonuspeed
  1077. elseif type == "Divide" then
  1078. scaler2 = scaler2 - 0.01 / value * bonuspeed
  1079. end
  1080. speeder = speeder - 0.01 * FastSpeed * bonuspeed
  1081. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed
  1082. rng.Transparency = rng.Transparency + 0.01 * bonuspeed
  1083. rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0)
  1084. end
  1085. rng:Destroy()
  1086. end))
  1087. end
  1088.  
  1089. function SoulSteal(dude)
  1090. if dude.Name ~= char then
  1091. local bgf = IT("BodyGyro", dude.Head)
  1092. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0)
  1093. local val = IT("BoolValue", dude)
  1094. val.Name = "IsHit"
  1095. local torso = (dude:FindFirstChild'Head' or dude:FindFirstChild'Torso' or dude:FindFirstChild'UpperTorso' or dude:FindFirstChild'LowerTorso' or dude:FindFirstChild'HumanoidRootPart')
  1096. local soulst = coroutine.wrap(function()
  1097. local soul = Instance.new("Part",dude)
  1098. soul.Size = Vector3.new(1,1,1)
  1099. soul.CanCollide = false
  1100. soul.Anchored = false
  1101. soul.Position = torso.Position
  1102. soul.Transparency = 1
  1103. local PartEmmit1 = IT("ParticleEmitter", soul)
  1104. PartEmmit1.LightEmission = 1
  1105. PartEmmit1.Texture = "rbxassetid://569507414"
  1106. PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  1107. PartEmmit1.Rate = 250
  1108. PartEmmit1.Lifetime = NumberRange.new(1.6)
  1109. PartEmmit1.Size = NumberSequence.new({
  1110. NumberSequenceKeypoint.new(0, 1, 0),
  1111. NumberSequenceKeypoint.new(1, 0, 0)
  1112. })
  1113. PartEmmit1.Transparency = NumberSequence.new({
  1114. NumberSequenceKeypoint.new(0, 0, 0),
  1115. NumberSequenceKeypoint.new(1, 1, 0)
  1116. })
  1117. PartEmmit1.Speed = NumberRange.new(0, 0)
  1118. PartEmmit1.VelocitySpread = 30000
  1119. PartEmmit1.Rotation = NumberRange.new(-360, 360)
  1120. PartEmmit1.RotSpeed = NumberRange.new(-360, 360)
  1121. local BodPoss = IT("BodyPosition", soul)
  1122. BodPoss.P = 3000
  1123. BodPoss.D = 1000
  1124. BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  1125. BodPoss.position = torso.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15))
  1126. wait(1.6)
  1127. soul.Touched:connect(function(hit)
  1128. if hit.Parent == char then
  1129. soul:Destroy()
  1130. end
  1131. end)
  1132. wait(1.2)
  1133. while soul do
  1134. swait()
  1135. PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  1136. BodPoss.Position = tors.Position
  1137. end
  1138. end)
  1139. soulst()
  1140. end
  1141. end
  1142. function FaceMouse()
  1143. local Cam = workspace.CurrentCamera
  1144. return {
  1145. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  1146. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  1147. }
  1148. end
  1149. -------------------------------------------------------
  1150. --End Effect Function--
  1151. -------------------------------------------------------
  1152. function Cso(ID, PARENT, VOLUME, PITCH)
  1153. local NSound = nil
  1154. coroutine.resume(coroutine.create(function()
  1155. NSound = IT("Sound", PARENT)
  1156. NSound.Volume = VOLUME
  1157. NSound.Pitch = PITCH
  1158. NSound.SoundId = "http://www.roblox.com/asset/?id="..ID
  1159. swait()
  1160. NSound:play()
  1161. game:GetService("Debris"):AddItem(NSound, 10)
  1162. end))
  1163. return NSound
  1164. end
  1165. -------------------------------------------------------
  1166. --End Important Functions--
  1167. -------------------------------------------------------
  1168.  
  1169.  
  1170. -------------------------------------------------------
  1171. --Start Music Option--
  1172. -------------------------------------------------------
  1173. local Music = Instance.new("Sound",tors)
  1174. Music.Volume = 2.5
  1175. Music.SoundId = "rbxassetid://1284189610"
  1176. Music.Looped = true
  1177. Music.Pitch = 1 --Pitcher
  1178. Music:Play()
  1179. -------------------------------------------------------
  1180. --End Music Option--
  1181. -------------------------------------------------------
  1182.  
  1183.  
  1184. -------------------------------------------------------
  1185. --Start Attacks N Stuff--
  1186. -------------------------------------------------------
  1187. local sine=0
  1188. function HitboxFunction(Pose,Trans, lifetime, siz1, siz2, siz3, Radie, Min, Max, kb, atype)
  1189. local Hitboxpart = Instance.new("Part", EffectModel)
  1190. Hitboxpart.BrickColor = BrickColor.new("New Yeller")
  1191. RemoveOutlines(Hitboxpart)
  1192. Hitboxpart.Size = Vector3.new(siz1, siz2, siz3)
  1193. Hitboxpart.CanCollide = false
  1194. Hitboxpart.Transparency = Trans
  1195. Hitboxpart.Anchored = true
  1196. Hitboxpart.CFrame = Pose
  1197. game:GetService("Debris"):AddItem(Hitboxpart, lifetime)
  1198. MagniDamage(Hitboxpart, Radie, Min, Max, kb, atype)
  1199. end
  1200. -------------------------------------------------------
  1201. --End Attacks N Stuff--
  1202. -------------------------------------------------------
  1203. Sprinting = false
  1204. mouse.KeyDown:connect(function(key)
  1205. if key == 'z' and attack == false and Sprinting == false then
  1206. angry = true
  1207. Sprinting = true
  1208. Music.SoundId = "rbxassetid://678294116"
  1209. hum.WalkSpeed = 35
  1210. Eye.Transparency = 0
  1211. Eye2.Transparency = 0
  1212. elseif key == 'z' and attack == false and Sprinting == true then
  1213. angry = false
  1214. Sprinting = false
  1215. Music.SoundId = "rbxassetid://1284189610"
  1216. hum.WalkSpeed = 8
  1217. Eye.Transparency = 1
  1218. Eye2.Transparency = 1
  1219. end
  1220. end)
  1221.  
  1222.  
  1223.  
  1224.  
  1225.  
  1226.  
  1227.  
  1228.  
  1229. -------------------------------------------------------
  1230. --Start Animations--
  1231. -------------------------------------------------------
  1232. local equipped = false
  1233. local idle = 0
  1234. local change = 1
  1235. local val = 0
  1236. local toim = 0
  1237. local idleanim = 0.4
  1238. hum.WalkSpeed = 8
  1239. hum.Animator.Parent = nil
  1240. while true do
  1241. swait()
  1242. sine = sine + change
  1243. local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude
  1244. local velderp = root.Velocity.y
  1245. hitfloor, posfloor = rayCast(root.Position, CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0)).lookVector, 4, char)
  1246. if equipped == true or equipped == false then
  1247. if attack == false then
  1248. idle = idle + 1
  1249. else
  1250. idle = 0
  1251. end
  1252. local exactVel = CFrame.new(root.CFrame:vectorToObjectSpace(root.Velocity))-- for footplanting
  1253. --you g00b my leg animations are complicated :joy:
  1254.  
  1255. if 1 < root.Velocity.y and hitfloor == nil then
  1256. Anim = "Jump"
  1257. if attack == false then
  1258. rootj.C0 = clerp(rootj.C0, RootCF * angles(math.min(math.max(root.Velocity.Y/100,-Rad(65)),Rad(65)),0,0),0.3)
  1259. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.3)
  1260. RW.C0 = clerp(RW.C0, CF(1.5, 0.5, 0) * angles(math.min(math.max(root.Velocity.Y/100,-Rad(35)),Rad(65)),0,Rad(15)),0.3)
  1261. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5, 0) * angles(math.min(math.max(root.Velocity.Y/100,-Rad(35)),Rad(65)),0,Rad(-15)),0.3)
  1262. LH.C0=clerp(LH.C0, CF(-1,-1.4-0.1 * Cos(sine / 20), -.6) * LHCF * angles(Rad(-5), Rad(-0), Rad(20)), 0.15)
  1263. RH.C0=clerp(RH.C0, CF(1,-2-0.1 * Cos(sine / 20), -.3) * angles(Rad(0), Rad(90), Rad(0)), .3)
  1264. end
  1265. elseif -1 > root.Velocity.y and hitfloor == nil then
  1266. Anim = "Fall"
  1267. if attack == false then
  1268. rootj.C0 = clerp(rootj.C0, RootCF * angles(math.min(math.max(root.Velocity.Y/100,-Rad(65)),Rad(65)),0,0),0.3)
  1269. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.3)
  1270. RW.C0 = clerp(RW.C0, CF(1.5, 0.5, 0) * angles(math.min(math.max(root.Velocity.Y/100,-Rad(35)),Rad(65)),0,Rad(30)),0.3)
  1271. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5, 0) * angles(math.min(math.max(root.Velocity.Y/100,-Rad(35)),Rad(65)),0,Rad(-30)),0.3)
  1272. LH.C0 = clerp(LH.C0, CF(-1,-1.4-0.1 * Cos(sine / 20), -.6) * LHCF * angles(Rad(-5), Rad(-0), Rad(20)), 0.15)
  1273. RH.C0 = clerp(RH.C0, CF(1,-2-0.1 * Cos(sine / 20), -.3) * angles(Rad(0), Rad(90), Rad(0)), .3)
  1274. end
  1275. elseif torvel < 1 and hitfloor ~= nil then
  1276. Anim = "Idle"
  1277. change = .5
  1278. if attack == false then
  1279. ll.Transparency = 1
  1280. rl.Transparency = 1
  1281. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -1.5 + 0.1 * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(0)), 0.15)
  1282. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-2.8 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3)
  1283. RH.C0 = clerp(RH.C0, CF(1, -0.1 - 0.1 * Cos(sine / 20), 0) * RHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  1284. LH.C0 = clerp(LH.C0, CF(-1, -0.1 - 0.1 * Cos(sine / 20), 0) * LHCF * angles(Rad(-2.5), Rad(0), Rad(0)), 0.15)
  1285. RW.C0 = clerp(RW.C0, CF(1.3, 0.5 + 0.02 * Sin(sine / 20), 0) * angles(Rad(0), Rad(-.6), Rad(3 + 4.5 * Sin(sine / 20))), 0.1)
  1286. LW.C0 = clerp(LW.C0, CF(-1.3, 0.5 + 0.02 * Sin(sine / 20), 0) * angles(Rad(0), Rad(-.6), Rad(-3 - 4.5 * Sin(sine / 20))), 0.1)
  1287. if angry == true then
  1288. ll.Transparency = 0
  1289. rl.Transparency = 0
  1290. HitboxFunction(ra.CFrame,1, 0.01, 1, 1, 1, 7, 30, 45, 53, "Knockdown")
  1291. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, 5 + 0.1 * Cos(sine / 20)) * angles(Rad(20 + Mrandom(-2.5,2.5)), Rad(Mrandom(-2.5,2.5)), Rad(Mrandom(-2.5,2.5))), 0.15)
  1292. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-2.8 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3)
  1293. RH.C0 = clerp(RH.C0, CF(1, -4.5 - 0.1 * Cos(sine / 20), 0) * RHCF * angles(Rad(-2.5), Rad(0), Rad(20)), 0.15)
  1294. LH.C0 = clerp(LH.C0, CF(-1, -4.5 - 0.1 * Cos(sine / 20), 0) * LHCF * angles(Rad(-2.5), Rad(0), Rad(-20)), 0.15)
  1295. RW.C0 = clerp(RW.C0, CF(1.3, 0.5 + 0.02 * Sin(sine / 20), 0) * angles(Rad(0), Rad(-.6), Rad(3 + 4.5 * Sin(sine / 20))), 0.1)
  1296. LW.C0 = clerp(LW.C0, CF(-1.3, 0.5 + 0.02 * Sin(sine / 20), 0) * angles(Rad(0), Rad(-.6), Rad(-3 - 4.5 * Sin(sine / 20))), 0.1)
  1297. end
  1298. end
  1299. elseif tors.Velocity.magnitude < 50 and hitfloor ~= nil then
  1300. Anim = "Walk"
  1301. change = .9
  1302. if attack == false then
  1303. ll.Transparency = 0
  1304. rl.Transparency = 0
  1305. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, 2 + 0.025 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7) * angles(Rad(5 - 2.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(8 * Cos(sine / 7))), 0.15)
  1306. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 7)), Rad(0), Rad(0) - hed.RotVelocity.Y / 15), 0.3)
  1307. RH.C0 = clerp(RH.C0, CF(1, -2 - 0.5 * Cos(sine / 7) / 2, 0.6 * Cos(sine / 7) / 2) * angles(Rad(-15 - 2 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 3 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  1308. LH.C0 = clerp(LH.C0, CF(-1, -2 + 0.5 * Cos(sine / 7) / 2, -0.6 * Cos(sine / 7) / 2) * angles(Rad(-15 + 2 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 3 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  1309. RW.C0 = clerp(RW.C0, CF(1.3, 0.5 + 0.05 * Sin(sine / 7), 0) * angles(Rad(37) * Cos(sine / 7) , Rad(0), Rad(-.6) - ra.RotVelocity.Y / 75), 0.1)
  1310. LW.C0 = clerp(LW.C0, CF(-1.3, 0.5 + 0.05 * Sin(sine / 7), 0) * angles(Rad(-37) * Cos(sine / 7) , Rad(0) , Rad(.6) + la.RotVelocity.Y / 75), 0.1)
  1311. if angry == true then
  1312. ll.Transparency = 0
  1313. rl.Transparency = 0
  1314. HitboxFunction(ra.CFrame,1, 0.01, 1, 1, 1, 7, 30, 45, 53, "Knockdown")
  1315. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, 2 + 0.025 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7) * angles(Rad(5 - 2.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(8 * Cos(sine / 7))), 0.15)
  1316. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 7)), Rad(0), Rad(0) - hed.RotVelocity.Y / 15), 0.3)
  1317. RH.C0 = clerp(RH.C0, CF(1, -2 - 1 * Cos(sine / 7) / 2, -1 * Cos(sine / 7) / 2) * angles(Rad(-15 - -75 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 3 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  1318. LH.C0 = clerp(LH.C0, CF(-1, -2 + 1 * Cos(sine / 7) / 2, 1 * Cos(sine / 7) / 2) * angles(Rad(-15 + -75 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 3 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  1319. RW.C0 = clerp(RW.C0, CF(1.3, 0.5 + 0.05 * Sin(sine / 7), 0) * angles(Rad(37) * Cos(sine / 7) , Rad(0), Rad(-.6) - ra.RotVelocity.Y / 75), 0.1)
  1320. LW.C0 = clerp(LW.C0, CF(-1.3, 0.5 + 0.05 * Sin(sine / 7), 0) * angles(Rad(-37) * Cos(sine / 7) , Rad(0) , Rad(.6) + la.RotVelocity.Y / 75), 0.1)
  1321. end
  1322. end
  1323. end
  1324. end
  1325. if 0 < #Effects then
  1326. for e = 1, #Effects do
  1327. if Effects[e] ~= nil then
  1328. local Thing = Effects[e]
  1329. if Thing ~= nil then
  1330. local Part = Thing[1]
  1331. local Mode = Thing[2]
  1332. local Delay = Thing[3]
  1333. local IncX = Thing[4]
  1334. local IncY = Thing[5]
  1335. local IncZ = Thing[6]
  1336. if 1 >= Thing[1].Transparency then
  1337. if Thing[2] == "Block1" then
  1338. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1339. local Mesh = Thing[1].Mesh
  1340. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1341. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1342. elseif Thing[2] == "Block2" then
  1343. Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0)
  1344. local Mesh = Thing[7]
  1345. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1346. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1347. elseif Thing[2] == "Block3" then
  1348. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) + Vector3.new(0, 0.15, 0)
  1349. local Mesh = Thing[7]
  1350. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1351. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1352. elseif Thing[2] == "Cylinder" then
  1353. local Mesh = Thing[1].Mesh
  1354. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1355. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1356. elseif Thing[2] == "Blood" then
  1357. local Mesh = Thing[7]
  1358. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0)
  1359. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1360. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1361. elseif Thing[2] == "Elec" then
  1362. local Mesh = Thing[1].Mesh
  1363. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1364. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1365. elseif Thing[2] == "Disappear" then
  1366. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1367. elseif Thing[2] == "Shatter" then
  1368. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1369. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  1370. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  1371. Thing[6] = Thing[6] + Thing[5]
  1372. end
  1373. else
  1374. Part.Parent = nil
  1375. table.remove(Effects, e)
  1376. end
  1377. end
  1378. end
  1379. end
  1380. end
  1381. end
  1382. -------------------------------------------------------
  1383. --End Animations And Script--
  1384. -------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement