Advertisement
Christoffer07700Extr

Chain Magician V2

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