Advertisement
AsukaOS

Fe Banned Hammer God

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