Advertisement
Guest User

Untitled

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