Advertisement
Christoffer07700Extr

edit

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