Advertisement
Zebula_The_Scripter

FE CADUCUS?

Sep 5th, 2018
2,438
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 67.32 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  3. do
  4. print("FE Compatibility code by Mokiros")
  5. script.Parent = Player.Character
  6.  
  7. --RemoteEvent for communicating
  8. local Event = Instance.new("RemoteEvent")
  9. Event.Name = "UserInput_Event"
  10.  
  11. --Fake event to make stuff like Mouse.KeyDown work
  12. local function fakeEvent()
  13. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  14. t.connect = t.Connect
  15. return t
  16. end
  17.  
  18. --Creating fake input objects with fake variables
  19. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  20. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  21. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  22. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  23. end}
  24. --Merged 2 functions into one by checking amount of arguments
  25. CAS.UnbindAction = CAS.BindAction
  26.  
  27. --This function will trigger the events that have been :Connect()'ed
  28. local function te(self,ev,...)
  29. local t = m[ev]
  30. if t and t._fakeEvent and t.Function then
  31. t.Function(...)
  32. end
  33. end
  34. m.TrigEvent = te
  35. UIS.TrigEvent = te
  36.  
  37. Event.OnServerEvent:Connect(function(plr,io)
  38. if plr~=Player then return end
  39. if io.isMouse then
  40. m.Target = io.Target
  41. m.Hit = io.Hit
  42. else
  43. local b = io.UserInputState == Enum.UserInputState.Begin
  44. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  45. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  46. end
  47. for _,t in pairs(CAS.Actions) do
  48. for _,k in pairs(t.Keys) do
  49. if k==io.KeyCode then
  50. t.Function(t.Name,io.UserInputState,io)
  51. end
  52. end
  53. end
  54. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  55. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  56. end
  57. end)
  58. Event.Parent = NLS([==[
  59. local Player = game:GetService("Players").LocalPlayer
  60. local Event = script:WaitForChild("UserInput_Event")
  61.  
  62. local UIS = game:GetService("UserInputService")
  63. local input = function(io,a)
  64. if a then return end
  65. --Since InputObject is a client-side instance, we create and pass table instead
  66. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  67. end
  68. UIS.InputBegan:Connect(input)
  69. UIS.InputEnded:Connect(input)
  70.  
  71. local Mouse = Player:GetMouse()
  72. local h,t
  73. --Give the server mouse data 30 times every second, but only if the values changed
  74. --If player is not moving their mouse, client won't fire events
  75. while wait(1/30) do
  76. if h~=Mouse.Hit or t~=Mouse.Target then
  77. h,t=Mouse.Hit,Mouse.Target
  78. Event:FireServer({isMouse=true,Target=t,Hit=h})
  79. end
  80. end]==],Player.Character)
  81. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  82. end
  83.  
  84. -----------------------
  85. --[[ Name : CADUCUS? ]]--
  86. -------------------------------------------------------
  87. --A script By makhail07
  88.  
  89. --Discord Creterisk#2958
  90.  
  91. --NOTE THIS SCRIPT WAS PURELY MADE FROM MY FUCKING IMAGINATION
  92. --IF IT HAPPENS TO LOOK LIKE ANOTHER SCRIPT
  93. --DONT CALL IT A FUCKING BOOTLEG THANK YOU AND ENJOY THE SCRIPT
  94. --YOU FUCKING SKIDS,
  95. --For Those who log/decompile this, If you sell or trade this,
  96. --and I find out who you are, i will take massive action.
  97.  
  98. -------------------------------------------------------
  99.  
  100. local FavIDs = {
  101. 340106355, --Nefl Crystals
  102. 927529620, --Dimension
  103. 876981900, --Fantasy
  104. 398987889, --Ordinary Days
  105. 1117396305, --Oh wait, it's you.
  106. 885996042, --Action Winter Journey
  107. 919231299, --Sprawling Idiot Effigy
  108. 743466274, --Good Day Sunshine
  109. 727411183, --Knife Fight
  110. 1402748531, --The Earth Is Counting On You!
  111. 595230126 --Robot Language
  112. }
  113.  
  114.  
  115.  
  116. --The reality of my life isn't real but a Universe -makhail07
  117. wait()
  118. local plr = owner
  119. print('Local User is '..plr.Name)
  120. print('CADUCUS? Loaded')
  121. print('Let good be gone, Let souls be taken. through the fallen god.')
  122. local char = plr.Character
  123. local hum = char.Humanoid
  124. local hed = char.Head
  125. local root = char.HumanoidRootPart
  126. local rootj = root.RootJoint
  127. local tors = char.Torso
  128. local ra = char["Right Arm"]
  129. local la = char["Left Arm"]
  130. local rl = char["Right Leg"]
  131. local ll = char["Left Leg"]
  132. local neck = tors["Neck"]
  133. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  134. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  135. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  136. local maincolor = BrickColor.new("Really black")
  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. game:service("RunService").Stepped:wait(0)
  228. else
  229. for i = 0, num do
  230. game:service("RunService").Stepped:wait(0)
  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").LocalPlayer,
  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://1523916715"
  962. PartEmmit1.Color = ColorSequence.new(Color3.new(0, 0, 0))
  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.  
  1149. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  1150. local NEWMESH = Instance.new(MESH)
  1151. if MESH == "SpecialMesh" then
  1152. NEWMESH.MeshType = MESHTYPE
  1153. if MESHID ~= "nil" and MESHID ~= "" then
  1154. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  1155. end
  1156. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  1157. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  1158. end
  1159. end
  1160. NEWMESH.Offset = OFFSET or Vector3.new(0, 0, 0)
  1161. NEWMESH.Scale = SCALE
  1162. NEWMESH.Parent = PARENT
  1163. return NEWMESH
  1164. end
  1165.  
  1166. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  1167. local NEWPART = Instance.new("Part")
  1168. NEWPART.formFactor = FORMFACTOR
  1169. NEWPART.Reflectance = REFLECTANCE
  1170. NEWPART.Transparency = TRANSPARENCY
  1171. NEWPART.CanCollide = false
  1172. NEWPART.Locked = true
  1173. NEWPART.Anchored = true
  1174. if ANCHOR == false then
  1175. NEWPART.Anchored = false
  1176. end
  1177. NEWPART.BrickColor = BrickColor.new(tostring(BRICKCOLOR))
  1178. NEWPART.Name = NAME
  1179. NEWPART.Size = SIZE
  1180. NEWPART.Position = tors.Position
  1181. NEWPART.Material = MATERIAL
  1182. NEWPART:BreakJoints()
  1183. NEWPART.Parent = PARENT
  1184. return NEWPART
  1185. end
  1186.  
  1187. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  1188. local frame = IT("Frame")
  1189. frame.BackgroundTransparency = TRANSPARENCY
  1190. frame.BorderSizePixel = BORDERSIZEPIXEL
  1191. frame.Position = POSITION
  1192. frame.Size = SIZE
  1193. frame.BackgroundColor3 = COLOR
  1194. frame.BorderColor3 = BORDERCOLOR
  1195. frame.Name = NAME
  1196. frame.Parent = PARENT
  1197. return frame
  1198. end
  1199.  
  1200. UD2 = UDim2.new
  1201.  
  1202. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  1203. local label = IT("TextLabel")
  1204. label.BackgroundTransparency = 1
  1205. label.Size = UD2(1, 0, 1, 0)
  1206. label.Position = UD2(0, 0, 0, 0)
  1207. label.TextColor3 = TEXTCOLOR
  1208. label.TextStrokeTransparency = STROKETRANSPARENCY
  1209. label.TextTransparency = TRANSPARENCY
  1210. label.FontSize = TEXTFONTSIZE
  1211. label.Font = TEXTFONT
  1212. label.BorderSizePixel = BORDERSIZEPIXEL
  1213. label.TextScaled = false
  1214. label.Text = TEXT
  1215. label.Name = NAME
  1216. label.Parent = PARENT
  1217. return label
  1218. end
  1219.  
  1220. local Particle = IT("ParticleEmitter",nil)
  1221. Particle.Enabled = false
  1222. Particle.LightEmission = 0.2
  1223. Particle.Rate = 150
  1224. Particle.ZOffset = 1
  1225. Particle.Rotation = NumberRange.new(-180, 180)
  1226.  
  1227. function ParticleEmitter(Table)
  1228. local PRTCL = Particle:Clone()
  1229. local Color1 = Table.Color1 or Color3.new(1,1,1)
  1230. local Color2 = Table.Color2 or Color3.new(1,1,1)
  1231. local Speed = Table.Speed or 5
  1232. local Drag = Table.Drag or 0
  1233. local Size1 = Table.Size1 or 1
  1234. local Size2 = Table.Size2 or 5
  1235. local Lifetime1 = Table.Lifetime1 or 1
  1236. local Lifetime2 = Table.Lifetime2 or 1.5
  1237. local Parent = Table.Parent or tors
  1238. local Emit = Table.Emit or 100
  1239. local Offset = Table.Offset or 360
  1240. local Acel = Table.Acel or Vector3.new(0,0,0)
  1241. local Enabled = Table.Enabled or false
  1242. local Texture = Table.Texture or "281983280"
  1243. local RotS = Table.RotSpeed or NumberRange.new(-15, 15)
  1244. local Trans1 = Table.Transparency1 or 0
  1245. local Trans2 = Table.Transparency2 or 0
  1246. PRTCL.Parent = Parent
  1247. PRTCL.RotSpeed = RotS
  1248. PRTCL.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,Trans1),NumberSequenceKeypoint.new(1,Trans2)})
  1249. PRTCL.Texture = "http://www.roblox.com/asset/?id="..Texture
  1250. PRTCL.Color = ColorSequence.new(Color1,Color2)
  1251. PRTCL.Size = NumberSequence.new(Size1,Size2)
  1252. PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
  1253. PRTCL.Speed = NumberRange.new(Speed)
  1254. PRTCL.VelocitySpread = Offset
  1255. PRTCL.Drag = Drag
  1256. PRTCL.Acceleration = Acel
  1257. if Enabled == false then
  1258. PRTCL:Emit(Emit)
  1259. game:GetService("Debris"):AddItem(PRTCL,Lifetime2)
  1260. else
  1261. PRTCL.Enabled = true
  1262. end
  1263. return PRTCL
  1264. end
  1265. -------------------------------------------------------
  1266. --End Important Functions--
  1267. -------------------------------------------------------
  1268.  
  1269.  
  1270. -------------------------------------------------------
  1271. --Start Customization--
  1272. -------------------------------------------------------
  1273. local Player_Size = 1.4
  1274. if Player_Size ~= 1 then
  1275. root.Size = root.Size * Player_Size
  1276. tors.Size = tors.Size * Player_Size
  1277. hed.Size = hed.Size * Player_Size
  1278. ra.Size = ra.Size * Player_Size
  1279. la.Size = la.Size * Player_Size
  1280. rl.Size = rl.Size * Player_Size
  1281. ll.Size = ll.Size * Player_Size
  1282. ----------------------------------------------------------------------------------
  1283. rootj.Parent = root
  1284. neck.Parent = tors
  1285. RW.Parent = tors
  1286. LW.Parent = tors
  1287. RH.Parent = tors
  1288. LH.Parent = tors
  1289. ----------------------------------------------------------------------------------
  1290. rootj.C0 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0))
  1291. rootj.C1 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0))
  1292. neck.C0 = necko * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * angles(Rad(0), Rad(0), Rad(0))
  1293. neck.C1 = CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * angles(Rad(-90), Rad(0), Rad(180))
  1294. RW.C0 = CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* RIGHTSHOULDERC0
  1295. LW.C0 = CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* LEFTSHOULDERC0
  1296. ----------------------------------------------------------------------------------
  1297. 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))
  1298. 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))
  1299. 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))
  1300. 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))
  1301. --hat.Parent = Character
  1302. end
  1303. ----------------------------------------------------------------------------------
  1304. local SONG = 1066344174
  1305. local SONG2 = 0
  1306. local Music = Instance.new("Sound",tors)
  1307. Music.Volume = 2.5
  1308. Music.Looped = true
  1309. Music.Pitch = 1 --Pitcher
  1310. ----------------------------------------------------------------------------------
  1311. local equipped = false
  1312. local idle = 0
  1313. local change = 1
  1314. local val = 0
  1315. local toim = 0
  1316. local idleanim = 0.4
  1317. local sine = 0
  1318. local Sit = 1
  1319. local VALUE1 = false
  1320. local VALUE2 = false
  1321. local HOLD = false
  1322. local KEYHOLD = false
  1323. ----------------------------------------------------------------------------------
  1324. hum.WalkSpeed = 18
  1325. hum.JumpPower = 130
  1326. hum.Animator.Parent = nil
  1327. ----------------------------------------------------------------------------------
  1328. local naeeym2 = IT("BillboardGui",char)
  1329. naeeym2.AlwaysOnTop = true
  1330. naeeym2.Size = UDim2.new(5,35,2,15)
  1331. naeeym2.StudsOffset = Vector3.new(0,2,0)
  1332. naeeym2.MaxDistance = 75
  1333. naeeym2.Adornee = hed
  1334. naeeym2.Name = "Name"
  1335. --naeeym2.PlayerToHideFrom = Player
  1336. local tecks2 = IT("TextLabel",naeeym2)
  1337. tecks2.BackgroundTransparency = 1
  1338. tecks2.TextScaled = true
  1339. tecks2.BorderSizePixel = 0
  1340. tecks2.Text = "CADUCUS?"
  1341. tecks2.Font = "Garamond"
  1342. tecks2.TextSize = 30
  1343. tecks2.TextStrokeTransparency = 0
  1344. tecks2.TextColor3 = Color3.fromRGB(0, 0, 0)
  1345. tecks2.TextStrokeColor3 = Color3.fromRGB(0, 0, 0)
  1346. tecks2.Size = UDim2.new(1,0,0.5,0)
  1347. tecks2.Parent = naeeym2
  1348.  
  1349. char.Head.face.Texture = "http://www.roblox.com/asset/?id=176777497"
  1350.  
  1351. local maincol = Color3.new(0,0,0)
  1352. local maincol2 = tors.Color
  1353. ------------------------------------
  1354. char["Body Colors"].HeadColor = BrickColor.new("Really black")
  1355. char["Body Colors"].TorsoColor = BrickColor.new("Really black")
  1356. char["Body Colors"].LeftArmColor = BrickColor.new("Really black")
  1357. char["Body Colors"].RightArmColor = BrickColor.new("Really black")
  1358. char["Body Colors"].LeftLegColor = BrickColor.new("Really black")
  1359. char["Body Colors"].RightLegColor = BrickColor.new("Really black")
  1360.  
  1361. shirt = Instance.new("Shirt", char)
  1362. shirt.Name = "Shirt"
  1363. pants = Instance.new("Pants", char)
  1364. pants.Name = "Pants"
  1365. char.Shirt.ShirtTemplate = "rbxassetid://767518226"
  1366. char.Pants.PantsTemplate = "rbxassetid://2237302446"
  1367.  
  1368. ----------------------------------------------------------------------------------
  1369. PlayerGui = plr.PlayerGui
  1370. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  1371. WEAPONGUI.Name = "Weapon GUI"
  1372.  
  1373. local SKILLTEXTCOLOR = Color3.new(0,0,0)
  1374. local SKILLFONT = "Antique"
  1375. local SKILLTEXTSIZE = 6
  1376.  
  1377. local SKILL1FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.8, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), Color3.new(0,0,0), Color3.new(0, 0, 0), "Skill 1 Frame")
  1378. local SKILL2FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.8, 0, 0.86, 0), UD2(0.26, 0, 0.07, 0), Color3.new(0,0,0), Color3.new(0, 0, 0), "Skill 2 Frame")
  1379. local SKILL3FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.8, 0, 0.82, 0), UD2(0.26, 0, 0.07, 0), Color3.new(0,0,0), Color3.new(0, 0, 0), "Skill 3 Frame")
  1380. local SKILL4FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.8, 0, 0.78, 0), UD2(0.26, 0, 0.07, 0), Color3.new(0,0,0), Color3.new(0, 0, 0), "Skill 4 Frame")
  1381. local SKILL5FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.8, 0, 0.74, 0), UD2(0.26, 0, 0.07, 0), Color3.new(0,0,0), Color3.new(0, 0, 0), "Skill 5 Frame")
  1382.  
  1383. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Shadow's Victory", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Text 1")
  1384. local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Eruption", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Text 2")
  1385. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Chaos", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Text 3")
  1386. local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Death's Wish", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Text 4")
  1387. local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] Shadows Whisper", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Text 5")
  1388. -------------------------------------------------------
  1389. --End Customization--
  1390. -------------------------------------------------------
  1391.  
  1392.  
  1393. -------------------------------------------------------
  1394. --Start Attacks N Stuff--
  1395. -------------------------------------------------------
  1396. function Shadom_Circle()
  1397.  
  1398. end
  1399. function Flame_Burst()
  1400. local target = nil
  1401. local targettorso = nil
  1402. if mouse.Target.Parent ~= char and mouse.Target.Parent.Parent ~= char and mouse.Target.Parent:FindFirstChild("Humanoid") ~= nil then
  1403. if mouse.Target.Parent.Humanoid.PlatformStand == false then
  1404. target = mouse.Target.Parent.Humanoid
  1405. target2 = mouse.Target.Parent
  1406. targettorso = mouse.Target.Parent:FindFirstChild("Torso") or mouse.Target.Parent:FindFirstChild("UpperTorso")
  1407. end
  1408. end
  1409. if target ~= nil then
  1410. attack = true
  1411. hum.WalkSpeed = 0
  1412. for i = 0, 3.4, 0.1 do
  1413. swait()
  1414. hum.WalkSpeed = 0
  1415. rootj.C0 = clerp(rootj.C0, RootCF * CF(0 - 0.04 * Sin(sine / 24) * Player_Size, 0 + 0.04 * Sin(sine / 12) * Player_Size, 0 + 0.05 * Player_Size * Cos(sine / 12)) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(0 - 2.5 * Sin(sine / 24)), Rad(45)), 0.1)
  1416. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(15), Rad(0), Rad(-45)), 0.1)
  1417. RH.C0 = clerp(RH.C0, CF(1 * Player_Size, -1 * Player_Size - 0.06 - 0.05 * Player_Size * Cos(sine / 12), -0.01 * Player_Size) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(79), Rad(0)) * angles(Rad(-6 - 2.5 * Sin(sine / 24)), Rad(0), Rad(0)), 0.1)
  1418. LH.C0 = clerp(LH.C0, CF(-1 * Player_Size, -1 * Player_Size - 0.06 - 0.05 * Player_Size * Cos(sine / 12), -0.01 * Player_Size) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(-79), Rad(0)) * angles(Rad(-6 + 2.5 * Sin(sine / 24)), Rad(0), Rad(0)), 0.1)
  1419. RW.C0 = clerp(RW.C0, CF(1.5 * Player_Size, 0.5 + 0.02 * Sin(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(90), Rad(-15), Rad(46 + 4.5 * Sin(sine / 12))), 0.1)
  1420. LW.C0 = clerp(LW.C0, CF(-1.5 * Player_Size, 0.5 + 0.02 * Sin(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(25), Rad(-.6), Rad(-46 - 4.5 * Sin(sine / 12))), 0.1)
  1421. end
  1422. --ParticleEmitter({Transparency1 = 1, Transparency2 = 0, Speed = 5, Acel = Vector3.new(0,12,0), RotSpeed = NumberRange.new(-150, 150), Drag = 0, Size1 = 3, Size2 = 0, Lifetime1 = 0.4, Lifetime2 = 1, Parent = targettorso, Emit = 300, Offset = 360, Enabled = false, Color1 = Color3.new(0,0,0), Color2 = Color3.new(0,0,0), Texture = "1523916715"})
  1423. --targettorso:BreakJoints()
  1424. for i = 0, 3.4, 0.1 do
  1425. swait()
  1426. hum.WalkSpeed = 0
  1427. ParticleEmitter({Transparency1 = 1, Transparency2 = 0, Speed = 5, Acel = Vector3.new(0,12,0), RotSpeed = NumberRange.new(-150, 150), Drag = 0, Size1 = 3, Size2 = 0, Lifetime1 = 0.4, Lifetime2 = 1, Parent = targettorso, Emit = 300, Offset = 360, Enabled = false, Color1 = Color3.new(0,0,0), Color2 = Color3.new(0,0,0), Texture = "1523916715"})
  1428. rootj.C0 = clerp(rootj.C0, RootCF * CF(0 - 0.04 * Sin(sine / 24) * Player_Size, 0 + 0.04 * Sin(sine / 12) * Player_Size, 0 + 0.05 * Player_Size * Cos(sine / 12)) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(0 - 2.5 * Sin(sine / 24)), Rad(45)), 0.1)
  1429. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(15), Rad(0), Rad(-45)), 0.1)
  1430. RH.C0 = clerp(RH.C0, CF(1 * Player_Size, -1 * Player_Size - 0.06 - 0.05 * Player_Size * Cos(sine / 12), -0.01 * Player_Size) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(79), Rad(0)) * angles(Rad(-6 - 2.5 * Sin(sine / 24)), Rad(0), Rad(0)), 0.1)
  1431. LH.C0 = clerp(LH.C0, CF(-1 * Player_Size, -1 * Player_Size - 0.06 - 0.05 * Player_Size * Cos(sine / 12), -0.01 * Player_Size) * angles(Rad(0 - 2.5 * Sin(sine / 12)), Rad(-79), Rad(0)) * angles(Rad(-6 + 2.5 * Sin(sine / 24)), Rad(0), Rad(0)), 0.1)
  1432. RW.C0 = clerp(RW.C0, CF(1.5 * Player_Size, 0.5 + 0.02 * Sin(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(135), Rad(-.6), Rad(46 + 4.5 * Sin(sine / 12))), 0.1)
  1433. LW.C0 = clerp(LW.C0, CF(-1.5 * Player_Size, 0.5 + 0.02 * Sin(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(25), Rad(-.6), Rad(-46 - 4.5 * Sin(sine / 12))), 0.1)
  1434. end
  1435. for i, v in pairs(target2:GetChildren()) do
  1436. if(not char:IsAncestorOf(v))then
  1437. local hum = (v and v.Parent and v.Parent:FindFirstChildOfClass'Humanoid')
  1438. local hedder = (v and v.Parent and v.Parent:FindFirstChild'Head')
  1439. if(hum and hedder and hum.Health > 0)then
  1440. Eviscerate(v.Parent)
  1441. end
  1442. end
  1443. end
  1444. attack = false
  1445. hum.WalkSpeed = 18
  1446. end
  1447. end
  1448. -------------------------------------------------------
  1449. --End Attacks N Stuff--
  1450. -------------------------------------------------------
  1451. mouse.KeyDown:connect(function(key)
  1452. if (VALUE1 == false and attack == false) or VALUE2 == true then
  1453. if key == "q" then
  1454. if VALUE2 == false then
  1455.  
  1456. elseif VALUE2 == true then
  1457. VALUE2 = false
  1458. end
  1459. end
  1460. end
  1461. if attack == false then
  1462. if key == 't' then
  1463. Cso("907332040", hed, 10, 1.1)
  1464. elseif key == 'z' then
  1465. Shadom_Circle()
  1466. elseif key == 'b' then
  1467. Flame_Burst()
  1468. end
  1469. end
  1470. end)
  1471.  
  1472. mouse.KeyDown:connect(function(key)
  1473. if string.byte(key) == 48 then
  1474. Swing = 2
  1475. hum.WalkSpeed = 38.82
  1476. end
  1477. end)
  1478. mouse.KeyUp:connect(function(key)
  1479. if string.byte(key) == 48 then
  1480. Swing = 1
  1481. hum.WalkSpeed = 18
  1482. end
  1483. end)
  1484.  
  1485.  
  1486.  
  1487.  
  1488.  
  1489.  
  1490. -------------------------------------------------------
  1491. --Start Animations--
  1492. -------------------------------------------------------
  1493. while true do
  1494. swait()
  1495. sine = sine + change
  1496. local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude
  1497. local velderp = root.Velocity.y
  1498. hitfloor, posfloor = rayCast(root.Position, CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0)).lookVector, 4* Player_Size, char)
  1499. if equipped == true or equipped == false then
  1500. if attack == false then
  1501. idle = idle + 1
  1502. else
  1503. idle = 0
  1504. end
  1505. if 1 < root.Velocity.y and hitfloor == nil then
  1506. Anim = "Jump"
  1507. if attack == false then
  1508. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1 * Cos(sine / 20)* Player_Size) * angles(Rad(-5), Rad(0), Rad(0)), 0.15)
  1509. 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)
  1510. 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)
  1511. 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)
  1512. 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)
  1513. 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)
  1514. end
  1515. elseif -1 > root.Velocity.y and hitfloor == nil then
  1516. Anim = "Fall"
  1517. if attack == false then
  1518. 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)
  1519. neck.C0 = clerp(neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(35 - 2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3)
  1520. 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(50)), 0.15)
  1521. 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(40)), 0.15)
  1522. 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(75 + 4.5 * Sin(sine / 20))), 0.1)
  1523. 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(-75 - 4.5 * Sin(sine / 20))), 0.1)
  1524. end
  1525. elseif torvel < 1 and hitfloor ~= nil then
  1526. Anim = "Idle"
  1527. change = 1
  1528. if attack == false then
  1529. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, 2 + 0.25* Player_Size * Cos(sine / 12)) * angles(Rad(25), Rad(0), Rad(0)), 0.1)
  1530. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(15 - 6.5 * Sin(sine / 12)), Rad(0), Rad(0)), 0.05)
  1531. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -1 - 0.15 * Cos(sine / 20)* Player_Size, -0.1* Player_Size) * angles(Rad(0), Rad(76), Rad(0)) * angles(Rad(-8.5 - 6.5 * Sin(sine / 12)), Rad(0), Rad(15)), 0.1)
  1532. LH.C0 = clerp(LH.C0, CF(-1.1* Player_Size, -0.6 - 0.15 * Cos(sine / 20)* Player_Size, -0.3* Player_Size) * angles(Rad(0), Rad(-76), Rad(0)) * angles(Rad(-8.5 - 6.5 * Sin(sine / 12)), Rad(15), Rad(25)), 0.1)
  1533. RW.C0 = clerp(RW.C0, CF(1.4* Player_Size, 0.4 + 0.08 * Sin(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(25 - 6.5 * Cos(sine / 12)), Rad(-.6), Rad(13 + 6.5 * Sin(sine / 12))), 0.1)
  1534. LW.C0 = clerp(LW.C0, CF(-1.4* Player_Size, 0.4 + 0.08 * Sin(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(25 - 6.5 * Cos(sine / 12)), Rad(-.6), Rad(-13 - 6.5 * Sin(sine / 12))), 0.1)
  1535. end
  1536. elseif torvel > 2 and torvel < 25 and hitfloor ~= nil then
  1537. Anim = "Walk"
  1538. change = 1
  1539. if attack == false then
  1540. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, 2 + 0.25* Player_Size * Cos(sine / 12)) * angles(Rad(25), Rad(0), Rad(0)), 0.1)
  1541. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-15 - 6.5 * Sin(sine / 12)), Rad(20), Rad(0)), 0.1)
  1542. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -1 - 0.15 * Cos(sine / 20)* Player_Size, -0.1* Player_Size) * angles(Rad(0), Rad(76), Rad(0)) * angles(Rad(-18.5 - 6.5 * Sin(sine / 12)), Rad(0), Rad(-35)), 0.1)
  1543. LH.C0 = clerp(LH.C0, CF(-1.1* Player_Size, -0.6 - 0.15 * Cos(sine / 20)* Player_Size, -0.2* Player_Size) * angles(Rad(0), Rad(-76), Rad(0)) * angles(Rad(-18.5 - 6.5 * Sin(sine / 12)), Rad(15), Rad(35)), 0.1)
  1544. RW.C0 = clerp(RW.C0, CF(1.4* Player_Size, 0.4 + 0.08 * Sin(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(-45 - 6.5 * Cos(sine / 12)), Rad(-.6), Rad(25 + 6.5 * Sin(sine / 12))), 0.1)
  1545. LW.C0 = clerp(LW.C0, CF(-1.4* Player_Size, 0.4 + 0.08 * Sin(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(-45 - 6.5 * Cos(sine / 12)), Rad(-.6), Rad(-25 - 6.5 * Sin(sine / 12))), 0.1)
  1546. end
  1547. elseif torvel >= 25 and hitfloor ~= nil then
  1548. Anim = "Sprint"
  1549. change = 1.35
  1550. if attack == false then
  1551. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.175 + 0.025 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7* Player_Size) * angles(Rad(26 - 4.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(15 * Cos(sine / 7))), 0.15)
  1552. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-2.5 * Sin(sine / 20)), Rad(0), Rad(0) - hed.RotVelocity.Y / 15), 0.3)
  1553. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.925* Player_Size - 0.5 * Cos(sine / 7) / 2* Player_Size, 0.7 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-15 - 55 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 0.1 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  1554. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.925* Player_Size + 0.5 * Cos(sine / 7) / 2* Player_Size, -0.7 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-15 + 55 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 0.1 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  1555. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 30)* Player_Size, 0.34 * Cos(sine / 7* Player_Size)) * angles(Rad(110) * Cos(sine / 7) , Rad(0), Rad(13) - ra.RotVelocity.Y / 75), 0.15)
  1556. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 30)* Player_Size, -0.34 * Cos(sine / 7* Player_Size)) * angles(Rad(-110) * Cos(sine / 7) , Rad(0) , Rad(-13) + la.RotVelocity.Y / 75), 0.15)
  1557. end
  1558. end
  1559. end
  1560. for _, c in pairs(char:GetChildren()) do
  1561. if c.ClassName == "Part" and c.Name ~= "Detail" and c.Name ~= "Add-ons" then
  1562. c.Material = "Fabric"
  1563. if c:FindFirstChildOfClass("ParticleEmitter") then
  1564. c:FindFirstChildOfClass("ParticleEmitter"):remove()
  1565. end
  1566. if c ~= hed then
  1567. c.Color = Color3.new(0, 0, 0)
  1568. else
  1569. c.Color = Color3.new(0, 0, 0)
  1570. end
  1571. elseif c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.Name == "Body Colors" then
  1572. c:remove()
  1573. elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then
  1574. c:remove()
  1575. end
  1576. end
  1577. Music.SoundId = "rbxassetid://"..SONG
  1578. Music.Looped = true
  1579. Music.Pitch = 1
  1580. Music.Volume = 5
  1581. Music.Parent = tors
  1582. Music:Resume()
  1583. if 0 < #Effects then
  1584. for e = 1, #Effects do
  1585. if Effects[e] ~= nil then
  1586. local Thing = Effects[e]
  1587. if Thing ~= nil then
  1588. local Part = Thing[1]
  1589. local Mode = Thing[2]
  1590. local Delay = Thing[3]
  1591. local IncX = Thing[4]
  1592. local IncY = Thing[5]
  1593. local IncZ = Thing[6]
  1594. if 1 >= Thing[1].Transparency then
  1595. if Thing[2] == "Block1" then
  1596. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1597. local Mesh = Thing[1].Mesh
  1598. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1599. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1600. elseif Thing[2] == "Block2" then
  1601. Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0)
  1602. local Mesh = Thing[7]
  1603. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1604. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1605. elseif Thing[2] == "Block3" then
  1606. 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)
  1607. local Mesh = Thing[7]
  1608. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1609. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1610. elseif Thing[2] == "Cylinder" then
  1611. local Mesh = Thing[1].Mesh
  1612. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1613. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1614. elseif Thing[2] == "Blood" then
  1615. local Mesh = Thing[7]
  1616. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0)
  1617. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1618. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1619. elseif Thing[2] == "Elec" then
  1620. local Mesh = Thing[1].Mesh
  1621. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1622. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1623. elseif Thing[2] == "Disappear" then
  1624. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1625. elseif Thing[2] == "Shatter" then
  1626. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1627. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  1628. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  1629. Thing[6] = Thing[6] + Thing[5]
  1630. end
  1631. else
  1632. Part.Parent = nil
  1633. table.remove(Effects, e)
  1634. end
  1635. end
  1636. end
  1637. end
  1638. end
  1639. end
  1640. -------------------------------------------------------
  1641. --End Animations And Script--
  1642. -------------------------------------------------------
Advertisement
Comments
Add Comment
Please, Sign In to add comment
Advertisement