carlosname

Untitled

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