Advertisement
Guest User

script

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