Advertisement
5sdfsadgaq5465

The killer dragon edit

May 29th, 2019
722
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,game,owner = owner,game
  3. local RealPlayer = Player
  4. do
  5. print("FE Compatibility code by Mokiros")
  6. local rp = RealPlayer
  7. script.Parent = rp.Character
  8.  
  9. --RemoteEvent for communicating
  10. local Event = Instance.new("RemoteEvent")
  11. Event.Name = "UserInput_Event"
  12.  
  13. --Fake event to make stuff like Mouse.KeyDown work
  14. local function fakeEvent()
  15. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  16. t.connect = t.Connect
  17. return t
  18. end
  19.  
  20. --Creating fake input objects with fake variables
  21. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  22. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  23. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  24. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  25. end}
  26. --Merged 2 functions into one by checking amount of arguments
  27. CAS.UnbindAction = CAS.BindAction
  28.  
  29. --This function will trigger the events that have been :Connect()'ed
  30. local function te(self,ev,...)
  31. local t = m[ev]
  32. if t and t._fakeEvent then
  33. for _,f in pairs(t.Functions) do
  34. f(...)
  35. end
  36. end
  37. end
  38. m.TrigEvent = te
  39. UIS.TrigEvent = te
  40.  
  41. Event.OnServerEvent:Connect(function(plr,io)
  42. if plr~=rp then return end
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. if not io.isMouse then
  46. local b = io.UserInputState == Enum.UserInputState.Begin
  47. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  48. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  49. end
  50. for _,t in pairs(CAS.Actions) do
  51. for _,k in pairs(t.Keys) do
  52. if k==io.KeyCode then
  53. t.Function(t.Name,io.UserInputState,io)
  54. end
  55. end
  56. end
  57. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  58. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  59. end
  60. end)
  61. Event.Parent = NLS([==[
  62. local Player = game:GetService("Players").LocalPlayer
  63. local Event = script:WaitForChild("UserInput_Event")
  64.  
  65. local Mouse = Player:GetMouse()
  66. local UIS = game:GetService("UserInputService")
  67. local input = function(io,a)
  68. if a then return end
  69. --Since InputObject is a client-side instance, we create and pass table instead
  70. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  71. end
  72. UIS.InputBegan:Connect(input)
  73. UIS.InputEnded:Connect(input)
  74.  
  75. local h,t
  76. --Give the server mouse data 30 times every second, but only if the values changed
  77. --If player is not moving their mouse, client won't fire events
  78. while wait(1/30) do
  79. if h~=Mouse.Hit or t~=Mouse.Target then
  80. h,t=Mouse.Hit,Mouse.Target
  81. Event:FireServer({isMouse=true,Target=t,Hit=h})
  82. end
  83. end]==],Player.Character)
  84.  
  85. ----Sandboxed game object that allows the usage of client-side methods and services
  86. --Real game object
  87. local _rg = game
  88.  
  89. --Metatable for fake service
  90. local fsmt = {
  91. __index = function(self,k)
  92. local s = rawget(self,"_RealService")
  93. if s then return s[k] end
  94. end,
  95. __newindex = function(self,k,v)
  96. local s = rawget(self,"_RealService")
  97. if s then s[k]=v end
  98. end,
  99. __call = function(self,...)
  100. local s = rawget(self,"_RealService")
  101. if s then return s(...) end
  102. end
  103. }
  104. local function FakeService(t,RealService)
  105. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  106. return setmetatable(t,fsmt)
  107. end
  108.  
  109. --Fake game object
  110. local g = {
  111. GetService = function(self,s)
  112. return self[s]
  113. end,
  114. Players = FakeService({
  115. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  116. },"Players"),
  117. UserInputService = FakeService(UIS,"UserInputService"),
  118. ContextActionService = FakeService(CAS,"ContextActionService"),
  119. }
  120. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  121. g.service = g.GetService
  122.  
  123. g.RunService = FakeService({
  124. RenderStepped = _rg:GetService("RunService").Heartbeat,
  125. BindToRenderStep = function(self,name,_,fun)
  126.  
  127. end,
  128. UnbindFromRenderStep = function(self,name)
  129. self._btrs[name]:Disconnect()
  130. end,
  131. },"RunService")
  132.  
  133. setmetatable(g,{
  134. __index=function(self,s)
  135. return _rg:GetService(s) or typeof(_rg[s])=="function"
  136. and function(_,...)return _rg[s](_rg,...)end or _rg[s]
  137. end,
  138. __newindex = fsmt.__newindex,
  139. __call = fsmt.__call
  140. })
  141. --Changing owner to fake player object to support owner:GetMouse()
  142. game,owner = g,g.Players.LocalPlayer
  143. end
  144.  
  145. Player = owner
  146. PlayerGui = Player.PlayerGui
  147. Cam = workspace.CurrentCamera
  148. Backpack = Player.Backpack
  149. Character = Player.Character
  150. Humanoid = Character.Humanoid
  151. Mouse = Player:GetMouse()
  152. RootPart = Character["HumanoidRootPart"]
  153. Torso = Character["Torso"]
  154. Head = Character["Head"]
  155. RightArm = Character["Right Arm"]
  156. LeftArm = Character["Left Arm"]
  157. RightLeg = Character["Right Leg"]
  158. LeftLeg = Character["Left Leg"]
  159. RootJoint = RootPart["RootJoint"]
  160. Neck = Torso["Neck"]
  161. RightShoulder = Torso["Right Shoulder"]
  162. LeftShoulder = Torso["Left Shoulder"]
  163. RightHip = Torso["Right Hip"]
  164. LeftHip = Torso["Left Hip"]
  165. local TIME = 0
  166. local sick = Instance.new("Sound",Torso)
  167.  
  168. IT = Instance.new
  169. CF = CFrame.new
  170. VT = Vector3.new
  171. RAD = math.rad
  172. C3 = Color3.new
  173. UD2 = UDim2.new
  174. BRICKC = BrickColor.new
  175. ANGLES = CFrame.Angles
  176. EULER = CFrame.fromEulerAnglesXYZ
  177. COS = math.cos
  178. ACOS = math.acos
  179. SIN = math.sin
  180. ASIN = math.asin
  181. ABS = math.abs
  182. MRANDOM = math.random
  183. FLOOR = math.floor
  184.  
  185. --//=================================\\
  186. --|| USEFUL VALUES
  187. --\\=================================//
  188.  
  189. Animation_Speed = 3
  190. local FORCERESET = false
  191. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  192. local Speed = 16
  193. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  194. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  195. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  196. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  197. local DAMAGEMULTIPLIER = 1
  198. local ANIM = "Idle"
  199. local ATTACK = false
  200. local EQUIPPED = false
  201. local HOLD = false
  202. local COMBO = 1
  203. local Rooted = false
  204. local SINE = 0
  205. local KEYHOLD = false
  206. local CHANGE = 2 / Animation_Speed
  207. local WALKINGANIM = false
  208. local VALUE1 = false
  209. local VALUE2 = false
  210. local ROBLOXIDLEANIMATION = IT("Animation")
  211. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  212. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  213. --ROBLOXIDLEANIMATION.Parent = Humanoid
  214. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  215. WEAPONGUI.Name = "BanishV3Gui"
  216. local Weapon = IT("Model")
  217. Weapon.Name = "Adds"
  218. local Effects = IT("Folder", Weapon)
  219. Effects.Name = "Effects"
  220. local ANIMATOR = Humanoid.Animator
  221. local ANIMATE = Character:FindFirstChild("Animate")
  222. local UNANCHOR = true
  223. local TOBANISH = {}
  224. script.Parent = PlayerGui
  225.  
  226. --//=================================\\
  227. --\\=================================//
  228.  
  229.  
  230. --//=================================\\
  231. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  232. --\\=================================//
  233.  
  234. ArtificialHB = Instance.new("BindableEvent", script)
  235. ArtificialHB.Name = "ArtificialHB"
  236.  
  237. script:WaitForChild("ArtificialHB")
  238.  
  239. frame = Frame_Speed
  240. tf = 0
  241. allowframeloss = false
  242. tossremainder = false
  243. lastframe = tick()
  244. script.ArtificialHB:Fire()
  245.  
  246. game:GetService("RunService").Heartbeat:connect(function(s, p)
  247. tf = tf + s
  248. if tf >= frame then
  249. if allowframeloss then
  250. script.ArtificialHB:Fire()
  251. lastframe = tick()
  252. else
  253. for i = 1, math.floor(tf / frame) do
  254. script.ArtificialHB:Fire()
  255. end
  256. lastframe = tick()
  257. end
  258. if tossremainder then
  259. tf = 0
  260. else
  261. tf = tf - frame * math.floor(tf / frame)
  262. end
  263. end
  264. end)
  265.  
  266. --//=================================\\
  267. --\\=================================//
  268.  
  269. local plr = game:service'Players'.LocalPlayer
  270. print('Local User is '..plr.Name)
  271. print('The Killer Dragon Loaded')
  272. print('AomFetty')
  273. local char = plr.Character
  274. local hum = char.Humanoid
  275. local hed = char.Head
  276. local root = char.HumanoidRootPart
  277. local rootj = root.RootJoint
  278. local tors = char.Torso
  279. local ra = char["Right Arm"]
  280. local la = char["Left Arm"]
  281. local rl = char["Right Leg"]
  282. local ll = char["Left Leg"]
  283. local neck = tors["Neck"]
  284. local mouse = plr:GetMouse()
  285. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  286. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  287. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  288. local maincolor = BrickColor.new("Institutional white")
  289.  
  290.  
  291. -------------------------------------------------------
  292. --Start Good Stuff--
  293. -------------------------------------------------------
  294. cam = game.Workspace.CurrentCamera
  295. CF = CFrame.new
  296. angles = CFrame.Angles
  297. attack = false
  298. Euler = CFrame.fromEulerAnglesXYZ
  299. Rad = math.rad
  300. IT = Instance.new
  301. BrickC = BrickColor.new
  302. Cos = math.cos
  303. Acos = math.acos
  304. Sin = math.sin
  305. Asin = math.asin
  306. Abs = math.abs
  307. Mrandom = math.random
  308. Floor = math.floor
  309. -------------------------------------------------------
  310. --End Good Stuff--
  311. -------------------------------------------------------
  312. necko = CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  313. RSH, LSH = nil, nil
  314. RW = Instance.new("Weld")
  315. LW = Instance.new("Weld")
  316. RH = tors["Right Hip"]
  317. LH = tors["Left Hip"]
  318. RSH = tors["Right Shoulder"]
  319. LSH = tors["Left Shoulder"]
  320. RSH.Parent = nil
  321. LSH.Parent = nil
  322. RW.Name = "RW"
  323. RW.Part0 = tors
  324. RW.C0 = CF(1.5, 0.5, 0)
  325. RW.C1 = CF(0, 0.5, 0)
  326. RW.Part1 = ra
  327. RW.Parent = tors
  328. LW.Name = "LW"
  329. LW.Part0 = tors
  330. LW.C0 = CF(-1.5, 0.5, 0)
  331. LW.C1 = CF(0, 0.5, 0)
  332. LW.Part1 = la
  333. LW.Parent = tors
  334. Effects = {}
  335. -------------------------------------------------------
  336. --Start HeartBeat--
  337. -------------------------------------------------------
  338. ArtificialHB = Instance.new("BindableEvent", script)
  339. ArtificialHB.Name = "Heartbeat"
  340. script:WaitForChild("Heartbeat")
  341.  
  342. frame = 1 / 60
  343. tf = 0
  344. allowframeloss = false
  345. tossremainder = false
  346.  
  347.  
  348. lastframe = tick()
  349. script.Heartbeat:Fire()
  350.  
  351.  
  352. game:GetService("RunService").Heartbeat:connect(function(s, p)
  353. tf = tf + s
  354. if tf >= frame then
  355. if allowframeloss then
  356. script.Heartbeat:Fire()
  357. lastframe = tick()
  358. else
  359. for i = 1, math.floor(tf / frame) do
  360. script.Heartbeat:Fire()
  361. end
  362. lastframe = tick()
  363. end
  364. if tossremainder then
  365. tf = 0
  366. else
  367. tf = tf - frame * math.floor(tf / frame)
  368. end
  369. end
  370. end)
  371. -------------------------------------------------------
  372. --End HeartBeat--
  373. -------------------------------------------------------
  374.  
  375. -------------------------------------------------------
  376. --Start Important Functions--
  377. -------------------------------------------------------
  378. function swait(num)
  379. if num == 0 or num == nil then
  380. game:service("RunService").Stepped:wait(0)
  381. else
  382. for i = 0, num do
  383. game:service("RunService").Stepped:wait(0)
  384. end
  385. end
  386. end
  387. function thread(f)
  388. coroutine.resume(coroutine.create(f))
  389. end
  390. function clerp(a, b, t)
  391. local qa = {
  392. QuaternionFromCFrame(a)
  393. }
  394. local qb = {
  395. QuaternionFromCFrame(b)
  396. }
  397. local ax, ay, az = a.x, a.y, a.z
  398. local bx, by, bz = b.x, b.y, b.z
  399. local _t = 1 - t
  400. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  401. end
  402. function QuaternionFromCFrame(cf)
  403. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  404. local trace = m00 + m11 + m22
  405. if trace > 0 then
  406. local s = math.sqrt(1 + trace)
  407. local recip = 0.5 / s
  408. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  409. else
  410. local i = 0
  411. if m00 < m11 then
  412. i = 1
  413. end
  414. if m22 > (i == 0 and m00 or m11) then
  415. i = 2
  416. end
  417. if i == 0 then
  418. local s = math.sqrt(m00 - m11 - m22 + 1)
  419. local recip = 0.5 / s
  420. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  421. elseif i == 1 then
  422. local s = math.sqrt(m11 - m22 - m00 + 1)
  423. local recip = 0.5 / s
  424. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  425. elseif i == 2 then
  426. local s = math.sqrt(m22 - m00 - m11 + 1)
  427. local recip = 0.5 / s
  428. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  429. end
  430. end
  431. end
  432. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  433. local xs, ys, zs = x + x, y + y, z + z
  434. local wx, wy, wz = w * xs, w * ys, w * zs
  435. local xx = x * xs
  436. local xy = x * ys
  437. local xz = x * zs
  438. local yy = y * ys
  439. local yz = y * zs
  440. local zz = z * zs
  441. 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))
  442. end
  443. function QuaternionSlerp(a, b, t)
  444. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  445. local startInterp, finishInterp
  446. if cosTheta >= 1.0E-4 then
  447. if 1 - cosTheta > 1.0E-4 then
  448. local theta = math.acos(cosTheta)
  449. local invSinTheta = 1 / Sin(theta)
  450. startInterp = Sin((1 - t) * theta) * invSinTheta
  451. finishInterp = Sin(t * theta) * invSinTheta
  452. else
  453. startInterp = 1 - t
  454. finishInterp = t
  455. end
  456. elseif 1 + cosTheta > 1.0E-4 then
  457. local theta = math.acos(-cosTheta)
  458. local invSinTheta = 1 / Sin(theta)
  459. startInterp = Sin((t - 1) * theta) * invSinTheta
  460. finishInterp = Sin(t * theta) * invSinTheta
  461. else
  462. startInterp = t - 1
  463. finishInterp = t
  464. end
  465. 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
  466. end
  467. function rayCast(Position, Direction, Range, Ignore)
  468. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  469. end
  470. local RbxUtility = LoadLibrary("RbxUtility")
  471. local Create = RbxUtility.Create
  472.  
  473. -------------------------------------------------------
  474. --Start Damage Function--
  475. -------------------------------------------------------
  476. function PixelBlock(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos) --Thanks, Star Glitcher!
  477. local type = type
  478. local rng = Instance.new("Part", char)
  479. rng.Anchored = true
  480. rng.BrickColor = color
  481. rng.CanCollide = false
  482. rng.FormFactor = 3
  483. rng.Name = "Ring"
  484. rng.Material = "Neon"
  485. rng.Size = Vector3.new(1, 1, 1)
  486. rng.Transparency = 0
  487. rng.TopSurface = 0
  488. rng.BottomSurface = 0
  489. rng.CFrame = pos
  490. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
  491. local rngm = Instance.new("SpecialMesh", rng)
  492. rngm.MeshType = "Brick"
  493. if rainbowmode == true then
  494. rng.Color = Color3.new(r/255,g/255,b/255)
  495. end
  496. local scaler2 = 1
  497. local speeder = FastSpeed/10
  498. if type == "Add" then
  499. scaler2 = 1*value
  500. elseif type == "Divide" then
  501. scaler2 = 1/value
  502. end
  503. coroutine.resume(coroutine.create(function()
  504. for i = 0,10/bonuspeed,0.1 do
  505. swait()
  506. if type == "Add" then
  507. scaler2 = scaler2 - 0.01*value/bonuspeed
  508. elseif type == "Divide" then
  509. scaler2 = scaler2 - 0.01/value*bonuspeed
  510. end
  511. speeder = speeder - 0.01*FastSpeed*bonuspeed/10
  512. rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
  513. rng.Transparency = rng.Transparency + 0.01*bonuspeed
  514. end
  515. rng:Destroy()
  516. end))
  517. end
  518. function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  519. if hit.Parent == nil then
  520. return
  521. end
  522. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  523. for _, v in pairs(hit.Parent:children()) do
  524. if v:IsA("Humanoid") then
  525. h = v
  526. end
  527. end
  528. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then
  529.  
  530. hit.Parent:FindFirstChild("Head"):BreakJoints()
  531. end
  532.  
  533. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  534. if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  535. if hit.Parent.DebounceHit.Value == true then
  536. return
  537. end
  538. end
  539. if insta == true then
  540. hit.Parent:FindFirstChild("Head"):BreakJoints()
  541. end
  542. local c = Create("ObjectValue"){
  543. Name = "creator",
  544. Value = game:service("Players").LocalPlayer,
  545. Parent = h,
  546. }
  547. game:GetService("Debris"):AddItem(c, .5)
  548. if HitSound ~= nil and HitPitch ~= nil then
  549. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  550. end
  551. local Damage = math.random(minim, maxim)
  552. local blocked = false
  553. local block = hit.Parent:findFirstChild("Block")
  554. if block ~= nil then
  555. if block.className == "IntValue" then
  556. if block.Value > 0 then
  557. blocked = true
  558. block.Value = block.Value - 1
  559. print(block.Value)
  560. end
  561. end
  562. end
  563. if blocked == false then
  564. h.Health = h.Health - Damage
  565. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
  566. else
  567. h.Health = h.Health - (Damage / 2)
  568. ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
  569. end
  570. if Type == "Knockdown" then
  571. local hum = hit.Parent.Humanoid
  572. hum.PlatformStand = true
  573. coroutine.resume(coroutine.create(function(HHumanoid)
  574. swait(1)
  575. HHumanoid.PlatformStand = false
  576. end), hum)
  577. local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  578. local bodvol = Create("BodyVelocity"){
  579. velocity = angle * knockback,
  580. P = 5000,
  581. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  582. Parent = hit,
  583. }
  584. local rl = Create("BodyAngularVelocity"){
  585. P = 3000,
  586. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  587. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  588. Parent = hit,
  589. }
  590. game:GetService("Debris"):AddItem(bodvol, .5)
  591. game:GetService("Debris"):AddItem(rl, .5)
  592. elseif Type == "Normal" then
  593. local vp = Create("BodyVelocity"){
  594. P = 500,
  595. maxForce = Vector3.new(math.huge, 0, math.huge),
  596. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
  597. }
  598. if knockback > 0 then
  599. vp.Parent = hit.Parent.Torso
  600. end
  601. game:GetService("Debris"):AddItem(vp, .5)
  602. elseif Type == "Up" then
  603. local bodyVelocity = Create("BodyVelocity"){
  604. velocity = Vector3.new(0, 20, 0),
  605. P = 5000,
  606. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  607. Parent = hit,
  608. }
  609. game:GetService("Debris"):AddItem(bodyVelocity, .5)
  610. elseif Type == "DarkUp" then
  611. coroutine.resume(coroutine.create(function()
  612. for i = 0, 1, 0.1 do
  613. swait()
  614. Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
  615. end
  616. end))
  617. local bodyVelocity = Create("BodyVelocity"){
  618. velocity = Vector3.new(0, 20, 0),
  619. P = 5000,
  620. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  621. Parent = hit,
  622. }
  623. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  624. elseif Type == "Snare" then
  625. local bp = Create("BodyPosition"){
  626. P = 2000,
  627. D = 100,
  628. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  629. position = hit.Parent.Torso.Position,
  630. Parent = hit.Parent.Torso,
  631. }
  632. game:GetService("Debris"):AddItem(bp, 1)
  633. elseif Type == "Freeze" then
  634. local BodPos = Create("BodyPosition"){
  635. P = 50000,
  636. D = 1000,
  637. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  638. position = hit.Parent.Torso.Position,
  639. Parent = hit.Parent.Torso,
  640. }
  641. local BodGy = Create("BodyGyro") {
  642. maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  643. P = 20e+003,
  644. Parent = hit.Parent.Torso,
  645. cframe = hit.Parent.Torso.CFrame,
  646. }
  647. hit.Parent.Torso.Anchored = true
  648. coroutine.resume(coroutine.create(function(Part)
  649. swait(1.5)
  650. Part.Anchored = false
  651. end), hit.Parent.Torso)
  652. game:GetService("Debris"):AddItem(BodPos, 3)
  653. game:GetService("Debris"):AddItem(BodGy, 3)
  654. end
  655. local debounce = Create("BoolValue"){
  656. Name = "DebounceHit",
  657. Parent = hit.Parent,
  658. Value = true,
  659. }
  660. game:GetService("Debris"):AddItem(debounce, Delay)
  661. c = Create("ObjectValue"){
  662. Name = "creator",
  663. Value = Player,
  664. Parent = h,
  665. }
  666. game:GetService("Debris"):AddItem(c, .5)
  667. end
  668. end
  669. -------------------------------------------------------
  670. --End Damage Function--
  671. -------------------------------------------------------
  672.  
  673. -------------------------------------------------------
  674. --Start Damage Function Customization--
  675. -------------------------------------------------------
  676. function ShowDamage(Pos, Text, Time, Color)
  677. local Rate = (1 / 30)
  678. local Pos = (Pos or Vector3.new(0, 0, 0))
  679. local Text = (Text or "")
  680. local Time = (Time or 2)
  681. local Color = (Color or Color3.new(1, 0, 1))
  682. local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  683. EffectPart.Anchored = true
  684. local BillboardGui = Create("BillboardGui"){
  685. Size = UDim2.new(3, 0, 3, 0),
  686. Adornee = EffectPart,
  687. Parent = EffectPart,
  688. }
  689. local TextLabel = Create("TextLabel"){
  690. BackgroundTransparency = 1,
  691. Size = UDim2.new(1, 0, 1, 0),
  692. Text = Text,
  693. Font = "Bodoni",
  694. TextColor3 = Color,
  695. TextScaled = true,
  696. TextStrokeColor3 = Color3.fromRGB(0,0,0),
  697. Parent = BillboardGui,
  698. }
  699. game.Debris:AddItem(EffectPart, (Time))
  700. EffectPart.Parent = game:GetService("Workspace")
  701. delay(0, function()
  702. local Frames = (Time / Rate)
  703. for Frame = 1, Frames do
  704. wait(Rate)
  705. local Percent = (Frame / Frames)
  706. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  707. TextLabel.TextTransparency = Percent
  708. end
  709. if EffectPart and EffectPart.Parent then
  710. EffectPart:Destroy()
  711. end
  712. end)
  713. end
  714. -------------------------------------------------------
  715. --End Damage Function Customization--
  716. -------------------------------------------------------
  717.  
  718. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  719. for _, c in pairs(workspace:children()) do
  720. local hum = c:findFirstChild("Humanoid")
  721. if hum ~= nil then
  722. local head = c:findFirstChild("Head")
  723. if head ~= nil then
  724. local targ = head.Position - Part.Position
  725. local mag = targ.magnitude
  726. if magni >= mag and c.Name ~= plr.Name then
  727. Damage(head, head, mindam, maxdam, knock, Type, root, 0.1, "http://www.roblox.com/asset/?id=0", 1.2)
  728. end
  729. end
  730. end
  731. end
  732. end
  733.  
  734.  
  735. CFuncs = {
  736. Part = {
  737. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  738. local Part = Create("Part")({
  739. Parent = Parent,
  740. Reflectance = Reflectance,
  741. Transparency = Transparency,
  742. CanCollide = false,
  743. Locked = true,
  744. BrickColor = BrickColor.new(tostring(BColor)),
  745. Name = Name,
  746. Size = Size,
  747. Material = Material
  748. })
  749. RemoveOutlines(Part)
  750. return Part
  751. end
  752. },
  753. Mesh = {
  754. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  755. local Msh = Create(Mesh)({
  756. Parent = Part,
  757. Offset = OffSet,
  758. Scale = Scale
  759. })
  760. if Mesh == "SpecialMesh" then
  761. Msh.MeshType = MeshType
  762. Msh.MeshId = MeshId
  763. end
  764. return Msh
  765. end
  766. },
  767. Mesh = {
  768. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  769. local Msh = Create(Mesh)({
  770. Parent = Part,
  771. Offset = OffSet,
  772. Scale = Scale
  773. })
  774. if Mesh == "SpecialMesh" then
  775. Msh.MeshType = MeshType
  776. Msh.MeshId = MeshId
  777. end
  778. return Msh
  779. end
  780. },
  781. Weld = {
  782. Create = function(Parent, Part0, Part1, C0, C1)
  783. local Weld = Create("Weld")({
  784. Parent = Parent,
  785. Part0 = Part0,
  786. Part1 = Part1,
  787. C0 = C0,
  788. C1 = C1
  789. })
  790. return Weld
  791. end
  792. },
  793. Sound = {
  794. Create = function(id, par, vol, pit)
  795. coroutine.resume(coroutine.create(function()
  796. local S = Create("Sound")({
  797. Volume = vol,
  798. Pitch = pit or 1,
  799. SoundId = id,
  800. Parent = par or workspace
  801. })
  802. wait()
  803. S:play()
  804. game:GetService("Debris"):AddItem(S, 6)
  805. end))
  806. end
  807. },
  808. ParticleEmitter = {
  809. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  810. local fp = Create("ParticleEmitter")({
  811. Parent = Parent,
  812. Color = ColorSequence.new(Color1, Color2),
  813. LightEmission = LightEmission,
  814. Size = Size,
  815. Texture = Texture,
  816. Transparency = Transparency,
  817. ZOffset = ZOffset,
  818. Acceleration = Accel,
  819. Drag = Drag,
  820. LockedToPart = LockedToPart,
  821. VelocityInheritance = VelocityInheritance,
  822. EmissionDirection = EmissionDirection,
  823. Enabled = Enabled,
  824. Lifetime = LifeTime,
  825. Rate = Rate,
  826. Rotation = Rotation,
  827. RotSpeed = RotSpeed,
  828. Speed = Speed,
  829. VelocitySpread = VelocitySpread
  830. })
  831. return fp
  832. end
  833. }
  834. }
  835. function RemoveOutlines(part)
  836. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  837. end
  838. function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  839. local Part = Create("Part")({
  840. formFactor = FormFactor,
  841. Parent = Parent,
  842. Reflectance = Reflectance,
  843. Transparency = Transparency,
  844. CanCollide = false,
  845. Locked = true,
  846. BrickColor = BrickColor.new(tostring(BColor)),
  847. Name = Name,
  848. Size = Size,
  849. Material = Material
  850. })
  851. RemoveOutlines(Part)
  852. return Part
  853. end
  854. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  855. local Msh = Create(Mesh)({
  856. Parent = Part,
  857. Offset = OffSet,
  858. Scale = Scale
  859. })
  860. if Mesh == "SpecialMesh" then
  861. Msh.MeshType = MeshType
  862. Msh.MeshId = MeshId
  863. end
  864. return Msh
  865. end
  866. function CreateWeld(Parent, Part0, Part1, C0, C1)
  867. local Weld = Create("Weld")({
  868. Parent = Parent,
  869. Part0 = Part0,
  870. Part1 = Part1,
  871. C0 = C0,
  872. C1 = C1
  873. })
  874. return Weld
  875. end
  876.  
  877.  
  878. -------------------------------------------------------
  879. --Start Effect Function--
  880. -------------------------------------------------------
  881. EffectModel = Instance.new("Model", char)
  882. Effects = {
  883. Block = {
  884. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  885. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  886. prt.Anchored = true
  887. prt.CFrame = cframe
  888. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  889. game:GetService("Debris"):AddItem(prt, 10)
  890. if Type == 1 or Type == nil then
  891. table.insert(Effects, {
  892. prt,
  893. "Block1",
  894. delay,
  895. x3,
  896. y3,
  897. z3,
  898. msh
  899. })
  900. elseif Type == 2 then
  901. table.insert(Effects, {
  902. prt,
  903. "Block2",
  904. delay,
  905. x3,
  906. y3,
  907. z3,
  908. msh
  909. })
  910. else
  911. table.insert(Effects, {
  912. prt,
  913. "Block3",
  914. delay,
  915. x3,
  916. y3,
  917. z3,
  918. msh
  919. })
  920. end
  921. end
  922. },
  923. Sphere = {
  924. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  925. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  926. prt.Anchored = true
  927. prt.CFrame = cframe
  928. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  929. game:GetService("Debris"):AddItem(prt, 10)
  930. table.insert(Effects, {
  931. prt,
  932. "Cylinder",
  933. delay,
  934. x3,
  935. y3,
  936. z3,
  937. msh
  938. })
  939. end
  940. },
  941. Cylinder = {
  942. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  943. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  944. prt.Anchored = true
  945. prt.CFrame = cframe
  946. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  947. game:GetService("Debris"):AddItem(prt, 10)
  948. table.insert(Effects, {
  949. prt,
  950. "Cylinder",
  951. delay,
  952. x3,
  953. y3,
  954. z3,
  955. msh
  956. })
  957. end
  958. },
  959. Wave = {
  960. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  961. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  962. prt.Anchored = true
  963. prt.CFrame = cframe
  964. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1 / 60, y1 / 60, z1 / 60))
  965. game:GetService("Debris"):AddItem(prt, 10)
  966. table.insert(Effects, {
  967. prt,
  968. "Cylinder",
  969. delay,
  970. x3 / 60,
  971. y3 / 60,
  972. z3 / 60,
  973. msh
  974. })
  975. end
  976. },
  977. Ring = {
  978. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  979. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  980. prt.Anchored = true
  981. prt.CFrame = cframe
  982. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  983. game:GetService("Debris"):AddItem(prt, 10)
  984. table.insert(Effects, {
  985. prt,
  986. "Cylinder",
  987. delay,
  988. x3,
  989. y3,
  990. z3,
  991. msh
  992. })
  993. end
  994. },
  995. Break = {
  996. Create = function(brickcolor, cframe, x1, y1, z1)
  997. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  998. prt.Anchored = true
  999. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1000. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1001. local num = math.random(10, 50) / 1000
  1002. game:GetService("Debris"):AddItem(prt, 10)
  1003. table.insert(Effects, {
  1004. prt,
  1005. "Shatter",
  1006. num,
  1007. prt.CFrame,
  1008. math.random() - math.random(),
  1009. 0,
  1010. math.random(50, 100) / 100
  1011. })
  1012. end
  1013. },
  1014. Spiral = {
  1015. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1016. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1017. prt.Anchored = true
  1018. prt.CFrame = cframe
  1019. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://1051557", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1020. game:GetService("Debris"):AddItem(prt, 10)
  1021. table.insert(Effects, {
  1022. prt,
  1023. "Cylinder",
  1024. delay,
  1025. x3,
  1026. y3,
  1027. z3,
  1028. msh
  1029. })
  1030. end
  1031. },
  1032. Push = {
  1033. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1034. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1035. prt.Anchored = true
  1036. prt.CFrame = cframe
  1037. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://437347603", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1038. game:GetService("Debris"):AddItem(prt, 10)
  1039. table.insert(Effects, {
  1040. prt,
  1041. "Cylinder",
  1042. delay,
  1043. x3,
  1044. y3,
  1045. z3,
  1046. msh
  1047. })
  1048. end
  1049. }
  1050. }
  1051. function part(formfactor ,parent, reflectance, transparency, brickcolor, name, size)
  1052. local fp = IT("Part")
  1053. fp.formFactor = formfactor
  1054. fp.Parent = parent
  1055. fp.Reflectance = reflectance
  1056. fp.Transparency = transparency
  1057. fp.CanCollide = false
  1058. fp.Locked = true
  1059. fp.BrickColor = brickcolor
  1060. fp.Name = name
  1061. fp.Size = size
  1062. fp.Position = tors.Position
  1063. RemoveOutlines(fp)
  1064. fp.Material = "SmoothPlastic"
  1065. fp:BreakJoints()
  1066. return fp
  1067. end
  1068.  
  1069. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  1070. local mesh = IT(Mesh)
  1071. mesh.Parent = part
  1072. if Mesh == "SpecialMesh" then
  1073. mesh.MeshType = meshtype
  1074. if meshid ~= "nil" then
  1075. mesh.MeshId = "http://www.roblox.com/asset/?id="..meshid
  1076. end
  1077. end
  1078. mesh.Offset = offset
  1079. mesh.Scale = scale
  1080. return mesh
  1081. end
  1082.  
  1083. function Magic(bonuspeed, type, pos, scale, value, color, MType)
  1084. local type = type
  1085. local rng = Instance.new("Part", char)
  1086. rng.Anchored = true
  1087. rng.BrickColor = color
  1088. rng.CanCollide = false
  1089. rng.FormFactor = 3
  1090. rng.Name = "Ring"
  1091. rng.Material = "Neon"
  1092. rng.Size = Vector3.new(1, 1, 1)
  1093. rng.Transparency = 0
  1094. rng.TopSurface = 0
  1095. rng.BottomSurface = 0
  1096. rng.CFrame = pos
  1097. local rngm = Instance.new("SpecialMesh", rng)
  1098. rngm.MeshType = MType
  1099. rngm.Scale = scale
  1100. local scaler2 = 1
  1101. if type == "Add" then
  1102. scaler2 = 1 * value
  1103. elseif type == "Divide" then
  1104. scaler2 = 1 / value
  1105. end
  1106. coroutine.resume(coroutine.create(function()
  1107. for i = 0, 10 / bonuspeed, 0.1 do
  1108. swait()
  1109. if type == "Add" then
  1110. scaler2 = scaler2 - 0.01 * value / bonuspeed
  1111. elseif type == "Divide" then
  1112. scaler2 = scaler2 - 0.01 / value * bonuspeed
  1113. end
  1114. rng.Transparency = rng.Transparency + 0.01 * bonuspeed
  1115. rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, scaler2 * bonuspeed)
  1116. end
  1117. rng:Destroy()
  1118. end))
  1119. end
  1120.  
  1121. function Eviscerate(dude)
  1122. if dude.Name ~= char then
  1123. local bgf = IT("BodyGyro", dude.Head)
  1124. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0)
  1125. local val = IT("BoolValue", dude)
  1126. val.Name = "IsHit"
  1127. local ds = coroutine.wrap(function()
  1128. dude:WaitForChild("Head"):BreakJoints()
  1129. wait(0.5)
  1130. target = nil
  1131. coroutine.resume(coroutine.create(function()
  1132. for i, v in pairs(dude:GetChildren()) do
  1133. if v:IsA("Accessory") then
  1134. v:Destroy()
  1135. end
  1136. if v:IsA("Humanoid") then
  1137. v:Destroy()
  1138. end
  1139. if v:IsA("CharacterMesh") then
  1140. v:Destroy()
  1141. end
  1142. if v:IsA("Model") then
  1143. v:Destroy()
  1144. end
  1145. if v:IsA("Part") or v:IsA("MeshPart") then
  1146. for x, o in pairs(v:GetChildren()) do
  1147. if o:IsA("Decal") then
  1148. o:Destroy()
  1149. end
  1150. end
  1151. coroutine.resume(coroutine.create(function()
  1152. v.Material = "Neon"
  1153. v.CanCollide = false
  1154. local PartEmmit1 = IT("ParticleEmitter", v)
  1155. PartEmmit1.LightEmission = 1
  1156. PartEmmit1.Texture = "rbxassetid://284205403"
  1157. PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  1158. PartEmmit1.Rate = 150
  1159. PartEmmit1.Lifetime = NumberRange.new(1)
  1160. PartEmmit1.Size = NumberSequence.new({
  1161. NumberSequenceKeypoint.new(0, 0.75, 0),
  1162. NumberSequenceKeypoint.new(1, 0, 0)
  1163. })
  1164. PartEmmit1.Transparency = NumberSequence.new({
  1165. NumberSequenceKeypoint.new(0, 0, 0),
  1166. NumberSequenceKeypoint.new(1, 1, 0)
  1167. })
  1168. PartEmmit1.Speed = NumberRange.new(0, 0)
  1169. PartEmmit1.VelocitySpread = 30000
  1170. PartEmmit1.Rotation = NumberRange.new(-500, 500)
  1171. PartEmmit1.RotSpeed = NumberRange.new(-500, 500)
  1172. local BodPoss = IT("BodyPosition", v)
  1173. BodPoss.P = 3000
  1174. BodPoss.D = 1000
  1175. BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  1176. BodPoss.position = v.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15))
  1177. v.Color = maincolor.Color
  1178. coroutine.resume(coroutine.create(function()
  1179. for i = 0, 49 do
  1180. swait(1)
  1181. v.Transparency = v.Transparency + 0.08
  1182. end
  1183. wait(0.5)
  1184. PartEmmit1.Enabled = false
  1185. wait(3)
  1186. v:Destroy()
  1187. dude:Destroy()
  1188. end))
  1189. end))
  1190. end
  1191. end
  1192. end))
  1193. end)
  1194. ds()
  1195. end
  1196. end
  1197.  
  1198. function FindNearestHead(Position, Distance, SinglePlayer)
  1199. if SinglePlayer then
  1200. return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude
  1201. end
  1202. local List = {}
  1203. for i, v in pairs(workspace:GetChildren()) do
  1204. if v:IsA("Model") and v:findFirstChild("Head") and v ~= char and Distance >= (v.Head.Position - Position).magnitude then
  1205. table.insert(List, v)
  1206. end
  1207. end
  1208. return List
  1209. end
  1210.  
  1211. function Aura(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos, MType)
  1212. local type = type
  1213. local rng = Instance.new("Part", char)
  1214. rng.Anchored = true
  1215. rng.BrickColor = color
  1216. rng.CanCollide = false
  1217. rng.FormFactor = 3
  1218. rng.Name = "Ring"
  1219. rng.Material = "Neon"
  1220. rng.Size = Vector3.new(1, 1, 1)
  1221. rng.Transparency = 0
  1222. rng.TopSurface = 0
  1223. rng.BottomSurface = 0
  1224. rng.CFrame = pos
  1225. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos
  1226. local rngm = Instance.new("SpecialMesh", rng)
  1227. rngm.MeshType = MType
  1228. rngm.Scale = Vector3.new(x1, y1, z1)
  1229. local scaler2 = 1
  1230. local speeder = FastSpeed
  1231. if type == "Add" then
  1232. scaler2 = 1 * value
  1233. elseif type == "Divide" then
  1234. scaler2 = 1 / value
  1235. end
  1236. coroutine.resume(coroutine.create(function()
  1237. for i = 0, 10 / bonuspeed, 0.1 do
  1238. swait()
  1239. if type == "Add" then
  1240. scaler2 = scaler2 - 0.01 * value / bonuspeed
  1241. elseif type == "Divide" then
  1242. scaler2 = scaler2 - 0.01 / value * bonuspeed
  1243. end
  1244. speeder = speeder - 0.01 * FastSpeed * bonuspeed
  1245. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed
  1246. rng.Transparency = rng.Transparency + 0.01 * bonuspeed
  1247. rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0)
  1248. end
  1249. rng:Destroy()
  1250. end))
  1251. end
  1252.  
  1253. function SoulSteal(dude)
  1254. if dude.Name ~= char then
  1255. local bgf = IT("BodyGyro", dude.Head)
  1256. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0)
  1257. local val = IT("BoolValue", dude)
  1258. val.Name = "IsHit"
  1259. local torso = (dude:FindFirstChild'Head' or dude:FindFirstChild'Torso' or dude:FindFirstChild'UpperTorso' or dude:FindFirstChild'LowerTorso' or dude:FindFirstChild'HumanoidRootPart')
  1260. local soulst = coroutine.wrap(function()
  1261. local soul = Instance.new("Part",dude)
  1262. soul.Size = Vector3.new(1,1,1)
  1263. soul.CanCollide = false
  1264. soul.Anchored = false
  1265. soul.Position = torso.Position
  1266. soul.Transparency = 1
  1267. local PartEmmit1 = IT("ParticleEmitter", soul)
  1268. PartEmmit1.LightEmission = 1
  1269. PartEmmit1.Texture = "rbxassetid://569507414"
  1270. PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  1271. PartEmmit1.Rate = 250
  1272. PartEmmit1.Lifetime = NumberRange.new(1.6)
  1273. PartEmmit1.Size = NumberSequence.new({
  1274. NumberSequenceKeypoint.new(0, 1, 0),
  1275. NumberSequenceKeypoint.new(1, 0, 0)
  1276. })
  1277. PartEmmit1.Transparency = NumberSequence.new({
  1278. NumberSequenceKeypoint.new(0, 0, 0),
  1279. NumberSequenceKeypoint.new(1, 1, 0)
  1280. })
  1281. PartEmmit1.Speed = NumberRange.new(0, 0)
  1282. PartEmmit1.VelocitySpread = 30000
  1283. PartEmmit1.Rotation = NumberRange.new(-360, 360)
  1284. PartEmmit1.RotSpeed = NumberRange.new(-360, 360)
  1285. local BodPoss = IT("BodyPosition", soul)
  1286. BodPoss.P = 3000
  1287. BodPoss.D = 1000
  1288. BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  1289. BodPoss.position = torso.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15))
  1290. wait(1.6)
  1291. soul.Touched:connect(function(hit)
  1292. if hit.Parent == char then
  1293. soul:Destroy()
  1294. end
  1295. end)
  1296. wait(1.2)
  1297. while soul do
  1298. swait()
  1299. PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  1300. BodPoss.Position = tors.Position
  1301. end
  1302. end)
  1303. soulst()
  1304. end
  1305. end
  1306. function FaceMouse()
  1307. local Cam = workspace.CurrentCamera
  1308. return {
  1309. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  1310. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  1311. }
  1312. end
  1313. -------------------------------------------------------
  1314. --End Effect Function--
  1315. -------------------------------------------------------
  1316. function Cso(ID, PARENT, VOLUME, PITCH)
  1317. local NSound = nil
  1318. coroutine.resume(coroutine.create(function()
  1319. NSound = IT("Sound", PARENT)
  1320. NSound.Volume = VOLUME
  1321. NSound.Pitch = PITCH
  1322. NSound.SoundId = "http://www.roblox.com/asset/?id="..ID
  1323. swait()
  1324. NSound:play()
  1325. game:GetService("Debris"):AddItem(NSound, 10)
  1326. end))
  1327. return NSound
  1328. end
  1329. function CameraEnshaking(Length, Intensity)
  1330. coroutine.resume(coroutine.create(function()
  1331. local intensity = 1 * Intensity
  1332. local rotM = 0.01 * Intensity
  1333. for i = 0, Length, 0.1 do
  1334. swait()
  1335. intensity = intensity - 0.05 * Intensity / Length
  1336. rotM = rotM - 5.0E-4 * Intensity / Length
  1337. hum.CameraOffset = Vector3.new(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)))
  1338. 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)
  1339. end
  1340. hum.CameraOffset = Vector3.new(0, 0, 0)
  1341. end))
  1342. end
  1343. function chatfunc(text, color)
  1344. local chat = coroutine.wrap(function()
  1345. if char:FindFirstChild("TalkingBillBoard") ~= nil then
  1346. char:FindFirstChild("TalkingBillBoard"):destroy()
  1347. end
  1348. local naeeym2 = Instance.new("BillboardGui", char)
  1349. naeeym2.Size = UDim2.new(0, 100, 0, 40)
  1350. naeeym2.StudsOffset = Vector3.new(0, 5, 0)
  1351. naeeym2.Adornee = hed
  1352. naeeym2.Name = "TalkingBillBoard"
  1353. local tecks2 = Instance.new("TextLabel", naeeym2)
  1354. tecks2.BackgroundTransparency = 1
  1355. tecks2.BorderSizePixel = 0
  1356. tecks2.Text = ""
  1357. tecks2.Font = "SciFi"
  1358. tecks2.TextSize = 30
  1359. tecks2.TextStrokeTransparency = 0
  1360. tecks2.TextColor3 = color
  1361. tecks2.TextStrokeColor3 = Color3.new(0, 0, 0)
  1362. tecks2.Size = UDim2.new(1, 0, 0.5, 0)
  1363. coroutine.resume(coroutine.create(function()
  1364. while true do
  1365. swait(1)
  1366. tecks2.Position = UDim2.new(0, math.random(-5, 5), 0, math.random(-5, 5))
  1367. tecks2.Rotation = math.random(-5, 5)
  1368. end
  1369. end))
  1370. for i = 1, string.len(text) do
  1371. CFuncs.Sound.Create("rbxassetid://274118116", hed, 5.25, 0.115)
  1372. tecks2.Text = string.sub(text, 1, i)
  1373. swait(1)
  1374. end
  1375. wait(1)
  1376. naeeym2:Destroy()
  1377. end)
  1378. chat()
  1379. end
  1380. -------------------------------------------------------
  1381. --End Important Functions--
  1382. -------------------------------------------------------
  1383.  
  1384. -------------------------------------------------------
  1385. --Start Customization--
  1386. -------------------------------------------------------
  1387. local Player_Size = 1
  1388. if Player_Size ~= 1 then
  1389. root.Size = root.Size * Player_Size
  1390. tors.Size = tors.Size * Player_Size
  1391. hed.Size = hed.Size * Player_Size
  1392. ra.Size = ra.Size * Player_Size
  1393. la.Size = la.Size * Player_Size
  1394. rl.Size = rl.Size * Player_Size
  1395. ll.Size = ll.Size * Player_Size
  1396. ----------------------------------------------------------------------------------
  1397. rootj.Parent = root
  1398. neck.Parent = tors
  1399. RW.Parent = tors
  1400. LW.Parent = tors
  1401. RH.Parent = tors
  1402. LH.Parent = tors
  1403. ----------------------------------------------------------------------------------
  1404. rootj.C0 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0))
  1405. rootj.C1 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0))
  1406. neck.C0 = necko * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * angles(Rad(0), Rad(0), Rad(0))
  1407. neck.C1 = CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * angles(Rad(-90), Rad(0), Rad(180))
  1408. RW.C0 = CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* RIGHTSHOULDERC0
  1409. LW.C0 = CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* LEFTSHOULDERC0
  1410. ----------------------------------------------------------------------------------
  1411. 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))
  1412. 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))
  1413. 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))
  1414. 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))
  1415. --hat.Parent = Character
  1416. end
  1417. ----------------------------------------------------------------------------------
  1418. local equipped = false
  1419. local idle = 0
  1420. local change = 1
  1421. local val = 0
  1422. local toim = 0
  1423. local idleanim = 0.4
  1424. local sine = 0
  1425. local Sit = 1
  1426. ----------------------------------------------------------------------------------
  1427. local SONG = 247971190
  1428. local SONG2 = 0
  1429. local Music = Instance.new("Sound",tors)
  1430. Music.Volume = 9999999
  1431. Music.Looped = true
  1432. Music.Pitch = 1 --Pitcher
  1433. ----------------------------------------------------------------------------------
  1434. hum.WalkSpeed = 16
  1435. hum.JumpPower = 70
  1436. hum.MaxHealth = 999999999999999999999999999999999999999999999999999999999999999999
  1437. hum.Health = 999999999999999999999999999999999999999999999999999999999999999999
  1438. hum.Animator.Parent = nil
  1439. -------------------------------------------------------
  1440. --End Customization--
  1441. -------------------------------------------------------
  1442. local Blobby = Instance.new("Part", char)
  1443. Blobby.Name = "Blob"
  1444. Blobby.CanCollide = false
  1445. Blobby.BrickColor = BrickColor.new("Really black")
  1446. Blobby.Transparency = 0
  1447. Blobby.Material = "Plastic"
  1448. Blobby.Size = Vector3.new(1, 7, 0.4)
  1449. Blobby.TopSurface = Enum.SurfaceType.Smooth
  1450. Blobby.BottomSurface = Enum.SurfaceType.Smooth
  1451.  
  1452. local Weld = Instance.new("Weld", Blobby)
  1453. Weld.Part0 = ra
  1454. Weld.Part1 = Blobby
  1455. Weld.C1 = CFrame.new(1, -2, 0)*CFrame.fromEulerAnglesXYZ(0, 1.5, 0)
  1456. Weld.C0 = CFrame.Angles(Rad(-86),0,0)
  1457.  
  1458. local M2 = Instance.new("SpecialMesh")
  1459. M2.Parent = Blobby
  1460. M2.MeshId = "http://www.roblox.com/asset/?id=23306095"
  1461. M2.TextureId = "http://www.roblox.com/asset/?id=23306096"
  1462. M2.Scale = Vector3.new(0.5, 0.5, 0.5)
  1463. -------------------------------------------------------
  1464. local Orin = "http://www.roblox.com/asset/?id=120463437"
  1465. Head.face.Texture = Orin
  1466. for i,v in pairs(char:GetChildren()) do
  1467. if v.ClassName == "Accessory" or v.ClassName == "Hat" then
  1468. v:destroy()
  1469. end
  1470. end
  1471. local Hair = Instance.new("Part")
  1472. Hair.Parent = char
  1473. Hair.Name = "Hair"
  1474. Hair.Size = Vector3.new(1, 1, 1)
  1475. Hair.CFrame = char.Head.CFrame
  1476. Hair:BreakJoints()
  1477. Hair.CanCollide = false
  1478. Hair.BrickColor = BrickColor.new("New Yeller")
  1479. Hair.TopSurface = "Smooth"
  1480. Hair.BottomSurface = "Smooth"
  1481. Weld = Instance.new("Weld")
  1482. Weld.Name = "Weld"
  1483. Weld.Part0 = char.Head
  1484. Weld.Part1 = Hair
  1485. Weld.Parent = char.Head
  1486. Weld.C0 = CFrame.new(0, 0.2, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
  1487. Mesh = Instance.new("SpecialMesh")
  1488. Mesh.Parent = Hair
  1489. Mesh.MeshId = "rbxassetid://167549828"
  1490. Mesh.TextureId = "http://www.roblox.com/asset/?id=16627494"
  1491. Mesh.Scale = Vector3.new(1, 1, 1)
  1492.  
  1493. local Shirt = "rbxassetid://463141967"
  1494. local Pants = "rbxassetid://175974404"
  1495.  
  1496. ypcall(function()
  1497. shirt = Instance.new("Shirt", char)
  1498. shirt.Name = "Shirt"
  1499. pants = Instance.new("Pants", char)
  1500. pants.Name = "Pants"
  1501. char.Shirt.ShirtTemplate = Shirt
  1502. char.Pants.PantsTemplate = Pants
  1503. end)
  1504. -------------------------------------------------------
  1505. --Start Attacks N Stuff--
  1506. -------------------------------------------------------
  1507. function attackone()
  1508. attack = true
  1509. hum.WalkSpeed = 3.01
  1510. for i = 0, 1.7, 0.1 do
  1511. swait()
  1512. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-60)), 0.2)
  1513. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-7.5 * Sin(sine / 30)), Rad(0), Rad(60)), 0.2)
  1514. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9* Player_Size - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.2)
  1515. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9* Player_Size - 0.1 * Cos(sine / 20)* Player_Size, -.6* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(20)), 0.2)
  1516. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(160), Rad(-.6), Rad(13)), 0.2)
  1517. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(15), Rad(-6), Rad(-25 - 4.5 * Sin(sine / 20))), 0.2)
  1518. end
  1519. Cso("28144268", tors, 10, 1)
  1520. for i = 0, 1.4, 0.1 do
  1521. swait()
  1522. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-60)), 0.2)
  1523. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-7.5 * Sin(sine / 30)), Rad(0), Rad(60)), 0.2)
  1524. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9* Player_Size - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.2)
  1525. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9* Player_Size - 0.1 * Cos(sine / 20)* Player_Size, -.6* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(20)), 0.2)
  1526. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(160), Rad(-.6), Rad(13)), 0.2)
  1527. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(15), Rad(-6), Rad(-25 - 4.5 * Sin(sine / 20))), 0.2)
  1528. end
  1529. for i = 0, 1.4, 0.1 do
  1530. swait()
  1531. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 20)) * angles(Rad(0), Rad(0), Rad(-15)), 0.3)
  1532. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(25 - 7.5 * Sin(sine / 30)), Rad(0), Rad(15)), 0.3)
  1533. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9* Player_Size - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(-20)), 0.3)
  1534. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9* Player_Size - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-84), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.3)
  1535. RW.C0 = clerp(RW.C0, CF(1* Player_Size, 0.3 + 0.02 * Sin(sine / 20)* Player_Size, -.6* Player_Size) * angles(Rad(5), Rad(-.6), Rad(-25)), 0.3)
  1536. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(15), Rad(-6), Rad(-25 - 4.5 * Sin(sine / 20))), 0.3)
  1537. for i, v in pairs(FindNearestHead(tors.CFrame.p, 4)) do
  1538. if v:FindFirstChild("Head") then
  1539. Eviscerate(v)
  1540. end
  1541. end
  1542. end
  1543. attack = false
  1544. hum.WalkSpeed = 16
  1545. end
  1546. function attacktwo()
  1547. attack = true
  1548. hum.WalkSpeed = 3.01
  1549. for i = 0, 1.7, 0.1 do
  1550. swait()
  1551. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(25), Rad(0), Rad(0)), 0.3)
  1552. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-5), Rad(0), Rad(0)), 0.3)
  1553. 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.3)
  1554. 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.3)
  1555. 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.3)
  1556. 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.3)
  1557. end
  1558. Cso("203426541", rl, 10, 1)
  1559. CameraEnshaking(2, 3)
  1560. for i = 0, 1.4, 0.1 do
  1561. swait()
  1562. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, -.5, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-25), Rad(0), Rad(0)), 0.3)
  1563. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(5), Rad(0), Rad(0)), 0.3)
  1564. 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.3)
  1565. 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.3)
  1566. 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.3)
  1567. 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.3)
  1568. for i, v in pairs(FindNearestHead(tors.CFrame.p, 5)) do
  1569. if v:FindFirstChild("Head") then
  1570. Eviscerate(v)
  1571. end
  1572. end
  1573. end
  1574. attack = false
  1575. hum.WalkSpeed = 16
  1576. end
  1577. function attackthree()
  1578. attack = true
  1579. hum.WalkSpeed = 3.01
  1580. for i = 0, 1.4, 0.1 do
  1581. swait()
  1582. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-25), Rad(0), Rad(0)), 0.3)
  1583. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.3)
  1584. 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.3)
  1585. 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.3)
  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(90), Rad(0), Rad(35)), 0.3)
  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(90), Rad(0), Rad(-35)), 0.3)
  1588. end
  1589. Cso("203426541", hed, 10, 1)
  1590. for i = 0, 1.7, 0.1 do
  1591. swait()
  1592. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(25), Rad(0), Rad(0)), 0.3)
  1593. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(0), Rad(0), Rad(0)), 0.3)
  1594. 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.3)
  1595. 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.3)
  1596. RW.C0 = clerp(RW.C0, CF(1.3* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, -.6* Player_Size) * angles(Rad(90), Rad(0), Rad(-35)), 0.3)
  1597. LW.C0 = clerp(LW.C0, CF(-1.3* Player_Size, 0.5 + 0.02 * Sin(sine / 20)* Player_Size, -.6* Player_Size) * angles(Rad(90), Rad(0), Rad(35)), 0.3)
  1598. for i, v in pairs(FindNearestHead(tors.CFrame.p, 6)) do
  1599. if v:FindFirstChild("Head") then
  1600. Eviscerate(v)
  1601. end
  1602. end
  1603. end
  1604. attack = false
  1605. hum.WalkSpeed = 16
  1606. end
  1607. function CHAOS()
  1608. attack = true
  1609. root.CFrame = CFrame.new(CFrame.new(mouse.Hit.p)*CFrame.new(0,2.8,0).p,root.Position)
  1610. Cso("2545012765", hed, 10, 1)
  1611. Effects.Ring.Create(BrickC("Really black"), root.CFrame * CF(0, -2.3, 0) * angles(Rad(90),Rad(-1),Rad(0)), 2.5, 2.5, 40, 3, 3, 45, 0.01)
  1612.  
  1613. Effects.Sphere.Create(BrickColor.new("Really black"), root.CFrame * CF(0, -2, 0), 10, 7, 10, 15, -0.1, 15, 0.04)
  1614. Effects.Sphere.Create(BrickColor.new("Really black"), root.CFrame * CF(0, -2, 0), 10, 6, 10, 15, -0.1, 15, 0.02)
  1615. Effects.Sphere.Create(BrickColor.new("Really black"), root.CFrame * CF(0, -2, 0), 10, 4, 10, 15, -0.1, 15, 0.01)
  1616.  
  1617. PixelBlock(2,7,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2,2,2,0.3,maincolor,0)
  1618. PixelBlock(1.5,9.5,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2,2,2,0.3,maincolor,0)
  1619. PixelBlock(1,12,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2,2,2,0.3,maincolor,0)
  1620. PixelBlock(2,7,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2,2,2,0.3,maincolor,0)
  1621. PixelBlock(1.5,9.5,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2,2,2,0.3,maincolor,0)
  1622. PixelBlock(1,12,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2,2,2,0.3,maincolor,0)
  1623. PixelBlock(2,7,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2,2,2,0.3,maincolor,0)
  1624. PixelBlock(1.5,9.5,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2,2,2,0.3,maincolor,0)
  1625. PixelBlock(1,12,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2,2,2,0.3,maincolor,0)
  1626. PixelBlock(2,7,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2,2,2,0.3,maincolor,0)
  1627. PixelBlock(1.5,9.5,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2,2,2,0.3,maincolor,0)
  1628. PixelBlock(1,12,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2,2,2,0.3,maincolor,0)
  1629. for i, v in pairs(FindNearestHead(Blobby.CFrame.p, 9.5)) do
  1630. if v:FindFirstChild("Head") then
  1631. Eviscerate(v)
  1632. end
  1633. end
  1634. attack = false
  1635. end
  1636. function Technobeam()
  1637. attack = true
  1638. for i = 0, 1.7, 0.1 do
  1639. swait()
  1640. Effects.Block.Create(BrickC("White"), ra.CFrame * CF(0, -1, 0), 2, 2, 2, 3, 3, 3, 0.05)
  1641. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(180), Rad(-10 * Cos(sine / 20)), Rad(15 - 2.5 * Sin(sine / 20))), 0.1)
  1642. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(10 * Cos(sine / 20)), Rad(-15 + 2.5 * Sin(sine / 20))), 0.1)
  1643. end
  1644. Cso("438666077", char, 10, 1)
  1645. Magic(15, "Add", mouse.Hit * CFrame.new(0, -2.9, 0), Vector3.new(0, 0, 0), 1, maincolor, "Sphere")
  1646. Magic(15, "Add", mouse.Hit * CFrame.new(0, -2.9, 0), Vector3.new(0, 0, 0), 2, maincolor, "Sphere")
  1647. Magic(1, "Add", mouse.Hit, Vector3.new(1, 100000, 1), 0.5, maincolor, "Sphere")
  1648. Magic(1, "Add", mouse.Hit, Vector3.new(1, 1, 1), 0.75, maincolor, "Sphere")
  1649. CameraEnshaking(4, 5)
  1650. Cso("444667859", char, 10, 1)
  1651. for i, v in pairs(FindNearestHead(mouse.Hit.p, 15)) do
  1652. if v:FindFirstChild("Head") then
  1653. Eviscerate(v)
  1654. end
  1655. end
  1656. attack = false
  1657. end
  1658. function beam()
  1659. attack = true
  1660. hum.WalkSpeed = 0
  1661. local Ring1 = Instance.new("Part", char)
  1662. Ring1.Anchored = true
  1663. Ring1.BrickColor = maincolor
  1664. Ring1.CanCollide = false
  1665. Ring1.FormFactor = 3
  1666. Ring1.Name = "Ring"
  1667. Ring1.Material = "Neon"
  1668. Ring1.Size = Vector3.new(1, 0.05, 1)
  1669. Ring1.Transparency = 1
  1670. Ring1.TopSurface = 0
  1671. Ring1.BottomSurface = 0
  1672. local Ring1Mesh = Instance.new("SpecialMesh", Ring1)
  1673. Ring1Mesh.MeshType = "Brick"
  1674. Ring1Mesh.Name = "SizeMesh"
  1675. Ring1Mesh.Scale = Vector3.new(0, 1, 0)
  1676. local InnerRing1 = Ring1:Clone()
  1677. InnerRing1.Parent = char
  1678. InnerRing1.Transparency = 0
  1679. InnerRing1.BrickColor = BrickColor.new("New Yeller")
  1680. InnerRing1.Size = Vector3.new(1, 1, 1)
  1681. local InnerRing1Mesh = InnerRing1.SizeMesh
  1682. InnerRing1Mesh.Scale = Vector3.new(0, 0, 0)
  1683. InnerRing1Mesh.MeshType = "Sphere"
  1684. Ring1:Destroy()
  1685. for i = 0, 6, 0.1 do
  1686. swait()
  1687. --orb.CFrame = Pupil.CFrame
  1688. Aura(7, 0.12, "Add", Head.CFrame * angles(Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360))), 0.5, 0.5, 5, -0.005, maincolor, 0, "Sphere")
  1689. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, 0.9 + 0.5* Player_Size * Cos(sine / -15)) * angles(Rad(0), Rad(0), Rad(0)), 0.17)
  1690. neck.C0 = clerp(neck.C0, necko * CF(0, 0, 1) * angles(Rad(-2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3)
  1691. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, -.2* Player_Size) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(74), Rad(0)) * angles(Rad(-2.5), Rad(0), Rad(-4)), 0.15)
  1692. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(-74), Rad(0)) * angles(Rad(-2.5), Rad(0), Rad(-4)), 0.15)
  1693. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.06 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-35), Rad(0), Rad(165 + 2.5 * Sin(sine / 20))), 0.12)
  1694. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.06 * Sin(sine / 20)* Player_Size, 0* Player_Size) * angles(Rad(-35), Rad(0), Rad(-165 + 2.5 * Sin(sine / 20))), 0.12)
  1695. end
  1696. InnerRing1.Transparency = 1
  1697. InnerRing1.CFrame = Head.CFrame + root.CFrame.lookVector * 5
  1698. Cso("2545012765", char, 10, 1)
  1699. Cso("2606661976", char, 2.3, 1)
  1700. local a = IT("Part", char)
  1701. a.Name = "Direction"
  1702. a.Anchored = true
  1703. a.BrickColor = BrickC("Pastel violet")
  1704. a.Material = "SmoothPlastic"
  1705. a.Transparency = 0
  1706. a.Shape = "Cylinder"
  1707. a.CanCollide = false
  1708. local a2 = IT("Part", char)
  1709. a2.Name = "Direction"
  1710. a2.Anchored = true
  1711. a2.BrickColor = maincolor
  1712. a2.Color = maincolor.Color
  1713. a2.Material = "Neon"
  1714. a2.Transparency = 0.7
  1715. a2.Shape = "Cylinder"
  1716. a2.CanCollide = false
  1717. local ba = IT("Part", char)
  1718. ba.Name = "HitDirect"
  1719. ba.Anchored = true
  1720. ba.BrickColor = maincolor
  1721. ba.Material = "Neon"
  1722. ba.Transparency = 1
  1723. ba.CanCollide = false
  1724. local ray = Ray.new(InnerRing1.CFrame.p, (mouse.Hit.p - InnerRing1.CFrame.p).unit * 1000)
  1725. local ignore = char
  1726. local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  1727. a.BottomSurface = 10
  1728. a.TopSurface = 10
  1729. a2.BottomSurface = 10
  1730. a2.TopSurface = 10
  1731. local distance = (InnerRing1.CFrame.p - position).magnitude
  1732. a.Size = Vector3.new(distance, 1, 1)
  1733. a.CFrame = CF(InnerRing1.CFrame.p, position) * CF(0, 0, -distance / 2)
  1734. a2.Size = Vector3.new(distance, 1, 1)
  1735. a2.CFrame = CF(InnerRing1.CFrame.p, position) * CF(0, 0, -distance / 2)
  1736. ba.CFrame = CF(InnerRing1.CFrame.p, position) * CF(0, 0, -distance)
  1737. a.CFrame = a.CFrame * angles(0, Rad(90), 0)
  1738. a2.CFrame = a2.CFrame * angles(0, Rad(90), 0)
  1739. game:GetService("Debris"):AddItem(a, 20)
  1740. game:GetService("Debris"):AddItem(a2, 20)
  1741. game:GetService("Debris"):AddItem(ba, 20)
  1742. local msh = Instance.new("SpecialMesh", a)
  1743. msh.MeshType = "Brick"
  1744. msh.Scale = Vector3.new(1, 5, 5)
  1745. local msh2 = Instance.new("SpecialMesh", a2)
  1746. msh2.MeshType = "Brick"
  1747. msh2.Scale = Vector3.new(1, 7, 7)
  1748. for i = 0, 10, 0.1 do
  1749. swait()
  1750. CameraEnshaking(1, 5)
  1751. a2.Color = maincolor.Color
  1752. root.CFrame = FaceMouse()[1]
  1753. InnerRing1.CFrame = Head.CFrame + root.CFrame.lookVector * 4
  1754. ray = Ray.new(InnerRing1.CFrame.p, (mouse.Hit.p - InnerRing1.CFrame.p).unit * 1000)
  1755. hit, position, normal = workspace:FindPartOnRay(ray, ignore)
  1756. distance = (InnerRing1.CFrame.p - position).magnitude
  1757. a.Size = Vector3.new(distance, 1, 1)
  1758. a.CFrame = CF(InnerRing1.CFrame.p, position) * CF(0, 0, -distance / 2)
  1759. a2.Size = Vector3.new(distance, 1, 1)
  1760. a2.CFrame = CF(InnerRing1.CFrame.p, position) * CF(0, 0, -distance / 2)
  1761. ba.CFrame = CF(InnerRing1.CFrame.p, position) * CF(0, 0, -distance)
  1762. a.CFrame = a.CFrame * angles(0, Rad(90), 0)
  1763. a2.CFrame = a2.CFrame * angles(0, Rad(90), 0)
  1764. msh.Scale = msh.Scale - Vector3.new(0, 0.05, 0.05)
  1765. msh2.Scale = msh2.Scale - Vector3.new(0, 0.03, 0.03)
  1766. Aura(5, 0.15, "Add", ba.CFrame * angles(Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360)), Rad(Mrandom(-360, 360))), 15, 15, 25, -0.15, maincolor, 0, "Sphere")
  1767. for i, v in pairs(FindNearestHead(ba.CFrame.p, 14.5)) do
  1768. if v:FindFirstChild("Head") then
  1769. Eviscerate(v)
  1770. end
  1771. end
  1772. end
  1773. a:Destroy()
  1774. a2:Destroy()
  1775. ba:Destroy()
  1776. InnerRing1:Destroy()
  1777. attack = false
  1778. hum.WalkSpeed = 10
  1779. hum.CameraOffset = Vector3.new(0,0,0)
  1780. end
  1781. function OP9999()
  1782. attack = true
  1783. hum.WalkSpeed = 3.01
  1784. M2.Scale = Vector3.new(0, 0, 0)
  1785. Cso("907329669", char, 10, 1)
  1786. for i = 0,9,0.1 do
  1787. swait()
  1788. Effects.Block.Create(BrickC("Really red"), ll.CFrame * CF(0, -1, 0), 2, 2, 2, 3, 3, 3, 0.05)
  1789. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-20), Rad(0), Rad(0)), 0.15)
  1790. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-20 - 2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.3)
  1791. RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-4.5), Rad(0), Rad(-20)), 0.15)
  1792. LH.C0 = clerp(LH.C0, CF(-1, -0.3 - 0.1 * Cos(sine / 20), -.4 + 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-6.5), Rad(5 * Cos(sine / 20)), Rad(25)), 0.15)
  1793. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(135), Rad(0), Rad(-45 - 2.5 * Sin(sine / 20))), 0.1)
  1794. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(135), Rad(0), Rad(45 + 2.5 * Sin(sine / 20))), 0.1)
  1795. end
  1796. Cso("438666077", char, 10, 1)
  1797. for i = 0,3.7,0.1 do
  1798. swait()
  1799. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(20), Rad(0), Rad(0)), 0.15)
  1800. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(20 - 2.5 * Sin(sine / 20)), Rad(0), Rad(0)), 0.3)
  1801. RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-4.5), Rad(0), Rad(20)), 0.15)
  1802. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), -.4 + 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-6.5), Rad(5 * Cos(sine / 20)), Rad(-25)), 0.15)
  1803. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(-40), Rad(0), Rad(25 - 2.5 * Sin(sine / 20))), 0.1)
  1804. LW.C0 = clerp(LW.C0, CF(-1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(-40), Rad(0), Rad(-25 + 2.5 * Sin(sine / 20))), 0.1)
  1805. CameraEnshaking(2, 8)
  1806. Effects.Sphere.Create(BrickColor.new("Really red"), root.CFrame * CF(0, -3, 0), 10, 4, 10, 9999999, -0.1, 9999999, 0.01)
  1807. for i, v in pairs(FindNearestHead(tors.CFrame.p, 9999999)) do
  1808. if v:FindFirstChild("Head") then
  1809. Eviscerate(v)
  1810. end
  1811. end
  1812. end
  1813. M2.Scale = Vector3.new(0.5, 0.5, 0.5)
  1814. attack = false
  1815. hum.WalkSpeed = 16
  1816. end
  1817. -------------------------------------------------------
  1818. --End Attacks N Stuff--
  1819. -------------------------------------------------------
  1820. mouse.KeyDown:connect(function(key)
  1821. if key == 'q' then
  1822. Swing = 2
  1823. hum.WalkSpeed = 40
  1824. end
  1825. end)
  1826. mouse.KeyUp:connect(function(key)
  1827. if key == 'q' then
  1828. Swing = 1
  1829. hum.WalkSpeed = 16
  1830. end
  1831. end)
  1832.  
  1833. mouse.KeyDown:connect(function(key)
  1834. if attack == false then
  1835. if key == 'e' then
  1836. Technobeam()
  1837. elseif key == 'r' then
  1838. OP9999()
  1839. elseif key == 't' then
  1840. CHAOS()
  1841. elseif key == 'f' then
  1842. beam()
  1843. elseif key == 'g' then
  1844.  
  1845. elseif key == 'h' then
  1846.  
  1847. end
  1848. end
  1849. end)
  1850. local Combo = 1
  1851. mouse.Button1Down:connect(function(key)
  1852. if attack == false then
  1853. if Combo == 1 then
  1854. Combo = 2
  1855. attackone()
  1856. elseif Combo == 2 then
  1857. Combo = 3
  1858. attacktwo()
  1859. elseif Combo == 3 then
  1860. Combo = 1
  1861. attackthree()
  1862. end
  1863. end
  1864. end)
  1865. -------------------------------------------------------
  1866. --Start Animations--
  1867. -------------------------------------------------------
  1868. while true do
  1869. swait()
  1870. sine = sine + change
  1871. local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude
  1872. local velderp = root.Velocity.y
  1873. hitfloor, posfloor = rayCast(root.Position, CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0)).lookVector, 4* Player_Size, char)
  1874. if equipped == true or equipped == false then
  1875. if attack == false then
  1876. idle = idle + 1
  1877. else
  1878. idle = 0
  1879. end
  1880. --Aura(5, 0.15, "Add", root.CFrame * CFrame.new(math.random(-5, 5), -10, math.random(-5, 5)) * CFrame.Angles(math.rad(90), 0, 0), 1.5, 1.5, 10, -0.015, maincolor, 0, "Sphere")
  1881. if 1 < root.Velocity.y and hitfloor == nil then
  1882. Anim = "Jump"
  1883. if attack == false then
  1884. 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)
  1885. 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)
  1886. 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)
  1887. 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)
  1888. 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)
  1889. 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)
  1890. end
  1891. elseif -1 > root.Velocity.y and hitfloor == nil then
  1892. Anim = "Fall"
  1893. if attack == false then
  1894. 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)
  1895. 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)
  1896. 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)
  1897. 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)
  1898. 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)
  1899. 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)
  1900. end
  1901. elseif torvel < 1 and hitfloor ~= nil then
  1902. Anim = "Idle"
  1903. change = 1
  1904. if attack == false then
  1905. rootj.C0 = clerp(rootj.C0, RootCF * CF(0, 0, -0.1 + 0.1 * Cos(sine / 20)) * angles(Rad(-2 + 2 * Cos(sine / 12)), Rad(0), Rad(0)), 0.15)
  1906. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(Rad(-2.5 * Sin(sine / 30)), Rad(0), Rad(0)), 0.3)
  1907. RH.C0 = clerp(RH.C0, CF(1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * RHCF * angles(Rad(-4.5), Rad(0), Rad(0)), 0.15)
  1908. LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 20), 0.025 * Cos(sine / 20)) * LHCF * angles(Rad(-6.5), Rad(0), Rad(0)), 0.15)
  1909. RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.05 * Sin(sine / 20), 0.025 * Cos(sine / 20)) * angles(Rad(0), Rad(-10 * Cos(sine / 20)), Rad(5 - 2.5 * Sin(sine / 20))), 0.1)
  1910. LW.C0 = clerp(LW.C0, CF(-1* Player_Size, 0.3 + 0.06 * Sin(sine / 20)* Player_Size, .6* Player_Size) * angles(Rad(-35), Rad(25 + 2.5 * Sin(sine / 20)), Rad(55 + 2.5 * Sin(sine / 20))), 0.12)
  1911. end
  1912. elseif torvel > 2 and torvel < 25 and hitfloor ~= nil then
  1913. Anim = "Walk"
  1914. change = 1
  1915. if attack == false then
  1916. 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)
  1917. 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)
  1918. 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)
  1919. 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)
  1920. 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(-.6) - ra.RotVelocity.Y / 75), 0.1)
  1921. 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(.6) + la.RotVelocity.Y / 75), 0.1)
  1922. end
  1923. elseif torvel >= 25 and hitfloor ~= nil then
  1924. Anim = "Sprint"
  1925. change = 1.35
  1926. if attack == false then
  1927. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.175 + 0.025 * Cos(sine / 3.5) + -Sin(sine / 3.5) / 7* Player_Size) * angles(Rad(26 - 4.5 * Cos(sine / 3.5)), Rad(0) - root.RotVelocity.Y / 75, Rad(15 * Cos(sine / 7))), 0.15)
  1928. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-2.5 * Sin(sine / 20)), Rad(0), Rad(0) - hed.RotVelocity.Y / 15), 0.3)
  1929. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.925 - 0.5 * Cos(sine / 7) / 2* Player_Size, 0.7 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-15 - 55 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 0.1 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  1930. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.925 + 0.5 * Cos(sine / 7) / 2* Player_Size, -0.7 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-15 + 55 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 0.1 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  1931. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 30)* Player_Size, 0.34 * Cos(sine / 7* Player_Size)) * angles(Rad(125) * Cos(sine / 7) , Rad(0), Rad(5) - ra.RotVelocity.Y / 75), 0.15)
  1932. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 30)* Player_Size, -0.34 * Cos(sine / 7* Player_Size)) * angles(Rad(-125) * Cos(sine / 7) , Rad(0) , Rad(-5) + la.RotVelocity.Y / 75), 0.15)
  1933. end
  1934. end
  1935. end
  1936. Music.SoundId = "rbxassetid://"..SONG
  1937. Music.Looped = true
  1938. Music.Pitch = 1
  1939. Music.Volume = 1
  1940. Music.Parent = tors
  1941. Music:Resume()
  1942. if 0 < #Effects then
  1943. for e = 1, #Effects do
  1944. if Effects[e] ~= nil then
  1945. local Thing = Effects[e]
  1946. if Thing ~= nil then
  1947. local Part = Thing[1]
  1948. local Mode = Thing[2]
  1949. local Delay = Thing[3]
  1950. local IncX = Thing[4]
  1951. local IncY = Thing[5]
  1952. local IncZ = Thing[6]
  1953. if 1 >= Thing[1].Transparency then
  1954. if Thing[2] == "Block1" then
  1955. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1956. local Mesh = Thing[1].Mesh
  1957. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1958. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1959. elseif Thing[2] == "Block2" then
  1960. Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0)
  1961. local Mesh = Thing[7]
  1962. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1963. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1964. elseif Thing[2] == "Block3" then
  1965. 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)
  1966. local Mesh = Thing[7]
  1967. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1968. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1969. elseif Thing[2] == "Cylinder" then
  1970. local Mesh = Thing[1].Mesh
  1971. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1972. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1973. elseif Thing[2] == "Blood" then
  1974. local Mesh = Thing[7]
  1975. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0)
  1976. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1977. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1978. elseif Thing[2] == "Elec" then
  1979. local Mesh = Thing[1].Mesh
  1980. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1981. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1982. elseif Thing[2] == "Disappear" then
  1983. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1984. elseif Thing[2] == "Shatter" then
  1985. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1986. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  1987. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  1988. Thing[6] = Thing[6] + Thing[5]
  1989. end
  1990. else
  1991. Part.Parent = nil
  1992. table.remove(Effects, e)
  1993. end
  1994. end
  1995. end
  1996. end
  1997. end
  1998. end
  1999. -------------------------------------------------------
  2000. --End Animations And Script--
  2001. -------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement