Advertisement
PR0J3CT11

Untitled

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