Advertisement
Zach_rookie_editor3

Mega smasher 2

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