Advertisement
Zach_rookie_editor3

Runmo ( WIP )

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