Advertisement
Alt_Player

EmaVis

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