Advertisement
MrSlakyx

Viz

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