Advertisement
Guest User

Untitled

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