rivahaviz

Untitled

Jun 8th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 69.71 KB | None | 0 0
  1. Player = game.Players.LocalPlayer
  2. Character = Player.Character
  3. local txt = Instance.new("BillboardGui", Character)
  4. txt.Adornee = Character.Head
  5. txt.Name = "_status"
  6. txt.Size = UDim2.new(2, 0, 1.2, 0)
  7. txt.StudsOffset = Vector3.new(-9, 8, 0)
  8. local text = Instance.new("TextLabel", txt)
  9. text.Size = UDim2.new(10, 0, 7, 0)
  10. text.FontSize = "Size24"
  11. text.TextScaled = true
  12. text.TextTransparency = 0
  13. text.BackgroundTransparency = 1
  14. text.TextTransparency = 0
  15. text.TextStrokeTransparency = 0
  16. text.Font = "Antique"
  17. text.TextStrokeColor3 = Color3.new(1,1,1)
  18. text.Text = "The White Monster"
  19. wait(0.2)
  20. local plr = game:service'Players'.LocalPlayer
  21. print('Local User is '..plr.Name)
  22. print('Inked Monster Loaded')
  23. print('Wat')
  24. local char = plr.Character
  25. local hum = char.Humanoid
  26. local hed = char.Head
  27. local root = char.HumanoidRootPart
  28. local rootj = root.RootJoint
  29. local tors = char.Torso
  30. local ra = char["Right Arm"]
  31. local la = char["Left Arm"]
  32. local rl = char["Right Leg"]
  33. local ll = char["Left Leg"]
  34. local neck = tors["Neck"]
  35. local mouse = plr:GetMouse()
  36. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  37. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  38. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  39. local maincolor = BrickColor.new("Institutional white")
  40. -------------------------------------------------------
  41. --Start Whitelist and Invincibility--
  42. -------------------------------------------------------
  43. ff = Instance.new("ForceField",char)
  44. ff.Visible = false
  45. hum.Name = "Base"
  46. hum.MaxHealth = 1.0E298
  47. hum.Health = 1.0E298
  48. game:GetService("RunService"):BindToRenderStep("Bbae", 0, function()
  49. if hum.Health > 0.1 and hum.Health < 1.0E298 then
  50. hum.MaxHealth = 1.0E298
  51. hum.Health = 1.0E298
  52. end
  53. end)
  54. -------------------------------------------------------
  55. --End Whitelist and Invincibility--
  56. -------------------------------------------------------
  57.  
  58. -------------------------------------------------------
  59. --Start Good Stuff--
  60. -------------------------------------------------------
  61. cam = game.Workspace.CurrentCamera
  62. CF = CFrame.new
  63. angles = CFrame.Angles
  64. attack = false
  65. Euler = CFrame.fromEulerAnglesXYZ
  66. Rad = math.rad
  67. IT = Instance.new
  68. BrickC = BrickColor.new
  69. Cos = math.cos
  70. Acos = math.acos
  71. Sin = math.sin
  72. Asin = math.asin
  73. Abs = math.abs
  74. Mrandom = math.random
  75. Floor = math.floor
  76. -------------------------------------------------------
  77. --End Good Stuff--
  78. -------------------------------------------------------
  79. necko = CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  80. RSH, LSH = nil, nil
  81. RW = Instance.new("Weld")
  82. LW = Instance.new("Weld")
  83. RH = tors["Right Hip"]
  84. LH = tors["Left Hip"]
  85. RSH = tors["Right Shoulder"]
  86. LSH = tors["Left Shoulder"]
  87. RSH.Parent = nil
  88. LSH.Parent = nil
  89. RW.Name = "RW"
  90. RW.Part0 = tors
  91. RW.C0 = CF(1.5, 0.5, 0)
  92. RW.C1 = CF(0, 0.5, 0)
  93. RW.Part1 = ra
  94. RW.Parent = tors
  95. LW.Name = "LW"
  96. LW.Part0 = tors
  97. LW.C0 = CF(-1.5, 0.5, 0)
  98. LW.C1 = CF(0, 0.5, 0)
  99. LW.Part1 = la
  100. LW.Parent = tors
  101. Effects = {}
  102. -------------------------------------------------------
  103. --Start HeartBeat--
  104. -------------------------------------------------------
  105. ArtificialHB = Instance.new("BindableEvent", script)
  106. ArtificialHB.Name = "Heartbeat"
  107. script:WaitForChild("Heartbeat")
  108.  
  109. frame = 1 / 60
  110. tf = 0
  111. allowframeloss = false
  112. tossremainder = false
  113.  
  114.  
  115. lastframe = tick()
  116. script.Heartbeat:Fire()
  117.  
  118.  
  119. game:GetService("RunService").Heartbeat:connect(function(s, p)
  120. tf = tf + s
  121. if tf >= frame then
  122. if allowframeloss then
  123. script.Heartbeat:Fire()
  124. lastframe = tick()
  125. else
  126. for i = 1, math.floor(tf / frame) do
  127. script.Heartbeat:Fire()
  128. end
  129. lastframe = tick()
  130. end
  131. if tossremainder then
  132. tf = 0
  133. else
  134. tf = tf - frame * math.floor(tf / frame)
  135. end
  136. end
  137. end)
  138. -------------------------------------------------------
  139. --End HeartBeat--
  140. -------------------------------------------------------
  141.  
  142. -------------------------------------------------------
  143. --Start Important Functions--
  144. -------------------------------------------------------
  145. function swait(num)
  146. if num == 0 or num == nil then
  147. game:service("RunService").Stepped:wait(0)
  148. else
  149. for i = 0, num do
  150. game:service("RunService").Stepped:wait(0)
  151. end
  152. end
  153. end
  154. function thread(f)
  155. coroutine.resume(coroutine.create(f))
  156. end
  157. function clerp(a, b, t)
  158. local qa = {
  159. QuaternionFromCFrame(a)
  160. }
  161. local qb = {
  162. QuaternionFromCFrame(b)
  163. }
  164. local ax, ay, az = a.x, a.y, a.z
  165. local bx, by, bz = b.x, b.y, b.z
  166. local _t = 1 - t
  167. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  168. end
  169. function QuaternionFromCFrame(cf)
  170. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  171. local trace = m00 + m11 + m22
  172. if trace > 0 then
  173. local s = math.sqrt(1 + trace)
  174. local recip = 0.5 / s
  175. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  176. else
  177. local i = 0
  178. if m00 < m11 then
  179. i = 1
  180. end
  181. if m22 > (i == 0 and m00 or m11) then
  182. i = 2
  183. end
  184. if i == 0 then
  185. local s = math.sqrt(m00 - m11 - m22 + 1)
  186. local recip = 0.5 / s
  187. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  188. elseif i == 1 then
  189. local s = math.sqrt(m11 - m22 - m00 + 1)
  190. local recip = 0.5 / s
  191. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  192. elseif i == 2 then
  193. local s = math.sqrt(m22 - m00 - m11 + 1)
  194. local recip = 0.5 / s
  195. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  196. end
  197. end
  198. end
  199. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  200. local xs, ys, zs = x + x, y + y, z + z
  201. local wx, wy, wz = w * xs, w * ys, w * zs
  202. local xx = x * xs
  203. local xy = x * ys
  204. local xz = x * zs
  205. local yy = y * ys
  206. local yz = y * zs
  207. local zz = z * zs
  208. 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))
  209. end
  210. function QuaternionSlerp(a, b, t)
  211. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  212. local startInterp, finishInterp
  213. if cosTheta >= 1.0E-4 then
  214. if 1 - cosTheta > 1.0E-4 then
  215. local theta = math.acos(cosTheta)
  216. local invSinTheta = 1 / Sin(theta)
  217. startInterp = Sin((1 - t) * theta) * invSinTheta
  218. finishInterp = Sin(t * theta) * invSinTheta
  219. else
  220. startInterp = 1 - t
  221. finishInterp = t
  222. end
  223. elseif 1 + cosTheta > 1.0E-4 then
  224. local theta = math.acos(-cosTheta)
  225. local invSinTheta = 1 / Sin(theta)
  226. startInterp = Sin((t - 1) * theta) * invSinTheta
  227. finishInterp = Sin(t * theta) * invSinTheta
  228. else
  229. startInterp = t - 1
  230. finishInterp = t
  231. end
  232. 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
  233. end
  234. function rayCast(Position, Direction, Range, Ignore)
  235. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  236. end
  237. local RbxUtility = LoadLibrary("RbxUtility")
  238. local Create = RbxUtility.Create
  239.  
  240. -------------------------------------------------------
  241. --Start Damage Function--
  242. -------------------------------------------------------
  243. function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  244. if hit.Parent == nil then
  245. return
  246. end
  247. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  248. for _, v in pairs(hit.Parent:children()) do
  249. if v:IsA("Humanoid") then
  250. h = v
  251. end
  252. end
  253. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then
  254.  
  255. hit.Parent:FindFirstChild("Head"):BreakJoints()
  256. end
  257.  
  258. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  259. if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  260. if hit.Parent.DebounceHit.Value == true then
  261. return
  262. end
  263. end
  264. if insta == true then
  265. hit.Parent:FindFirstChild("Head"):BreakJoints()
  266. end
  267. local c = Create("ObjectValue"){
  268. Name = "creator",
  269. Value = game:service("Players").LocalPlayer,
  270. Parent = h,
  271. }
  272. game:GetService("Debris"):AddItem(c, .5)
  273. if HitSound ~= nil and HitPitch ~= nil then
  274. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  275. end
  276. local Damage = math.random(minim, maxim)
  277. local blocked = false
  278. local block = hit.Parent:findFirstChild("Block")
  279. if block ~= nil then
  280. if block.className == "IntValue" then
  281. if block.Value > 0 then
  282. blocked = true
  283. block.Value = block.Value - 1
  284. print(block.Value)
  285. end
  286. end
  287. end
  288. if blocked == false then
  289. h.Health = h.Health - Damage
  290. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.2, tors.BrickColor.Color)
  291. else
  292. h.Health = h.Health - (Damage / 2)
  293. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
  294. end
  295. if Type == "Knockdown" then
  296. local hum = hit.Parent.Humanoid
  297. hum.PlatformStand = true
  298. coroutine.resume(coroutine.create(function(HHumanoid)
  299. swait(1)
  300. HHumanoid.PlatformStand = false
  301. end), hum)
  302. local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  303. local bodvol = Create("BodyVelocity"){
  304. velocity = angle * knockback,
  305. P = 5000,
  306. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  307. Parent = hit,
  308. }
  309. local rl = Create("BodyAngularVelocity"){
  310. P = 3000,
  311. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  312. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  313. Parent = hit,
  314. }
  315. game:GetService("Debris"):AddItem(bodvol, .5)
  316. game:GetService("Debris"):AddItem(rl, .5)
  317. elseif Type == "Normal" then
  318. local vp = Create("BodyVelocity"){
  319. P = 500,
  320. maxForce = Vector3.new(math.huge, 0, math.huge),
  321. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
  322. }
  323. if knockback > 0 then
  324. vp.Parent = hit.Parent.Torso
  325. end
  326. game:GetService("Debris"):AddItem(vp, .5)
  327. elseif Type == "Up" then
  328. local bodyVelocity = Create("BodyVelocity"){
  329. velocity = Vector3.new(0, 20, 0),
  330. P = 5000,
  331. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  332. Parent = hit,
  333. }
  334. game:GetService("Debris"):AddItem(bodyVelocity, .5)
  335. elseif Type == "DarkUp" then
  336. coroutine.resume(coroutine.create(function()
  337. for i = 0, 1, 0.1 do
  338. swait()
  339. Effects.Block.Create(BrickColor.new("Institutional white"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
  340. end
  341. end))
  342. local bodyVelocity = Create("BodyVelocity"){
  343. velocity = Vector3.new(0, 20, 0),
  344. P = 5000,
  345. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  346. Parent = hit,
  347. }
  348. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  349. elseif Type == "Snare" then
  350. local bp = Create("BodyPosition"){
  351. P = 2000,
  352. D = 100,
  353. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  354. position = hit.Parent.Torso.Position,
  355. Parent = hit.Parent.Torso,
  356. }
  357. game:GetService("Debris"):AddItem(bp, 1)
  358. elseif Type == "Freeze" then
  359. local BodPos = Create("BodyPosition"){
  360. P = 50000,
  361. D = 1000,
  362. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  363. position = hit.Parent.Torso.Position,
  364. Parent = hit.Parent.Torso,
  365. }
  366. local BodGy = Create("BodyGyro") {
  367. maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  368. P = 20e+003,
  369. Parent = hit.Parent.Torso,
  370. cframe = hit.Parent.Torso.CFrame,
  371. }
  372. hit.Parent.Torso.Anchored = true
  373. coroutine.resume(coroutine.create(function(Part)
  374. swait(1.5)
  375. Part.Anchored = false
  376. end), hit.Parent.Torso)
  377. game:GetService("Debris"):AddItem(BodPos, 3)
  378. game:GetService("Debris"):AddItem(BodGy, 3)
  379. end
  380. local debounce = Create("BoolValue"){
  381. Name = "DebounceHit",
  382. Parent = hit.Parent,
  383. Value = true,
  384. }
  385. game:GetService("Debris"):AddItem(debounce, Delay)
  386. c = Create("ObjectValue"){
  387. Name = "creator",
  388. Value = Player,
  389. Parent = h,
  390. }
  391. game:GetService("Debris"):AddItem(c, .5)
  392. end
  393. end
  394. -------------------------------------------------------
  395. --End Damage Function--
  396. -------------------------------------------------------
  397.  
  398. -------------------------------------------------------
  399. --Start Damage Function Customization--
  400. -------------------------------------------------------
  401. function ShowDamage(Pos, Text, Time, Color)
  402. local Rate = (1 / 30)
  403. local Pos = (Pos or Vector3.new(0, 0, 0))
  404. local Text = (Text or "")
  405. local Time = (Time or 2)
  406. local Color = (Color or Color3.new(1, 2, 5))
  407. local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  408. EffectPart.Anchored = true
  409. local BillboardGui = Create("BillboardGui"){
  410. Size = UDim2.new(3, 0, 3, 0),
  411. Adornee = EffectPart,
  412. Parent = EffectPart,
  413. }
  414. local TextLabel = Create("TextLabel"){
  415. BackgroundTransparency = 1,
  416. Size = UDim2.new(1, 0, 1, 0),
  417. Text = Text,
  418. Font = "Bodoni",
  419. TextColor3 = Color,
  420. TextScaled = true,
  421. TextStrokeColor3 = Color3.fromRGB(0,0,0),
  422. Parent = BillboardGui,
  423. }
  424. game.Debris:AddItem(EffectPart, (Time))
  425. EffectPart.Parent = game:GetService("Workspace")
  426. delay(0, function()
  427. local Frames = (Time / Rate)
  428. for Frame = 1, Frames do
  429. wait(Rate)
  430. local Percent = (Frame / Frames)
  431. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  432. TextLabel.TextTransparency = Percent
  433. end
  434. if EffectPart and EffectPart.Parent then
  435. EffectPart:Destroy()
  436. end
  437. end)
  438. end
  439. -------------------------------------------------------
  440. --End Damage Function Customization--
  441. -------------------------------------------------------
  442.  
  443. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  444. for _, c in pairs(workspace:children()) do
  445. local hum = c:findFirstChild("Humanoid")
  446. if hum ~= nil then
  447. local head = c:findFirstChild("Head")
  448. if head ~= nil then
  449. local targ = head.Position - Part.Position
  450. local mag = targ.magnitude
  451. if magni >= mag and c.Name ~= plr.Name then
  452. Damage(head, head, mindam, maxdam, knock, Type, root, 0.1, "http://www.roblox.com/asset/?id=0", 1.2)
  453. end
  454. end
  455. end
  456. end
  457. end
  458.  
  459.  
  460. CFuncs = {
  461. Part = {
  462. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  463. local Part = Create("Part")({
  464. Parent = Parent,
  465. Reflectance = Reflectance,
  466. Transparency = Transparency,
  467. CanCollide = false,
  468. Locked = true,
  469. BrickColor = BrickColor.new(tostring(BColor)),
  470. Name = Name,
  471. Size = Size,
  472. Material = Material
  473. })
  474. RemoveOutlines(Part)
  475. return Part
  476. end
  477. },
  478. Mesh = {
  479. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  480. local Msh = Create(Mesh)({
  481. Parent = Part,
  482. Offset = OffSet,
  483. Scale = Scale
  484. })
  485. if Mesh == "SpecialMesh" then
  486. Msh.MeshType = MeshType
  487. Msh.MeshId = MeshId
  488. end
  489. return Msh
  490. end
  491. },
  492. Mesh = {
  493. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  494. local Msh = Create(Mesh)({
  495. Parent = Part,
  496. Offset = OffSet,
  497. Scale = Scale
  498. })
  499. if Mesh == "SpecialMesh" then
  500. Msh.MeshType = MeshType
  501. Msh.MeshId = MeshId
  502. end
  503. return Msh
  504. end
  505. },
  506. Weld = {
  507. Create = function(Parent, Part0, Part1, C0, C1)
  508. local Weld = Create("Weld")({
  509. Parent = Parent,
  510. Part0 = Part0,
  511. Part1 = Part1,
  512. C0 = C0,
  513. C1 = C1
  514. })
  515. return Weld
  516. end
  517. },
  518. Sound = {
  519. Create = function(id, par, vol, pit)
  520. coroutine.resume(coroutine.create(function()
  521. local S = Create("Sound")({
  522. Volume = vol,
  523. Pitch = pit or 1,
  524. SoundId = id,
  525. Parent = par or workspace
  526. })
  527. wait()
  528. S:play()
  529. game:GetService("Debris"):AddItem(S, 6)
  530. end))
  531. end
  532. },
  533. ParticleEmitter = {
  534. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  535. local fp = Create("ParticleEmitter")({
  536. Parent = Parent,
  537. Color = ColorSequence.new(Color1, Color2),
  538. LightEmission = LightEmission,
  539. Size = Size,
  540. Texture = Texture,
  541. Transparency = Transparency,
  542. ZOffset = ZOffset,
  543. Acceleration = Accel,
  544. Drag = Drag,
  545. LockedToPart = LockedToPart,
  546. VelocityInheritance = VelocityInheritance,
  547. EmissionDirection = EmissionDirection,
  548. Enabled = Enabled,
  549. Lifetime = LifeTime,
  550. Rate = Rate,
  551. Rotation = Rotation,
  552. RotSpeed = RotSpeed,
  553. Speed = Speed,
  554. VelocitySpread = VelocitySpread
  555. })
  556. return fp
  557. end
  558. }
  559. }
  560. function RemoveOutlines(part)
  561. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  562. end
  563. function CreatePart1(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  564. local Part = Create("Part")({
  565. formFactor = FormFactor,
  566. Parent = Parent,
  567. Reflectance = Reflectance,
  568. Transparency = Transparency,
  569. CanCollide = false,
  570. Locked = true,
  571. BrickColor = BrickColor.new(tostring(BColor)),
  572. Name = Name,
  573. Size = Size,
  574. Material = Material
  575. })
  576. RemoveOutlines(Part)
  577. return Part
  578. end
  579. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  580. local NEWPART = IT("Part")
  581. NEWPART.formFactor = FORMFACTOR
  582. NEWPART.Reflectance = REFLECTANCE
  583. NEWPART.Transparency = TRANSPARENCY
  584. NEWPART.CanCollide = false
  585. NEWPART.Locked = true
  586. NEWPART.Anchored = true
  587. if ANCHOR == false then
  588. NEWPART.Anchored = false
  589. end
  590. NEWPART.BrickColor = BrickC(tostring(BRICKCOLOR))
  591. NEWPART.Name = NAME
  592. NEWPART.Size = SIZE
  593. NEWPART.Position = tors.Position
  594. NEWPART.Material = MATERIAL
  595. NEWPART:BreakJoints()
  596. NEWPART.Parent = PARENT
  597. return NEWPART
  598. end
  599. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  600. local Msh = Create(Mesh)({
  601. Parent = Part,
  602. Offset = OffSet,
  603. Scale = Scale
  604. })
  605. if Mesh == "SpecialMesh" then
  606. Msh.MeshType = MeshType
  607. Msh.MeshId = MeshId
  608. end
  609. return Msh
  610. end
  611. function CreateWeld(Parent, Part0, Part1, C0, C1)
  612. local Weld = Create("Weld")({
  613. Parent = Parent,
  614. Part0 = Part0,
  615. Part1 = Part1,
  616. C0 = C0,
  617. C1 = C1
  618. })
  619. return Weld
  620. end
  621.  
  622.  
  623. -------------------------------------------------------
  624. --Start Effect Function--
  625. -------------------------------------------------------
  626. EffectModel = Instance.new("Model", char)
  627. Effects = {
  628. Block = {
  629. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  630. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  631. prt.Anchored = true
  632. prt.CFrame = cframe
  633. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  634. game:GetService("Debris"):AddItem(prt, 10)
  635. if Type == 1 or Type == nil then
  636. table.insert(Effects, {
  637. prt,
  638. "Block1",
  639. delay,
  640. x3,
  641. y3,
  642. z3,
  643. msh
  644. })
  645. elseif Type == 2 then
  646. table.insert(Effects, {
  647. prt,
  648. "Block2",
  649. delay,
  650. x3,
  651. y3,
  652. z3,
  653. msh
  654. })
  655. else
  656. table.insert(Effects, {
  657. prt,
  658. "Block3",
  659. delay,
  660. x3,
  661. y3,
  662. z3,
  663. msh
  664. })
  665. end
  666. end
  667. },
  668. Sphere = {
  669. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  670. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  671. prt.Anchored = true
  672. prt.CFrame = cframe
  673. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  674. game:GetService("Debris"):AddItem(prt, 10)
  675. table.insert(Effects, {
  676. prt,
  677. "Cylinder",
  678. delay,
  679. x3,
  680. y3,
  681. z3,
  682. msh
  683. })
  684. end
  685. },
  686. Cylinder = {
  687. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  688. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  689. prt.Anchored = true
  690. prt.CFrame = cframe
  691. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  692. game:GetService("Debris"):AddItem(prt, 10)
  693. table.insert(Effects, {
  694. prt,
  695. "Cylinder",
  696. delay,
  697. x3,
  698. y3,
  699. z3,
  700. msh
  701. })
  702. end
  703. },
  704. Wave = {
  705. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  706. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  707. prt.Anchored = true
  708. prt.CFrame = cframe
  709. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(1, 2, 5), Vector3.new(x1 / 60, y1 / 60, z1 / 60))
  710. game:GetService("Debris"):AddItem(prt, 10)
  711. table.insert(Effects, {
  712. prt,
  713. "Cylinder",
  714. delay,
  715. x3 / 60,
  716. y3 / 60,
  717. z3 / 60,
  718. msh
  719. })
  720. end
  721. },
  722. Ring = {
  723. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  724. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  725. prt.Anchored = true
  726. prt.CFrame = cframe
  727. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(1, 2, 5), Vector3.new(x1, y1, z1))
  728. game:GetService("Debris"):AddItem(prt, 10)
  729. table.insert(Effects, {
  730. prt,
  731. "Cylinder",
  732. delay,
  733. x3,
  734. y3,
  735. z3,
  736. msh
  737. })
  738. end
  739. },
  740. Break = {
  741. Create = function(brickcolor, cframe, x1, y1, z1)
  742. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  743. prt.Anchored = true
  744. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  745. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  746. local num = math.random(10, 50) / 1000
  747. game:GetService("Debris"):AddItem(prt, 10)
  748. table.insert(Effects, {
  749. prt,
  750. "Shatter",
  751. num,
  752. prt.CFrame,
  753. math.random() - math.random(),
  754. 0,
  755. math.random(50, 100) / 100
  756. })
  757. end
  758. },
  759. Spiral = {
  760. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  761. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  762. prt.Anchored = true
  763. prt.CFrame = cframe
  764. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://1051557", Vector3.new(1, 2, 5), 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. Push = {
  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("SpecialMesh", prt, "FileMesh", "rbxassetid://437347603", Vector3.new(1, 2, 5), 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. }
  796. function part(formfactor ,parent, reflectance, transparency, brickcolor, name, size)
  797. local fp = IT("Part")
  798. fp.formFactor = formfactor
  799. fp.Parent = parent
  800. fp.Reflectance = reflectance
  801. fp.Transparency = transparency
  802. fp.CanCollide = false
  803. fp.Locked = true
  804. fp.BrickColor = brickcolor
  805. fp.Name = name
  806. fp.Size = size
  807. fp.Position = tors.Position
  808. RemoveOutlines(fp)
  809. fp.Material = "SmoothPlastic"
  810. fp:BreakJoints()
  811. return fp
  812. end
  813.  
  814. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  815. local mesh = IT(Mesh)
  816. mesh.Parent = part
  817. if Mesh == "SpecialMesh" then
  818. mesh.MeshType = meshtype
  819. if meshid ~= "nil" then
  820. mesh.MeshId = "http://www.roblox.com/asset/?id="..meshid
  821. end
  822. end
  823. mesh.Offset = offset
  824. mesh.Scale = scale
  825. return mesh
  826. end
  827.  
  828. function Magic(bonuspeed, type, pos, scale, value, color, MType)
  829. local type = type
  830. local rng = Instance.new("Part", char)
  831. rng.Anchored = true
  832. rng.BrickColor = color
  833. rng.CanCollide = false
  834. rng.FormFactor = 3
  835. rng.Name = "Ring"
  836. rng.Material = "Neon"
  837. rng.Size = Vector3.new(1, 1, 1)
  838. rng.Transparency = 0
  839. rng.TopSurface = 0
  840. rng.BottomSurface = 0
  841. rng.CFrame = pos
  842. local rngm = Instance.new("SpecialMesh", rng)
  843. rngm.MeshType = MType
  844. rngm.Scale = scale
  845. local scaler2 = 1
  846. if type == "Add" then
  847. scaler2 = 1 * value
  848. elseif type == "Divide" then
  849. scaler2 = 1 / value
  850. end
  851. coroutine.resume(coroutine.create(function()
  852. for i = 0, 10 / bonuspeed, 0.1 do
  853. swait()
  854. if type == "Add" then
  855. scaler2 = scaler2 - 0.01 * value / bonuspeed
  856. elseif type == "Divide" then
  857. scaler2 = scaler2 - 0.01 / value * bonuspeed
  858. end
  859. rng.Transparency = rng.Transparency + 0.01 * bonuspeed
  860. rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, scaler2 * bonuspeed)
  861. end
  862. rng:Destroy()
  863. end))
  864. end
  865.  
  866. function Eviscerate(dude)
  867. if dude.Name ~= char then
  868. local bgf = IT("BodyGyro", dude.Head)
  869. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0)
  870. local val = IT("BoolValue", dude)
  871. val.Name = "IsHit"
  872. local ds = coroutine.wrap(function()
  873. dude:WaitForChild("Head"):BreakJoints()
  874. wait(0.5)
  875. target = nil
  876. coroutine.resume(coroutine.create(function()
  877. for i, v in pairs(dude:GetChildren()) do
  878. if v:IsA("Accessory") then
  879. v:Destroy()
  880. end
  881. if v:IsA("Humanoid") then
  882. v:Destroy()
  883. end
  884. if v:IsA("CharacterMesh") then
  885. v:Destroy()
  886. end
  887. if v:IsA("Model") then
  888. v:Destroy()
  889. end
  890. if v:IsA("Part") or v:IsA("MeshPart") then
  891. for x, o in pairs(v:GetChildren()) do
  892. if o:IsA("Decal") then
  893. o:Destroy()
  894. end
  895. end
  896. coroutine.resume(coroutine.create(function()
  897. v.Material = "Neon"
  898. v.CanCollide = false
  899. local PartEmmit1 = IT("ParticleEmitter", v)
  900. PartEmmit1.LightEmission = 1
  901. PartEmmit1.Texture = "rbxassetid://284205403"
  902. PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  903. PartEmmit1.Rate = 150
  904. PartEmmit1.Lifetime = NumberRange.new(1)
  905. PartEmmit1.Size = NumberSequence.new({
  906. NumberSequenceKeypoint.new(0, 0.75, 0),
  907. NumberSequenceKeypoint.new(1, 0, 0)
  908. })
  909. PartEmmit1.Transparency = NumberSequence.new({
  910. NumberSequenceKeypoint.new(0, 0, 0),
  911. NumberSequenceKeypoint.new(1, 1, 0)
  912. })
  913. PartEmmit1.Speed = NumberRange.new(0, 0)
  914. PartEmmit1.VelocitySpread = 30000
  915. PartEmmit1.Rotation = NumberRange.new(-500, 500)
  916. PartEmmit1.RotSpeed = NumberRange.new(-500, 500)
  917. local BodPoss = IT("BodyPosition", v)
  918. BodPoss.P = 3000
  919. BodPoss.D = 1000
  920. BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  921. BodPoss.position = v.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15))
  922. v.Color = maincolor.Color
  923. coroutine.resume(coroutine.create(function()
  924. for i = 0, 49 do
  925. swait(1)
  926. v.Transparency = v.Transparency + 0.08
  927. end
  928. wait(0.5)
  929. PartEmmit1.Enabled = false
  930. wait(3)
  931. v:Destroy()
  932. dude:Destroy()
  933. end))
  934. end))
  935. end
  936. end
  937. end))
  938. end)
  939. ds()
  940. end
  941. end
  942.  
  943. function FindNearestHead(Position, Distance, SinglePlayer)
  944. if SinglePlayer then
  945. return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude
  946. end
  947. local List = {}
  948. for i, v in pairs(workspace:GetChildren()) do
  949. if v:IsA("Model") and v:findFirstChild("Head") and v ~= char and Distance >= (v.Head.Position - Position).magnitude then
  950. table.insert(List, v)
  951. end
  952. end
  953. return List
  954. end
  955.  
  956. function Aura(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos, MType)
  957. local type = type
  958. local rng = Instance.new("Part", char)
  959. rng.Anchored = true
  960. rng.BrickColor = color
  961. rng.CanCollide = false
  962. rng.FormFactor = 3
  963. rng.Name = "Ring"
  964. rng.Material = "Neon"
  965. rng.Size = Vector3.new(1, 1, 1)
  966. rng.Transparency = 0
  967. rng.TopSurface = 0
  968. rng.BottomSurface = 0
  969. rng.CFrame = pos
  970. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos
  971. local rngm = Instance.new("SpecialMesh", rng)
  972. rngm.MeshType = MType
  973. rngm.Scale = Vector3.new(x1, y1, z1)
  974. local scaler2 = 1
  975. local speeder = FastSpeed
  976. if type == "Add" then
  977. scaler2 = 1 * value
  978. elseif type == "Divide" then
  979. scaler2 = 1 / value
  980. end
  981. coroutine.resume(coroutine.create(function()
  982. for i = 0, 10 / bonuspeed, 0.1 do
  983. swait()
  984. if type == "Add" then
  985. scaler2 = scaler2 - 0.01 * value / bonuspeed
  986. elseif type == "Divide" then
  987. scaler2 = scaler2 - 0.01 / value * bonuspeed
  988. end
  989. speeder = speeder - 0.01 * FastSpeed * bonuspeed
  990. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed
  991. rng.Transparency = rng.Transparency + 0.01 * bonuspeed
  992. rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0)
  993. end
  994. rng:Destroy()
  995. end))
  996. end
  997.  
  998. function SoulSteal(dude)
  999. if dude.Name ~= char then
  1000. local bgf = IT("BodyGyro", dude.Head)
  1001. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0)
  1002. local val = IT("BoolValue", dude)
  1003. val.Name = "IsHit"
  1004. local torso = (dude:FindFirstChild'Head' or dude:FindFirstChild'Torso' or dude:FindFirstChild'UpperTorso' or dude:FindFirstChild'LowerTorso' or dude:FindFirstChild'HumanoidRootPart')
  1005. local soulst = coroutine.wrap(function()
  1006. local soul = Instance.new("Part",dude)
  1007. soul.Size = Vector3.new(1,1,1)
  1008. soul.CanCollide = false
  1009. soul.Anchored = false
  1010. soul.Position = torso.Position
  1011. soul.Transparency = 1
  1012. local PartEmmit1 = IT("ParticleEmitter", soul)
  1013. PartEmmit1.LightEmission = 1
  1014. PartEmmit1.Texture = "rbxassetid://569507414"
  1015. PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  1016. PartEmmit1.Rate = 250
  1017. PartEmmit1.Lifetime = NumberRange.new(1.6)
  1018. PartEmmit1.Size = NumberSequence.new({
  1019. NumberSequenceKeypoint.new(0, 1, 0),
  1020. NumberSequenceKeypoint.new(1, 0, 0)
  1021. })
  1022. PartEmmit1.Transparency = NumberSequence.new({
  1023. NumberSequenceKeypoint.new(0, 0, 0),
  1024. NumberSequenceKeypoint.new(1, 1, 0)
  1025. })
  1026. PartEmmit1.Speed = NumberRange.new(0, 0)
  1027. PartEmmit1.VelocitySpread = 30000
  1028. PartEmmit1.Rotation = NumberRange.new(-360, 360)
  1029. PartEmmit1.RotSpeed = NumberRange.new(-360, 360)
  1030. local BodPoss = IT("BodyPosition", soul)
  1031. BodPoss.P = 3000
  1032. BodPoss.D = 1000
  1033. BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  1034. BodPoss.position = torso.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15))
  1035. wait(1.6)
  1036. soul.Touched:connect(function(hit)
  1037. if hit.Parent == char then
  1038. soul:Destroy()
  1039. end
  1040. end)
  1041. wait(1.2)
  1042. while soul do
  1043. swait()
  1044. PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  1045. BodPoss.Position = tors.Position
  1046. end
  1047. end)
  1048. soulst()
  1049. end
  1050. end
  1051. function FaceMouse()
  1052. local Cam = workspace.CurrentCamera
  1053. return {
  1054. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  1055. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  1056. }
  1057. end
  1058. -------------------------------------------------------
  1059. --End Effect Function--
  1060. -------------------------------------------------------
  1061. function Cso(ID, PARENT, VOLUME, PITCH)
  1062. local NSound = nil
  1063. coroutine.resume(coroutine.create(function()
  1064. NSound = IT("Sound", PARENT)
  1065. NSound.Volume = VOLUME
  1066. NSound.Pitch = PITCH
  1067. NSound.SoundId = "http://www.roblox.com/asset/?id="..ID
  1068. swait()
  1069. NSound:play()
  1070. game:GetService("Debris"):AddItem(NSound, 10)
  1071. end))
  1072. return NSound
  1073. end
  1074. function CameraEnshaking(Length, Intensity)
  1075. coroutine.resume(coroutine.create(function()
  1076. local intensity = 1 * Intensity
  1077. local rotM = 0.01 * Intensity
  1078. for i = 0, Length, 0.1 do
  1079. swait()
  1080. intensity = intensity - 0.05 * Intensity / Length
  1081. rotM = rotM - 5.0E-4 * Intensity / Length
  1082. hum.CameraOffset = Vector3.new(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)))
  1083. 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)
  1084. end
  1085. hum.CameraOffset = Vector3.new(0, 0, 0)
  1086. end))
  1087. end
  1088.  
  1089. local Particle = IT("ParticleEmitter",nil)
  1090. Particle.Enabled = false
  1091. --Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(0.3,0.95),NumberSequenceKeypoint.new(1,1)})
  1092. Particle.LightEmission = 0.5
  1093. Particle.Rate = 150
  1094. Particle.ZOffset = 1
  1095. Particle.Rotation = NumberRange.new(-180, 180)
  1096. Particle.RotSpeed = NumberRange.new(-180, 180)
  1097. Particle.Texture = "http://www.roblox.com/asset/?id=284205403"
  1098. Particle.Color = ColorSequence.new(Color3.new(1,2,5),Color3.new(1,2,5))
  1099.  
  1100. function ParticleEmitter(Table)
  1101. local PRTCL = Particle:Clone()
  1102. local Speed = Table.Speed or 5
  1103. local Drag = Table.Drag or 0
  1104. local Size1 = Table.Size1 or 1
  1105. local Size2 = Table.Size2 or 5
  1106. local Lifetime1 = Table.Lifetime1 or 1
  1107. local Lifetime2 = Table.Lifetime2 or 1.5
  1108. local Parent = Table.Parent or tors
  1109. local Emit = Table.Emit or 100
  1110. local Offset = Table.Offset or 360
  1111. local Acel = Table.Acel or Vector3.new(0,-50,0)
  1112. local Enabled = Table.Enabled or false
  1113. PRTCL.Parent = Parent
  1114. PRTCL.Size = NumberSequence.new(Size1,Size2)
  1115. PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
  1116. PRTCL.Speed = NumberRange.new(Speed)
  1117. PRTCL.VelocitySpread = Offset
  1118. PRTCL.Drag = Drag
  1119. PRTCL.Acceleration = Acel
  1120. if Enabled == false then
  1121. PRTCL:Emit(Emit)
  1122. game:GetService("Debris"):AddItem(PRTCL,Lifetime2)
  1123. else
  1124. PRTCL.Enabled = true
  1125. end
  1126. return PRTCL
  1127. end
  1128. local PRT = ParticleEmitter({Speed = 0.3, Drag = 3, Size1 = 1.1, Size2 = 0.3, Lifetime1 = 0.2, Lifetime2 = 1, Parent = rl, Emit = 900, Offset = 360, Enabled = true})
  1129. --PRT.LockedToPart = true
  1130. local PRT = ParticleEmitter({Speed = 0.3, Drag = 3, Size1 = 1.1, Size2 = 0.3, Lifetime1 = 0.2, Lifetime2 = 1, Parent = ll, Emit = 900, Offset = 360, Enabled = true})
  1131. --PRT.LockedToPart = true
  1132. local PRT = ParticleEmitter({Speed = 0.3, Drag = 3, Size1 = 1.1, Size2 = 0.3, Lifetime1 = 0.3, Lifetime2 = 1.5, Parent = tors, Emit = 900, Offset = 360, Enabled = true})
  1133. --PRT.LockedToPart = true
  1134. local PRT = ParticleEmitter({Speed = 0.3, Drag = 3, Size1 = 1.1, Size2 = 0.3, Lifetime1 = 0.2, Lifetime2 = 1, Parent = ra, Emit = 900, Offset = 360, Enabled = true})
  1135. --PRT.LockedToPart = true
  1136. local PRT = ParticleEmitter({Speed = 0.3, Drag = 3, Size1 = 1.1, Size2 = 0.3, Lifetime1 = 0.2, Lifetime2 = 1, Parent = la, Emit = 900, Offset = 360, Enabled = true})
  1137. --PRT.LockedToPart = true
  1138. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  1139. local NEWWELD = IT(TYPE)
  1140. NEWWELD.Part0 = PART0
  1141. NEWWELD.Part1 = PART1
  1142. NEWWELD.C0 = C0
  1143. NEWWELD.C1 = C1
  1144. NEWWELD.Parent = PARENT
  1145. return NEWWELD
  1146. end
  1147.  
  1148. function MakeForm(PART,TYPE)
  1149. local MSH = nil
  1150. if TYPE == "Cyl" then
  1151. MSH = IT("CylinderMesh",PART)
  1152. elseif TYPE == "Ball" then
  1153. MSH = IT("SpecialMesh",PART)
  1154. MSH.MeshType = "Sphere"
  1155. elseif TYPE == "Wedge" then
  1156. MSH = IT("SpecialMesh",PART)
  1157. MSH.MeshType = "Wedge"
  1158. elseif TYPE == "Block" then
  1159. MSH = IT("SpecialMesh",PART)
  1160. MSH.MeshType = "Brick"
  1161. end
  1162. return MSH
  1163. end
  1164.  
  1165. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  1166. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  1167. end
  1168.  
  1169. function Sink(position,radius)
  1170. for i,v in ipairs(workspace:GetChildren()) do
  1171. if v:FindFirstChild("Hit2By"..plr.Name) == nil then
  1172. local body = v:GetChildren()
  1173. for part = 1, #body do
  1174. if(v:FindFirstChild("Hit2By"..plr.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= char) then
  1175. if(body[part].Position - position).Magnitude < radius then
  1176. if v.ClassName == "Model" then
  1177. v:FindFirstChildOfClass("Humanoid").Name = "Humanoid"
  1178. if v:FindFirstChild("Humanoid") then
  1179. local defence = Instance.new("BoolValue",v)
  1180. defence.Name = ("Hit2By"..plr.Name)
  1181. if v.Humanoid.Health ~= 0 then
  1182. local TORS = v:FindFirstChild("HumanoidRootPart") or v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso")
  1183. if TORS ~= nil then
  1184. local HITFLOOR2, HITPOS2 = Raycast(TORS.Position, (CF(TORS.Position, TORS.Position + Vector3.new(0, -1, 0))).lookVector, 25 * TORS.Size.Y/2, v)
  1185. coroutine.resume(coroutine.create(function()
  1186. if HITFLOOR2 ~= nil then
  1187. TORS.Anchored = true
  1188. local Hole2 = CreatePart(3, EffectModel, "Neon", 0, 0, "Really black", "Hole", Vector3.new(TORS.Size.X*4,0,TORS.Size.X*4))
  1189. Hole2.Color = Color3.new(1,2,5)
  1190. local MESH = MakeForm(Hole2,"Cyl")
  1191. MESH.Scale = Vector3.new(0,1,0)
  1192. Hole2.CFrame = CF(HITPOS2)
  1193. for i = 1, 10 do
  1194. swait()
  1195. MESH.Scale = MESH.Scale + Vector3.new(0.1,0,0.1)
  1196. end
  1197. --Cso("160440683", v:FindFirstChild("Head"), 10, .8)
  1198. Cso("154955269", v:FindFirstChild("Head"), 10, 1)
  1199. repeat
  1200. swait()
  1201. TORS.CFrame = TORS.CFrame * CF(0,-0.1,0)
  1202. --MESH.Scale = MESH.Scale + Vector3.new(0,1.6,0)
  1203. until TORS.Position.Y<position.Y-4
  1204. v:remove()
  1205. for i = 1, 10 do
  1206. swait()
  1207. MESH.Scale = MESH.Scale - Vector3.new(0.1,0,0.1)
  1208. end
  1209. Hole2:remove()
  1210. end
  1211. end))
  1212. end
  1213. end
  1214. end
  1215. end
  1216. --body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength
  1217. end
  1218. end
  1219. end
  1220. end
  1221. end
  1222. end
  1223. function Trail(Part)
  1224. local TRAIL = Part:Clone()
  1225. TRAIL.CanCollide = false
  1226. TRAIL.Anchored = true
  1227. TRAIL.Parent = EffectModel
  1228. TRAIL.Name = "Trail"
  1229. local TRANS = Part.Transparency
  1230. coroutine.resume(coroutine.create(function()
  1231. for i = 1, 20 do
  1232. swait()
  1233. TRAIL.Transparency = TRAIL.Transparency + ((1-TRANS)/20)
  1234. end
  1235. TRAIL:remove()
  1236. end))
  1237. end
  1238. function getRegion(point,range,ignore)
  1239. return workspace:FindPartsInRegion3WithIgnoreList(Region3.new(point-Vector3.new(1,1,1)*range/2,point+Vector3.new(1,1,1)*range/2),ignore,100)
  1240. end
  1241.  
  1242. function GetTorso(char)
  1243. return char:FindFirstChild'Torso' or char:FindFirstChild'UpperTorso' or char:FindFirstChild'LowerTorso' or char:FindFirstChild'HumanoidRootPart'
  1244. end
  1245.  
  1246. local M = {C=math.cos,R=math.rad,S=math.sin,P=math.pi,RNG=math.random,MRS=math.randomseed,H=math.huge,RRNG = function(min,max,div) return math.rad(math.random(min,max)/(div or 1)) end}
  1247.  
  1248. NewInstance = function(instance,parent,properties)
  1249. local inst = Instance.new(instance)
  1250. inst.Parent = parent
  1251. if(properties)then
  1252. for i,v in next, properties do
  1253. pcall(function() inst[i] = v end)
  1254. end
  1255. end
  1256. return inst;
  1257. end
  1258.  
  1259. function Part(parent,color,material,size,cframe,anchored,cancollide)
  1260. local part = Instance.new("Part")
  1261. part[typeof(color) == 'BrickColor' and 'BrickColor' or 'Color'] = color or Color3.new(1,2,5)
  1262. part.Material = material or Enum.Material.SmoothPlastic
  1263. part.TopSurface,part.BottomSurface=10,10
  1264. part.Size = size or Vector3.new(1,1,1)
  1265. part.CFrame = cframe or CF(0,0,0)
  1266. part.Anchored = anchored or true
  1267. part.CanCollide = cancollide or false
  1268. part.Parent = parent or char
  1269. return part
  1270. end
  1271. -------------------------------------------------------
  1272. --End Important Functions--
  1273. -------------------------------------------------------
  1274.  
  1275.  
  1276. -------------------------------------------------------
  1277. --Start Customization--
  1278. -------------------------------------------------------
  1279. local Player_Size = 1
  1280. if Player_Size ~= 1 then
  1281. root.Size = root.Size * Player_Size
  1282. tors.Size = tors.Size * Player_Size
  1283. hed.Size = hed.Size * Player_Size
  1284. ra.Size = ra.Size * Player_Size
  1285. la.Size = la.Size * Player_Size
  1286. rl.Size = rl.Size * Player_Size
  1287. ll.Size = ll.Size * Player_Size
  1288. ----------------------------------------------------------------------------------
  1289. rootj.Parent = root
  1290. neck.Parent = tors
  1291. RW.Parent = tors
  1292. LW.Parent = tors
  1293. RH.Parent = tors
  1294. LH.Parent = tors
  1295. ----------------------------------------------------------------------------------
  1296. rootj.C0 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0))
  1297. rootj.C1 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0))
  1298. neck.C0 = necko * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * angles(Rad(0), Rad(0), Rad(0))
  1299. neck.C1 = CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * angles(Rad(-90), Rad(0), Rad(180))
  1300. RW.C0 = CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* RIGHTSHOULDERC0
  1301. LW.C0 = CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* LEFTSHOULDERC0
  1302. ----------------------------------------------------------------------------------
  1303. RH.C0 = CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0))
  1304. LH.C0 = CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(-90), Rad(0)) * angles(Rad(0), Rad(0), Rad(0))
  1305. RH.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))
  1306. LH.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))
  1307. --hat.Parent = Character
  1308. end
  1309. ----------------------------------------------------------------------------------
  1310. local SONG = 163604404
  1311. local SONG2 = 0
  1312. local Music = Instance.new("Sound",tors)
  1313. Music.Volume = 2.5
  1314. Music.Looped = true
  1315. Music.Pitch = 1 --Pitcher
  1316. ----------------------------------------------------------------------------------
  1317. local equipped = false
  1318. local idle = 0
  1319. local change = 1
  1320. local val = 0
  1321. local toim = 0
  1322. local idleanim = 0.4
  1323. local sine = 0
  1324. local Sit = 1
  1325. local Mode = "Normal"
  1326. ----------------------------------------------------------------------------------
  1327. hum.WalkSpeed = 80
  1328. hum.JumpPower = 57
  1329. --hum.Animator.Parent = nil
  1330. ----------------------------------------------------------------------------------
  1331. local Hole = CreatePart(3, EffectModel, "Neon", 0, 0, "Really black", "Hole", Vector3.new(5,0,5))
  1332. local MESH = MakeForm(Hole,"Cyl")
  1333. local ROBLOXIDLEANIMATION = IT("Animation")
  1334. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  1335. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  1336. local ANIMATOR = hum.Animator
  1337. local ANIMATE = char.Animate
  1338. -------------------------------------------------------
  1339. --End Customization--
  1340. -------------------------------------------------------
  1341.  
  1342.  
  1343. -------------------------------------------------------
  1344. --Start Attacks N Stuff--
  1345. -------------------------------------------------------
  1346. function InkyWarp()
  1347. attack = true
  1348. attack = true
  1349. hum.WalkSpeed = 80
  1350. root.Anchored = true
  1351. for i = 0, 4, 0.1 do
  1352. swait()
  1353. rootj.C0 = clerp(rootj.C0, RootCF * CF(0 - 0.04 * Sin(sine / 24) * Player_Size, 0 + 0.04 * Sin(sine / 12) * Player_Size, 0 + 0.05 * Player_Size * Cos(sine / 12)) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(0 - 2.5 * Sin(sine / 24)), Rad(0)), 0.15)
  1354. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(25 - 6.5 * Cos(sine / 12)), Rad(0), Rad(20 * Cos(sine / 12))), 0.3)
  1355. RH.C0 = clerp(RH.C0, CF(1 * Player_Size, -1 * Player_Size + 0.06 * Sin(sine / 24) - 0.05 * Player_Size * Cos(sine / 12), -0.01 * Player_Size) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(84), Rad(0)) * angles(Rad(-6 - 2.5 * Sin(sine / 24)), Rad(0), Rad(0)), 0.15)
  1356. LH.C0 = clerp(LH.C0, CF(-1 * Player_Size, -1 * Player_Size - 0.06 * Sin(sine / 24) - 0.05 * Player_Size * Cos(sine / 12), -0.01 * Player_Size) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(-84), Rad(0)) * angles(Rad(-6 + 2.5 * Sin(sine / 24)), Rad(0), Rad(0)), 0.15)
  1357. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.35 + 0.15 * Cos(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(-6 + 4.5 * Sin(sine / 12)), Rad(25 + 2.5 * Sin(sine / 12)), Rad(25 + 4.5 * Sin(sine / 12))), 0.1)
  1358. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.35 + 0.15 * Cos(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(7 + 4.5 * Sin(sine / 12)), Rad(0 + 2.5 * Sin(sine / 12)), Rad(-13 - 4.5 * Sin(sine / 12))), 0.1)
  1359. end
  1360. for i = 0, 2, 0.1 do
  1361. swait()
  1362. rootj.C0 = clerp(rootj.C0, RootCF * CF(0 - 0.04 * Sin(sine / 24) * Player_Size, 0 + 0.04 * Sin(sine / 12) * Player_Size, -15 + 0.05 * Player_Size * Cos(sine / 12)) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(0 - 2.5 * Sin(sine / 24)), Rad(0)), 0.15)
  1363. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(25 - 6.5 * Cos(sine / 12)), Rad(0), Rad(20 * Cos(sine / 12))), 0.3)
  1364. RH.C0 = clerp(RH.C0, CF(1 * Player_Size, -1 * Player_Size + 0.06 * Sin(sine / 24) - 0.05 * Player_Size * Cos(sine / 12), -0.01 * Player_Size) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(84), Rad(0)) * angles(Rad(-6 - 2.5 * Sin(sine / 24)), Rad(0), Rad(0)), 0.15)
  1365. LH.C0 = clerp(LH.C0, CF(-1 * Player_Size, -1 * Player_Size - 0.06 * Sin(sine / 24) - 0.05 * Player_Size * Cos(sine / 12), -0.01 * Player_Size) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(-84), Rad(0)) * angles(Rad(-6 + 2.5 * Sin(sine / 24)), Rad(0), Rad(0)), 0.15)
  1366. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.35 + 0.15 * Cos(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(-6 + 4.5 * Sin(sine / 12)), Rad(25 + 2.5 * Sin(sine / 12)), Rad(25 + 4.5 * Sin(sine / 12))), 0.1)
  1367. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.35 + 0.15 * Cos(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(7 + 4.5 * Sin(sine / 12)), Rad(0 + 2.5 * Sin(sine / 12)), Rad(-13 - 4.5 * Sin(sine / 12))), 0.1)
  1368. end
  1369. for i = 1, 50 do
  1370. swait()
  1371. Trail(Hole)
  1372. MESH.Scale = MESH.Scale - Vector3.new(0.02,0,0.02)
  1373. end
  1374. local ORIGINPOS = root.Position
  1375. root.CFrame = CF(Vector3.new(mouse.Hit.p.X,root.Position.Y,mouse.Hit.p.Z),ORIGINPOS)
  1376. Cso("154955269", tors, 10, .8)
  1377. for i = 1, 50 do
  1378. swait()
  1379. MESH.Scale = MESH.Scale + Vector3.new(0.02,0,0.02)
  1380. end
  1381. for i = 0, 4, 0.1 do
  1382. swait()
  1383. rootj.C0 = clerp(rootj.C0, RootCF * CF(0 - 0.04 * Sin(sine / 24) * Player_Size, 0 + 0.04 * Sin(sine / 12) * Player_Size, 0 + 0.05 * Player_Size * Cos(sine / 12)) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(0 - 2.5 * Sin(sine / 24)), Rad(0)), 0.15)
  1384. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(25 - 6.5 * Cos(sine / 12)), Rad(0), Rad(20 * Cos(sine / 12))), 0.3)
  1385. RH.C0 = clerp(RH.C0, CF(1 * Player_Size, -1 * Player_Size + 0.06 * Sin(sine / 24) - 0.05 * Player_Size * Cos(sine / 12), -0.01 * Player_Size) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(84), Rad(0)) * angles(Rad(-6 - 2.5 * Sin(sine / 24)), Rad(0), Rad(0)), 0.15)
  1386. LH.C0 = clerp(LH.C0, CF(-1 * Player_Size, -1 * Player_Size - 0.06 * Sin(sine / 24) - 0.05 * Player_Size * Cos(sine / 12), -0.01 * Player_Size) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(-84), Rad(0)) * angles(Rad(-6 + 2.5 * Sin(sine / 24)), Rad(0), Rad(0)), 0.15)
  1387. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.35 + 0.15 * Cos(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(-6 + 4.5 * Sin(sine / 12)), Rad(25 + 2.5 * Sin(sine / 12)), Rad(25 + 4.5 * Sin(sine / 12))), 0.1)
  1388. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.35 + 0.15 * Cos(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(7 + 4.5 * Sin(sine / 12)), Rad(0 + 2.5 * Sin(sine / 12)), Rad(-13 - 4.5 * Sin(sine / 12))), 0.1)
  1389. end
  1390. attack = false
  1391. hum.WalkSpeed = 80
  1392. root.Anchored = false
  1393. end
  1394.  
  1395. -------------------------------------------------------
  1396. --End Attacks N Stuff--
  1397. -------------------------------------------------------
  1398. mouse.KeyDown:connect(function(key)
  1399. if attack == false then
  1400. if key == 'z' then
  1401. InkyWarp()
  1402. elseif key == 'p' and Mode == "Normal" then
  1403. Mode = "Chase"
  1404. SONG = 163604404
  1405. hum.WalkSpeed = 80
  1406. elseif key == 'p' and Mode == "Chase" then
  1407. Mode = "Normal"
  1408. SONG = 163604404
  1409. hum.WalkSpeed = 80
  1410. end
  1411. end
  1412. end)
  1413.  
  1414.  
  1415.  
  1416.  
  1417.  
  1418.  
  1419.  
  1420.  
  1421. -------------------------------------------------------
  1422. --Start Animations--
  1423. -------------------------------------------------------
  1424. print("By Makhail07")
  1425. coroutine.resume(coroutine.create(function()
  1426. while wait() do
  1427. if hitfloor ~= nil then
  1428. Hole.CFrame = CF(posfloor)
  1429. end
  1430. Sink(Hole.Position, Hole.Size.X/2.2 * MESH.Scale.X)
  1431. Hole.Color = Color3.new(1,2,5)
  1432. Trail(Hole)
  1433. end
  1434. end))
  1435. while true do
  1436. swait()
  1437. sine = sine + change
  1438. ANIMATE.Parent = nil
  1439. local IDLEANIMATION = hum:LoadAnimation(ROBLOXIDLEANIMATION)
  1440. IDLEANIMATION:Play()
  1441. local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude
  1442. local velderp = root.Velocity.y
  1443. hitfloor, posfloor = rayCast(root.Position, CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0)).lookVector, 4 * Player_Size, char)
  1444. if equipped == true or equipped == false then
  1445. if attack == false then
  1446. idle = idle + 1
  1447. else
  1448. idle = 0
  1449. end
  1450. if 1 < root.Velocity.y and hitfloor == nil then
  1451. Anim = "Jump"
  1452. if attack == false then
  1453. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1 * Cos(sine / 20)* Player_Size) * angles(Rad(-16), Rad(0), Rad(0)), 0.15)
  1454. neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(0 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3)
  1455. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * RHCF * angles(Rad(-6.5), Rad(0), Rad(0)), 0.15)
  1456. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -.9 - 0.1 * Cos(sine / 20), -.5* Player_Size) * LHCF * angles(Rad(-6.5), Rad(0), Rad(0)), 0.15)
  1457. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(25), Rad(-.6), Rad(13 + 4.5 * Sin(sine / 20))), 0.1)
  1458. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(25), Rad(-.6), Rad(-13 - 4.5 * Sin(sine / 20))), 0.1)
  1459. end
  1460. elseif -1 > root.Velocity.y and hitfloor == nil then
  1461. Anim = "Fall"
  1462. if attack == false then
  1463. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1 * Cos(sine / 20)* Player_Size) * angles(Rad(15), Rad(0), Rad(0)), 0.15)
  1464. neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(10 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3)
  1465. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -1 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * RHCF * angles(Rad(-9.5), Rad(0), Rad(20)), 0.15)
  1466. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -.4 - 0.1 * Cos(sine / 20)* Player_Size, -.5* Player_Size) * LHCF * angles(Rad(-9.5), Rad(0), Rad(20)), 0.15)
  1467. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(65), Rad(-.6), Rad(75 + 4.5 * Sin(sine / 20))), 0.1)
  1468. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(55), Rad(-.6), Rad(-75 - 4.5 * Sin(sine / 20))), 0.1)
  1469. end
  1470. elseif torvel < 1 and hitfloor ~= nil then
  1471. Anim = "Idle"
  1472. change = 1
  1473. if attack == false then
  1474. if Mode == "Normal" then
  1475. rootj.C0 = clerp(rootj.C0, RootCF * CF(0 - 0.04 * Sin(sine / 24) * Player_Size, 0 + 0.04 * Sin(sine / 12) * Player_Size, 0 + 0.05 * Player_Size * Cos(sine / 12)) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(0 - 2.5 * Sin(sine / 24)), Rad(0)), 0.15)
  1476. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(25 - 6.5 * Cos(sine / 12)), Rad(0), Rad(20 * Cos(sine / 12))), 0.3)
  1477. RH.C0 = clerp(RH.C0, CF(1 * Player_Size, -1 * Player_Size + 0.06 * Sin(sine / 24) - 0.05 * Player_Size * Cos(sine / 12), -0.01 * Player_Size) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(84), Rad(0)) * angles(Rad(-6 - 2.5 * Sin(sine / 24)), Rad(0), Rad(0)), 0.15)
  1478. LH.C0 = clerp(LH.C0, CF(-1 * Player_Size, -1 * Player_Size - 0.06 * Sin(sine / 24) - 0.05 * Player_Size * Cos(sine / 12), -0.01 * Player_Size) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(-84), Rad(0)) * angles(Rad(-6 + 2.5 * Sin(sine / 24)), Rad(0), Rad(0)), 0.15)
  1479. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.35 + 0.15 * Cos(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(-6 + 4.5 * Sin(sine / 12)), Rad(25 + 2.5 * Sin(sine / 12)), Rad(25 + 4.5 * Sin(sine / 12))), 0.1)
  1480. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.35 + 0.15 * Cos(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(7 + 4.5 * Sin(sine / 12)), Rad(0 + 2.5 * Sin(sine / 12)), Rad(-13 - 4.5 * Sin(sine / 12))), 0.1)
  1481. elseif Mode == "Chase" then
  1482. rootj.C0 = clerp(rootj.C0, RootCF * CF(0 - 0.04 * Sin(sine / 24) * Player_Size, 0 + 0.04 * Sin(sine / 12) * Player_Size, 0 + 0.05 * Player_Size * Cos(sine / 12)) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(0 - 2.5 * Sin(sine / 24)), Rad(0)), 0.15)
  1483. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-6.5 * Cos(sine / 12)), Rad(10), Rad(0)), 0.3)
  1484. RH.C0 = clerp(RH.C0, CF(1 * Player_Size, -1 * Player_Size + 0.06 * Sin(sine / 24) - 0.05 * Player_Size * Cos(sine / 12), -0.01 * Player_Size) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(84), Rad(0)) * angles(Rad(-6 - 2.5 * Sin(sine / 24)), Rad(0), Rad(0)), 0.15)
  1485. LH.C0 = clerp(LH.C0, CF(-1 * Player_Size, -1 * Player_Size - 0.06 * Sin(sine / 24) - 0.05 * Player_Size * Cos(sine / 12), -0.01 * Player_Size) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(-84), Rad(0)) * angles(Rad(-6 + 2.5 * Sin(sine / 24)), Rad(0), Rad(0)), 0.15)
  1486. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.35 + 0.15 * Cos(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(-6 + 4.5 * Sin(sine / 12)), Rad(25 + 2.5 * Sin(sine / 12)), Rad(5)), 0.1)
  1487. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.35 + 0.15 * Cos(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(7 + 4.5 * Sin(sine / 12)), Rad(0 + 2.5 * Sin(sine / 12)), Rad(-5)), 0.1)
  1488. end
  1489. end
  1490. elseif (tors.Velocity).magnitude < 200 and hitfloor ~= nil then
  1491. Anim = "Walk"
  1492. change = 1.1
  1493. if attack == false then
  1494. if Mode == "Normal" then
  1495. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.175 + 0.13 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7* Player_Size) * angles(Rad(3 - 2.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(10 * Cos(sine / 7))), 0.15)
  1496. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(0), Rad(0), Rad(0) - hed.RotVelocity.Y / 15), 0.3)
  1497. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.8 - 0.5 * Cos(sine / 7) / 2* Player_Size, 0.6 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-10 - 25 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 15 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  1498. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.8 + 0.5 * Cos(sine / 7) / 2* Player_Size, -0.6 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-10 + 25 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 15 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  1499. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 7)* Player_Size, 0* Player_Size) * angles(Rad(57) * Cos(sine / 7) , Rad(10 * Cos(sine / 7)), Rad(10) - ra.RotVelocity.Y / 75), 0.1)
  1500. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 7)* Player_Size, 0* Player_Size) * angles(Rad(-57) * Cos(sine / 7) , Rad(10 * Cos(sine / 7)) , Rad(-10) + la.RotVelocity.Y / 75), 0.1)
  1501. elseif Mode == "Chase" then
  1502. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.175 + 0.13 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7* Player_Size) * angles(Rad(3 - 2.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(17 + 8 * Cos(sine / 7))), 0.15)
  1503. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(0), Rad(0), Rad(-17) - hed.RotVelocity.Y / 15), 0.3)
  1504. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.8 - 0.5 * Cos(sine / 7) / 2* Player_Size, 0.6 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-15 - 5 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 15 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  1505. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.8 + 0.5 * Cos(sine / 7) / 2* Player_Size, -0.6 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-15 + 5 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 15 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 2 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  1506. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 7)* Player_Size, 0* Player_Size) * angles(Rad(90) , Rad(10 * Cos(sine / 7)), Rad(28) - ra.RotVelocity.Y / 75), 0.1)
  1507. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 7)* Player_Size, 0* Player_Size) * angles(Rad(-57) * Cos(sine / 7) , Rad(10 * Cos(sine / 7)) , Rad(-10) + la.RotVelocity.Y / 75), 0.1)
  1508. end
  1509. end
  1510. end
  1511. end
  1512. for _, c in pairs(char:GetDescendants()) do
  1513. if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then
  1514. c.Material = "Neon"
  1515. c.Color = Color3.new(1,2,5)
  1516. if c:FindFirstChildOfClass("SpecialMesh") then
  1517. c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
  1518. end
  1519. if c == hed then
  1520. if c:FindFirstChild("face") then
  1521. c.face:remove()
  1522. end
  1523. end
  1524. elseif c.ClassName == "Part" and c.Name == "Eye" then
  1525. c.Color = Color3.new(1,2,5)
  1526. c.Material = "Neon"
  1527. elseif c.ClassName == "CharacterMesh" or c.Name == "Body Colors" then
  1528. c:remove()
  1529. elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then
  1530. c:remove()
  1531. end
  1532. end
  1533. Music.SoundId = "rbxassetid://"..SONG
  1534. Music.Looped = true
  1535. Music.Pitch = 1
  1536. Music.Volume = 5
  1537. Music.Parent = tors
  1538. Music:Resume()
  1539. if 0 < #Effects then
  1540. for e = 1, #Effects do
  1541. if Effects[e] ~= nil then
  1542. local Thing = Effects[e]
  1543. if Thing ~= nil then
  1544. local Part = Thing[1]
  1545. local Mode = Thing[2]
  1546. local Delay = Thing[3]
  1547. local IncX = Thing[4]
  1548. local IncY = Thing[5]
  1549. local IncZ = Thing[6]
  1550. if 1 >= Thing[1].Transparency then
  1551. if Thing[2] == "Block1" then
  1552. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1553. local Mesh = Thing[1].Mesh
  1554. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1555. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1556. elseif Thing[2] == "Block2" then
  1557. Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0)
  1558. local Mesh = Thing[7]
  1559. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1560. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1561. elseif Thing[2] == "Block3" then
  1562. 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)
  1563. local Mesh = Thing[7]
  1564. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1565. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1566. elseif Thing[2] == "Cylinder" then
  1567. local Mesh = Thing[1].Mesh
  1568. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1569. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1570. elseif Thing[2] == "Blood" then
  1571. local Mesh = Thing[7]
  1572. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0)
  1573. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1574. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1575. elseif Thing[2] == "Elec" then
  1576. local Mesh = Thing[1].Mesh
  1577. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1578. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1579. elseif Thing[2] == "Disappear" then
  1580. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1581. elseif Thing[2] == "Shatter" then
  1582. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1583. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  1584. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  1585. Thing[6] = Thing[6] + Thing[5]
  1586. end
  1587. else
  1588. Part.Parent = nil
  1589. table.remove(Effects, e)
  1590. end
  1591. end
  1592. end
  1593. end
  1594. end
  1595. end
  1596. -------------------------------------------------------
  1597. --End Animations And Script--
  1598. -------------------------------------------------------
Add Comment
Please, Sign In to add comment