Advertisement
Christoffer07700Extr

edit

Jun 22nd, 2019
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 63.83 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. Jester = IT("Model")
  1240. BWJester.Parent = char
  1241. BWJester.Name = "BWJester"
  1242. RHe = IT("Part")
  1243. RHe.Parent = BWJester
  1244. RHe.BrickColor = BrickColor.new("Really black")
  1245. RHe.Locked = true
  1246. RHe.CanCollide = false
  1247. RHe.Transparency = 0
  1248. PMesh = IT("SpecialMesh")
  1249. RHe.formFactor = "Symmetric"
  1250. PMesh.MeshType = "FileMesh"
  1251. PMesh.MeshId = "rbxassetid://13640868"
  1252. PMesh.TextureId = "rbxassetid://18987684"
  1253. PMesh.Scale = Vector3.new(1, 1, 1)
  1254. PMesh.Parent = RHe
  1255. local RWeld = IT("Weld")
  1256. RWeld.Parent = RHe
  1257. RWeld.Part0 = RHe
  1258. RWeld.Part1 = ra
  1259. RWeld.C0 = CF(0, -1.3, -0.4) * angles(Rad(180), Rad(0), Rad(-30))
  1260.  
  1261. hed.face:Remove()
  1262. hed.Transparency = 1
  1263. ----------------------------------------------------------------------------------
  1264. local naeeym2 = Instance.new("BillboardGui",char)
  1265. naeeym2.AlwaysOnTop = true
  1266. naeeym2.Size = UDim2.new(5,35,2,35)
  1267. naeeym2.StudsOffset = Vector3.new(0, 1, 0)
  1268. naeeym2.Adornee = hed
  1269. naeeym2.Name = "Name"
  1270. local tecks2 = Instance.new("TextLabel",naeeym2)
  1271. tecks2.BackgroundTransparency = 1
  1272. tecks2.TextScaled = true
  1273. tecks2.BorderSizePixel = 0
  1274. tecks2.Text = "Chain Magician"
  1275. tecks2.Font = "Fantasy"
  1276. tecks2.TextSize = 30
  1277. tecks2.TextStrokeTransparency = 0
  1278. tecks2.TextColor3 = Color3.fromRGB(98, 37, 209)
  1279. tecks2.TextStrokeColor3 = Color3.fromRGB(248, 248, 248)
  1280. tecks2.Size = UDim2.new(1, 0, 0.5, 0)
  1281. tecks2.Parent = naeeym2
  1282. ----------------------------------------------------------------------------------
  1283. local POS = mouse.Hit.p
  1284. local CHAINS = false
  1285. local CHAINLINKS = {}
  1286. local A = IT("Attachment",ra)
  1287. A.Position = Vector3.new(1,-1,0)*Player_Size
  1288. A.Orientation = Vector3.new(-90, -89.982, 0)
  1289. local B = IT("Attachment",ra)
  1290. B.Position = Vector3.new(-1,-1,0)*Player_Size
  1291. B.Orientation = Vector3.new(-90, 89.988, 0)
  1292. local C = IT("Attachment",ra)
  1293. C.Position = Vector3.new(0.5,-1.3,0)*Player_Size
  1294. C.Orientation = Vector3.new(-90, -89.982, 0)
  1295. local D = IT("Attachment",ra)
  1296. D.Position = Vector3.new(-0.5,-1.3,0)*Player_Size
  1297. D.Orientation = Vector3.new(-90, 89.988, 0)
  1298. local LIGHT = IT("Attachment",ra)
  1299. LIGHT.Position = Vector3.new(0,-1,0)*Player_Size
  1300. local LIGHT2 = IT("PointLight",LIGHT)
  1301. LIGHT2.Range = 7
  1302. LIGHT2.Brightness = 5
  1303. LIGHT2.Color = Color3.new(0,0,0)
  1304. for i = 1, 2 do
  1305. local TWIST = -2
  1306. local START = A
  1307. local END = B
  1308. if i == 1 then
  1309. START = B
  1310. END = A
  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 = 2.5
  1319. ChainLink.Attachment0 = START
  1320. ChainLink.Attachment1 = END
  1321. ChainLink.CurveSize0 = TWIST
  1322. ChainLink.CurveSize1 = TWIST
  1323. --ChainLink.FaceCamera = true
  1324. ChainLink.Segments = 45
  1325. ChainLink.Transparency = NumberSequence.new(0.25)
  1326. table.insert(CHAINLINKS,ChainLink)
  1327. end
  1328. for i = 1, 2 do
  1329. local TWIST = -1
  1330. local START = C
  1331. local END = D
  1332. if i == 1 then
  1333. START = D
  1334. END = C
  1335. end
  1336. local ChainLink = IT("Beam",tors)
  1337. ChainLink.Texture = "rbxassetid://73042633"
  1338. ChainLink.Color = ColorSequence.new(Color3.fromRGB(61, 21, 133))
  1339. ChainLink.TextureSpeed = 1
  1340. ChainLink.Width0 = 1
  1341. ChainLink.Width1 = 1
  1342. ChainLink.TextureLength = 5
  1343. ChainLink.Attachment0 = START
  1344. ChainLink.Attachment1 = END
  1345. ChainLink.CurveSize0 = TWIST
  1346. ChainLink.CurveSize1 = TWIST
  1347. --ChainLink.FaceCamera = true
  1348. ChainLink.Segments = 25
  1349. ChainLink.LightEmission = 0.5
  1350. ChainLink.Transparency = NumberSequence.new(0.25)
  1351. table.insert(CHAINLINKS,ChainLink)
  1352. end
  1353. -------------------------------------------------------
  1354. --End Customization--
  1355. -------------------------------------------------------
  1356.  
  1357.  
  1358. -------------------------------------------------------
  1359. --Start Attacks N Stuff--
  1360. -------------------------------------------------------
  1361.  
  1362. local Antideath = {}
  1363. for _, c in pairs(char:GetDescendants()) do
  1364. if c:IsA("BasePart") and c.Name ~= "Handle" then
  1365. if c ~= root and c ~= tors and c ~= hed and c ~= ra and c ~= la and c ~= rl and c ~= ll then
  1366. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  1367. end
  1368. table.insert(Antideath,{c,c.Parent,c.Material,c.Color,c.Transparency})
  1369. elseif c:IsA("JointInstance") then
  1370. table.insert(Antideath,{c,c.Parent,nil,nil,nil})
  1371. end
  1372. end
  1373.  
  1374. function antideath()
  1375. char.Parent = workspace
  1376. for e = 1, #Antideath do
  1377.  
  1378. if Antideath[e] ~= nil then
  1379.  
  1380. local STUFF = Antideath[e]
  1381. local MATERIAL = STUFF[3]
  1382. local COLOR = STUFF[4]
  1383. local PART = STUFF[1]
  1384. local PARENT = STUFF[2]
  1385. local TRANSPARENCY = STUFF[5]
  1386. if PART.ClassName == "Part" and PART ~= root then
  1387. PART.Material = MATERIAL
  1388. PART.Color = COLOR
  1389. PART.Transparency = TRANSPARENCY
  1390. end
  1391. if PART.Parent ~= PARENT then
  1392. hum:Remove()
  1393. PART.Parent = PARENT
  1394. hum = Instance.new("Humanoid",char)
  1395. end
  1396. standingup()
  1397. end
  1398. end
  1399. end
  1400.  
  1401. function standingup()
  1402. if hum == nil then
  1403. hum:Remove()
  1404. hum = Instance.new("Humanoid",char)
  1405. end
  1406. end
  1407.  
  1408.  
  1409. hum.Died:connect(function()
  1410. antideath()
  1411. standingup()
  1412. end)
  1413.  
  1414. function DRAG_THEM_TO_HELL()
  1415. if mouse.Target.Parent ~= char and mouse.Target.Parent.Parent ~= char and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  1416. local HUM = mouse.Target.Parent:FindFirstChildOfClass("Humanoid")
  1417. local TORSO = HUM.Parent:FindFirstChild("Torso") or HUM.Parent:FindFirstChild("UpperTorso")
  1418. local HEAD = HUM.Parent:FindFirstChild("Head")
  1419. if HEAD and TORSO and HUM.Health > 0 then
  1420. local GYRO = IT("BodyGyro",root)
  1421. GYRO.D = 275
  1422. GYRO.P = 20000
  1423. GYRO.MaxTorque = Vector3.new(0,40000,0)
  1424. attack = true
  1425. --hum.WalkSpeed = 0
  1426. local hit,pos,hummie;
  1427. local Hook = Part(EffectModel, Color3.fromRGB(61, 21, 133),Enum.Material.Neon,Vector3.new(.05,1.05,.05),root.CFrame,true,false)
  1428. Hook.Transparency = 1
  1429. local A = NewInstance("Attachment",Hook)
  1430. local B = NewInstance("Attachment",ra,{Position = Vector3.new(0,-ra.Size.Y/2,0)})
  1431. 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})
  1432. for i = 0, 2.3, .1 do
  1433. swait()
  1434. GYRO.cframe = CF(root.Position,TORSO.Position)
  1435. 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)
  1436. 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)
  1437. 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)
  1438. 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)
  1439. 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)
  1440. 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)
  1441. end
  1442. Cso("169105657", ra, 7, 1.2)
  1443. for i = 0, 4, .1 do
  1444. if(hit)then break end
  1445. swait()
  1446. GYRO.cframe = CF(root.Position,TORSO.Position)
  1447. Hook.CFrame = HEAD.CFrame
  1448. 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)
  1449. 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)
  1450. 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)
  1451. 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)
  1452. 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)
  1453. 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)
  1454. end
  1455. for _,v in next, getRegion(Hook.Position,1,{char}) do
  1456. if(v.Parent and GetTorso(v.Parent) and v.Parent:FindFirstChildOfClass'Humanoid')then
  1457. hit = GetTorso(v.Parent);
  1458. hummie = v.Parent:FindFirstChildOfClass'Humanoid';
  1459. break;
  1460. end
  1461. end
  1462. Cso("169105657", ra, 5, .8)
  1463. GYRO:remove()
  1464. for i = 0, 3, .1 do
  1465. swait()
  1466. --HUM.PlatformStand = true
  1467. Hook.CFrame = Hook.CFrame:lerp(ra.CFrame * CF(0, 0, -1), .2)
  1468. if(hit)then hit.CFrame = Hook.CFrame; hit.Velocity = Vector3.new()
  1469. end
  1470. if((Hook.CFrame.p-ra.CFrame.p).magnitude < 2)then
  1471. break
  1472. end
  1473. Chain.TextureLength = 3
  1474. 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)
  1475. 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)
  1476. 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)
  1477. 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)
  1478. 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)
  1479. 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)
  1480. end
  1481. hum.WalkSpeed = 38
  1482. attack = false
  1483. Hook:Destroy()
  1484. end
  1485. end
  1486. end
  1487.  
  1488.  
  1489. function END_THEM()
  1490. if mouse.Target.Parent ~= char and mouse.Target.Parent.Parent ~= char and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  1491. local HUM = mouse.Target.Parent:FindFirstChildOfClass("Humanoid")
  1492. local TORSO = HUM.Parent:FindFirstChild("Torso") or HUM.Parent:FindFirstChild("UpperTorso")
  1493. local HEAD = HUM.Parent:FindFirstChild("Head")
  1494. if HEAD and TORSO and HUM.Health > 0 then
  1495. local GYRO = IT("BodyGyro",root)
  1496. GYRO.D = 275
  1497. GYRO.P = 20000
  1498. GYRO.MaxTorque = Vector3.new(0,40000,0)
  1499. attack = true
  1500. --hum.WalkSpeed = 0
  1501. local hit,pos,hummie;
  1502. local Hook = Part(EffectModel, Color3.fromRGB(61, 21, 133),Enum.Material.Neon,Vector3.new(.05,1.05,.05),root.CFrame,true,false)
  1503. Hook.Transparency = 1
  1504. local A = NewInstance("Attachment",Hook)
  1505. local B = NewInstance("Attachment",ra,{Position = Vector3.new(0,-ra.Size.Y/2,0)})
  1506. 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})
  1507. for i = 0, 2.3, .1 do
  1508. swait()
  1509. GYRO.cframe = CF(root.Position,TORSO.Position)
  1510. 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)
  1511. 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)
  1512. 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)
  1513. 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)
  1514. 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)
  1515. 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)
  1516. end
  1517. Cso("169105657", ra, 7, 1.2)
  1518. for i = 0, 4, .1 do
  1519. if(hit)then break end
  1520. swait()
  1521. GYRO.cframe = CF(root.Position,TORSO.Position)
  1522. Hook.CFrame = HEAD.CFrame
  1523. 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)
  1524. 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)
  1525. 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)
  1526. 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)
  1527. 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)
  1528. 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)
  1529. end
  1530. for _,v in next, getRegion(Hook.Position,1,{char}) do
  1531. if(v.Parent and GetTorso(v.Parent) and v.Parent:FindFirstChildOfClass'Humanoid')then
  1532. hit = GetTorso(v.Parent);
  1533. hummie = v.Parent:FindFirstChildOfClass'Humanoid';
  1534. break;
  1535. end
  1536. end
  1537. Cso("169105657", ra, 5, .8)
  1538. GYRO:remove()
  1539. TORSO:BreakJoints()
  1540. for i = 0, 3, .1 do
  1541. swait()
  1542. --HUM.PlatformStand = true
  1543. Hook.CFrame = Hook.CFrame:lerp(ra.CFrame * CF(0, 0, -1), .2)
  1544. if(hit)then hit.CFrame = Hook.CFrame; hit.Velocity = Vector3.new()
  1545. end
  1546. if((Hook.CFrame.p-ra.CFrame.p).magnitude < 2)then
  1547. break
  1548. end
  1549. Chain.TextureLength = 3
  1550. 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)
  1551. 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)
  1552. 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)
  1553. 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)
  1554. 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)
  1555. 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)
  1556. end
  1557. hum.WalkSpeed = 38
  1558. attack = false
  1559. Hook:Destroy()
  1560. end
  1561. end
  1562. end
  1563. -------------------------------------------------------
  1564. --End Attacks N Stuff--
  1565. -------------------------------------------------------
  1566. mouse.KeyDown:connect(function(key)
  1567. if attack == false then
  1568. if key == 'z' then
  1569. DRAG_THEM_TO_HELL()
  1570. elseif key == 't' then
  1571. Cso("952180440", hed, 10, 0.8)
  1572. elseif key == 'x' then
  1573. END_THEM()
  1574. end
  1575. end
  1576. end)
  1577.  
  1578.  
  1579. godmode = coroutine.wrap(function()
  1580. for i,v in pairs(char:GetChildren()) do
  1581. if v:IsA("BasePart") and v ~= root then
  1582. v.Anchored = false
  1583. end
  1584. end
  1585. while true do
  1586. hum.MaxHealth = math.huge
  1587. wait(0.0000001)
  1588. hum.Health = math.huge
  1589. wait()
  1590. end
  1591. end)
  1592. godmode()
  1593. ff = Instance.new("ForceField", char)
  1594. ff.Visible = false
  1595.  
  1596.  
  1597.  
  1598.  
  1599.  
  1600. -------------------------------------------------------
  1601. --Start Animations--
  1602. -------------------------------------------------------
  1603. print("By Makhail07")
  1604. while true do
  1605. swait()
  1606. antideath()
  1607. standingup()
  1608. if char:FindFirstChildOfClass("Humanoid") == nil then
  1609. hum = IT("Humanoid",char)
  1610. end
  1611. sine = sine + change
  1612. local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude
  1613. local velderp = root.Velocity.y
  1614. hitfloor, posfloor = rayCast(root.Position, CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0)).lookVector, 4* Player_Size, char)
  1615. if equipped == true or equipped == false then
  1616. if attack == false then
  1617. idle = idle + 1
  1618. else
  1619. idle = 0
  1620. end
  1621. if 1 < root.Velocity.y and hitfloor == nil then
  1622. Anim = "Jump"
  1623. if attack == false then
  1624. 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)
  1625. 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)
  1626. 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)
  1627. 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)
  1628. 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)
  1629. 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)
  1630. end
  1631. elseif -1 > root.Velocity.y and hitfloor == nil then
  1632. Anim = "Fall"
  1633. if attack == false then
  1634. 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)
  1635. 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)
  1636. 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)
  1637. 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)
  1638. 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)
  1639. 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)
  1640. end
  1641. elseif torvel < 1 and hitfloor ~= nil then
  1642. Anim = "Idle"
  1643. change = 1
  1644. if attack == false then
  1645. 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)
  1646. 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)
  1647. 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)
  1648. 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)
  1649. 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)
  1650. 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)
  1651. end
  1652. elseif torvel > 2 and torvel < 25 and hitfloor ~= nil then
  1653. Anim = "Walk"
  1654. change = 1
  1655. if attack == false then
  1656. 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)
  1657. 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)
  1658. 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)
  1659. 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)
  1660. 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)
  1661. 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)
  1662. end
  1663. elseif torvel >= 25 and hitfloor ~= nil then
  1664. Anim = "Sprint"
  1665. change = 1.35
  1666. if attack == false then
  1667. 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)
  1668. 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)
  1669. 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)
  1670. 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)
  1671. 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)
  1672. 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)
  1673. end
  1674. end
  1675. end
  1676. Music.SoundId = "rbxassetid://"..SONG
  1677. Music.Looped = true
  1678. Music.Pitch = 1
  1679. Music.Volume = 5
  1680. Music:Resume()
  1681. if Music.Parent ~= tors then
  1682. Music = Instance.new("Sound",tors)
  1683. end
  1684. if 0 < #Effects then
  1685. for e = 1, #Effects do
  1686. if Effects[e] ~= nil then
  1687. local Thing = Effects[e]
  1688. if Thing ~= nil then
  1689. local Part = Thing[1]
  1690. local Mode = Thing[2]
  1691. local Delay = Thing[3]
  1692. local IncX = Thing[4]
  1693. local IncY = Thing[5]
  1694. local IncZ = Thing[6]
  1695. if 1 >= Thing[1].Transparency then
  1696. if Thing[2] == "Block1" then
  1697. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1698. local Mesh = Thing[1].Mesh
  1699. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1700. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1701. elseif Thing[2] == "Block2" then
  1702. Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0)
  1703. local Mesh = Thing[7]
  1704. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1705. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1706. elseif Thing[2] == "Block3" then
  1707. 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)
  1708. local Mesh = Thing[7]
  1709. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1710. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1711. elseif Thing[2] == "Cylinder" then
  1712. local Mesh = Thing[1].Mesh
  1713. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1714. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1715. elseif Thing[2] == "Blood" then
  1716. local Mesh = Thing[7]
  1717. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0)
  1718. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1719. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1720. elseif Thing[2] == "Elec" then
  1721. local Mesh = Thing[1].Mesh
  1722. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1723. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1724. elseif Thing[2] == "Disappear" then
  1725. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1726. elseif Thing[2] == "Shatter" then
  1727. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1728. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  1729. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  1730. Thing[6] = Thing[6] + Thing[5]
  1731. end
  1732. else
  1733. Part.Parent = nil
  1734. table.remove(Effects, e)
  1735. end
  1736. end
  1737. end
  1738. end
  1739. end
  1740. end
  1741. -------------------------------------------------------
  1742. --End Animations And Script--
  1743. -------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement