Advertisement
Acc_kili

Untitled

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