Advertisement
memberhero

FE Gale Fighter Not A Reupload

Dec 29th, 2020
245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 165.64 KB | None | 0 0
  1. wait(0.2)
  2. Bypass = "death"
  3. FELOADLIBRARY = {}
  4. FELOADLIBRARY = {}
  5.  
  6. local string = string
  7. local math = math
  8. local table = table
  9. local error = error
  10. local tonumber = tonumber
  11. local tostring = tostring
  12. local type = type
  13. local setmetatable = setmetatable
  14. local pairs = pairs
  15. local ipairs = ipairs
  16. local assert = assert
  17.  
  18.  
  19. local StringBuilder = {
  20. buffer = {}
  21. }
  22.  
  23. function StringBuilder:New()
  24. local o = {}
  25. setmetatable(o, self)
  26. self.__index = self
  27. o.buffer = {}
  28. return o
  29. end
  30.  
  31. function StringBuilder:Append(s)
  32. self.buffer[#self.buffer+1] = s
  33. end
  34.  
  35. function StringBuilder:ToString()
  36. return table.concat(self.buffer)
  37. end
  38.  
  39. local JsonWriter = {
  40. backslashes = {
  41. ['\b'] = "\\b",
  42. ['\t'] = "\\t",
  43. ['\n'] = "\\n",
  44. ['\f'] = "\\f",
  45. ['\r'] = "\\r",
  46. ['"'] = "\\\"",
  47. ['\\'] = "\\\\",
  48. ['/'] = "\\/"
  49. }
  50. }
  51.  
  52. function JsonWriter:New()
  53. local o = {}
  54. o.writer = StringBuilder:New()
  55. setmetatable(o, self)
  56. self.__index = self
  57. return o
  58. end
  59.  
  60. function JsonWriter:Append(s)
  61. self.writer:Append(s)
  62. end
  63.  
  64. function JsonWriter:ToString()
  65. return self.writer:ToString()
  66. end
  67.  
  68. function JsonWriter:Write(o)
  69. local t = type(o)
  70. if t == "nil" then
  71. self:WriteNil()
  72. elseif t == "boolean" then
  73. self:WriteString(o)
  74. elseif t == "number" then
  75. self:WriteString(o)
  76. elseif t == "string" then
  77. self:ParseString(o)
  78. elseif t == "table" then
  79. self:WriteTable(o)
  80. elseif t == "function" then
  81. self:WriteFunction(o)
  82. elseif t == "thread" then
  83. self:WriteError(o)
  84. elseif t == "userdata" then
  85. self:WriteError(o)
  86. end
  87. end
  88.  
  89. function JsonWriter:WriteNil()
  90. self:Append("null")
  91. end
  92.  
  93. function JsonWriter:WriteString(o)
  94. self:Append(tostring(o))
  95. end
  96.  
  97. function JsonWriter:ParseString(s)
  98. self:Append('"')
  99. self:Append(string.gsub(s, "[%z%c\\\"/]", function(n)
  100. local c = self.backslashes[n]
  101. if c then return c end
  102. return string.format("\\u%.4X", string.byte(n))
  103. end))
  104. self:Append('"')
  105. end
  106.  
  107. function JsonWriter:IsArray(t)
  108. local count = 0
  109. local isindex = function(k)
  110. if type(k) == "number" and k > 0 then
  111. if math.floor(k) == k then
  112. return true
  113. end
  114. end
  115. return false
  116. end
  117. for k,v in pairs(t) do
  118. if not isindex(k) then
  119. return false, '{', '}'
  120. else
  121. count = math.max(count, k)
  122. end
  123. end
  124. return true, '[', ']', count
  125. end
  126.  
  127. function JsonWriter:WriteTable(t)
  128. local ba, st, et, n = self:IsArray(t)
  129. self:Append(st)
  130. if ba then
  131. for i = 1, n do
  132. self:Write(t[i])
  133. if i < n then
  134. self:Append(',')
  135. end
  136. end
  137. else
  138. local first = true;
  139. for k, v in pairs(t) do
  140. if not first then
  141. self:Append(',')
  142. end
  143. first = false;
  144. self:ParseString(k)
  145. self:Append(':')
  146. self:Write(v)
  147. end
  148. end
  149. self:Append(et)
  150. end
  151.  
  152. function JsonWriter:WriteError(o)
  153. error(string.format(
  154. "Encoding of %s unsupported",
  155. tostring(o)))
  156. end
  157.  
  158. function JsonWriter:WriteFunction(o)
  159. if o == Null then
  160. self:WriteNil()
  161. else
  162. self:WriteError(o)
  163. end
  164. end
  165.  
  166. local StringReader = {
  167. s = "",
  168. i = 0
  169. }
  170.  
  171. function StringReader:New(s)
  172. local o = {}
  173. setmetatable(o, self)
  174. self.__index = self
  175. o.s = s or o.s
  176. return o
  177. end
  178.  
  179. function StringReader:Peek()
  180. local i = self.i + 1
  181. if i <= #self.s then
  182. return string.sub(self.s, i, i)
  183. end
  184. return nil
  185. end
  186.  
  187. function StringReader:Next()
  188. self.i = self.i+1
  189. if self.i <= #self.s then
  190. return string.sub(self.s, self.i, self.i)
  191. end
  192. return nil
  193. end
  194.  
  195. function StringReader:All()
  196. return self.s
  197. end
  198.  
  199. local JsonReader = {
  200. escapes = {
  201. ['t'] = '\t',
  202. ['n'] = '\n',
  203. ['f'] = '\f',
  204. ['r'] = '\r',
  205. ['b'] = '\b',
  206. }
  207. }
  208.  
  209. function JsonReader:New(s)
  210. local o = {}
  211. o.reader = StringReader:New(s)
  212. setmetatable(o, self)
  213. self.__index = self
  214. return o;
  215. end
  216.  
  217. function JsonReader:Read()
  218. self:SkipWhiteSpace()
  219. local peek = self:Peek()
  220. if peek == nil then
  221. error(string.format(
  222. "Nil string: '%s'",
  223. self:All()))
  224. elseif peek == '{' then
  225. return self:ReadObject()
  226. elseif peek == '[' then
  227. return self:ReadArray()
  228. elseif peek == '"' then
  229. return self:ReadString()
  230. elseif string.find(peek, "[%+%-%d]") then
  231. return self:ReadNumber()
  232. elseif peek == 't' then
  233. return self:ReadTrue()
  234. elseif peek == 'f' then
  235. return self:ReadFalse()
  236. elseif peek == 'n' then
  237. return self:ReadNull()
  238. elseif peek == '/' then
  239. self:ReadComment()
  240. return self:Read()
  241. else
  242. return nil
  243. end
  244. end
  245.  
  246. function JsonReader:ReadTrue()
  247. self:TestReservedWord{'t','r','u','e'}
  248. return true
  249. end
  250.  
  251. function JsonReader:ReadFalse()
  252. self:TestReservedWord{'f','a','l','s','e'}
  253. return false
  254. end
  255.  
  256. function JsonReader:ReadNull()
  257. self:TestReservedWord{'n','u','l','l'}
  258. return nil
  259. end
  260.  
  261. function JsonReader:TestReservedWord(t)
  262. for i, v in ipairs(t) do
  263. if self:Next() ~= v then
  264. error(string.format(
  265. "Error reading '%s': %s",
  266. table.concat(t),
  267. self:All()))
  268. end
  269. end
  270. end
  271.  
  272. function JsonReader:ReadNumber()
  273. local result = self:Next()
  274. local peek = self:Peek()
  275. while peek ~= nil and string.find(
  276. peek,
  277. "[%+%-%d%.eE]") do
  278. result = result .. self:Next()
  279. peek = self:Peek()
  280. end
  281. result = tonumber(result)
  282. if result == nil then
  283. error(string.format(
  284. "Invalid number: '%s'",
  285. result))
  286. else
  287. return result
  288. end
  289. end
  290.  
  291. function JsonReader:ReadString()
  292. local result = ""
  293. assert(self:Next() == '"')
  294. while self:Peek() ~= '"' do
  295. local ch = self:Next()
  296. if ch == '\\' then
  297. ch = self:Next()
  298. if self.escapes[ch] then
  299. ch = self.escapes[ch]
  300. end
  301. end
  302. result = result .. ch
  303. end
  304. assert(self:Next() == '"')
  305. local fromunicode = function(m)
  306. return string.char(tonumber(m, 16))
  307. end
  308. return string.gsub(
  309. result,
  310. "u%x%x(%x%x)",
  311. fromunicode)
  312. end
  313.  
  314. function JsonReader:ReadComment()
  315. assert(self:Next() == '/')
  316. local second = self:Next()
  317. if second == '/' then
  318. self:ReadSingleLineComment()
  319. elseif second == '*' then
  320. self:ReadBlockComment()
  321. else
  322. error(string.format(
  323. "Invalid comment: %s",
  324. self:All()))
  325. end
  326. end
  327.  
  328. function JsonReader:ReadBlockComment()
  329. local done = false
  330. while not done do
  331. local ch = self:Next()
  332. if ch == '*' and self:Peek() == '/' then
  333. done = true
  334. end
  335. if not done and
  336. ch == '/' and
  337. self:Peek() == "*" then
  338. error(string.format(
  339. "Invalid comment: %s, '/*' illegal.",
  340. self:All()))
  341. end
  342. end
  343. self:Next()
  344. end
  345.  
  346. function JsonReader:ReadSingleLineComment()
  347. local ch = self:Next()
  348. while ch ~= '\r' and ch ~= '\n' do
  349. ch = self:Next()
  350. end
  351. end
  352.  
  353. function JsonReader:ReadArray()
  354. local result = {}
  355. assert(self:Next() == '[')
  356. local done = false
  357. if self:Peek() == ']' then
  358. done = true;
  359. end
  360. while not done do
  361. local item = self:Read()
  362. result[#result+1] = item
  363. self:SkipWhiteSpace()
  364. if self:Peek() == ']' then
  365. done = true
  366. end
  367. if not done then
  368. local ch = self:Next()
  369. if ch ~= ',' then
  370. error(string.format(
  371. "Invalid array: '%s' due to: '%s'",
  372. self:All(), ch))
  373. end
  374. end
  375. end
  376. assert(']' == self:Next())
  377. return result
  378. end
  379.  
  380. function JsonReader:ReadObject()
  381. local result = {}
  382. assert(self:Next() == '{')
  383. local done = false
  384. if self:Peek() == '}' then
  385. done = true
  386. end
  387. while not done do
  388. local key = self:Read()
  389. if type(key) ~= "string" then
  390. error(string.format(
  391. "Invalid non-string object key: %s",
  392. key))
  393. end
  394. self:SkipWhiteSpace()
  395. local ch = self:Next()
  396. if ch ~= ':' then
  397. error(string.format(
  398. "Invalid object: '%s' due to: '%s'",
  399. self:All(),
  400. ch))
  401. end
  402. self:SkipWhiteSpace()
  403. local val = self:Read()
  404. result[key] = val
  405. self:SkipWhiteSpace()
  406. if self:Peek() == '}' then
  407. done = true
  408. end
  409. if not done then
  410. ch = self:Next()
  411. if ch ~= ',' then
  412. error(string.format(
  413. "Invalid array: '%s' near: '%s'",
  414. self:All(),
  415. ch))
  416. end
  417. end
  418. end
  419. assert(self:Next() == "}")
  420. return result
  421. end
  422.  
  423. function JsonReader:SkipWhiteSpace()
  424. local p = self:Peek()
  425. while p ~= nil and string.find(p, "[%s/]") do
  426. if p == '/' then
  427. self:ReadComment()
  428. else
  429. self:Next()
  430. end
  431. p = self:Peek()
  432. end
  433. end
  434.  
  435. function JsonReader:Peek()
  436. return self.reader:Peek()
  437. end
  438.  
  439. function JsonReader:Next()
  440. return self.reader:Next()
  441. end
  442.  
  443. function JsonReader:All()
  444. return self.reader:All()
  445. end
  446.  
  447. function Encode(o)
  448. local writer = JsonWriter:New()
  449. writer:Write(o)
  450. return writer:ToString()
  451. end
  452.  
  453. function Decode(s)
  454. local reader = JsonReader:New(s)
  455. return reader:Read()
  456. end
  457.  
  458. function Null()
  459. return Null
  460. end
  461. -------------------- End JSON Parser ------------------------
  462.  
  463. FELOADLIBRARY.DecodeJSON = function(jsonString)
  464. pcall(function() warn("RbxUtility.DecodeJSON is deprecated, please use Game:GetService('HttpService'):JSONDecode() instead.") end)
  465.  
  466. if type(jsonString) == "string" then
  467. return Decode(jsonString)
  468. end
  469. print("RbxUtil.DecodeJSON expects string argument!")
  470. return nil
  471. end
  472.  
  473. FELOADLIBRARY.EncodeJSON = function(jsonTable)
  474. pcall(function() warn("RbxUtility.EncodeJSON is deprecated, please use Game:GetService('HttpService'):JSONEncode() instead.") end)
  475. return Encode(jsonTable)
  476. end
  477.  
  478.  
  479.  
  480.  
  481.  
  482.  
  483.  
  484.  
  485. ------------------------------------------------------------------------------------------------------------------------
  486. ------------------------------------------------------------------------------------------------------------------------
  487. ------------------------------------------------------------------------------------------------------------------------
  488. --------------------------------------------Terrain Utilities Begin-----------------------------------------------------
  489. ------------------------------------------------------------------------------------------------------------------------
  490. ------------------------------------------------------------------------------------------------------------------------
  491. ------------------------------------------------------------------------------------------------------------------------
  492. --makes a wedge at location x, y, z
  493. --sets cell x, y, z to default material if parameter is provided, if not sets cell x, y, z to be whatever material it previously w
  494. --returns true if made a wedge, false if the cell remains a block
  495. FELOADLIBRARY.MakeWedge = function(x, y, z, defaultmaterial)
  496. return game:GetService("Terrain"):AutoWedgeCell(x,y,z)
  497. end
  498.  
  499. FELOADLIBRARY.SelectTerrainRegion = function(regionToSelect, color, selectEmptyCells, selectionParent)
  500. local terrain = game:GetService("Workspace"):FindFirstChild("Terrain")
  501. if not terrain then return end
  502.  
  503. assert(regionToSelect)
  504. assert(color)
  505.  
  506. if not type(regionToSelect) == "Region3" then
  507. error("regionToSelect (first arg), should be of type Region3, but is type",type(regionToSelect))
  508. end
  509. if not type(color) == "BrickColor" then
  510. error("color (second arg), should be of type BrickColor, but is type",type(color))
  511. end
  512.  
  513. -- frequently used terrain calls (speeds up call, no lookup necessary)
  514. local GetCell = terrain.GetCell
  515. local WorldToCellPreferSolid = terrain.WorldToCellPreferSolid
  516. local CellCenterToWorld = terrain.CellCenterToWorld
  517. local emptyMaterial = Enum.CellMaterial.Empty
  518.  
  519. -- container for all adornments, passed back to user
  520. local selectionContainer = Instance.new("Model")
  521. selectionContainer.Name = "SelectionContainer"
  522. selectionContainer.Archivable = false
  523. if selectionParent then
  524. selectionContainer.Parent = selectionParent
  525. else
  526. selectionContainer.Parent = game:GetService("Workspace")
  527. end
  528.  
  529. local updateSelection = nil -- function we return to allow user to update selection
  530. local currentKeepAliveTag = nil -- a tag that determines whether adorns should be destroyed
  531. local aliveCounter = 0 -- helper for currentKeepAliveTag
  532. local lastRegion = nil -- used to stop updates that do nothing
  533. local adornments = {} -- contains all adornments
  534. local reusableAdorns = {}
  535.  
  536. local selectionPart = Instance.new("Part")
  537. selectionPart.Name = "SelectionPart"
  538. selectionPart.Transparency = 1
  539. selectionPart.Anchored = true
  540. selectionPart.Locked = true
  541. selectionPart.CanCollide = false
  542. selectionPart.Size = Vector3.new(4.2,4.2,4.2)
  543.  
  544. local selectionBox = Instance.new("SelectionBox")
  545.  
  546. -- srs translation from region3 to region3int16
  547. local function Region3ToRegion3int16(region3)
  548. local theLowVec = region3.CFrame.p - (region3.Size/2) + Vector3.new(2,2,2)
  549. local lowCell = WorldToCellPreferSolid(terrain,theLowVec)
  550.  
  551. local theHighVec = region3.CFrame.p + (region3.Size/2) - Vector3.new(2,2,2)
  552. local highCell = WorldToCellPreferSolid(terrain, theHighVec)
  553.  
  554. local highIntVec = Vector3int16.new(highCell.x,highCell.y,highCell.z)
  555. local lowIntVec = Vector3int16.new(lowCell.x,lowCell.y,lowCell.z)
  556.  
  557. return Region3int16.new(lowIntVec,highIntVec)
  558. end
  559.  
  560. -- helper function that creates the basis for a selection box
  561. function createAdornment(theColor)
  562. local selectionPartClone = nil
  563. local selectionBoxClone = nil
  564.  
  565. if #reusableAdorns > 0 then
  566. selectionPartClone = reusableAdorns[1]["part"]
  567. selectionBoxClone = reusableAdorns[1]["box"]
  568. table.remove(reusableAdorns,1)
  569.  
  570. selectionBoxClone.Visible = true
  571. else
  572. selectionPartClone = selectionPart:Clone()
  573. selectionPartClone.Archivable = false
  574.  
  575. selectionBoxClone = selectionBox:Clone()
  576. selectionBoxClone.Archivable = false
  577.  
  578. selectionBoxClone.Adornee = selectionPartClone
  579. selectionBoxClone.Parent = selectionContainer
  580.  
  581. selectionBoxClone.Adornee = selectionPartClone
  582.  
  583. selectionBoxClone.Parent = selectionContainer
  584. end
  585.  
  586. if theColor then
  587. selectionBoxClone.Color = theColor
  588. end
  589.  
  590. return selectionPartClone, selectionBoxClone
  591. end
  592.  
  593. -- iterates through all current adornments and deletes any that don't have latest tag
  594. function cleanUpAdornments()
  595. for cellPos, adornTable in pairs(adornments) do
  596.  
  597. if adornTable.KeepAlive ~= currentKeepAliveTag then -- old news, we should get rid of this
  598. adornTable.SelectionBox.Visible = false
  599. table.insert(reusableAdorns,{part = adornTable.SelectionPart, box = adornTable.SelectionBox})
  600. adornments[cellPos] = nil
  601. end
  602. end
  603. end
  604.  
  605. -- helper function to update tag
  606. function incrementAliveCounter()
  607. aliveCounter = aliveCounter + 1
  608. if aliveCounter > 1000000 then
  609. aliveCounter = 0
  610. end
  611. return aliveCounter
  612. end
  613.  
  614. -- finds full cells in region and adorns each cell with a box, with the argument color
  615. function adornFullCellsInRegion(region, color)
  616. local regionBegin = region.CFrame.p - (region.Size/2) + Vector3.new(2,2,2)
  617. local regionEnd = region.CFrame.p + (region.Size/2) - Vector3.new(2,2,2)
  618.  
  619. local cellPosBegin = WorldToCellPreferSolid(terrain, regionBegin)
  620. local cellPosEnd = WorldToCellPreferSolid(terrain, regionEnd)
  621.  
  622. currentKeepAliveTag = incrementAliveCounter()
  623. for y = cellPosBegin.y, cellPosEnd.y do
  624. for z = cellPosBegin.z, cellPosEnd.z do
  625. for x = cellPosBegin.x, cellPosEnd.x do
  626. local cellMaterial = GetCell(terrain, x, y, z)
  627.  
  628. if cellMaterial ~= emptyMaterial then
  629. local cframePos = CellCenterToWorld(terrain, x, y, z)
  630. local cellPos = Vector3int16.new(x,y,z)
  631.  
  632. local updated = false
  633. for cellPosAdorn, adornTable in pairs(adornments) do
  634. if cellPosAdorn == cellPos then
  635. adornTable.KeepAlive = currentKeepAliveTag
  636. if color then
  637. adornTable.SelectionBox.Color = color
  638. end
  639. updated = true
  640. break
  641. end
  642. end
  643.  
  644. if not updated then
  645. local selectionPart, selectionBox = createAdornment(color)
  646. selectionPart.Size = Vector3.new(4,4,4)
  647. selectionPart.CFrame = CFrame.new(cframePos)
  648. local adornTable = {SelectionPart = selectionPart, SelectionBox = selectionBox, KeepAlive = currentKeepAliveTag}
  649. adornments[cellPos] = adornTable
  650. end
  651. end
  652. end
  653. end
  654. end
  655. cleanUpAdornments()
  656. end
  657.  
  658.  
  659. ------------------------------------- setup code ------------------------------
  660. lastRegion = regionToSelect
  661.  
  662. if selectEmptyCells then -- use one big selection to represent the area selected
  663. local selectionPart, selectionBox = createAdornment(color)
  664.  
  665. selectionPart.Size = regionToSelect.Size
  666. selectionPart.CFrame = regionToSelect.CFrame
  667.  
  668. adornments.SelectionPart = selectionPart
  669. adornments.SelectionBox = selectionBox
  670.  
  671. updateSelection =
  672. function (newRegion, color)
  673. if newRegion and newRegion ~= lastRegion then
  674. lastRegion = newRegion
  675. selectionPart.Size = newRegion.Size
  676. selectionPart.CFrame = newRegion.CFrame
  677. end
  678. if color then
  679. selectionBox.Color = color
  680. end
  681. end
  682. else -- use individual cell adorns to represent the area selected
  683. adornFullCellsInRegion(regionToSelect, color)
  684. updateSelection =
  685. function (newRegion, color)
  686. if newRegion and newRegion ~= lastRegion then
  687. lastRegion = newRegion
  688. adornFullCellsInRegion(newRegion, color)
  689. end
  690. end
  691.  
  692. end
  693.  
  694. local destroyFunc = function()
  695. updateSelection = nil
  696. if selectionContainer then selectionContainer:Destroy() end
  697. adornments = nil
  698. end
  699.  
  700. return updateSelection, destroyFunc
  701. end
  702.  
  703.  
  704. function FELOADLIBRARY.CreateSignal()
  705. local this = {}
  706.  
  707. local mBindableEvent = Instance.new('BindableEvent')
  708. local mAllCns = {} --all connection objects returned by mBindableEvent::connect
  709.  
  710. --main functions
  711. function this:connect(func)
  712. if self ~= this then error("connect must be called with `:`, not `.`", 2) end
  713. if type(func) ~= 'function' then
  714. error("Argument #1 of connect must be a function, got a "..type(func), 2)
  715. end
  716. local cn = mBindableEvent.Event:Connect(func)
  717. mAllCns[cn] = true
  718. local pubCn = {}
  719. function pubCn:disconnect()
  720. cn:Disconnect()
  721. mAllCns[cn] = nil
  722. end
  723. pubCn.Disconnect = pubCn.disconnect
  724.  
  725. return pubCn
  726. end
  727.  
  728. function this:disconnect()
  729. if self ~= this then error("disconnect must be called with `:`, not `.`", 2) end
  730. for cn, _ in pairs(mAllCns) do
  731. cn:Disconnect()
  732. mAllCns[cn] = nil
  733. end
  734. end
  735.  
  736. function this:wait()
  737. if self ~= this then error("wait must be called with `:`, not `.`", 2) end
  738. return mBindableEvent.Event:Wait()
  739. end
  740.  
  741. function this:fire(...)
  742. if self ~= this then error("fire must be called with `:`, not `.`", 2) end
  743. mBindableEvent:Fire(...)
  744. end
  745.  
  746. this.Connect = this.connect
  747. this.Disconnect = this.disconnect
  748. this.Wait = this.wait
  749. this.Fire = this.fire
  750.  
  751. return this
  752. end
  753.  
  754. local function Create_PrivImpl(objectType)
  755. if type(objectType) ~= 'string' then
  756. error("Argument of Create must be a string", 2)
  757. end
  758. --return the proxy function that gives us the nice Create'string'{data} syntax
  759. --The first function call is a function call using Lua's single-string-argument syntax
  760. --The second function call is using Lua's single-table-argument syntax
  761. --Both can be chained together for the nice effect.
  762. return function(dat)
  763. --default to nothing, to handle the no argument given case
  764. dat = dat or {}
  765.  
  766. --make the object to mutate
  767. local obj = Instance.new(objectType)
  768. local parent = nil
  769.  
  770. --stored constructor function to be called after other initialization
  771. local ctor = nil
  772.  
  773. for k, v in pairs(dat) do
  774. --add property
  775. if type(k) == 'string' then
  776. if k == 'Parent' then
  777. -- Parent should always be set last, setting the Parent of a new object
  778. -- immediately makes performance worse for all subsequent property updates.
  779. parent = v
  780. else
  781. obj[k] = v
  782. end
  783.  
  784.  
  785. --add child
  786. elseif type(k) == 'number' then
  787. if type(v) ~= 'userdata' then
  788. error("Bad entry in Create body: Numeric keys must be paired with children, got a: "..type(v), 2)
  789. end
  790. v.Parent = obj
  791.  
  792.  
  793. --event connect
  794. elseif type(k) == 'table' and k.__eventname then
  795. if type(v) ~= 'function' then
  796. error("Bad entry in Create body: Key `[Create.E\'"..k.__eventname.."\']` must have a function value\
  797. got: "..tostring(v), 2)
  798. end
  799. obj[k.__eventname]:connect(v)
  800.  
  801.  
  802. --define constructor function
  803. elseif k == FELOADLIBRARY.Create then
  804. if type(v) ~= 'function' then
  805. error("Bad entry in Create body: Key `[Create]` should be paired with a constructor function, \
  806. got: "..tostring(v), 2)
  807. elseif ctor then
  808. --ctor already exists, only one allowed
  809. error("Bad entry in Create body: Only one constructor function is allowed", 2)
  810. end
  811. ctor = v
  812.  
  813.  
  814. else
  815. error("Bad entry ("..tostring(k).." => "..tostring(v)..") in Create body", 2)
  816. end
  817. end
  818.  
  819. --apply constructor function if it exists
  820. if ctor then
  821. ctor(obj)
  822. end
  823.  
  824. if parent then
  825. obj.Parent = parent
  826. end
  827.  
  828. --return the completed object
  829. return obj
  830. end
  831. end
  832.  
  833. --now, create the functor:
  834. FELOADLIBRARY.Create = setmetatable({}, {__call = function(tb, ...) return Create_PrivImpl(...) end})
  835.  
  836. --and create the "Event.E" syntax stub. Really it's just a stub to construct a table which our Create
  837. --function can recognize as special.
  838. FELOADLIBRARY.Create.E = function(eventName)
  839. return {__eventname = eventName}
  840. end
  841.  
  842. FELOADLIBRARY.Help =
  843. function(funcNameOrFunc)
  844. --input argument can be a string or a function. Should return a description (of arguments and expected side effects)
  845. if funcNameOrFunc == "DecodeJSON" or funcNameOrFunc == FELOADLIBRARY.DecodeJSON then
  846. return "Function DecodeJSON. " ..
  847. "Arguments: (string). " ..
  848. "Side effect: returns a table with all parsed JSON values"
  849. end
  850. if funcNameOrFunc == "EncodeJSON" or funcNameOrFunc == FELOADLIBRARY.EncodeJSON then
  851. return "Function EncodeJSON. " ..
  852. "Arguments: (table). " ..
  853. "Side effect: returns a string composed of argument table in JSON data format"
  854. end
  855. if funcNameOrFunc == "MakeWedge" or funcNameOrFunc == FELOADLIBRARY.MakeWedge then
  856. return "Function MakeWedge. " ..
  857. "Arguments: (x, y, z, [default material]). " ..
  858. "Description: Makes a wedge at location x, y, z. Sets cell x, y, z to default material if "..
  859. "parameter is provided, if not sets cell x, y, z to be whatever material it previously was. "..
  860. "Returns true if made a wedge, false if the cell remains a block "
  861. end
  862. if funcNameOrFunc == "SelectTerrainRegion" or funcNameOrFunc == FELOADLIBRARY.SelectTerrainRegion then
  863. return "Function SelectTerrainRegion. " ..
  864. "Arguments: (regionToSelect, color, selectEmptyCells, selectionParent). " ..
  865. "Description: Selects all terrain via a series of selection boxes within the regionToSelect " ..
  866. "(this should be a region3 value). The selection box color is detemined by the color argument " ..
  867. "(should be a brickcolor value). SelectionParent is the parent that the selection model gets placed to (optional)." ..
  868. "SelectEmptyCells is bool, when true will select all cells in the " ..
  869. "region, otherwise we only select non-empty cells. Returns a function that can update the selection," ..
  870. "arguments to said function are a new region3 to select, and the adornment color (color arg is optional). " ..
  871. "Also returns a second function that takes no arguments and destroys the selection"
  872. end
  873. if funcNameOrFunc == "CreateSignal" or funcNameOrFunc == FELOADLIBRARY.CreateSignal then
  874. return "Function CreateSignal. "..
  875. "Arguments: None. "..
  876. "Returns: The newly created Signal object. This object is identical to the RBXScriptSignal class "..
  877. "used for events in Objects, but is a Lua-side object so it can be used to create custom events in"..
  878. "Lua code. "..
  879. "Methods of the Signal object: :connect, :wait, :fire, :disconnect. "..
  880. "For more info you can pass the method name to the Help function, or view the wiki page "..
  881. "for this library. EG: Help('Signal:connect')."
  882. end
  883. if funcNameOrFunc == "Signal:connect" then
  884. return "Method Signal:connect. "..
  885. "Arguments: (function handler). "..
  886. "Return: A connection object which can be used to disconnect the connection to this handler. "..
  887. "Description: Connectes a handler function to this Signal, so that when |fire| is called the "..
  888. "handler function will be called with the arguments passed to |fire|."
  889. end
  890. if funcNameOrFunc == "Signal:wait" then
  891. return "Method Signal:wait. "..
  892. "Arguments: None. "..
  893. "Returns: The arguments passed to the next call to |fire|. "..
  894. "Description: This call does not return until the next call to |fire| is made, at which point it "..
  895. "will return the values which were passed as arguments to that |fire| call."
  896. end
  897. if funcNameOrFunc == "Signal:fire" then
  898. return "Method Signal:fire. "..
  899. "Arguments: Any number of arguments of any type. "..
  900. "Returns: None. "..
  901. "Description: This call will invoke any connected handler functions, and notify any waiting code "..
  902. "attached to this Signal to continue, with the arguments passed to this function. Note: The calls "..
  903. "to handlers are made asynchronously, so this call will return immediately regardless of how long "..
  904. "it takes the connected handler functions to complete."
  905. end
  906. if funcNameOrFunc == "Signal:disconnect" then
  907. return "Method Signal:disconnect. "..
  908. "Arguments: None. "..
  909. "Returns: None. "..
  910. "Description: This call disconnects all handlers attacched to this function, note however, it "..
  911. "does NOT make waiting code continue, as is the behavior of normal Roblox events. This method "..
  912. "can also be called on the connection object which is returned from Signal:connect to only "..
  913. "disconnect a single handler, as opposed to this method, which will disconnect all handlers."
  914. end
  915. if funcNameOrFunc == "Create" then
  916. return "Function Create. "..
  917. "Arguments: A table containing information about how to construct a collection of objects. "..
  918. "Returns: The constructed objects. "..
  919. "Descrition: Create is a very powerfull function, whose description is too long to fit here, and "..
  920. "is best described via example, please see the wiki page for a description of how to use it."
  921. end
  922. end
  923.  
  924. --------------------------------------------Documentation Ends----------------------------------------------------------
  925. ---- BY Mizt#5033
  926. if not Bypass then Bypass = "limbs" end
  927. HumanDied = false
  928.  
  929. CountSCIFIMOVIELOL = 1
  930. function SCIFIMOVIELOL(Part0,Part1,Position,Angle)
  931. local AlignPos = Instance.new('AlignPosition', Part1); AlignPos.Name = "AliP_"..CountSCIFIMOVIELOL
  932. AlignPos.ApplyAtCenterOfMass = true;
  933. AlignPos.MaxForce = 67752;
  934. AlignPos.MaxVelocity = math.huge/9e110;
  935. AlignPos.ReactionForceEnabled = false;
  936. AlignPos.Responsiveness = 200;
  937. AlignPos.RigidityEnabled = false;
  938. local AlignOri = Instance.new('AlignOrientation', Part1); AlignOri.Name = "AliO_"..CountSCIFIMOVIELOL
  939. AlignOri.MaxAngularVelocity = math.huge/9e110;
  940. AlignOri.MaxTorque = 67752;
  941. AlignOri.PrimaryAxisOnly = false;
  942. AlignOri.ReactionTorqueEnabled = false;
  943. AlignOri.Responsiveness = 200;
  944. AlignOri.RigidityEnabled = false;
  945. local AttachmentA=Instance.new('Attachment',Part1); AttachmentA.Name = "AthP_"..CountSCIFIMOVIELOL
  946. local AttachmentB=Instance.new('Attachment',Part0); AttachmentB.Name = "AthP_"..CountSCIFIMOVIELOL
  947. local AttachmentC=Instance.new('Attachment',Part1); AttachmentC.Name = "AthO_"..CountSCIFIMOVIELOL
  948. local AttachmentD=Instance.new('Attachment',Part0); AttachmentD.Name = "AthO_"..CountSCIFIMOVIELOL
  949. AttachmentC.Orientation = Angle
  950. AttachmentA.Position = Position
  951. AlignPos.Attachment1 = AttachmentA;
  952. AlignPos.Attachment0 = AttachmentB;
  953. AlignOri.Attachment1 = AttachmentC;
  954. AlignOri.Attachment0 = AttachmentD;
  955. CountSCIFIMOVIELOL = CountSCIFIMOVIELOL + 1
  956. end
  957.  
  958. coroutine.wrap(function()
  959. local player = game.Players.LocalPlayer
  960. local char = player.Character or player.CharacterAdded:wait()
  961. if sethiddenproperty then
  962. while true do
  963. game:GetService("RunService").RenderStepped:Wait()
  964. settings().Physics.AllowSleep = false
  965. local TBL = game:GetService("Players"):GetChildren()
  966. for _ = 1,#TBL do local Players = TBL[_]
  967. if Players ~= game:GetService("Players").LocalPlayer then
  968. Players.MaximumSimulationRadius = 0
  969. sethiddenproperty(Players,"SimulationRadius",0)
  970. end
  971. end
  972. game:GetService("Players").LocalPlayer.MaximumSimulationRadius = math.pow(math.huge,math.huge)
  973. sethiddenproperty(game:GetService("Players").LocalPlayer,"SimulationRadius",math.pow(math.huge,math.huge)*math.huge)
  974. if HumanDied then break end
  975. end
  976. else
  977. while true do
  978. game:GetService("RunService").RenderStepped:Wait()
  979.  
  980. local TBL = game:GetService("Players"):GetChildren()
  981. for _ = 1,#TBL do local Players = TBL[_]
  982. if Players ~= game:GetService("Players").LocalPlayer then
  983. Players.MaximumSimulationRadius = 0
  984. end
  985. end
  986. ---- game:GetService("Players").LocalPlayer.MaximumSimulationRadius = math.pow(math.huge,math.huge)
  987. if HumanDied then break end
  988. end
  989. end
  990. end)()
  991.  
  992. if game:GetService("Players").LocalPlayer.Character.Humanoid.RigType == Enum.HumanoidRigType.R6 then
  993. if Bypass == "limbs" then --------------------------------------------------------------------------------------------------------------------
  994. game:GetService("Players").LocalPlayer["Character"].Archivable = true
  995. local CloneChar = game:GetService("Players").LocalPlayer["Character"]:Clone()
  996. CloneChar.Parent = workspace
  997. CloneChar.HumanoidRootPart.CFrame = game:GetService("Players").LocalPlayer["Character"].HumanoidRootPart.CFrame * CFrame.new(0,2,0)
  998. wait()
  999. CloneChar.Humanoid.BreakJointsOnDeath = false
  1000. workspace.Camera.CameraSubject = CloneChar.Humanoid
  1001. CloneChar.Name = "non"
  1002. CloneChar.Humanoid.DisplayDistanceType = "None"
  1003. if CloneChar.Head:FindFirstChild("face") then CloneChar.Head:FindFirstChild("face"):Destroy() end
  1004. if workspace[game:GetService("Players").LocalPlayer.Name].Head:FindFirstChild("face") then workspace[game:GetService("Players").LocalPlayer.Name].Head:FindFirstChild("face").Parent = CloneChar.Head end
  1005.  
  1006. local DeadChar = workspace[game:GetService("Players").LocalPlayer.Name]
  1007. DeadChar.HumanoidRootPart:Destroy()
  1008.  
  1009. local LVecPart = Instance.new("Part", workspace) LVecPart.CanCollide = false LVecPart.Transparency = 1
  1010. local CONVEC
  1011. local function VECTORUNIT()
  1012. if HumanDied then CONVEC:Disconnect(); return end
  1013. local lookVec = workspace.Camera.CFrame.lookVector
  1014. local Root = CloneChar["HumanoidRootPart"]
  1015. LVecPart.Position = Root.Position
  1016. LVecPart.CFrame = CFrame.new(LVecPart.Position, Vector3.new(lookVec.X * 9999, lookVec.Y, lookVec.Z * 9999))
  1017. end
  1018. CONVEC = game:GetService("RunService").Heartbeat:Connect(VECTORUNIT)
  1019.  
  1020. local CONDOWN
  1021. local WDown, ADown, SDown, DDown, SpaceDown = false, false, false, false, false
  1022. local function KEYDOWN(_,Processed)
  1023. if HumanDied then CONDOWN:Disconnect(); return end
  1024. if Processed ~= true then
  1025. local Key = _.KeyCode
  1026. if Key == Enum.KeyCode.W then
  1027. WDown = true end
  1028. if Key == Enum.KeyCode.A then
  1029. ADown = true end
  1030. if Key == Enum.KeyCode.S then
  1031. SDown = true end
  1032. if Key == Enum.KeyCode.D then
  1033. DDown = true end
  1034. if Key == Enum.KeyCode.Space then
  1035. SpaceDown = true end end end
  1036. CONDOWN = game:GetService("UserInputService").InputBegan:Connect(KEYDOWN)
  1037.  
  1038. local CONUP
  1039. local function KEYUP(_)
  1040. if HumanDied then CONUP:Disconnect(); return end
  1041. local Key = _.KeyCode
  1042. if Key == Enum.KeyCode.W then
  1043. WDown = false end
  1044. if Key == Enum.KeyCode.A then
  1045. ADown = false end
  1046. if Key == Enum.KeyCode.S then
  1047. SDown = false end
  1048. if Key == Enum.KeyCode.D then
  1049. DDown = false end
  1050. if Key == Enum.KeyCode.Space then
  1051. SpaceDown = false end end
  1052. CONUP = game:GetService("UserInputService").InputEnded:Connect(KEYUP)
  1053.  
  1054. local function MoveClone(X,Y,Z)
  1055. LVecPart.CFrame = LVecPart.CFrame * CFrame.new(-X,Y,-Z)
  1056. workspace["non"].Humanoid.WalkToPoint = LVecPart.Position
  1057. end
  1058.  
  1059. coroutine.wrap(function()
  1060. while true do game:GetService("RunService").RenderStepped:Wait()
  1061. if HumanDied then break end
  1062. if WDown then MoveClone(0,0,1e4) end
  1063. if ADown then MoveClone(1e4,0,0) end
  1064. if SDown then MoveClone(0,0,-1e4) end
  1065. if DDown then MoveClone(-1e4,0,0) end
  1066. if SpaceDown then CloneChar["Humanoid"].Jump = true end
  1067. if WDown ~= true and ADown ~= true and SDown ~= true and DDown ~= true then
  1068. workspace["non"].Humanoid.WalkToPoint = workspace["non"].HumanoidRootPart.Position end
  1069. end
  1070. end)()
  1071.  
  1072. local con
  1073. function UnCollide()
  1074. if HumanDied then con:Disconnect(); return end
  1075. for _,Parts in next, CloneChar:GetDescendants() do
  1076. if Parts:IsA("BasePart") then
  1077. Parts.CanCollide = false
  1078. end
  1079. end
  1080. for _,Parts in next, DeadChar:GetDescendants() do
  1081. if Parts:IsA("BasePart") then
  1082. Parts.CanCollide = false
  1083. end
  1084. end
  1085. end
  1086. con = game:GetService("RunService").Stepped:Connect(UnCollide)
  1087.  
  1088. local resetBindable = Instance.new("BindableEvent")
  1089. resetBindable.Event:connect(function()
  1090. game:GetService("StarterGui"):SetCore("ResetButtonCallback", true)
  1091. resetBindable:Destroy()
  1092. pcall(function()
  1093. CloneChar.Humanoid.Health = 0
  1094. DeadChar.Humanoid.Health = 0
  1095. end)
  1096. end)
  1097. game:GetService("StarterGui"):SetCore("ResetButtonCallback", resetBindable)
  1098.  
  1099. coroutine.wrap(function()
  1100. while true do
  1101. game:GetService("RunService").RenderStepped:wait()
  1102. if not CloneChar or not CloneChar:FindFirstChild("Head") or not CloneChar:FindFirstChild("Humanoid") or CloneChar:FindFirstChild("Humanoid").Health <= 0 or not DeadChar or not DeadChar:FindFirstChild("Head") or not DeadChar:FindFirstChild("Humanoid") or DeadChar:FindFirstChild("Humanoid").Health <= 0 then
  1103. HumanDied = true
  1104. pcall(function()
  1105. game.Players.LocalPlayer.Character = CloneChar
  1106. CloneChar:Destroy()
  1107. game.Players.LocalPlayer.Character = DeadChar
  1108. if resetBindable then
  1109. game:GetService("StarterGui"):SetCore("ResetButtonCallback", true)
  1110. resetBindable:Destroy()
  1111. end
  1112. DeadChar.Humanoid.Health = 0
  1113. end)
  1114. break
  1115. end
  1116. end
  1117. end)()
  1118.  
  1119. SCIFIMOVIELOL(DeadChar["Head"],CloneChar["Head"],Vector3.new(0,0,0),Vector3.new(0,0,0))
  1120. SCIFIMOVIELOL(DeadChar["Torso"],CloneChar["Torso"],Vector3.new(0,0,0),Vector3.new(0,0,0))
  1121. SCIFIMOVIELOL(DeadChar["Left Arm"],CloneChar["Left Arm"],Vector3.new(0,0,0),Vector3.new(0,0,0))
  1122. SCIFIMOVIELOL(DeadChar["Right Arm"],CloneChar["Right Arm"],Vector3.new(0,0,0),Vector3.new(0,0,0))
  1123. SCIFIMOVIELOL(DeadChar["Left Leg"],CloneChar["Left Leg"],Vector3.new(0,0,0),Vector3.new(0,0,0))
  1124. SCIFIMOVIELOL(DeadChar["Right Leg"],CloneChar["Right Leg"],Vector3.new(0,0,0),Vector3.new(0,0,0))
  1125.  
  1126. coroutine.wrap(function()
  1127. while true do
  1128. game:GetService("RunService").RenderStepped:wait()
  1129. if HumanDied then break end
  1130. DeadChar["Torso"].CFrame = CloneChar["Torso"].CFrame
  1131. end
  1132. end)()
  1133.  
  1134. for _,v in next, DeadChar:GetChildren() do
  1135. if v:IsA("Accessory") then
  1136. SCIFIMOVIELOL(v.Handle,CloneChar[v.Name].Handle,Vector3.new(0,0,0),Vector3.new(0,0,0))
  1137. end
  1138. end
  1139.  
  1140. for _,BodyParts in next, CloneChar:GetDescendants() do
  1141. if BodyParts:IsA("BasePart") or BodyParts:IsA("Part") then
  1142. BodyParts.Transparency = 1 end end
  1143.  
  1144. DeadChar.Torso["Left Shoulder"]:Destroy()
  1145. DeadChar.Torso["Right Shoulder"]:Destroy()
  1146. DeadChar.Torso["Left Hip"]:Destroy()
  1147. DeadChar.Torso["Right Hip"]:Destroy()
  1148.  
  1149. elseif Bypass == "death" then --------------------------------------------------------------------------------------------------------------------
  1150. game:GetService("Players").LocalPlayer["Character"].Archivable = true
  1151. local CloneChar = game:GetService("Players").LocalPlayer["Character"]:Clone()
  1152. game:GetService("Players").LocalPlayer["Character"].Humanoid.WalkSpeed = 0
  1153. game:GetService("Players").LocalPlayer["Character"].Humanoid.JumpPower = 0
  1154. game:GetService("Players").LocalPlayer["Character"].Humanoid.AutoRotate = false
  1155. local FalseChar = Instance.new("Model", workspace); FalseChar.Name = ""
  1156. Instance.new("Part",FalseChar).Name = "Head"
  1157. Instance.new("Part",FalseChar).Name = "Torso"
  1158. Instance.new("Humanoid",FalseChar).Name = "Humanoid"
  1159. game:GetService("Players").LocalPlayer["Character"] = FalseChar
  1160. game:GetService("Players").LocalPlayer["Character"].Humanoid.Name = "FalseHumanoid"
  1161. local Clone = game:GetService("Players").LocalPlayer["Character"]:FindFirstChild("FalseHumanoid"):Clone()
  1162. Clone.Parent = game:GetService("Players").LocalPlayer["Character"]
  1163. Clone.Name = "Humanoid"
  1164. game:GetService("Players").LocalPlayer["Character"]:FindFirstChild("FalseHumanoid"):Destroy()
  1165. game:GetService("Players").LocalPlayer["Character"].Humanoid.Health = 0
  1166. game:GetService("Players").LocalPlayer["Character"] = workspace[game:GetService("Players").LocalPlayer.Name]
  1167. wait(5.65)
  1168. game:GetService("Players").LocalPlayer["Character"].Humanoid.Health = 0
  1169. CloneChar.Parent = workspace
  1170. CloneChar.HumanoidRootPart.CFrame = game:GetService("Players").LocalPlayer["Character"].HumanoidRootPart.CFrame * CFrame.new(0,2,0)
  1171. wait()
  1172. CloneChar.Humanoid.BreakJointsOnDeath = false
  1173. workspace.Camera.CameraSubject = CloneChar.Humanoid
  1174. CloneChar.Name = "non"
  1175. CloneChar.Humanoid.DisplayDistanceType = "None"
  1176. if CloneChar.Head:FindFirstChild("face") then CloneChar.Head:FindFirstChild("face"):Destroy() end
  1177. if workspace[game:GetService("Players").LocalPlayer.Name].Head:FindFirstChild("face") then workspace[game:GetService("Players").LocalPlayer.Name].Head:FindFirstChild("face").Parent = CloneChar.Head end
  1178.  
  1179. FalseChar:Destroy()
  1180.  
  1181. local DeadChar = workspace[game:GetService("Players").LocalPlayer.Name]
  1182.  
  1183. local LVecPart = Instance.new("Part", workspace) LVecPart.CanCollide = false LVecPart.Transparency = 1
  1184. local CONVEC
  1185. local function VECTORUNIT()
  1186. if HumanDied then CONVEC:Disconnect(); return end
  1187. local lookVec = workspace.Camera.CFrame.lookVector
  1188. local Root = CloneChar["HumanoidRootPart"]
  1189. LVecPart.Position = Root.Position
  1190. LVecPart.CFrame = CFrame.new(LVecPart.Position, Vector3.new(lookVec.X * 9999, lookVec.Y, lookVec.Z * 9999))
  1191. end
  1192. CONVEC = game:GetService("RunService").Heartbeat:Connect(VECTORUNIT)
  1193.  
  1194. local CONDOWN
  1195. local WDown, ADown, SDown, DDown, SpaceDown = false, false, false, false, false
  1196. local function KEYDOWN(_,Processed)
  1197. if HumanDied then CONDOWN:Disconnect(); return end
  1198. if Processed ~= true then
  1199. local Key = _.KeyCode
  1200. if Key == Enum.KeyCode.W then
  1201. WDown = true end
  1202. if Key == Enum.KeyCode.A then
  1203. ADown = true end
  1204. if Key == Enum.KeyCode.S then
  1205. SDown = true end
  1206. if Key == Enum.KeyCode.D then
  1207. DDown = true end
  1208. if Key == Enum.KeyCode.Space then
  1209. SpaceDown = true end end end
  1210. CONDOWN = game:GetService("UserInputService").InputBegan:Connect(KEYDOWN)
  1211.  
  1212. local CONUP
  1213. local function KEYUP(_)
  1214. if HumanDied then CONUP:Disconnect(); return end
  1215. local Key = _.KeyCode
  1216. if Key == Enum.KeyCode.W then
  1217. WDown = false end
  1218. if Key == Enum.KeyCode.A then
  1219. ADown = false end
  1220. if Key == Enum.KeyCode.S then
  1221. SDown = false end
  1222. if Key == Enum.KeyCode.D then
  1223. DDown = false end
  1224. if Key == Enum.KeyCode.Space then
  1225. SpaceDown = false end end
  1226. CONUP = game:GetService("UserInputService").InputEnded:Connect(KEYUP)
  1227.  
  1228. local function MoveClone(X,Y,Z)
  1229. LVecPart.CFrame = LVecPart.CFrame * CFrame.new(-X,Y,-Z)
  1230. workspace["non"].Humanoid.WalkToPoint = LVecPart.Position
  1231. end
  1232.  
  1233. coroutine.wrap(function()
  1234. while true do game:GetService("RunService").RenderStepped:Wait()
  1235. if HumanDied then break end
  1236. if WDown then MoveClone(0,0,1e4) end
  1237. if ADown then MoveClone(1e4,0,0) end
  1238. if SDown then MoveClone(0,0,-1e4) end
  1239. if DDown then MoveClone(-1e4,0,0) end
  1240. if SpaceDown then CloneChar["Humanoid"].Jump = true end
  1241. if WDown ~= true and ADown ~= true and SDown ~= true and DDown ~= true then
  1242. workspace["non"].Humanoid.WalkToPoint = workspace["non"].HumanoidRootPart.Position end
  1243. end
  1244. end)()
  1245.  
  1246. local con
  1247. function UnCollide()
  1248. if HumanDied then con:Disconnect(); return end
  1249. for _,Parts in next, CloneChar:GetDescendants() do
  1250. if Parts:IsA("BasePart") then
  1251. Parts.CanCollide = false
  1252. end
  1253. end
  1254. for _,Parts in next, DeadChar:GetDescendants() do
  1255. if Parts:IsA("BasePart") then
  1256. Parts.CanCollide = false
  1257. end
  1258. end
  1259. end
  1260. con = game:GetService("RunService").Stepped:Connect(UnCollide)
  1261.  
  1262. local resetBindable = Instance.new("BindableEvent")
  1263. resetBindable.Event:connect(function()
  1264. game:GetService("StarterGui"):SetCore("ResetButtonCallback", true)
  1265. resetBindable:Destroy()
  1266. CloneChar.Humanoid.Health = 0
  1267. end)
  1268. game:GetService("StarterGui"):SetCore("ResetButtonCallback", resetBindable)
  1269.  
  1270. coroutine.wrap(function()
  1271. while true do
  1272. game:GetService("RunService").RenderStepped:wait()
  1273. if not CloneChar or not CloneChar:FindFirstChild("Head") or not CloneChar:FindFirstChild("Humanoid") or CloneChar:FindFirstChild("Humanoid").Health <= 0 then
  1274. HumanDied = true
  1275. pcall(function()
  1276. game.Players.LocalPlayer.Character = CloneChar
  1277. CloneChar:Destroy()
  1278. game.Players.LocalPlayer.Character = DeadChar
  1279. if resetBindable then
  1280. game:GetService("StarterGui"):SetCore("ResetButtonCallback", true)
  1281. resetBindable:Destroy()
  1282. end
  1283. DeadChar.Humanoid.Health = 0
  1284. end)
  1285. break
  1286. end
  1287. end
  1288. end)()
  1289.  
  1290. SCIFIMOVIELOL(DeadChar["Head"],CloneChar["Head"],Vector3.new(0,0,0),Vector3.new(0,0,0))
  1291. SCIFIMOVIELOL(DeadChar["Torso"],CloneChar["Torso"],Vector3.new(0,0,0),Vector3.new(0,0,0))
  1292. SCIFIMOVIELOL(DeadChar["Left Arm"],CloneChar["Left Arm"],Vector3.new(0,0,0),Vector3.new(0,0,0))
  1293. SCIFIMOVIELOL(DeadChar["Right Arm"],CloneChar["Right Arm"],Vector3.new(0,0,0),Vector3.new(0,0,0))
  1294. SCIFIMOVIELOL(DeadChar["Left Leg"],CloneChar["Left Leg"],Vector3.new(0,0,0),Vector3.new(0,0,0))
  1295. SCIFIMOVIELOL(DeadChar["Right Leg"],CloneChar["Right Leg"],Vector3.new(0,0,0),Vector3.new(0,0,0))
  1296. SCIFIMOVIELOL(DeadChar["HumanoidRootPart"],CloneChar["HumanoidRootPart"],Vector3.new(0,0,0),Vector3.new(0,0,0))
  1297.  
  1298. for _,v in next, DeadChar:GetChildren() do
  1299. if v:IsA("Accessory") then
  1300. SCIFIMOVIELOL(v.Handle,CloneChar[v.Name].Handle,Vector3.new(0,0,0),Vector3.new(0,0,0))
  1301. end
  1302. end
  1303.  
  1304. for _,BodyParts in next, CloneChar:GetDescendants() do
  1305. if BodyParts:IsA("BasePart") or BodyParts:IsA("Part") then
  1306. BodyParts.Transparency = 1 end end
  1307. elseif Bypass == "hats" then
  1308. game:GetService("Players").LocalPlayer["Character"].Archivable = true
  1309. local DeadChar = game.Players.LocalPlayer.Character
  1310. DeadChar.Name = "non"
  1311. local HatPosition = Vector3.new(0,0,0)
  1312. local HatName = "MediHood"
  1313. local HatsLimb = {
  1314. Rarm = DeadChar:FindFirstChild("Hat1"),
  1315. Larm = DeadChar:FindFirstChild("Pink Hair"),
  1316. Rleg = DeadChar:FindFirstChild("Robloxclassicred"),
  1317. Lleg = DeadChar:FindFirstChild("Kate Hair"),
  1318. Torso1 = DeadChar:FindFirstChild("Pal Hair"),
  1319. Torso2 = DeadChar:FindFirstChild("LavanderHair")
  1320. }
  1321. HatName = DeadChar:FindFirstChild(HatName)
  1322.  
  1323. coroutine.wrap(function()
  1324. while true do
  1325. game:GetService("RunService").RenderStepped:wait()
  1326. if not DeadChar or not DeadChar:FindFirstChild("Head") or not DeadChar:FindFirstChild("Humanoid") or DeadChar:FindFirstChild("Humanoid").Health <= 0 then
  1327. HumanDied = true
  1328. pcall(function()
  1329. if resetBindable then
  1330. game:GetService("StarterGui"):SetCore("ResetButtonCallback", true)
  1331. resetBindable:Destroy()
  1332. end
  1333. DeadChar.Humanoid.Health = 0
  1334. end)
  1335. break
  1336. end
  1337. end
  1338. end)()
  1339.  
  1340. local con
  1341. function UnCollide()
  1342. if HumanDied then con:Disconnect(); return end
  1343. for _,Parts in next, DeadChar:GetDescendants() do
  1344. if Parts:IsA("BasePart") then
  1345. Parts.CanCollide = false
  1346. end
  1347. end
  1348. end
  1349. con = game:GetService("RunService").Stepped:Connect(UnCollide)
  1350.  
  1351. SCIFIMOVIELOL(HatName.Handle,DeadChar["Head"],Vector3.new(0,0,0),Vector3.new(0,0,0))
  1352. SCIFIMOVIELOL(HatsLimb.Torso1.Handle,DeadChar["Torso"],Vector3.new(0.5,0,0),Vector3.new(90,0,0))
  1353. SCIFIMOVIELOL(HatsLimb.Torso2.Handle,DeadChar["Torso"],Vector3.new(-0.5,0,0),Vector3.new(90,0,0))
  1354. SCIFIMOVIELOL(HatsLimb.Larm.Handle,DeadChar["Left Arm"],Vector3.new(0,0,0),Vector3.new(90,0,0))
  1355. SCIFIMOVIELOL(HatsLimb.Rarm.Handle,DeadChar["Right Arm"],Vector3.new(0,0,0),Vector3.new(90,0,0))
  1356. SCIFIMOVIELOL(HatsLimb.Lleg.Handle,DeadChar["Left Leg"],Vector3.new(0,0,0),Vector3.new(90,0,0))
  1357. SCIFIMOVIELOL(HatsLimb.Rleg.Handle,DeadChar["Right Leg"],Vector3.new(0,0,0),Vector3.new(90,0,0))
  1358.  
  1359. for i,v in pairs(HatsLimb) do
  1360. v.Handle:FindFirstChild("AccessoryWeld"):Destroy()
  1361. if v.Handle:FindFirstChild("Mesh") then v.Handle:FindFirstChild("Mesh"):Destroy() end
  1362. if v.Handle:FindFirstChild("SpecialMesh") then v.Handle:FindFirstChild("SpecialMesh"):Destroy() end
  1363. end
  1364. HatName.Handle:FindFirstChild("AccessoryWeld"):Destroy()
  1365. end
  1366. else
  1367. if Bypass == "limbs" then --------------------------------------------------------------------------------------------------------------------
  1368. game:GetService("Players").LocalPlayer["Character"].Archivable = true
  1369. local CloneChar = game:GetObjects("rbxassetid://5227463276")[1]
  1370. CloneChar.Parent = workspace
  1371. CloneChar.HumanoidRootPart.CFrame = game:GetService("Players").LocalPlayer["Character"].HumanoidRootPart.CFrame * CFrame.new(0,0.5,0.1)
  1372. CloneChar.Humanoid.BreakJointsOnDeath = false
  1373. workspace.Camera.CameraSubject = CloneChar.Humanoid
  1374. CloneChar.Name = "non"
  1375. CloneChar.Humanoid.DisplayDistanceType = "None"
  1376. if CloneChar.Head:FindFirstChild("face") then CloneChar.Head:FindFirstChild("face"):Destroy() end
  1377. if workspace[game:GetService("Players").LocalPlayer.Name].Head:FindFirstChild("face") then workspace[game:GetService("Players").LocalPlayer.Name].Head:FindFirstChild("face").Parent = CloneChar.Head end
  1378.  
  1379. local DeadChar = workspace[game:GetService("Players").LocalPlayer.Name]
  1380. DeadChar.HumanoidRootPart:Destroy()
  1381.  
  1382. local LVecPart = Instance.new("Part", workspace) LVecPart.CanCollide = false LVecPart.Transparency = 1
  1383. local CONVEC
  1384. local function VECTORUNIT()
  1385. if HumanDied then CONVEC:Disconnect(); return end
  1386. local lookVec = workspace.Camera.CFrame.lookVector
  1387. local Root = CloneChar["HumanoidRootPart"]
  1388. LVecPart.Position = Root.Position
  1389. LVecPart.CFrame = CFrame.new(LVecPart.Position, Vector3.new(lookVec.X * 9999, lookVec.Y, lookVec.Z * 9999))
  1390. end
  1391. CONVEC = game:GetService("RunService").Heartbeat:Connect(VECTORUNIT)
  1392.  
  1393. local CONDOWN
  1394. local WDown, ADown, SDown, DDown, SpaceDown = false, false, false, false, false
  1395. local function KEYDOWN(_,Processed)
  1396. if HumanDied then CONDOWN:Disconnect(); return end
  1397. if Processed ~= true then
  1398. local Key = _.KeyCode
  1399. if Key == Enum.KeyCode.W then
  1400. WDown = true end
  1401. if Key == Enum.KeyCode.A then
  1402. ADown = true end
  1403. if Key == Enum.KeyCode.S then
  1404. SDown = true end
  1405. if Key == Enum.KeyCode.D then
  1406. DDown = true end
  1407. if Key == Enum.KeyCode.Space then
  1408. SpaceDown = true end end end
  1409. CONDOWN = game:GetService("UserInputService").InputBegan:Connect(KEYDOWN)
  1410.  
  1411. local CONUP
  1412. local function KEYUP(_)
  1413. if HumanDied then CONUP:Disconnect(); return end
  1414. local Key = _.KeyCode
  1415. if Key == Enum.KeyCode.W then
  1416. WDown = false end
  1417. if Key == Enum.KeyCode.A then
  1418. ADown = false end
  1419. if Key == Enum.KeyCode.S then
  1420. SDown = false end
  1421. if Key == Enum.KeyCode.D then
  1422. DDown = false end
  1423. if Key == Enum.KeyCode.Space then
  1424. SpaceDown = false end end
  1425. CONUP = game:GetService("UserInputService").InputEnded:Connect(KEYUP)
  1426.  
  1427. local function MoveClone(X,Y,Z)
  1428. LVecPart.CFrame = LVecPart.CFrame * CFrame.new(-X,Y,-Z)
  1429. workspace["non"].Humanoid.WalkToPoint = LVecPart.Position
  1430. end
  1431.  
  1432. coroutine.wrap(function()
  1433. while true do game:GetService("RunService").RenderStepped:Wait()
  1434. if HumanDied then break end
  1435. if WDown then MoveClone(0,0,1e4) end
  1436. if ADown then MoveClone(1e4,0,0) end
  1437. if SDown then MoveClone(0,0,-1e4) end
  1438. if DDown then MoveClone(-1e4,0,0) end
  1439. if SpaceDown then CloneChar["Humanoid"].Jump = true end
  1440. if WDown ~= true and ADown ~= true and SDown ~= true and DDown ~= true then
  1441. workspace["non"].Humanoid.WalkToPoint = workspace["non"].HumanoidRootPart.Position end
  1442. end
  1443. end)()
  1444.  
  1445. local con
  1446. function UnCollide()
  1447. if HumanDied then con:Disconnect(); return end
  1448. for _,Parts in next, CloneChar:GetDescendants() do
  1449. if Parts:IsA("BasePart") then
  1450. Parts.CanCollide = false
  1451. end
  1452. end
  1453. for _,Parts in next, DeadChar:GetDescendants() do
  1454. if Parts:IsA("BasePart") then
  1455. Parts.CanCollide = false
  1456. end
  1457. end
  1458. end
  1459. con = game:GetService("RunService").Stepped:Connect(UnCollide)
  1460.  
  1461. local resetBindable = Instance.new("BindableEvent")
  1462. resetBindable.Event:connect(function()
  1463. game:GetService("StarterGui"):SetCore("ResetButtonCallback", true)
  1464. resetBindable:Destroy()
  1465. CloneChar.Humanoid.Health = 0
  1466. end)
  1467. game:GetService("StarterGui"):SetCore("ResetButtonCallback", resetBindable)
  1468.  
  1469. coroutine.wrap(function()
  1470. while true do
  1471. game:GetService("RunService").RenderStepped:wait()
  1472. if not CloneChar or not CloneChar:FindFirstChild("Head") or not CloneChar:FindFirstChild("Humanoid") or CloneChar:FindFirstChild("Humanoid").Health <= 0 or not DeadChar or not DeadChar:FindFirstChild("Head") or not DeadChar:FindFirstChild("Humanoid") or DeadChar:FindFirstChild("Humanoid").Health <= 0 then
  1473. HumanDied = true
  1474. pcall(function()
  1475. game.Players.LocalPlayer.Character = CloneChar
  1476. CloneChar:Destroy()
  1477. game.Players.LocalPlayer.Character = DeadChar
  1478. if resetBindable then
  1479. game:GetService("StarterGui"):SetCore("ResetButtonCallback", true)
  1480. resetBindable:Destroy()
  1481. end
  1482. DeadChar.Humanoid.Health = 0
  1483. end)
  1484. break
  1485. end
  1486. end
  1487. end)()
  1488.  
  1489. for _,v in next, DeadChar:GetChildren() do
  1490. if v:IsA("Accessory") then
  1491. v:Clone().Parent = CloneChar
  1492. end
  1493. end
  1494.  
  1495. for _,v in next, DeadChar:GetDescendants() do
  1496. if v:IsA("Motor6D") and v.Name ~= "Neck" then
  1497. v:Destroy()
  1498. end
  1499. end
  1500.  
  1501. SCIFIMOVIELOL(DeadChar["Head"],CloneChar["Head"],Vector3.new(0,0,0),Vector3.new(0,0,0))
  1502. SCIFIMOVIELOL(DeadChar["UpperTorso"],CloneChar["Torso"],Vector3.new(0,0.2,0),Vector3.new(0,0,0))
  1503. SCIFIMOVIELOL(DeadChar["LowerTorso"],CloneChar["Torso"],Vector3.new(0,-0.78,0),Vector3.new(0,0,0))
  1504. SCIFIMOVIELOL(DeadChar["LeftUpperArm"],CloneChar["Left Arm"],Vector3.new(0,0.375,0),Vector3.new(0,0,0))
  1505. SCIFIMOVIELOL(DeadChar["LeftLowerArm"],CloneChar["Left Arm"],Vector3.new(0,-0.215,0),Vector3.new(0,0,0))
  1506. SCIFIMOVIELOL(DeadChar["LeftHand"],CloneChar["Left Arm"],Vector3.new(0,-0.825,0),Vector3.new(0,0,0))
  1507. SCIFIMOVIELOL(DeadChar["RightUpperArm"],CloneChar["Right Arm"],Vector3.new(0,0.375,0),Vector3.new(0,0,0))
  1508. SCIFIMOVIELOL(DeadChar["RightLowerArm"],CloneChar["Right Arm"],Vector3.new(0,-0.215,0),Vector3.new(0,0,0))
  1509. SCIFIMOVIELOL(DeadChar["RightHand"],CloneChar["Right Arm"],Vector3.new(0,-0.825,0),Vector3.new(0,0,0))
  1510.  
  1511. SCIFIMOVIELOL(DeadChar["LeftUpperLeg"],CloneChar["Left Leg"],Vector3.new(0,0.575,0),Vector3.new(0,0,0))
  1512. SCIFIMOVIELOL(DeadChar["LeftLowerLeg"],CloneChar["Left Leg"],Vector3.new(0,-0.137,0),Vector3.new(0,0,0))
  1513. SCIFIMOVIELOL(DeadChar["LeftFoot"],CloneChar["Left Leg"],Vector3.new(0,-0.787,0),Vector3.new(0,0,0))
  1514. SCIFIMOVIELOL(DeadChar["RightUpperLeg"],CloneChar["Right Leg"],Vector3.new(0,0.575,0),Vector3.new(0,0,0))
  1515. SCIFIMOVIELOL(DeadChar["RightLowerLeg"],CloneChar["Right Leg"],Vector3.new(0,-0.137,0),Vector3.new(0,0,0))
  1516. SCIFIMOVIELOL(DeadChar["RightFoot"],CloneChar["Right Leg"],Vector3.new(0,-0.787,0),Vector3.new(0,0,0))
  1517.  
  1518. coroutine.wrap(function()
  1519. while true do
  1520. game:GetService("RunService").RenderStepped:wait()
  1521. if HumanDied then break end
  1522. DeadChar["UpperTorso"].CFrame = CloneChar["Torso"].CFrame * CFrame.new(0,0.2,0)
  1523. end
  1524. end)()
  1525.  
  1526. for _,v in next, DeadChar:GetChildren() do
  1527. if v:IsA("Accessory") then
  1528. SCIFIMOVIELOL(v.Handle,CloneChar[v.Name].Handle,Vector3.new(0,0,0),Vector3.new(0,0,0))
  1529. end
  1530. end
  1531.  
  1532. for _,BodyParts in next, CloneChar:GetDescendants() do
  1533. if BodyParts:IsA("BasePart") or BodyParts:IsA("Part") then
  1534. BodyParts.Transparency = 1 end end
  1535.  
  1536. elseif Bypass == "death" then --------------------------------------------------------------------------------------------------------------------
  1537. game:GetService("Players").LocalPlayer["Character"].Archivable = true
  1538. local CloneChar = game:GetObjects("rbxassetid://5227463276")[1]
  1539. game:GetService("Players").LocalPlayer["Character"].Humanoid.WalkSpeed = 0
  1540. game:GetService("Players").LocalPlayer["Character"].Humanoid.JumpPower = 0
  1541. game:GetService("Players").LocalPlayer["Character"].Humanoid.AutoRotate = false
  1542. local FalseChar = Instance.new("Model", workspace); FalseChar.Name = ""
  1543. Instance.new("Part",FalseChar).Name = "Head"
  1544. Instance.new("Part",FalseChar).Name = "UpperTorso"
  1545. Instance.new("Humanoid",FalseChar).Name = "Humanoid"
  1546. game:GetService("Players").LocalPlayer["Character"] = FalseChar
  1547. game:GetService("Players").LocalPlayer["Character"].Humanoid.Name = "FalseHumanoid"
  1548. local Clone = game:GetService("Players").LocalPlayer["Character"]:FindFirstChild("FalseHumanoid"):Clone()
  1549. Clone.Parent = game:GetService("Players").LocalPlayer["Character"]
  1550. Clone.Name = "Humanoid"
  1551. game:GetService("Players").LocalPlayer["Character"]:FindFirstChild("FalseHumanoid"):Destroy()
  1552. game:GetService("Players").LocalPlayer["Character"].Humanoid.Health = 0
  1553. game:GetService("Players").LocalPlayer["Character"] = workspace[game:GetService("Players").LocalPlayer.Name]
  1554. wait(5.65)
  1555. game:GetService("Players").LocalPlayer["Character"].Humanoid.Health = 0
  1556. CloneChar.Parent = workspace
  1557. CloneChar.HumanoidRootPart.CFrame = game:GetService("Players").LocalPlayer["Character"].HumanoidRootPart.CFrame * CFrame.new(0,0.5,0.1)
  1558. wait()
  1559. CloneChar.Humanoid.BreakJointsOnDeath = false
  1560. workspace.Camera.CameraSubject = CloneChar.Humanoid
  1561. CloneChar.Name = "non"
  1562. CloneChar.Humanoid.DisplayDistanceType = "None"
  1563. if CloneChar.Head:FindFirstChild("face") then CloneChar.Head:FindFirstChild("face"):Destroy() end
  1564. if workspace[game:GetService("Players").LocalPlayer.Name].Head:FindFirstChild("face") then workspace[game:GetService("Players").LocalPlayer.Name].Head:FindFirstChild("face").Parent = CloneChar.Head end
  1565.  
  1566. FalseChar:Destroy()
  1567.  
  1568. local DeadChar = workspace[game:GetService("Players").LocalPlayer.Name]
  1569.  
  1570. local LVecPart = Instance.new("Part", workspace) LVecPart.CanCollide = false LVecPart.Transparency = 1
  1571. local CONVEC
  1572. local function VECTORUNIT()
  1573. if HumanDied then CONVEC:Disconnect(); return end
  1574. local lookVec = workspace.Camera.CFrame.lookVector
  1575. local Root = CloneChar["HumanoidRootPart"]
  1576. LVecPart.Position = Root.Position
  1577. LVecPart.CFrame = CFrame.new(LVecPart.Position, Vector3.new(lookVec.X * 9999, lookVec.Y, lookVec.Z * 9999))
  1578. end
  1579. CONVEC = game:GetService("RunService").Heartbeat:Connect(VECTORUNIT)
  1580.  
  1581. local CONDOWN
  1582. local WDown, ADown, SDown, DDown, SpaceDown = false, false, false, false, false
  1583. local function KEYDOWN(_,Processed)
  1584. if HumanDied then CONDOWN:Disconnect(); return end
  1585. if Processed ~= true then
  1586. local Key = _.KeyCode
  1587. if Key == Enum.KeyCode.W then
  1588. WDown = true end
  1589. if Key == Enum.KeyCode.A then
  1590. ADown = true end
  1591. if Key == Enum.KeyCode.S then
  1592. SDown = true end
  1593. if Key == Enum.KeyCode.D then
  1594. DDown = true end
  1595. if Key == Enum.KeyCode.Space then
  1596. SpaceDown = true end end end
  1597. CONDOWN = game:GetService("UserInputService").InputBegan:Connect(KEYDOWN)
  1598.  
  1599. local CONUP
  1600. local function KEYUP(_)
  1601. if HumanDied then CONUP:Disconnect(); return end
  1602. local Key = _.KeyCode
  1603. if Key == Enum.KeyCode.W then
  1604. WDown = false end
  1605. if Key == Enum.KeyCode.A then
  1606. ADown = false end
  1607. if Key == Enum.KeyCode.S then
  1608. SDown = false end
  1609. if Key == Enum.KeyCode.D then
  1610. DDown = false end
  1611. if Key == Enum.KeyCode.Space then
  1612. SpaceDown = false end end
  1613. CONUP = game:GetService("UserInputService").InputEnded:Connect(KEYUP)
  1614.  
  1615. local function MoveClone(X,Y,Z)
  1616. LVecPart.CFrame = LVecPart.CFrame * CFrame.new(-X,Y,-Z)
  1617. workspace["non"].Humanoid.WalkToPoint = LVecPart.Position
  1618. end
  1619.  
  1620. coroutine.wrap(function()
  1621. while true do game:GetService("RunService").RenderStepped:Wait()
  1622. if HumanDied then break end
  1623. if WDown then MoveClone(0,0,1e4) end
  1624. if ADown then MoveClone(1e4,0,0) end
  1625. if SDown then MoveClone(0,0,-1e4) end
  1626. if DDown then MoveClone(-1e4,0,0) end
  1627. if SpaceDown then CloneChar["Humanoid"].Jump = true end
  1628. if WDown ~= true and ADown ~= true and SDown ~= true and DDown ~= true then
  1629. workspace["non"].Humanoid.WalkToPoint = workspace["non"].HumanoidRootPart.Position end
  1630. end
  1631. end)()
  1632.  
  1633. local con
  1634. function UnCollide()
  1635. if HumanDied then con:Disconnect(); return end
  1636. for _,Parts in next, CloneChar:GetDescendants() do
  1637. if Parts:IsA("BasePart") then
  1638. Parts.CanCollide = false
  1639. end
  1640. end
  1641. for _,Parts in next, DeadChar:GetDescendants() do
  1642. if Parts:IsA("BasePart") then
  1643. Parts.CanCollide = false
  1644. end
  1645. end
  1646. end
  1647. con = game:GetService("RunService").Stepped:Connect(UnCollide)
  1648.  
  1649. local resetBindable = Instance.new("BindableEvent")
  1650. resetBindable.Event:connect(function()
  1651. game:GetService("StarterGui"):SetCore("ResetButtonCallback", true)
  1652. resetBindable:Destroy()
  1653. CloneChar.Humanoid.Health = 0
  1654. end)
  1655. game:GetService("StarterGui"):SetCore("ResetButtonCallback", resetBindable)
  1656.  
  1657. coroutine.wrap(function()
  1658. while true do
  1659. game:GetService("RunService").RenderStepped:wait()
  1660. if not CloneChar or not CloneChar:FindFirstChild("Head") or not CloneChar:FindFirstChild("Humanoid") or CloneChar:FindFirstChild("Humanoid").Health <= 0 then
  1661. HumanDied = true
  1662. pcall(function()
  1663. game.Players.LocalPlayer.Character = CloneChar
  1664. CloneChar:Destroy()
  1665. game.Players.LocalPlayer.Character = DeadChar
  1666. if resetBindable then
  1667. game:GetService("StarterGui"):SetCore("ResetButtonCallback", true)
  1668. resetBindable:Destroy()
  1669. end
  1670. DeadChar.Humanoid.Health = 0
  1671. end)
  1672. break
  1673. end
  1674. end
  1675. end)()
  1676.  
  1677. for _,v in next, DeadChar:GetChildren() do
  1678. if v:IsA("Accessory") then
  1679. v:Clone().Parent = CloneChar
  1680. end
  1681. end
  1682.  
  1683. SCIFIMOVIELOL(DeadChar["Head"],CloneChar["Head"],Vector3.new(0,0,0),Vector3.new(0,0,0))
  1684. SCIFIMOVIELOL(DeadChar["UpperTorso"],CloneChar["Torso"],Vector3.new(0,0.2,0),Vector3.new(0,0,0))
  1685. SCIFIMOVIELOL(DeadChar["LowerTorso"],CloneChar["Torso"],Vector3.new(0,-0.78,0),Vector3.new(0,0,0))
  1686. SCIFIMOVIELOL(DeadChar["LeftUpperArm"],CloneChar["Left Arm"],Vector3.new(0,0.375,0),Vector3.new(0,0,0))
  1687. SCIFIMOVIELOL(DeadChar["LeftLowerArm"],CloneChar["Left Arm"],Vector3.new(0,-0.215,0),Vector3.new(0,0,0))
  1688. SCIFIMOVIELOL(DeadChar["LeftHand"],CloneChar["Left Arm"],Vector3.new(0,-0.825,0),Vector3.new(0,0,0))
  1689. SCIFIMOVIELOL(DeadChar["RightUpperArm"],CloneChar["Right Arm"],Vector3.new(0,0.375,0),Vector3.new(0,0,0))
  1690. SCIFIMOVIELOL(DeadChar["RightLowerArm"],CloneChar["Right Arm"],Vector3.new(0,-0.215,0),Vector3.new(0,0,0))
  1691. SCIFIMOVIELOL(DeadChar["RightHand"],CloneChar["Right Arm"],Vector3.new(0,-0.825,0),Vector3.new(0,0,0))
  1692.  
  1693. SCIFIMOVIELOL(DeadChar["LeftUpperLeg"],CloneChar["Left Leg"],Vector3.new(0,0.575,0),Vector3.new(0,0,0))
  1694. SCIFIMOVIELOL(DeadChar["LeftLowerLeg"],CloneChar["Left Leg"],Vector3.new(0,-0.137,0),Vector3.new(0,0,0))
  1695. SCIFIMOVIELOL(DeadChar["LeftFoot"],CloneChar["Left Leg"],Vector3.new(0,-0.787,0),Vector3.new(0,0,0))
  1696. SCIFIMOVIELOL(DeadChar["RightUpperLeg"],CloneChar["Right Leg"],Vector3.new(0,0.575,0),Vector3.new(0,0,0))
  1697. SCIFIMOVIELOL(DeadChar["RightLowerLeg"],CloneChar["Right Leg"],Vector3.new(0,-0.137,0),Vector3.new(0,0,0))
  1698. SCIFIMOVIELOL(DeadChar["RightFoot"],CloneChar["Right Leg"],Vector3.new(0,-0.787,0),Vector3.new(0,0,0))
  1699.  
  1700. SCIFIMOVIELOL(DeadChar["HumanoidRootPart"],CloneChar["HumanoidRootPart"],Vector3.new(0,0,0),Vector3.new(0,0,0))
  1701.  
  1702. for _,v in next, DeadChar:GetChildren() do
  1703. if v:IsA("Accessory") then
  1704. SCIFIMOVIELOL(v.Handle,CloneChar[v.Name].Handle,Vector3.new(0,0,0),Vector3.new(0,0,0))
  1705. end
  1706. end
  1707.  
  1708. for _,BodyParts in next, CloneChar:GetDescendants() do
  1709. if BodyParts:IsA("BasePart") or BodyParts:IsA("Part") then
  1710. BodyParts.Transparency = 1 end end
  1711. if DeadChar.Head:FindFirstChild("Neck") then
  1712. game.Players.LocalPlayer.Character:BreakJoints()
  1713. end
  1714. end
  1715. end
  1716.  
  1717.  
  1718. local IsDead = false
  1719. local StateMover = true
  1720.  
  1721. local playerss = workspace.non
  1722. local bbv,bullet
  1723. if Bypass == "death" then
  1724. bullet = game.Players.LocalPlayer.Character["HumanoidRootPart"]
  1725. bullet.Transparency = 0
  1726. bullet.Massless = true
  1727. if bullet:FindFirstChildOfClass("Attachment") then
  1728. for _,v in pairs(bullet:GetChildren()) do
  1729. if v:IsA("Attachment") then
  1730. v:Destroy()
  1731. end
  1732. end
  1733. end
  1734.  
  1735. bbv = Instance.new("BodyPosition",bullet)
  1736. bbv.Position = playerss.Torso.CFrame.p
  1737. end
  1738.  
  1739.  
  1740. if Bypass == "death" then
  1741. coroutine.wrap(function()
  1742. while true do
  1743. if not playerss or not playerss:FindFirstChildOfClass("Humanoid") or playerss:FindFirstChildOfClass("Humanoid").Health <= 0 then IsDead = true; return end
  1744. if StateMover then
  1745. bbv.Position = playerss.Torso.CFrame.p
  1746. bullet.Position = playerss.Torso.CFrame.p
  1747. end
  1748. game:GetService("RunService").RenderStepped:wait()
  1749. end
  1750. end)()
  1751. end
  1752.  
  1753. local CDDF = {}
  1754. local DamageFling = function(DmgPer)
  1755. if IsDead or Bypass ~= "death" or (DmgPer.Name == playerss.Name and DmgPer.Name == "non") or CDDF[DmgPer] or not DmgPer or not DmgPer:FindFirstChildOfClass("Humanoid") or DmgPer:FindFirstChildOfClass("Humanoid").Health <= 0 then return end
  1756. CDDF[DmgPer] = true; StateMover = false
  1757. local PosFling = (DmgPer:FindFirstChild("HumanoidRootPart") and DmgPer:FindFirstChild("HumanoidRootPart") .CFrame.p) or (DmgPer:FindFirstChildOfClass("Part") and DmgPer:FindFirstChildOfClass("Part").CFrame.p)
  1758. bbav = Instance.new("BodyAngularVelocity",bullet)
  1759. bbav.MaxTorque = Vector3.new(math.huge,math.huge,math.huge)
  1760. bbav.P = 1000000000000000000000000000
  1761. bbav.AngularVelocity = Vector3.new(10000000000000000000000000000000,100000000000000000000000000,100000000000000000)
  1762. game:GetService("Debris"):AddItem(bbav,0.1)
  1763. bullet.Rotation = playerss.Torso.Rotation
  1764. for _=1,15 do
  1765. bbv.Position = PosFling
  1766. bullet.Position = PosFling
  1767. wait(0.03)
  1768. end
  1769. bbv.Position = playerss.Torso.CFrame.p
  1770. bullet.Position = playerss.Torso.CFrame.p
  1771. CDDF[DmgPer] = false; StateMover = true
  1772. end
  1773.  
  1774. --[[ Name : Gale Fighter ]]--
  1775. -------------------------------------------------------
  1776. --A Collaboration Between makhail07 and KillerDarkness0105
  1777.  
  1778. --Base Animaion by makhail07, attacks by KillerDarkness0105
  1779. -------------------------------------------------------
  1780.  
  1781.  
  1782. local FavIDs = {
  1783. 340106355, --Nefl Crystals
  1784. 927529620, --Dimension
  1785. 876981900, --Fantasy
  1786. 398987889, --Ordinary Days
  1787. 1117396305, --Oh wait, it's you.
  1788. 885996042, --Action Winter Journey
  1789. 919231299, --Sprawling Idiot Effigy
  1790. 743466274, --Good Day Sunshine
  1791. 727411183, --Knife Fight
  1792. 1402748531, --The Earth Is Counting On You!
  1793. 595230126 --Robot Language
  1794. }
  1795.  
  1796.  
  1797.  
  1798. --The reality of my life isn't real but a Universe -makhail07
  1799. wait(0.2)
  1800. local plr = game:service'Players'.LocalPlayer
  1801. print('Local User is '..plr.Name)
  1802. print('Gale Fighter Loaded')
  1803. print('The Fighter that is as fast as wind, a true Fighter')
  1804. local char = workspace.non
  1805. local hum = char.Humanoid
  1806. local hed = char.Head
  1807. local root = char.HumanoidRootPart
  1808. local rootj = root.RootJoint
  1809. local tors = char.Torso
  1810. local ra = char["Right Arm"]
  1811. local la = char["Left Arm"]
  1812. local rl = char["Right Leg"]
  1813. local ll = char["Left Leg"]
  1814. local neck = tors["Neck"]
  1815. local mouse = plr:GetMouse()
  1816. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  1817. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  1818. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  1819. local maincolor = BrickColor.new("Institutional white")
  1820. hum.MaxHealth = 200
  1821. hum.Health = 200
  1822.  
  1823. -------------------------------------------------------
  1824. --Start Good Stuff--
  1825. -------------------------------------------------------
  1826. cam = game.Workspace.CurrentCamera
  1827. CF = CFrame.new
  1828. angles = CFrame.Angles
  1829. attack = false
  1830. Euler = CFrame.fromEulerAnglesXYZ
  1831. Rad = math.rad
  1832. IT = Instance.new
  1833. BrickC = BrickColor.new
  1834. Cos = math.cos
  1835. Acos = math.acos
  1836. Sin = math.sin
  1837. Asin = math.asin
  1838. Abs = math.abs
  1839. Mrandom = math.random
  1840. Floor = math.floor
  1841. -------------------------------------------------------
  1842. --End Good Stuff--
  1843. -------------------------------------------------------
  1844. necko = CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1845. RSH, LSH = nil, nil
  1846. RW = Instance.new("Weld")
  1847. LW = Instance.new("Weld")
  1848. RH = tors["Right Hip"]
  1849. LH = tors["Left Hip"]
  1850. RSH = tors["Right Shoulder"]
  1851. LSH = tors["Left Shoulder"]
  1852. RSH.Parent = nil
  1853. LSH.Parent = nil
  1854. RW.Name = "RW"
  1855. RW.Part0 = tors
  1856. RW.C0 = CF(1.5, 0.5, 0)
  1857. RW.C1 = CF(0, 0.5, 0)
  1858. RW.Part1 = ra
  1859. RW.Parent = tors
  1860. LW.Name = "LW"
  1861. LW.Part0 = tors
  1862. LW.C0 = CF(-1.5, 0.5, 0)
  1863. LW.C1 = CF(0, 0.5, 0)
  1864. LW.Part1 = la
  1865. LW.Parent = tors
  1866. vt = Vector3.new
  1867. Effects = {}
  1868. -------------------------------------------------------
  1869. --Start HeartBeat--
  1870. -------------------------------------------------------
  1871. ArtificialHB = Instance.new("BindableEvent", script)
  1872. ArtificialHB.Name = "Heartbeat"
  1873. script:WaitForChild("Heartbeat")
  1874.  
  1875. frame = 1 / 90
  1876. tf = 0
  1877. allowframeloss = false
  1878. tossremainder = false
  1879.  
  1880.  
  1881. lastframe = tick()
  1882. script.Heartbeat:Fire()
  1883.  
  1884.  
  1885. game:GetService("RunService").Heartbeat:connect(function(s, p)
  1886. tf = tf + s
  1887. if tf >= frame then
  1888. if allowframeloss then
  1889. script.Heartbeat:Fire()
  1890. lastframe = tick()
  1891. else
  1892. for i = 1, math.floor(tf / frame) do
  1893. script.Heartbeat:Fire()
  1894. end
  1895. lastframe = tick()
  1896. end
  1897. if tossremainder then
  1898. tf = 0
  1899. else
  1900. tf = tf - frame * math.floor(tf / frame)
  1901. end
  1902. end
  1903. end)
  1904. -------------------------------------------------------
  1905. --End HeartBeat--
  1906. -------------------------------------------------------
  1907.  
  1908.  
  1909.  
  1910. -------------------------------------------------------
  1911. --Start Combo Function--
  1912. -------------------------------------------------------
  1913. local comboing = false
  1914. local combohits = 0
  1915. local combotime = 0
  1916. local maxtime = 65
  1917.  
  1918.  
  1919.  
  1920. function sandbox(var,func)
  1921. local env = getfenv(func)
  1922. local newenv = setmetatable({},{
  1923. __index = function(self,k)
  1924. if k=="script" then
  1925. return var
  1926. else
  1927. return env[k]
  1928. end
  1929. end,
  1930. })
  1931. setfenv(func,newenv)
  1932. return func
  1933. end
  1934. cors = {}
  1935. mas = Instance.new("Model",game:GetService("Lighting"))
  1936. comboframe = Instance.new("ScreenGui")
  1937. Frame1 = Instance.new("Frame")
  1938. Frame2 = Instance.new("Frame")
  1939. TextLabel3 = Instance.new("TextLabel")
  1940. comboframe.Name = "combinserter"
  1941. comboframe.Parent = mas
  1942. Frame1.Name = "combtimegui"
  1943. Frame1.Parent = comboframe
  1944. Frame1.Size = UDim2.new(0, 300, 0, 14)
  1945. Frame1.Position = UDim2.new(0, 900, 0.629999971, 0)
  1946. Frame1.BackgroundColor3 = Color3.new(0, 0, 0)
  1947. Frame1.BorderColor3 = Color3.new(0.0313726, 0.0470588, 0.0627451)
  1948. Frame1.BorderSizePixel = 5
  1949. Frame2.Name = "combtimeoverlay"
  1950. Frame2.Parent = Frame1
  1951. Frame2.Size = UDim2.new(0, 0, 0, 14)
  1952. Frame2.BackgroundColor3 = Color3.new(0, 1, 0)
  1953. Frame2.ZIndex = 2
  1954. TextLabel3.Parent = Frame2
  1955. TextLabel3.Transparency = 0
  1956. TextLabel3.Size = UDim2.new(0, 300, 0, 50)
  1957. TextLabel3.Text ="Hits: "..combohits
  1958. TextLabel3.Position = UDim2.new(0, 0, -5.5999999, 0)
  1959. TextLabel3.BackgroundColor3 = Color3.new(1, 1, 1)
  1960. TextLabel3.BackgroundTransparency = 1
  1961. TextLabel3.Font = Enum.Font.Bodoni
  1962. TextLabel3.FontSize = Enum.FontSize.Size60
  1963. TextLabel3.TextColor3 = Color3.new(0, 1, 0)
  1964. TextLabel3.TextStrokeTransparency = 0
  1965. gui = game:GetService("Players").LocalPlayer.PlayerGui
  1966. for i,v in pairs(mas:GetChildren()) do
  1967. v.Parent = game:GetService("Players").LocalPlayer.PlayerGui
  1968. pcall(function() v:MakeJoints() end)
  1969. end
  1970. mas:Destroy()
  1971. for i,v in pairs(cors) do
  1972. spawn(function()
  1973. pcall(v)
  1974. end)
  1975. end
  1976.  
  1977.  
  1978.  
  1979.  
  1980.  
  1981. coroutine.resume(coroutine.create(function()
  1982. while true do
  1983. wait()
  1984.  
  1985.  
  1986. if combotime>65 then
  1987. combotime = 65
  1988. end
  1989.  
  1990.  
  1991.  
  1992.  
  1993.  
  1994. if combotime>.1 and comboing == true then
  1995. TextLabel3.Transparency = 0
  1996. TextLabel3.TextStrokeTransparency = 0
  1997. TextLabel3.BackgroundTransparency = 1
  1998. Frame1.Transparency = 0
  1999. Frame2.Transparency = 0
  2000. TextLabel3.Text ="Hits: "..combohits
  2001. combotime = combotime - .34
  2002. Frame2.Size = Frame2.Size:lerp(UDim2.new(0, combotime/maxtime*300, 0, 14),0.42)
  2003. end
  2004.  
  2005.  
  2006.  
  2007.  
  2008. if combotime<.1 then
  2009. TextLabel3.BackgroundTransparency = 1
  2010. TextLabel3.Transparency = 1
  2011. TextLabel3.TextStrokeTransparency = 1
  2012.  
  2013. Frame2.Size = UDim2.new(0, 0, 0, 14)
  2014. combotime = 0
  2015. comboing = false
  2016. Frame1.Transparency = 1
  2017. Frame2.Transparency = 1
  2018. combohits = 0
  2019.  
  2020. end
  2021. end
  2022. end))
  2023.  
  2024.  
  2025.  
  2026. -------------------------------------------------------
  2027. --End Combo Function--
  2028. -------------------------------------------------------
  2029.  
  2030. -------------------------------------------------------
  2031. --Start Important Functions--
  2032. -------------------------------------------------------
  2033. function swait(num)
  2034. if num == 0 or num == nil then
  2035. game:service("RunService").Stepped:wait(0)
  2036. else
  2037. for i = 0, num do
  2038. game:service("RunService").Stepped:wait(0)
  2039. end
  2040. end
  2041. end
  2042. function thread(f)
  2043. coroutine.resume(coroutine.create(f))
  2044. end
  2045. function clerp(a, b, t)
  2046. local qa = {
  2047. QuaternionFromCFrame(a)
  2048. }
  2049. local qb = {
  2050. QuaternionFromCFrame(b)
  2051. }
  2052. local ax, ay, az = a.x, a.y, a.z
  2053. local bx, by, bz = b.x, b.y, b.z
  2054. local _t = 1 - t
  2055. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  2056. end
  2057. function QuaternionFromCFrame(cf)
  2058. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  2059. local trace = m00 + m11 + m22
  2060. if trace > 0 then
  2061. local s = math.sqrt(1 + trace)
  2062. local recip = 0.5 / s
  2063. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  2064. else
  2065. local i = 0
  2066. if m00 < m11 then
  2067. i = 1
  2068. end
  2069. if m22 > (i == 0 and m00 or m11) then
  2070. i = 2
  2071. end
  2072. if i == 0 then
  2073. local s = math.sqrt(m00 - m11 - m22 + 1)
  2074. local recip = 0.5 / s
  2075. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  2076. elseif i == 1 then
  2077. local s = math.sqrt(m11 - m22 - m00 + 1)
  2078. local recip = 0.5 / s
  2079. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  2080. elseif i == 2 then
  2081. local s = math.sqrt(m22 - m00 - m11 + 1)
  2082. local recip = 0.5 / s
  2083. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  2084. end
  2085. end
  2086. end
  2087. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  2088. local xs, ys, zs = x + x, y + y, z + z
  2089. local wx, wy, wz = w * xs, w * ys, w * zs
  2090. local xx = x * xs
  2091. local xy = x * ys
  2092. local xz = x * zs
  2093. local yy = y * ys
  2094. local yz = y * zs
  2095. local zz = z * zs
  2096. 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))
  2097. end
  2098. function QuaternionSlerp(a, b, t)
  2099. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  2100. local startInterp, finishInterp
  2101. if cosTheta >= 1.0E-4 then
  2102. if 1 - cosTheta > 1.0E-4 then
  2103. local theta = math.acos(cosTheta)
  2104. local invSinTheta = 1 / Sin(theta)
  2105. startInterp = Sin((1 - t) * theta) * invSinTheta
  2106. finishInterp = Sin(t * theta) * invSinTheta
  2107. else
  2108. startInterp = 1 - t
  2109. finishInterp = t
  2110. end
  2111. elseif 1 + cosTheta > 1.0E-4 then
  2112. local theta = math.acos(-cosTheta)
  2113. local invSinTheta = 1 / Sin(theta)
  2114. startInterp = Sin((t - 1) * theta) * invSinTheta
  2115. finishInterp = Sin(t * theta) * invSinTheta
  2116. else
  2117. startInterp = t - 1
  2118. finishInterp = t
  2119. end
  2120. 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
  2121. end
  2122. function rayCast(Position, Direction, Range, Ignore)
  2123. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  2124. end
  2125.  
  2126. local Create = FELOADLIBRARY.Create
  2127.  
  2128. -------------------------------------------------------
  2129. --Start Damage Function--
  2130. -------------------------------------------------------
  2131. function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  2132. if hit.Parent == nil then
  2133. return
  2134. end
  2135. local h = hit.Parent:FindFirstChildOfClass("Humanoid")
  2136. for _, v in pairs(hit.Parent:children()) do
  2137. if v:IsA("Humanoid") then
  2138. h = v
  2139. end
  2140. end
  2141. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then
  2142.  
  2143. hit.Parent:FindFirstChild("Head"):BreakJoints()
  2144. end
  2145.  
  2146. if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  2147. if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  2148. if hit.Parent.DebounceHit.Value == true then
  2149. return
  2150. end
  2151. end
  2152. if insta == true then
  2153. hit.Parent:FindFirstChild("Head"):BreakJoints()
  2154. end
  2155. local c = Create("ObjectValue"){
  2156. Name = "creator",
  2157. Value = game:service("Players").LocalPlayer,
  2158. Parent = h,
  2159. }
  2160. game:GetService("Debris"):AddItem(c, .5)
  2161. if HitSound ~= nil and HitPitch ~= nil then
  2162. CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
  2163. end
  2164. local Damage = math.random(minim, maxim)
  2165. local blocked = false
  2166. local block = hit.Parent:findFirstChild("Block")
  2167. if block ~= nil then
  2168. if block.className == "IntValue" then
  2169. if block.Value > 0 then
  2170. blocked = true
  2171. block.Value = block.Value - 1
  2172. print(block.Value)
  2173. end
  2174. end
  2175. end
  2176. if blocked == false then
  2177. DamageFling(h.Parent)
  2178. ---ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
  2179. else
  2180. DamageFling(h.Parent)
  2181. ---ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
  2182. end
  2183. if Type == "Knockdown" then
  2184. local hum = hit.Parent.Humanoid
  2185. hum.PlatformStand = true
  2186. coroutine.resume(coroutine.create(function(HHumanoid)
  2187. swait(1)
  2188. HHumanoid.PlatformStand = false
  2189. end), hum)
  2190. local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  2191. local bodvol = Create("BodyVelocity"){
  2192. velocity = angle * knockback,
  2193. P = 5000,
  2194. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  2195. Parent = hit,
  2196. }
  2197. local rl = Create("BodyAngularVelocity"){
  2198. P = 3000,
  2199. maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  2200. angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  2201. Parent = hit,
  2202. }
  2203. game:GetService("Debris"):AddItem(bodvol, .5)
  2204. game:GetService("Debris"):AddItem(rl, .5)
  2205. elseif Type == "Normal" then
  2206. local vp = Create("BodyVelocity"){
  2207. P = 500,
  2208. maxForce = Vector3.new(math.huge, 0, math.huge),
  2209. velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
  2210. }
  2211. if knockback > 0 then
  2212. vp.Parent = hit.Parent.Torso
  2213. end
  2214. game:GetService("Debris"):AddItem(vp, .5)
  2215. elseif Type == "Up" then
  2216. local bodyVelocity = Create("BodyVelocity"){
  2217. velocity = Vector3.new(0, 20, 0),
  2218. P = 5000,
  2219. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  2220. Parent = hit,
  2221. }
  2222. game:GetService("Debris"):AddItem(bodyVelocity, .5)
  2223. elseif Type == "DarkUp" then
  2224. coroutine.resume(coroutine.create(function()
  2225. for i = 0, 1, 0.1 do
  2226. swait()
  2227. Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
  2228. end
  2229. end))
  2230. local bodyVelocity = Create("BodyVelocity"){
  2231. velocity = Vector3.new(0, 20, 0),
  2232. P = 5000,
  2233. maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  2234. Parent = hit,
  2235. }
  2236. game:GetService("Debris"):AddItem(bodyVelocity, 1)
  2237. elseif Type == "Snare" then
  2238. local bp = Create("BodyPosition"){
  2239. P = 2000,
  2240. D = 100,
  2241. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  2242. position = hit.Parent.Torso.Position,
  2243. Parent = hit.Parent.Torso,
  2244. }
  2245. game:GetService("Debris"):AddItem(bp, 1)
  2246. elseif Type == "Freeze" then
  2247. local BodPos = Create("BodyPosition"){
  2248. P = 50000,
  2249. D = 1000,
  2250. maxForce = Vector3.new(math.huge, math.huge, math.huge),
  2251. position = hit.Parent.Torso.Position,
  2252. Parent = hit.Parent.Torso,
  2253. }
  2254. local BodGy = Create("BodyGyro") {
  2255. maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  2256. P = 20e+003,
  2257. Parent = hit.Parent.Torso,
  2258. cframe = hit.Parent.Torso.CFrame,
  2259. }
  2260. hit.Parent.Torso.Anchored = true
  2261. coroutine.resume(coroutine.create(function(Part)
  2262. swait(1.5)
  2263. Part.Anchored = false
  2264. end), hit.Parent.Torso)
  2265. game:GetService("Debris"):AddItem(BodPos, 3)
  2266. game:GetService("Debris"):AddItem(BodGy, 3)
  2267. end
  2268. local debounce = Create("BoolValue"){
  2269. Name = "DebounceHit",
  2270. Parent = hit.Parent,
  2271. Value = true,
  2272. }
  2273. game:GetService("Debris"):AddItem(debounce, Delay)
  2274. c = Create("ObjectValue"){
  2275. Name = "creator",
  2276. Value = Player,
  2277. Parent = h,
  2278. }
  2279. game:GetService("Debris"):AddItem(c, .5)
  2280. end
  2281. end
  2282.  
  2283.  
  2284.  
  2285.  
  2286. kDamagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  2287. if hit.Parent==nil then
  2288. return
  2289. end
  2290. h=hit.Parent:FindFirstChild("Humanoid")
  2291. for _,v in pairs(hit.Parent:children()) do
  2292. if v:IsA("Humanoid") then
  2293. h=v
  2294. end
  2295. end
  2296. if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  2297. h=hit.Parent.Parent:FindFirstChild("Humanoid")
  2298. end
  2299. if hit.Parent.className=="Hat" then
  2300. hit=hit.Parent.Parent:findFirstChild("Head")
  2301. end
  2302. if h~=nil and hit.Parent.Name~=char.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  2303. if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  2304. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  2305. return
  2306. end]]
  2307. -- hs(hit,1.2)
  2308. c=Instance.new("ObjectValue")
  2309. c.Name="creator"
  2310. c.Value=game:service("Players").LocalPlayer
  2311. c.Parent=h
  2312. game:GetService("Debris"):AddItem(c,.5)
  2313. Damage=math.random(minim,maxim)
  2314. -- h:TakeDamage(Damage)
  2315. blocked=false
  2316. block=hit.Parent:findFirstChild("Block")
  2317. if block~=nil then
  2318. print(block.className)
  2319. if block.className=="NumberValue" then
  2320. if block.Value>0 then
  2321. blocked=true
  2322. if decreaseblock==nil then
  2323. block.Value=block.Value-1
  2324. end
  2325. end
  2326. end
  2327. if block.className=="IntValue" then
  2328. if block.Value>0 then
  2329. blocked=true
  2330. if decreaseblock~=nil then
  2331. block.Value=block.Value-1
  2332. end
  2333. end
  2334. end
  2335. end
  2336. if blocked==false then
  2337. -- h:TakeDamage(Damage)
  2338. DamageFling(h.Parent)
  2339. ---kshowDamage(hit.Parent,Damage,.5,BrickColor.new("White"))
  2340. else
  2341. DamageFling(h.Parent)
  2342. ---kshowDamage(hit.Parent,Damage/2,.5,BrickColor.new("White"))
  2343. end
  2344. if Type=="Knockdown" then
  2345. hum=hit.Parent.Humanoid
  2346. hum.PlatformStand=true
  2347. coroutine.resume(coroutine.create(function(HHumanoid)
  2348. swait(1)
  2349. HHumanoid.PlatformStand=false
  2350. end),hum)
  2351. local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  2352. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  2353. local bodvol=Instance.new("BodyVelocity")
  2354. bodvol.velocity=angle*knockback
  2355. bodvol.P=5000
  2356. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  2357. bodvol.Parent=hit
  2358. rl=Instance.new("BodyAngularVelocity")
  2359. rl.P=3000
  2360. rl.maxTorque=Vector3.new(500,500,500)
  2361. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  2362. rl.Parent=hit
  2363. game:GetService("Debris"):AddItem(bodvol,.5)
  2364. game:GetService("Debris"):AddItem(rl,.5)
  2365. elseif Type=="Normal" then
  2366. vp=Instance.new("BodyVelocity")
  2367. vp.P=500
  2368. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  2369. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  2370. if KnockbackType==1 then
  2371. vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  2372. elseif KnockbackType==2 then
  2373. vp.velocity=Property.CFrame.lookVector*knockback
  2374. end
  2375. if knockback>0 then
  2376. vp.Parent=hit.Parent.Torso
  2377. end
  2378. game:GetService("Debris"):AddItem(vp,.5)
  2379. elseif Type=="Up" then
  2380. hit.Parent.Humanoid.PlatformStand = true
  2381. local bodyVelocity=Instance.new("BodyVelocity")
  2382. bodyVelocity.velocity=vt(0,15,0)
  2383. bodyVelocity.P=5000
  2384. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  2385. bodyVelocity.Parent=hit
  2386. game:GetService("Debris"):AddItem(bodyVelocity,1)
  2387. rl=Instance.new("BodyAngularVelocity")
  2388. rl.P=3000
  2389. rl.AngularVelocity = Vector3.new(2000,2000,2000)
  2390. rl.MaxTorque = Vector3.new(40000,40000,40000)
  2391. rl.Parent=hit
  2392. hit.Parent.Humanoid.PlatformStand = false
  2393. game:GetService("Debris"):AddItem(rl,.5)
  2394. elseif Type=="Snare" then
  2395. bp=Instance.new("BodyPosition")
  2396. bp.P=2000
  2397. bp.D=100
  2398. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  2399. bp.position=hit.Parent.Torso.Position
  2400. bp.Parent=hit.Parent.Torso
  2401. game:GetService("Debris"):AddItem(bp,1)
  2402. elseif Type=="Float" then
  2403. hit.Parent.Humanoid.PlatformStand = true
  2404. bp=Instance.new("BodyPosition")
  2405. bp.P=2000
  2406. bp.D=400
  2407. bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  2408. bp.position=hit.Parent.Torso.Position+vt(0,35,24)
  2409. bp.Parent=hit.Parent.Torso
  2410.  
  2411. local rl=Instance.new("BodyAngularVelocity",hit.Parent.Torso)
  2412. rl.P=377705
  2413. rl.maxTorque=Vector3.new(1,1,1)*500
  2414. rl.angularvelocity=Vector3.new(math.random(-3,3),math.random(-6,6),math.random(-3,3))
  2415.  
  2416. local BF = Instance.new("BodyForce",hit.Parent.Torso)
  2417. BF.force = Vector3.new(0, workspace.Gravity/1.10, 0)
  2418. game:GetService("Debris"):AddItem(bp,5)
  2419. game:GetService("Debris"):AddItem(BF,5)
  2420. game:GetService("Debris"):AddItem(rl,5)
  2421. elseif Type=="Target" then
  2422. if Targetting==false then
  2423. ZTarget=hit.Parent.Torso
  2424. coroutine.resume(coroutine.create(function(Part)
  2425. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  2426. swait(5)
  2427. so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  2428. end),ZTarget)
  2429. TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  2430. targetgui=Instance.new("BillboardGui")
  2431. targetgui.Parent=ZTarget
  2432. targetgui.Size=UDim2.new(10,100,10,100)
  2433. targ=Instance.new("ImageLabel")
  2434. targ.Parent=targetgui
  2435. targ.BackgroundTransparency=1
  2436. targ.Image="rbxassetid://4834067"
  2437. targ.Size=UDim2.new(1,0,1,0)
  2438. cam.CameraType="Scriptable"
  2439. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  2440. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  2441. workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  2442. Targetting=true
  2443. RocketTarget=ZTarget
  2444. for i=1,Property do
  2445. --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  2446. if Humanoid.Health>0 and char.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  2447. swait()
  2448. end
  2449. --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
  2450. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  2451. dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  2452. cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  2453. end
  2454. Targetting=false
  2455. RocketTarget=nil
  2456. targetgui.Parent=nil
  2457. cam.CameraType="Custom"
  2458. end
  2459. end
  2460. debounce=Instance.new("BoolValue")
  2461. debounce.Name="DebounceHit"
  2462. debounce.Parent=hit.Parent
  2463. debounce.Value=true
  2464. game:GetService("Debris"):AddItem(debounce,Delay)
  2465. c=Instance.new("ObjectValue")
  2466. c.Name="creator"
  2467. c.Value=Player
  2468. c.Parent=h
  2469. game:GetService("Debris"):AddItem(c,.5)
  2470. CRIT=false
  2471. hitDeb=true
  2472. AttackPos=6
  2473. comboing = true
  2474. combohits = combohits+1
  2475. combotime = combotime+3.4
  2476.  
  2477.  
  2478.  
  2479. if hitfloor == nil then
  2480.  
  2481. local velo=Instance.new("BodyVelocity")
  2482. velo.velocity=vt(0,5.5,0)
  2483. velo.P=8000
  2484. velo.maxForce=Vector3.new(math.huge, math.huge, math.huge)
  2485. velo.Parent=root
  2486. game:GetService("Debris"):AddItem(velo,0.06)
  2487.  
  2488. local hitvelo=Instance.new("BodyVelocity")
  2489. hitvelo.velocity=vt(0,5.5,0)
  2490. hitvelo.P=8000
  2491. hitvelo.maxForce=Vector3.new(math.huge, math.huge, math.huge)
  2492. hitvelo.Parent=hit
  2493. game:GetService("Debris"):AddItem(hitvelo,0.06)
  2494.  
  2495. coroutine.resume(coroutine.create(function()
  2496. for i = 0,3.7,0.1 do
  2497. swait()
  2498. hit.Parent.Head.CFrame = root.CFrame * CFrame.new(0,0,-2.4)
  2499. root.Velocity = root.CFrame.lookVector*0
  2500. hit.Velocity = hit.CFrame.lookVector*130
  2501. end
  2502. end))
  2503. coroutine.resume(coroutine.create(function()
  2504. while ultra == true do
  2505. swait()
  2506. hit.Parent.Head.CFrame = root.CFrame * CFrame.new(0,0,-2.4)
  2507. end
  2508. end))
  2509.  
  2510.  
  2511. end
  2512.  
  2513.  
  2514. end
  2515. end
  2516.  
  2517. kshowDamage=function(Char,Dealt,du,Color)
  2518. m=Instance.new("Model")
  2519. m.Name=tostring(Dealt)
  2520. h=Instance.new("Humanoid")
  2521. h.Health=0
  2522. h.MaxHealth=0
  2523. h.Parent=m
  2524. c=Instance.new("Part")
  2525. c.Transparency=0
  2526. c.BrickColor=Color
  2527. c.Name="Head"
  2528. c.Material = "Neon"
  2529. c.TopSurface=0
  2530. c.BottomSurface=0
  2531. c.formFactor="Plate"
  2532. c.Size=Vector3.new(1,.4,1)
  2533. ms=Instance.new("CylinderMesh")
  2534. ms.Scale=Vector3.new(.8,.8,.8)
  2535. if CRIT==true then
  2536. ms.Scale=Vector3.new(1,1.25,1)
  2537. end
  2538. ms.Parent=c
  2539. c.Reflectance=0
  2540. Instance.new("BodyGyro").Parent=c
  2541. c.Parent=m
  2542. if Char:findFirstChild("Head")~=nil then
  2543. c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  2544. elseif Char.Parent:findFirstChild("Head")~=nil then
  2545. c.CFrame=CFrame.new(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0))
  2546. end
  2547. f=Instance.new("BodyPosition")
  2548. f.P=2000
  2549. f.D=220
  2550. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  2551. f.position=c.Position+Vector3.new(0,3,0)
  2552. f.Parent=c
  2553. game:GetService("Debris"):AddItem(m,.5+du)
  2554. c.CanCollide=false
  2555. m.Parent=workspace
  2556. c.CanCollide=false
  2557.  
  2558. end
  2559.  
  2560. -------------------------------------------------------
  2561. --End Damage Function--
  2562. -------------------------------------------------------
  2563.  
  2564. -------------------------------------------------------
  2565. --Start Damage Function Customization--
  2566. -------------------------------------------------------
  2567. function ShowDamage(Pos, Text, Time, Color)
  2568. local Rate = (1 / 30)
  2569. local Pos = (Pos or Vector3.new(0, 0, 0))
  2570. local Text = (Text or "")
  2571. local Time = (Time or 2)
  2572. local Color = (Color or Color3.new(1, 0, 1))
  2573. local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  2574. EffectPart.Anchored = true
  2575. local BillboardGui = Create("BillboardGui"){
  2576. Size = UDim2.new(3, 0, 3, 0),
  2577. Adornee = EffectPart,
  2578. Parent = EffectPart,
  2579. }
  2580. local TextLabel = Create("TextLabel"){
  2581. BackgroundTransparency = 1,
  2582. Size = UDim2.new(1, 0, 1, 0),
  2583. Text = Text,
  2584. Font = "Bodoni",
  2585. TextColor3 = Color,
  2586. TextScaled = true,
  2587. TextStrokeColor3 = Color3.fromRGB(0,0,0),
  2588. Parent = BillboardGui,
  2589. }
  2590. game.Debris:AddItem(EffectPart, (Time))
  2591. EffectPart.Parent = game:GetService("Workspace")
  2592. delay(0, function()
  2593. local Frames = (Time / Rate)
  2594. for Frame = 1, Frames do
  2595. wait(Rate)
  2596. local Percent = (Frame / Frames)
  2597. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  2598. TextLabel.TextTransparency = Percent
  2599. end
  2600. if EffectPart and EffectPart.Parent then
  2601. EffectPart:Destroy()
  2602. end
  2603. end)
  2604. end
  2605. -------------------------------------------------------
  2606. --End Damage Function Customization--
  2607. -------------------------------------------------------
  2608.  
  2609. function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
  2610. for _, c in pairs(workspace:children()) do
  2611. local hum = c:findFirstChild("Humanoid")
  2612. if hum ~= nil then
  2613. local head = c:findFirstChild("Head")
  2614. if head ~= nil then
  2615. local targ = head.Position - Part.Position
  2616. local mag = targ.magnitude
  2617. if magni >= mag and c.Name ~= plr.Name then
  2618. Damage(head, head, mindam, maxdam, knock, Type, root, 0.1, "http://www.roblox.com/asset/?id=0", 1.2)
  2619. end
  2620. end
  2621. end
  2622. end
  2623. end
  2624.  
  2625.  
  2626. CFuncs = {
  2627. Part = {
  2628. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  2629. local Part = Create("Part")({
  2630. Parent = Parent,
  2631. Reflectance = Reflectance,
  2632. Transparency = Transparency,
  2633. CanCollide = false,
  2634. Locked = true,
  2635. BrickColor = BrickColor.new(tostring(BColor)),
  2636. Name = Name,
  2637. Size = Size,
  2638. Material = Material
  2639. })
  2640. RemoveOutlines(Part)
  2641. return Part
  2642. end
  2643. },
  2644. Mesh = {
  2645. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  2646. local Msh = Create(Mesh)({
  2647. Parent = Part,
  2648. Offset = OffSet,
  2649. Scale = Scale
  2650. })
  2651. if Mesh == "SpecialMesh" then
  2652. Msh.MeshType = MeshType
  2653. Msh.MeshId = MeshId
  2654. end
  2655. return Msh
  2656. end
  2657. },
  2658. Mesh = {
  2659. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  2660. local Msh = Create(Mesh)({
  2661. Parent = Part,
  2662. Offset = OffSet,
  2663. Scale = Scale
  2664. })
  2665. if Mesh == "SpecialMesh" then
  2666. Msh.MeshType = MeshType
  2667. Msh.MeshId = MeshId
  2668. end
  2669. return Msh
  2670. end
  2671. },
  2672. Weld = {
  2673. Create = function(Parent, Part0, Part1, C0, C1)
  2674. local Weld = Create("Weld")({
  2675. Parent = Parent,
  2676. Part0 = Part0,
  2677. Part1 = Part1,
  2678. C0 = C0,
  2679. C1 = C1
  2680. })
  2681. return Weld
  2682. end
  2683. },
  2684. Sound = {
  2685. Create = function(id, par, vol, pit)
  2686. coroutine.resume(coroutine.create(function()
  2687. local S = Create("Sound")({
  2688. Volume = vol,
  2689. Pitch = pit or 1,
  2690. SoundId = id,
  2691. Parent = par or workspace
  2692. })
  2693. wait()
  2694. S:play()
  2695. game:GetService("Debris"):AddItem(S, 6)
  2696. end))
  2697. end
  2698. },
  2699. ParticleEmitter = {
  2700. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  2701. local fp = Create("ParticleEmitter")({
  2702. Parent = Parent,
  2703. Color = ColorSequence.new(Color1, Color2),
  2704. LightEmission = LightEmission,
  2705. Size = Size,
  2706. Texture = Texture,
  2707. Transparency = Transparency,
  2708. ZOffset = ZOffset,
  2709. Acceleration = Accel,
  2710. Drag = Drag,
  2711. LockedToPart = LockedToPart,
  2712. VelocityInheritance = VelocityInheritance,
  2713. EmissionDirection = EmissionDirection,
  2714. Enabled = Enabled,
  2715. Lifetime = LifeTime,
  2716. Rate = Rate,
  2717. Rotation = Rotation,
  2718. RotSpeed = RotSpeed,
  2719. Speed = Speed,
  2720. VelocitySpread = VelocitySpread
  2721. })
  2722. return fp
  2723. end
  2724. }
  2725. }
  2726. function RemoveOutlines(part)
  2727. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  2728. end
  2729. function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  2730. local Part = Create("Part")({
  2731. formFactor = FormFactor,
  2732. Parent = Parent,
  2733. Reflectance = Reflectance,
  2734. Transparency = Transparency,
  2735. CanCollide = false,
  2736. Locked = true,
  2737. BrickColor = BrickColor.new(tostring(BColor)),
  2738. Name = Name,
  2739. Size = Size,
  2740. Material = Material
  2741. })
  2742. RemoveOutlines(Part)
  2743. return Part
  2744. end
  2745. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  2746. local Msh = Create(Mesh)({
  2747. Parent = Part,
  2748. Offset = OffSet,
  2749. Scale = Scale
  2750. })
  2751. if Mesh == "SpecialMesh" then
  2752. Msh.MeshType = MeshType
  2753. Msh.MeshId = MeshId
  2754. end
  2755. return Msh
  2756. end
  2757. function CreateWeld(Parent, Part0, Part1, C0, C1)
  2758. local Weld = Create("Weld")({
  2759. Parent = Parent,
  2760. Part0 = Part0,
  2761. Part1 = Part1,
  2762. C0 = C0,
  2763. C1 = C1
  2764. })
  2765. return Weld
  2766. end
  2767.  
  2768.  
  2769. -------------------------------------------------------
  2770. --Start Effect Function--
  2771. -------------------------------------------------------
  2772. EffectModel = Instance.new("Model", char)
  2773. Effects = {
  2774. Block = {
  2775. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  2776. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  2777. prt.Anchored = true
  2778. prt.CFrame = cframe
  2779. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  2780. game:GetService("Debris"):AddItem(prt, 10)
  2781. if Type == 1 or Type == nil then
  2782. table.insert(Effects, {
  2783. prt,
  2784. "Block1",
  2785. delay,
  2786. x3,
  2787. y3,
  2788. z3,
  2789. msh
  2790. })
  2791. elseif Type == 2 then
  2792. table.insert(Effects, {
  2793. prt,
  2794. "Block2",
  2795. delay,
  2796. x3,
  2797. y3,
  2798. z3,
  2799. msh
  2800. })
  2801. else
  2802. table.insert(Effects, {
  2803. prt,
  2804. "Block3",
  2805. delay,
  2806. x3,
  2807. y3,
  2808. z3,
  2809. msh
  2810. })
  2811. end
  2812. end
  2813. },
  2814. Sphere = {
  2815. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2816. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  2817. prt.Anchored = true
  2818. prt.CFrame = cframe
  2819. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  2820. game:GetService("Debris"):AddItem(prt, 10)
  2821. table.insert(Effects, {
  2822. prt,
  2823. "Cylinder",
  2824. delay,
  2825. x3,
  2826. y3,
  2827. z3,
  2828. msh
  2829. })
  2830. end
  2831. },
  2832. Cylinder = {
  2833. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2834. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  2835. prt.Anchored = true
  2836. prt.CFrame = cframe
  2837. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  2838. game:GetService("Debris"):AddItem(prt, 10)
  2839. table.insert(Effects, {
  2840. prt,
  2841. "Cylinder",
  2842. delay,
  2843. x3,
  2844. y3,
  2845. z3,
  2846. msh
  2847. })
  2848. end
  2849. },
  2850. Wave = {
  2851. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2852. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  2853. prt.Anchored = true
  2854. prt.CFrame = cframe
  2855. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1 / 60, y1 / 60, z1 / 60))
  2856. game:GetService("Debris"):AddItem(prt, 10)
  2857. table.insert(Effects, {
  2858. prt,
  2859. "Cylinder",
  2860. delay,
  2861. x3 / 60,
  2862. y3 / 60,
  2863. z3 / 60,
  2864. msh
  2865. })
  2866. end
  2867. },
  2868. Ring = {
  2869. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2870. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  2871. prt.Anchored = true
  2872. prt.CFrame = cframe
  2873. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  2874. game:GetService("Debris"):AddItem(prt, 10)
  2875. table.insert(Effects, {
  2876. prt,
  2877. "Cylinder",
  2878. delay,
  2879. x3,
  2880. y3,
  2881. z3,
  2882. msh
  2883. })
  2884. end
  2885. },
  2886. Break = {
  2887. Create = function(brickcolor, cframe, x1, y1, z1)
  2888. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  2889. prt.Anchored = true
  2890. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  2891. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  2892. local num = math.random(10, 50) / 1000
  2893. game:GetService("Debris"):AddItem(prt, 10)
  2894. table.insert(Effects, {
  2895. prt,
  2896. "Shatter",
  2897. num,
  2898. prt.CFrame,
  2899. math.random() - math.random(),
  2900. 0,
  2901. math.random(50, 100) / 100
  2902. })
  2903. end
  2904. },
  2905. Spiral = {
  2906. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2907. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  2908. prt.Anchored = true
  2909. prt.CFrame = cframe
  2910. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://1051557", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  2911. game:GetService("Debris"):AddItem(prt, 10)
  2912. table.insert(Effects, {
  2913. prt,
  2914. "Cylinder",
  2915. delay,
  2916. x3,
  2917. y3,
  2918. z3,
  2919. msh
  2920. })
  2921. end
  2922. },
  2923. Push = {
  2924. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2925. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  2926. prt.Anchored = true
  2927. prt.CFrame = cframe
  2928. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://437347603", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  2929. game:GetService("Debris"):AddItem(prt, 10)
  2930. table.insert(Effects, {
  2931. prt,
  2932. "Cylinder",
  2933. delay,
  2934. x3,
  2935. y3,
  2936. z3,
  2937. msh
  2938. })
  2939. end
  2940. }
  2941. }
  2942. function part(formfactor ,parent, reflectance, transparency, brickcolor, name, size)
  2943. local fp = IT("Part")
  2944. fp.formFactor = formfactor
  2945. fp.Parent = parent
  2946. fp.Reflectance = reflectance
  2947. fp.Transparency = transparency
  2948. fp.CanCollide = false
  2949. fp.Locked = true
  2950. fp.BrickColor = brickcolor
  2951. fp.Name = name
  2952. fp.Size = size
  2953. fp.Position = tors.Position
  2954. RemoveOutlines(fp)
  2955. fp.Material = "SmoothPlastic"
  2956. fp:BreakJoints()
  2957. return fp
  2958. end
  2959.  
  2960. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  2961. local mesh = IT(Mesh)
  2962. mesh.Parent = part
  2963. if Mesh == "SpecialMesh" then
  2964. mesh.MeshType = meshtype
  2965. if meshid ~= "nil" then
  2966. mesh.MeshId = "http://www.roblox.com/asset/?id="..meshid
  2967. end
  2968. end
  2969. mesh.Offset = offset
  2970. mesh.Scale = scale
  2971. return mesh
  2972. end
  2973.  
  2974. function Magic(bonuspeed, type, pos, scale, value, color, MType)
  2975. local type = type
  2976. local rng = Instance.new("Part", char)
  2977. rng.Anchored = true
  2978. rng.BrickColor = color
  2979. rng.CanCollide = false
  2980. rng.FormFactor = 3
  2981. rng.Name = "Ring"
  2982. rng.Material = "Neon"
  2983. rng.Size = Vector3.new(1, 1, 1)
  2984. rng.Transparency = 0
  2985. rng.TopSurface = 0
  2986. rng.BottomSurface = 0
  2987. rng.CFrame = pos
  2988. local rngm = Instance.new("SpecialMesh", rng)
  2989. rngm.MeshType = MType
  2990. rngm.Scale = scale
  2991. local scaler2 = 1
  2992. if type == "Add" then
  2993. scaler2 = 1 * value
  2994. elseif type == "Divide" then
  2995. scaler2 = 1 / value
  2996. end
  2997. coroutine.resume(coroutine.create(function()
  2998. for i = 0, 10 / bonuspeed, 0.1 do
  2999. swait()
  3000. if type == "Add" then
  3001. scaler2 = scaler2 - 0.01 * value / bonuspeed
  3002. elseif type == "Divide" then
  3003. scaler2 = scaler2 - 0.01 / value * bonuspeed
  3004. end
  3005. rng.Transparency = rng.Transparency + 0.01 * bonuspeed
  3006. rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, scaler2 * bonuspeed)
  3007. end
  3008. rng:Destroy()
  3009. end))
  3010. end
  3011.  
  3012. function Eviscerate(dude)
  3013. if dude.Name ~= char then
  3014. local bgf = IT("BodyGyro", dude.Head)
  3015. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0)
  3016. local val = IT("BoolValue", dude)
  3017. val.Name = "IsHit"
  3018. local ds = coroutine.wrap(function()
  3019. dude:WaitForChild("Head"):BreakJoints()
  3020. wait(0.5)
  3021. target = nil
  3022. coroutine.resume(coroutine.create(function()
  3023. for i, v in pairs(dude:GetChildren()) do
  3024. if v:IsA("Accessory") then
  3025. v:Destroy()
  3026. end
  3027. if v:IsA("Humanoid") then
  3028. v:Destroy()
  3029. end
  3030. if v:IsA("CharacterMesh") then
  3031. v:Destroy()
  3032. end
  3033. if v:IsA("Model") then
  3034. v:Destroy()
  3035. end
  3036. if v:IsA("Part") or v:IsA("MeshPart") then
  3037. for x, o in pairs(v:GetChildren()) do
  3038. if o:IsA("Decal") then
  3039. o:Destroy()
  3040. end
  3041. end
  3042. coroutine.resume(coroutine.create(function()
  3043. v.Material = "Neon"
  3044. v.CanCollide = false
  3045. local PartEmmit1 = IT("ParticleEmitter", v)
  3046. PartEmmit1.LightEmission = 1
  3047. PartEmmit1.Texture = "rbxassetid://284205403"
  3048. PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  3049. PartEmmit1.Rate = 150
  3050. PartEmmit1.Lifetime = NumberRange.new(1)
  3051. PartEmmit1.Size = NumberSequence.new({
  3052. NumberSequenceKeypoint.new(0, 0.75, 0),
  3053. NumberSequenceKeypoint.new(1, 0, 0)
  3054. })
  3055. PartEmmit1.Transparency = NumberSequence.new({
  3056. NumberSequenceKeypoint.new(0, 0, 0),
  3057. NumberSequenceKeypoint.new(1, 1, 0)
  3058. })
  3059. PartEmmit1.Speed = NumberRange.new(0, 0)
  3060. PartEmmit1.VelocitySpread = 30000
  3061. PartEmmit1.Rotation = NumberRange.new(-500, 500)
  3062. PartEmmit1.RotSpeed = NumberRange.new(-500, 500)
  3063. local BodPoss = IT("BodyPosition", v)
  3064. BodPoss.P = 3000
  3065. BodPoss.D = 1000
  3066. BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  3067. BodPoss.position = v.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15))
  3068. v.Color = maincolor.Color
  3069. coroutine.resume(coroutine.create(function()
  3070. for i = 0, 49 do
  3071. swait(1)
  3072. v.Transparency = v.Transparency + 0.08
  3073. end
  3074. wait(0.5)
  3075. PartEmmit1.Enabled = false
  3076. wait(3)
  3077. v:Destroy()
  3078. dude:Destroy()
  3079. end))
  3080. end))
  3081. end
  3082. end
  3083. end))
  3084. end)
  3085. ds()
  3086. end
  3087. end
  3088.  
  3089. function FindNearestHead(Position, Distance, SinglePlayer)
  3090. if SinglePlayer then
  3091. return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude
  3092. end
  3093. local List = {}
  3094. for i, v in pairs(workspace:GetChildren()) do
  3095. if v:IsA("Model") and v:findFirstChild("Head") and v ~= char and Distance >= (v.Head.Position - Position).magnitude then
  3096. table.insert(List, v)
  3097. end
  3098. end
  3099. return List
  3100. end
  3101.  
  3102. function Aura(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos, MType)
  3103. local type = type
  3104. local rng = Instance.new("Part", char)
  3105. rng.Anchored = true
  3106. rng.BrickColor = color
  3107. rng.CanCollide = false
  3108. rng.FormFactor = 3
  3109. rng.Name = "Ring"
  3110. rng.Material = "Neon"
  3111. rng.Size = Vector3.new(1, 1, 1)
  3112. rng.Transparency = 0
  3113. rng.TopSurface = 0
  3114. rng.BottomSurface = 0
  3115. rng.CFrame = pos
  3116. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos
  3117. local rngm = Instance.new("SpecialMesh", rng)
  3118. rngm.MeshType = MType
  3119. rngm.Scale = Vector3.new(x1, y1, z1)
  3120. local scaler2 = 1
  3121. local speeder = FastSpeed
  3122. if type == "Add" then
  3123. scaler2 = 1 * value
  3124. elseif type == "Divide" then
  3125. scaler2 = 1 / value
  3126. end
  3127. coroutine.resume(coroutine.create(function()
  3128. for i = 0, 10 / bonuspeed, 0.1 do
  3129. swait()
  3130. if type == "Add" then
  3131. scaler2 = scaler2 - 0.01 * value / bonuspeed
  3132. elseif type == "Divide" then
  3133. scaler2 = scaler2 - 0.01 / value * bonuspeed
  3134. end
  3135. speeder = speeder - 0.01 * FastSpeed * bonuspeed
  3136. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed
  3137. rng.Transparency = rng.Transparency + 0.01 * bonuspeed
  3138. rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0)
  3139. end
  3140. rng:Destroy()
  3141. end))
  3142. end
  3143.  
  3144. function SoulSteal(dude)
  3145. if dude.Name ~= char then
  3146. local bgf = IT("BodyGyro", dude.Head)
  3147. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0)
  3148. local val = IT("BoolValue", dude)
  3149. val.Name = "IsHit"
  3150. local torso = (dude:FindFirstChild'Head' or dude:FindFirstChild'Torso' or dude:FindFirstChild'UpperTorso' or dude:FindFirstChild'LowerTorso' or dude:FindFirstChild'HumanoidRootPart')
  3151. local soulst = coroutine.wrap(function()
  3152. local soul = Instance.new("Part",dude)
  3153. soul.Size = Vector3.new(1,1,1)
  3154. soul.CanCollide = false
  3155. soul.Anchored = false
  3156. soul.Position = torso.Position
  3157. soul.Transparency = 1
  3158. local PartEmmit1 = IT("ParticleEmitter", soul)
  3159. PartEmmit1.LightEmission = 1
  3160. PartEmmit1.Texture = "rbxassetid://569507414"
  3161. PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  3162. PartEmmit1.Rate = 250
  3163. PartEmmit1.Lifetime = NumberRange.new(1.6)
  3164. PartEmmit1.Size = NumberSequence.new({
  3165. NumberSequenceKeypoint.new(0, 1, 0),
  3166. NumberSequenceKeypoint.new(1, 0, 0)
  3167. })
  3168. PartEmmit1.Transparency = NumberSequence.new({
  3169. NumberSequenceKeypoint.new(0, 0, 0),
  3170. NumberSequenceKeypoint.new(1, 1, 0)
  3171. })
  3172. PartEmmit1.Speed = NumberRange.new(0, 0)
  3173. PartEmmit1.VelocitySpread = 30000
  3174. PartEmmit1.Rotation = NumberRange.new(-360, 360)
  3175. PartEmmit1.RotSpeed = NumberRange.new(-360, 360)
  3176. local BodPoss = IT("BodyPosition", soul)
  3177. BodPoss.P = 3000
  3178. BodPoss.D = 1000
  3179. BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  3180. BodPoss.position = torso.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15))
  3181. wait(1.6)
  3182. soul.Touched:connect(function(hit)
  3183. if hit.Parent == char then
  3184. soul:Destroy()
  3185. end
  3186. end)
  3187. wait(1.2)
  3188. while soul do
  3189. swait()
  3190. PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  3191. BodPoss.Position = tors.Position
  3192. end
  3193. end)
  3194. soulst()
  3195. end
  3196. end
  3197.  
  3198.  
  3199.  
  3200.  
  3201. --killer's effects
  3202.  
  3203.  
  3204.  
  3205.  
  3206.  
  3207. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  3208. local Part = Create("Part"){
  3209. Parent = Parent,
  3210. Reflectance = Reflectance,
  3211. Transparency = Transparency,
  3212. CanCollide = false,
  3213. Locked = true,
  3214. BrickColor = BrickColor.new(tostring(BColor)),
  3215. Name = Name,
  3216. Size = Size,
  3217. Material = Material,
  3218. }
  3219. RemoveOutlines(Part)
  3220. return Part
  3221. end
  3222.  
  3223. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  3224. local Msh = Create(Mesh){
  3225. Parent = Part,
  3226. Offset = OffSet,
  3227. Scale = Scale,
  3228. }
  3229. if Mesh == "SpecialMesh" then
  3230. Msh.MeshType = MeshType
  3231. Msh.MeshId = MeshId
  3232. end
  3233. return Msh
  3234. end
  3235.  
  3236.  
  3237.  
  3238. function BlockEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  3239. local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  3240. prt.Anchored = true
  3241. prt.CFrame = cframe
  3242. local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  3243. game:GetService("Debris"):AddItem(prt, 10)
  3244. if Type == 1 or Type == nil then
  3245. table.insert(Effects, {
  3246. prt,
  3247. "Block1",
  3248. delay,
  3249. x3,
  3250. y3,
  3251. z3,
  3252. msh
  3253. })
  3254. elseif Type == 2 then
  3255. table.insert(Effects, {
  3256. prt,
  3257. "Block2",
  3258. delay,
  3259. x3,
  3260. y3,
  3261. z3,
  3262. msh
  3263. })
  3264. end
  3265. end
  3266.  
  3267. function SphereEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  3268. local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  3269. prt.Anchored = true
  3270. prt.CFrame = cframe
  3271. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  3272. game:GetService("Debris"):AddItem(prt, 10)
  3273. table.insert(Effects, {
  3274. prt,
  3275. "Cylinder",
  3276. delay,
  3277. x3,
  3278. y3,
  3279. z3,
  3280. msh
  3281. })
  3282. end
  3283.  
  3284. function RingEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  3285. local prt=CreatePart(workspace,"Neon",0,0,brickcolor,"Effect",vt(.5,.5,.5))--part(3,workspace,"SmoothPlastic",0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  3286. prt.Anchored=true
  3287. prt.CFrame=cframe
  3288. msh=CreateMesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1))
  3289. game:GetService("Debris"):AddItem(prt,2)
  3290. coroutine.resume(coroutine.create(function(Part,Mesh,num)
  3291. for i=0,1,delay do
  3292. swait()
  3293. Part.Transparency=i
  3294. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  3295. end
  3296. Part.Parent=nil
  3297. end),prt,msh,(math.random(0,1)+math.random())/5)
  3298. end
  3299.  
  3300. function CylinderEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  3301. local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  3302. prt.Anchored = true
  3303. prt.CFrame = cframe
  3304. local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  3305. game:GetService("Debris"):AddItem(prt, 10)
  3306. table.insert(Effects, {
  3307. prt,
  3308. "Cylinder",
  3309. delay,
  3310. x3,
  3311. y3,
  3312. z3,
  3313. msh
  3314. })
  3315. end
  3316.  
  3317. function WaveEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  3318. local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  3319. prt.Anchored = true
  3320. prt.CFrame = cframe
  3321. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  3322. game:GetService("Debris"):AddItem(prt, 10)
  3323. table.insert(Effects, {
  3324. prt,
  3325. "Cylinder",
  3326. delay,
  3327. x3,
  3328. y3,
  3329. z3,
  3330. msh
  3331. })
  3332. end
  3333.  
  3334. function SpecialEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  3335. local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  3336. prt.Anchored = true
  3337. prt.CFrame = cframe
  3338. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://24388358", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  3339. game:GetService("Debris"):AddItem(prt, 10)
  3340. table.insert(Effects, {
  3341. prt,
  3342. "Cylinder",
  3343. delay,
  3344. x3,
  3345. y3,
  3346. z3,
  3347. msh
  3348. })
  3349. end
  3350.  
  3351.  
  3352. function MoonEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  3353. local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  3354. prt.Anchored = true
  3355. prt.CFrame = cframe
  3356. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://259403370", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  3357. game:GetService("Debris"):AddItem(prt, 10)
  3358. table.insert(Effects, {
  3359. prt,
  3360. "Cylinder",
  3361. delay,
  3362. x3,
  3363. y3,
  3364. z3,
  3365. msh
  3366. })
  3367. end
  3368.  
  3369. function HeadEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  3370. local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  3371. prt.Anchored = true
  3372. prt.CFrame = cframe
  3373. local msh = CreateMesh("SpecialMesh", prt, "Head", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  3374. game:GetService("Debris"):AddItem(prt, 10)
  3375. table.insert(Effects, {
  3376. prt,
  3377. "Cylinder",
  3378. delay,
  3379. x3,
  3380. y3,
  3381. z3,
  3382. msh
  3383. })
  3384. end
  3385.  
  3386. function BreakEffect(brickcolor, cframe, x1, y1, z1)
  3387. local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  3388. prt.Anchored = true
  3389. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  3390. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  3391. local num = math.random(10, 50) / 1000
  3392. game:GetService("Debris"):AddItem(prt, 10)
  3393. table.insert(Effects, {
  3394. prt,
  3395. "Shatter",
  3396. num,
  3397. prt.CFrame,
  3398. math.random() - math.random(),
  3399. 0,
  3400. math.random(50, 100) / 100
  3401. })
  3402. end
  3403.  
  3404.  
  3405.  
  3406.  
  3407.  
  3408. so = function(id,par,vol,pit)
  3409. coroutine.resume(coroutine.create(function()
  3410. local sou = Instance.new("Sound",par or workspace)
  3411. sou.Volume=vol
  3412. sou.Pitch=pit or 1
  3413. sou.SoundId=id
  3414. sou:play()
  3415. game:GetService("Debris"):AddItem(sou,8)
  3416. end))
  3417. end
  3418.  
  3419.  
  3420. --end of killer's effects
  3421.  
  3422.  
  3423. function FaceMouse()
  3424. local Cam = workspace.CurrentCamera
  3425. return {
  3426. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  3427. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  3428. }
  3429. end
  3430. -------------------------------------------------------
  3431. --End Effect Function--
  3432. -------------------------------------------------------
  3433. function Cso(ID, PARENT, VOLUME, PITCH)
  3434. local NSound = nil
  3435. coroutine.resume(coroutine.create(function()
  3436. NSound = IT("Sound", PARENT)
  3437. NSound.Volume = VOLUME
  3438. NSound.Pitch = PITCH
  3439. NSound.SoundId = "http://www.roblox.com/asset/?id="..ID
  3440. swait()
  3441. NSound:play()
  3442. game:GetService("Debris"):AddItem(NSound, 10)
  3443. end))
  3444. return NSound
  3445. end
  3446. function CameraEnshaking(Length, Intensity)
  3447. coroutine.resume(coroutine.create(function()
  3448. local intensity = 1 * Intensity
  3449. local rotM = 0.01 * Intensity
  3450. for i = 0, Length, 0.1 do
  3451. swait()
  3452. intensity = intensity - 0.05 * Intensity / Length
  3453. rotM = rotM - 5.0E-4 * Intensity / Length
  3454. hum.CameraOffset = Vector3.new(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)))
  3455. 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)
  3456. end
  3457. hum.CameraOffset = Vector3.new(0, 0, 0)
  3458. end))
  3459. end
  3460. -------------------------------------------------------
  3461. --End Important Functions--
  3462. -------------------------------------------------------
  3463.  
  3464.  
  3465. -------------------------------------------------------
  3466. --Start Customization--
  3467. -------------------------------------------------------
  3468. local Player_Size = 1
  3469. if Player_Size ~= 1 then
  3470. root.Size = root.Size * Player_Size
  3471. tors.Size = tors.Size * Player_Size
  3472. hed.Size = hed.Size * Player_Size
  3473. ra.Size = ra.Size * Player_Size
  3474. la.Size = la.Size * Player_Size
  3475. rl.Size = rl.Size * Player_Size
  3476. ll.Size = ll.Size * Player_Size
  3477. ----------------------------------------------------------------------------------
  3478. rootj.Parent = root
  3479. neck.Parent = tors
  3480. RW.Parent = tors
  3481. LW.Parent = tors
  3482. RH.Parent = tors
  3483. LH.Parent = tors
  3484. ----------------------------------------------------------------------------------
  3485. rootj.C0 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0))
  3486. rootj.C1 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0))
  3487. neck.C0 = necko * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * angles(Rad(0), Rad(0), Rad(0))
  3488. neck.C1 = CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * angles(Rad(-90), Rad(0), Rad(180))
  3489. RW.C0 = CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* RIGHTSHOULDERC0
  3490. LW.C0 = CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* LEFTSHOULDERC0
  3491. ----------------------------------------------------------------------------------
  3492. 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))
  3493. 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))
  3494. 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))
  3495. 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))
  3496. --hat.Parent = Character
  3497. end
  3498. ----------------------------------------------------------------------------------
  3499. local SONG = 900817147 --900817147
  3500. local SONG2 = 0
  3501. local Music = Instance.new("Sound",tors)
  3502. Music.Volume = 0.7
  3503. Music.Looped = true
  3504. Music.Pitch = 1 --Pitcher
  3505. ----------------------------------------------------------------------------------
  3506. local equipped = false
  3507. local idle = 0
  3508. local change = 1
  3509. local val = 0
  3510. local toim = 0
  3511. local idleanim = 0.4
  3512. local sine = 0
  3513. local Sit = 1
  3514. local attacktype = 1
  3515. local attackdebounce = false
  3516. local euler = CFrame.fromEulerAnglesXYZ
  3517. local cankick = false
  3518. ----------------------------------------------------------------------------------
  3519. hum.WalkSpeed = 8
  3520. hum.JumpPower = 57
  3521. --[[
  3522. local ROBLOXIDLEANIMATION = IT("Animation")
  3523. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  3524. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  3525. ]]
  3526. local ANIMATOR = hum.Animator
  3527. local ANIMATE = char.Animate
  3528. ANIMATE.Parent = nil
  3529. ANIMATOR.Parent = nil
  3530. -------------------------------------------------------
  3531. --End Customization--
  3532. -------------------------------------------------------
  3533.  
  3534.  
  3535. -------------------------------------------------------
  3536. --Start Attacks N Stuff--
  3537. -------------------------------------------------------
  3538.  
  3539. --pls be proud mak i did my best
  3540.  
  3541.  
  3542.  
  3543. function attackone()
  3544.  
  3545. attack = true
  3546.  
  3547. for i = 0, 1.35, 0.1 do
  3548. swait()
  3549. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, 0.7, -0.3) * angles(math.rad(-4-2*i), math.rad(4+2*i), math.rad(-40-11*i)), 0.2)
  3550. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(40+11*i)), 0.2)
  3551. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.6, 0.2) * angles(math.rad(90+4*i), math.rad(-43), math.rad(16+6*i)), 0.3)
  3552. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-43)), 0.3)
  3553. RH.C0 = clerp(RH.C0, CFrame.new(1, -0.7, 0) * RHCF * angles(math.rad(-34), math.rad(0), math.rad(-17)), 0.2)
  3554. LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.7, -0.2) * LHCF * angles(math.rad(-24), math.rad(0), math.rad(0)), 0.2)
  3555. end
  3556.  
  3557. so("http://roblox.com/asset/?id=1340545854",ra,1,math.random(0.7,1))
  3558.  
  3559.  
  3560. con5=ra.Touched:connect(function(hit)
  3561. if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  3562. if attackdebounce == false then
  3563. attackdebounce = true
  3564.  
  3565. kDamagefunc(hit,3,4,math.random(2,3),"Normal",root,0,1)
  3566.  
  3567. so("http://roblox.com/asset/?id=636494529",ra,2,1)
  3568.  
  3569. RingEffect(BrickColor.new("White"),ra.CFrame*CFrame.new(0,-1,0)*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,.2,2,.2,0.06)
  3570. RingEffect(BrickColor.new("White"),ra.CFrame*CFrame.new(0,-1,0)*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,.2,2,.2,0.06)
  3571. SphereEffect(BrickColor.new("White"),ra.CFrame*CFrame.new(0,-1,0)*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,3,3,3,0.06)
  3572.  
  3573.  
  3574. coroutine.resume(coroutine.create(function()
  3575. for i = 0,1,0.1 do
  3576. swait()
  3577. hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(math.random(-0.35*1.8,0.35*1.8),math.random(-0.35*1.8,0.35*1.8),math.random(-0.35*1.8,0.35*1.8)),0.24)
  3578. end
  3579. end))
  3580.  
  3581.  
  3582. wait(0.34)
  3583. attackdebounce = false
  3584.  
  3585. end
  3586. end
  3587. end)
  3588. for i = 0, 1.12, 0.1 do
  3589. swait()
  3590. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, -0.9, -0) * angles(math.rad(14), math.rad(6), math.rad(23)), 0.35)
  3591. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(-4), math.rad(0), math.rad(-23)), 0.35)
  3592. RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.6, -0.8) * angles(math.rad(110), math.rad(23), math.rad(2)), 0.4)
  3593. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0.2) * angles(math.rad(-37), math.rad(0), math.rad(-13)), 0.35)
  3594. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, -0.3) * RHCF * angles(math.rad(-4), math.rad(0), math.rad(6)), 0.3)
  3595. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0.05) * LHCF * angles(math.rad(-22), math.rad(0), math.rad(23)), 0.3)
  3596. end
  3597.  
  3598. con5:Disconnect()
  3599. attack = false
  3600.  
  3601. end
  3602.  
  3603.  
  3604.  
  3605.  
  3606.  
  3607.  
  3608.  
  3609.  
  3610.  
  3611.  
  3612.  
  3613.  
  3614. function attacktwo()
  3615.  
  3616. attack = true
  3617.  
  3618. for i = 0, 1.35, 0.1 do
  3619. swait()
  3620. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, 0.7, -0.3) * angles(math.rad(-4), math.rad(-4), math.rad(40)), 0.2)
  3621. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(-40)), 0.2)
  3622. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(46)), 0.3)
  3623. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.6, 0.2) * angles(math.rad(90), math.rad(23), math.rad(6)), 0.3)
  3624. RH.C0 = clerp(RH.C0, CFrame.new(1, -0.7, -0.2) * RHCF * angles(math.rad(-34), math.rad(0), math.rad(-17)), 0.2)
  3625. LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.7, 0) * LHCF * angles(math.rad(-24), math.rad(0), math.rad(0)), 0.2)
  3626. end
  3627.  
  3628. so("http://roblox.com/asset/?id=1340545854",la,1,math.random(0.7,1))
  3629.  
  3630.  
  3631. con5=la.Touched:connect(function(hit)
  3632. if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  3633. if attackdebounce == false then
  3634. attackdebounce = true
  3635.  
  3636. kDamagefunc(hit,3,4,math.random(2,3),"Normal",root,0,1)
  3637.  
  3638. so("http://roblox.com/asset/?id=636494529",la,2,1)
  3639.  
  3640. RingEffect(BrickColor.new("White"),la.CFrame*CFrame.new(0,-1,0)*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,.2,2,.2,0.06)
  3641. RingEffect(BrickColor.new("White"),la.CFrame*CFrame.new(0,-1,0)*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,.2,2,.2,0.06)
  3642. SphereEffect(BrickColor.new("White"),la.CFrame*CFrame.new(0,-1,0)*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,3,3,3,0.06)
  3643.  
  3644.  
  3645. coroutine.resume(coroutine.create(function()
  3646. for i = 0,1,0.1 do
  3647. swait()
  3648. hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(math.random(-0.35*1.8,0.35*1.8),math.random(-0.35*1.8,0.35*1.8),math.random(-0.35*1.8,0.35*1.8)),0.24)
  3649. end
  3650. end))
  3651.  
  3652.  
  3653. wait(0.34)
  3654. attackdebounce = false
  3655.  
  3656. end
  3657. end
  3658. end)
  3659.  
  3660.  
  3661.  
  3662.  
  3663. for i = 0, 1.12, 0.1 do
  3664. swait()
  3665. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, -0.9, -0) * angles(math.rad(14), math.rad(-6), math.rad(-27)), 0.35)
  3666. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(-4), math.rad(0), math.rad(27)), 0.35)
  3667. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0.16) * angles(math.rad(-33), math.rad(0), math.rad(23)), 0.4)
  3668. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.67, -0.9) * angles(math.rad(116), math.rad(-28), math.rad(1)), 0.35)
  3669. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0.05) * RHCF * angles(math.rad(-22), math.rad(0), math.rad(-18)), 0.3)
  3670. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, -0.3) * LHCF * angles(math.rad(-2), math.rad(0), math.rad(4)), 0.3)
  3671. end
  3672.  
  3673. con5:Disconnect()
  3674. attack = false
  3675.  
  3676. end
  3677.  
  3678.  
  3679.  
  3680.  
  3681.  
  3682. function attackthree()
  3683.  
  3684. attack = true
  3685.  
  3686.  
  3687. for i = 0, 1.14, 0.1 do
  3688. swait()
  3689. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, 0.7, -0.3) * angles(math.rad(-4), math.rad(-4), math.rad(40)), 0.2)
  3690. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(-40)), 0.2)
  3691. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-46)), 0.3)
  3692. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.6, 0.2) * angles(math.rad(90), math.rad(23), math.rad(36)), 0.3)
  3693. RH.C0 = clerp(RH.C0, CFrame.new(1, -0.7, -0.2) * RHCF * angles(math.rad(-34), math.rad(0), math.rad(-17)), 0.2)
  3694. LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.7, 0) * LHCF * angles(math.rad(-12), math.rad(0), math.rad(34)), 0.2)
  3695. end
  3696.  
  3697. con5=hum.Touched:connect(function(hit)
  3698. if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  3699. if attackdebounce == false then
  3700. attackdebounce = true
  3701.  
  3702. kDamagefunc(hit,4,5,math.random(3,4),"Normal",root,0,1)
  3703. so("http://roblox.com/asset/?id=636494529",ll,2,1)
  3704.  
  3705. RingEffect(BrickColor.new("White"),ll.CFrame*CF(0,-1,0)*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,.2,2,.2,0.06)
  3706. RingEffect(BrickColor.new("White"),ll.CFrame*CF(0,-1,0)*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,.2,2,.2,0.06)
  3707. SphereEffect(BrickColor.new("White"),ll.CFrame*CF(0,-1,0)*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,3,3,3,0.06)
  3708.  
  3709.  
  3710. coroutine.resume(coroutine.create(function()
  3711. for i = 0,1,0.1 do
  3712. swait()
  3713. hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(math.random(-0.35*1.8,0.35*1.8),math.random(-0.35*1.8,0.35*1.8),math.random(-0.35*1.8,0.35*1.8)),0.24)
  3714. end
  3715. end))
  3716.  
  3717.  
  3718. wait(0.34)
  3719. attackdebounce = false
  3720.  
  3721. end
  3722. end
  3723. end)
  3724.  
  3725. so("http://www.roblox.com/asset/?id=158475221", RightLeg, 1, 1.3)
  3726. for i = 0, 9.14, 0.3 do
  3727. swait()
  3728. BlockEffect(BrickColor.new("White"), ll.CFrame*CF(0,-1,0), 2, 2, 2, 3.5, 3.5, 3.5, 0.05)
  3729. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, 0, -0.87) * angles(math.rad(8), math.rad(8), math.rad(0-54*i)), 0.35)
  3730. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(12), math.rad(0), math.rad(24)), 0.35)
  3731. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(12), math.rad(0), math.rad(62)), 0.35)
  3732. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.3, 0) * angles(math.rad(12), math.rad(0), math.rad(-23)), 0.35)
  3733. RH.C0 = clerp(RH.C0, CFrame.new(1, -0.17, -0.4) * RHCF * angles(math.rad(7), math.rad(0), math.rad(4)), 0.35)
  3734. LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.13, -0.6) * LHCF * angles(math.rad(-64-7*i), math.rad(0), math.rad(0-9*i)), 0.35)
  3735. end
  3736. attack = false
  3737. con5:disconnect()
  3738. end
  3739.  
  3740.  
  3741.  
  3742. function attackfour()
  3743.  
  3744. attack = true
  3745. so("http://www.roblox.com/asset/?id=1452040709", RightLeg, 3, 1)
  3746. WaveEffect(BrickColor.new("White"), root.CFrame * CFrame.new(0, -1, 0) * euler(0, math.random(-50, 50), 0), 1, 1, 1, 1, 0.5, 1, 0.05)
  3747. for i = 0, 5.14, 0.1 do
  3748. swait()
  3749. SphereEffect(BrickColor.new("White"),rl.CFrame*angles(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,5,1,.05,4,.05,0.03)
  3750. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, 0, -0.8) * angles(math.rad(24+4*i), math.rad(0), math.rad(0)), 0.2)
  3751. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0+11*i), math.rad(0), math.rad(0)), 0.2)
  3752. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0-6*i), math.rad(0), math.rad(36+4*i)), 0.3)
  3753. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0-6*i), math.rad(0), math.rad(-36-4*i)), 0.3)
  3754. RH.C0 = clerp(RH.C0, CFrame.new(1, -0.6, -0.3) * RHCF * angles(math.rad(0), math.rad(0), math.rad(-28+4*i)), 0.2)
  3755. LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.2, -0.5) * LHCF * angles(math.rad(0), math.rad(0), math.rad(-34-4*i)), 0.2)
  3756. end
  3757. so("http://www.roblox.com/asset/?id=158475221", RightLeg, 1, 1.3)
  3758. local velo=Instance.new("BodyVelocity")
  3759. velo.velocity=vt(0,25,0)
  3760. velo.P=8000
  3761. velo.maxForce=Vector3.new(math.huge, math.huge, math.huge)
  3762. velo.Parent=root
  3763. game:GetService("Debris"):AddItem(velo,0.7)
  3764.  
  3765.  
  3766.  
  3767. con5=hum.Touched:connect(function(hit)
  3768. if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  3769. if attackdebounce == false then
  3770. attackdebounce = true
  3771. coroutine.resume(coroutine.create(function()
  3772. for i = 0,1.5,0.1 do
  3773. swait()
  3774. hit.Parent.Head.CFrame = root.CFrame * CFrame.new(0,1.6,-1.8)
  3775. end
  3776. end))
  3777. kDamagefunc(hit,3,4,math.random(0,0),"Normal",root,0,1)
  3778. so("http://roblox.com/asset/?id=636494529",rl,2,1)
  3779. RingEffect(BrickColor.new("White"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,.2,2,.2,0.06)
  3780. RingEffect(BrickColor.new("White"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,.2,2,.2,0.06)
  3781. SphereEffect(BrickColor.new("White"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,3,3,3,0.06)
  3782.  
  3783.  
  3784.  
  3785. coroutine.resume(coroutine.create(function()
  3786. for i = 0,1,0.1 do
  3787. swait()
  3788. hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(math.random(-0.75*1.8,0.75*1.8),math.random(-0.75*1.8,0.75*1.8),math.random(-0.75*1.8,0.75*1.8)),0.44)
  3789. end
  3790. end))
  3791.  
  3792.  
  3793. wait(0.14)
  3794. attackdebounce = false
  3795. end
  3796. end
  3797. end)
  3798.  
  3799. for i = 0, 5.11, 0.15 do
  3800. swait()
  3801. BlockEffect(BrickColor.new("White"), rl.CFrame*CF(0,-1,0), 2, 2, 2, 3.5, 3.5, 3.5, 0.05)
  3802. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, 0, 0.1+0.2*i) * angles(math.rad(-10-80*i), math.rad(0), math.rad(0)), 0.42)
  3803. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(-43), math.rad(0), math.rad(0)), 0.42)
  3804. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-8), math.rad(0), math.rad(60)), 0.35)
  3805. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-8), math.rad(0), math.rad(-60)), 0.35)
  3806. RH.C0 = clerp(RH.C0, CFrame.new(1, -0.5, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(20+10*i)), 0.42)
  3807. LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.5, -0.4) * LHCF * angles(math.rad(0), math.rad(0), math.rad(24)), 0.42)
  3808. end
  3809.  
  3810.  
  3811. attack = false
  3812. con5:disconnect()
  3813. end
  3814.  
  3815.  
  3816.  
  3817.  
  3818.  
  3819. local cooldown = false
  3820. function quickkick()
  3821. attack = true
  3822.  
  3823.  
  3824. con5=hum.Touched:connect(function(hit)
  3825. if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  3826. if attackdebounce == false then
  3827. attackdebounce = true
  3828.  
  3829. coroutine.resume(coroutine.create(function()
  3830. for i = 0,1.5,0.1 do
  3831. swait()
  3832. hit.Parent.Head.CFrame = root.CFrame * CFrame.new(0,1.3,-1.8)
  3833. end
  3834. end))
  3835.  
  3836. kDamagefunc(hit,1,2,math.random(0,0),"Normal",root,0,1)
  3837. so("http://roblox.com/asset/?id=636494529",rl,2,1)
  3838. RingEffect(BrickColor.new("White"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,.2,2,.2,0.06)
  3839. RingEffect(BrickColor.new("White"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,.2,2,.2,0.06)
  3840. SphereEffect(BrickColor.new("White"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,3,3,3,0.06)
  3841.  
  3842.  
  3843.  
  3844. coroutine.resume(coroutine.create(function()
  3845. for i = 0,1,0.1 do
  3846. swait()
  3847. hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(math.random(-0.8*1.8,0.8*1.8),math.random(-0.8*1.8,0.8*1.8),math.random(-0.8*1.8,0.8*1.8)),0.44)
  3848. end
  3849. end))
  3850.  
  3851.  
  3852. wait(0.08)
  3853. attackdebounce = false
  3854. end
  3855. end
  3856. end)
  3857.  
  3858. so("http://www.roblox.com/asset/?id=158475221", RightLeg, 1, 1.3)
  3859. for i = 0, 11.14, 0.3 do
  3860. swait()
  3861. root.Velocity = root.CFrame.lookVector * 30
  3862. BlockEffect(BrickColor.new("White"), ll.CFrame*CF(0,-1,0), 2, 2, 2, 3.5, 3.5, 3.5, 0.05)
  3863. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, 0, -0.87) * angles(math.rad(-21-30*i), math.rad(8+10*i), math.rad(0-90*i)), 0.35)
  3864. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(12), math.rad(0), math.rad(24)), 0.35)
  3865. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(12), math.rad(0), math.rad(62)), 0.35)
  3866. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.3, 0) * angles(math.rad(12), math.rad(0), math.rad(-23)), 0.35)
  3867. RH.C0 = clerp(RH.C0, CFrame.new(1, -0.17, -0.4) * RHCF * angles(math.rad(7), math.rad(0), math.rad(4)), 0.35)
  3868. LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.13, -0.6) * LHCF * angles(math.rad(-64-2*i), math.rad(0), math.rad(0-9*i)), 0.35)
  3869. end
  3870. attack = false
  3871. con5:disconnect()
  3872. end
  3873.  
  3874.  
  3875.  
  3876.  
  3877.  
  3878.  
  3879.  
  3880.  
  3881. function Taunt()
  3882. attack = true
  3883. hum.WalkSpeed = 0
  3884. Cso("1535995570", hed, 8.45, 1)
  3885. for i = 0, 8.2, 0.1 do
  3886. swait()
  3887. hum.WalkSpeed = 0
  3888. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 12)) * angles(Rad(0), Rad(0), Rad(0)), 0.2)
  3889. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(25), Rad(0), Rad(16 * Cos(sine / 12))), 0.2)
  3890. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(75), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.1)
  3891. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(-75), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(0)), 0.1)
  3892. RW.C0 = clerp(RW.C0, CF(1.1* Player_Size, 0.5 + 0.05 * Sin(sine / 12)* Player_Size, -0.5* Player_Size) * angles(Rad(180), Rad(6), Rad(-56)), 0.1)
  3893. LW.C0 = clerp(LW.C0, CF(-1* Player_Size, 0.1 + 0.05 * Sin(sine / 12)* Player_Size, -0.5* Player_Size) * angles(Rad(45), Rad(6), Rad(86)), 0.1)
  3894. end
  3895. attack = false
  3896. hum.WalkSpeed = 8
  3897. end
  3898.  
  3899.  
  3900.  
  3901.  
  3902.  
  3903.  
  3904.  
  3905. function Hyperkickcombo()
  3906.  
  3907. attack = true
  3908. so("http://www.roblox.com/asset/?id=1452040709", RightLeg, 3, 1)
  3909. WaveEffect(BrickColor.new("White"), root.CFrame * CFrame.new(0, -1, 0) * euler(0, math.random(-50, 50), 0), 1, 1, 1, 1, 0.5, 1, 0.05)
  3910. for i = 0, 7.14, 0.1 do
  3911. swait()
  3912. SphereEffect(BrickColor.new("White"),rl.CFrame*angles(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,5,1,.05,4,.05,0.03)
  3913. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, 0, -0.8) * angles(math.rad(24), math.rad(0), math.rad(0)), 0.2)
  3914. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
  3915. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(36)), 0.3)
  3916. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-36)), 0.3)
  3917. RH.C0 = clerp(RH.C0, CFrame.new(1, -0.6, -0.3) * RHCF * angles(math.rad(0), math.rad(0), math.rad(-28)), 0.2)
  3918. LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.2, -0.5) * LHCF * angles(math.rad(0), math.rad(0), math.rad(-34)), 0.2)
  3919. end
  3920. local Cracking = Cso("292536356", tors, 10, 1)
  3921. for i = 0, 7.14, 0.1 do
  3922. swait()
  3923. hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(math.random(-0.55*1.8,0.55*1.8),math.random(-0.55*1.8,0.55*1.8),math.random(-0.55*1.8,0.55*1.8)),0.34)
  3924. Aura(5, 0.15, "Add" , root.CFrame * CF(Mrandom(-12, 12), -6, Mrandom(-12, 12)) * angles(Rad(90 + Mrandom(-12, 12)), 0, 0), 1.5, 1.5, 10, -0.015, BrickC"Lime green", 0, "Sphere")
  3925. WaveEffect(BrickColor.new("Lime green"), root.CFrame * CFrame.new(0, -6, 0) * euler(0, math.random(-25, 25), 0), 1, 1, 1, 1, 0.2, 1, 0.05)
  3926. SphereEffect(BrickColor.new("Lime green"),rl.CFrame*angles(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,5,1,.05,4,.05,0.03)
  3927. SphereEffect(BrickColor.new("Lime green"),ll.CFrame*angles(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,5,1,.05,4,.05,0.03)
  3928. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, 0, -0.8) * angles(math.rad(24), math.rad(0), math.rad(0)), 0.2)
  3929. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(30), math.rad(0), math.rad(0)), 0.2)
  3930. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(36)), 0.3)
  3931. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-36)), 0.3)
  3932. RH.C0 = clerp(RH.C0, CFrame.new(1, -0.6, -0.3) * RHCF * angles(math.rad(0), math.rad(0), math.rad(-28)), 0.2)
  3933. LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.2, -0.5) * LHCF * angles(math.rad(0), math.rad(0), math.rad(-34)), 0.2)
  3934. end
  3935. Cracking.Playing = false
  3936. so("http://www.roblox.com/asset/?id=197161452", char, 3, 0.8)
  3937. so("http://www.roblox.com/asset/?id=158475221", RightLeg, 1, 1.3)
  3938. SphereEffect(BrickColor.new("Lime green"),tors.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,38,38,38,0.08)
  3939. local velo=Instance.new("BodyVelocity")
  3940. velo.velocity=vt(0,27,0)
  3941. velo.P=11000
  3942. velo.maxForce=Vector3.new(math.huge, math.huge, math.huge)
  3943. velo.Parent=root
  3944. game:GetService("Debris"):AddItem(velo,1.24)
  3945.  
  3946.  
  3947.  
  3948. con5=hum.Touched:connect(function(hit)
  3949. if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  3950. if attackdebounce == false then
  3951. attackdebounce = true
  3952. coroutine.resume(coroutine.create(function()
  3953. for i = 0,1.5,0.1 do
  3954. swait()
  3955. hit.Parent.Head.CFrame = root.CFrame * CFrame.new(0,3.4,-1.8)
  3956. end
  3957. end))
  3958. kDamagefunc(hit,2,3,math.random(0,0),"Normal",root,0,1)
  3959. so("http://roblox.com/asset/?id=636494529",rl,2,1.6)
  3960. RingEffect(BrickColor.new("Lime green"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,.2,2,.2,0.06)
  3961. RingEffect(BrickColor.new("Lime green"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,.2,2,.2,0.06)
  3962. SphereEffect(BrickColor.new("Lime green"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,3,3,3,0.06)
  3963.  
  3964.  
  3965.  
  3966. coroutine.resume(coroutine.create(function()
  3967. for i = 0,1,0.1 do
  3968. swait()
  3969. hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(math.random(-0.55*1.8,0.55*1.8),math.random(-0.55*1.8,0.55*1.8),math.random(-0.55*1.8,0.55*1.8)),0.34)
  3970. end
  3971. end))
  3972.  
  3973.  
  3974. wait(0.09)
  3975. attackdebounce = false
  3976. end
  3977. end
  3978. end)
  3979.  
  3980. for i = 0, 9.11, 0.2 do
  3981. swait()
  3982. BlockEffect(BrickColor.new("Lime green"), rl.CFrame*CF(0,-1,0), 2, 2, 2, 3.5, 3.5, 3.5, 0.05)
  3983. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, 0, 0.1+0.12*i) * angles(math.rad(-10-95*i), math.rad(0), math.rad(0)), 0.42)
  3984. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(-43), math.rad(0), math.rad(0)), 0.42)
  3985. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-8), math.rad(0), math.rad(60)), 0.35)
  3986. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-8), math.rad(0), math.rad(-60)), 0.35)
  3987. RH.C0 = clerp(RH.C0, CFrame.new(1, -0.5, 0) * RHCF * angles(math.rad(0), math.rad(0), math.rad(20+10*i)), 0.42)
  3988. LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.5, -0.4) * LHCF * angles(math.rad(0), math.rad(0), math.rad(24)), 0.42)
  3989. end
  3990.  
  3991.  
  3992.  
  3993.  
  3994. con5:disconnect()
  3995.  
  3996.  
  3997.  
  3998.  
  3999.  
  4000.  
  4001. con5=hum.Touched:connect(function(hit)
  4002. if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  4003. if attackdebounce == false then
  4004. attackdebounce = true
  4005. coroutine.resume(coroutine.create(function()
  4006. for i = 0,1.5,0.1 do
  4007. swait()
  4008. hit.Parent.Head.CFrame = root.CFrame * CFrame.new(0,1.1,-1.8)
  4009. end
  4010. end))
  4011. kDamagefunc(hit,3,4,math.random(0,0),"Normal",root,0,1)
  4012.  
  4013. so("http://roblox.com/asset/?id=636494529",rl,2,1.6)
  4014. RingEffect(BrickColor.new("Lime green"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,.2,2,.2,0.06)
  4015. RingEffect(BrickColor.new("Lime green"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,.2,2,.2,0.06)
  4016. SphereEffect(BrickColor.new("Lime green"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,3,3,3,0.06)
  4017.  
  4018.  
  4019.  
  4020. coroutine.resume(coroutine.create(function()
  4021. for i = 0,1,0.1 do
  4022. swait()
  4023. hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(math.random(-0.55*1.8,0.55*1.8),math.random(-0.55*1.8,0.55*1.8),math.random(-0.55*1.8,0.55*1.8)),0.34)
  4024. end
  4025. end))
  4026.  
  4027.  
  4028. wait(0.08)
  4029. attackdebounce = false
  4030. end
  4031. end
  4032. end)
  4033.  
  4034.  
  4035.  
  4036. so("http://www.roblox.com/asset/?id=158475221", RightLeg, 1, 1.3)
  4037. for i = 0, 9.14, 0.3 do
  4038. swait()
  4039. root.Velocity = root.CFrame.lookVector * 20
  4040. BlockEffect(BrickColor.new("Lime green"), ll.CFrame*CF(0,-1,0), 2, 2, 2, 3.5, 3.5, 3.5, 0.05)
  4041. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, 0, -0.87) * angles(math.rad(53), math.rad(8), math.rad(0-54*i)), 0.35)
  4042. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(12), math.rad(0), math.rad(24)), 0.35)
  4043. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(12), math.rad(0), math.rad(62)), 0.35)
  4044. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.3, 0) * angles(math.rad(12), math.rad(0), math.rad(-23)), 0.35)
  4045. RH.C0 = clerp(RH.C0, CFrame.new(1, -0.17, -0.4) * RHCF * angles(math.rad(7), math.rad(0), math.rad(4)), 0.35)
  4046. LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.13, -0.6) * LHCF * angles(math.rad(-64-7*i), math.rad(0), math.rad(0-9*i)), 0.35)
  4047. end
  4048.  
  4049.  
  4050.  
  4051. con5:disconnect()
  4052.  
  4053.  
  4054.  
  4055. con5=hum.Touched:connect(function(hit)
  4056. if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  4057. if attackdebounce == false then
  4058. attackdebounce = true
  4059. coroutine.resume(coroutine.create(function()
  4060. for i = 0,1.5,0.1 do
  4061. swait()
  4062. hit.Parent.Head.CFrame = root.CFrame * CFrame.new(0,1.1,-1.8)
  4063. end
  4064. end))
  4065. kDamagefunc(hit,3,4,math.random(0,0),"Normal",root,0,1)
  4066. so("http://roblox.com/asset/?id=636494529",rl,2,1.6)
  4067. RingEffect(BrickColor.new("Lime green"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,.2,2,.2,0.06)
  4068. RingEffect(BrickColor.new("Lime green"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,.2,2,.2,0.06)
  4069. SphereEffect(BrickColor.new("Lime green"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,3,3,3,0.06)
  4070.  
  4071.  
  4072.  
  4073. coroutine.resume(coroutine.create(function()
  4074. for i = 0,1,0.1 do
  4075. swait()
  4076. hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(math.random(-0.55*1.8,0.55*1.8),math.random(-0.55*1.8,0.55*1.8),math.random(-0.55*1.8,0.55*1.8)),0.34)
  4077. end
  4078. end))
  4079.  
  4080.  
  4081. wait(0.05)
  4082. attackdebounce = false
  4083. end
  4084. end
  4085. end)
  4086.  
  4087.  
  4088. so("http://www.roblox.com/asset/?id=158475221", RightLeg, 1, 1.3)
  4089. for i = 0, 15.14, 0.32 do
  4090. swait()
  4091. root.Velocity = root.CFrame.lookVector * 20
  4092. BlockEffect(BrickColor.new("Lime green"), ll.CFrame*CF(0,-1,0), 2, 2, 2, 3.5, 3.5, 3.5, 0.05)
  4093. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, 0, -0.87) * angles(math.rad(-21-50*i), math.rad(8+20*i), math.rad(0-90*i)), 0.35)
  4094. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(12), math.rad(0), math.rad(24)), 0.35)
  4095. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(12), math.rad(0), math.rad(62)), 0.35)
  4096. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.3, 0) * angles(math.rad(12), math.rad(0), math.rad(-23)), 0.35)
  4097. RH.C0 = clerp(RH.C0, CFrame.new(1, -0.17, -0.4) * RHCF * angles(math.rad(7), math.rad(0), math.rad(4)), 0.35)
  4098. LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.13, -0.6) * LHCF * angles(math.rad(-64-2*i), math.rad(0), math.rad(0-4*i)), 0.35)
  4099. end
  4100.  
  4101. attack = false
  4102. con5:disconnect()
  4103.  
  4104. end
  4105.  
  4106.  
  4107.  
  4108.  
  4109.  
  4110. local ultra = false
  4111.  
  4112. function Galekicks()
  4113.  
  4114. attack = true
  4115. so("http://www.roblox.com/asset/?id=1452040709", RightLeg, 3, 1)
  4116. for i = 0, 1.65, 0.1 do
  4117. swait()
  4118. root.Velocity = root.CFrame.lookVector * 0
  4119. SphereEffect(BrickColor.new("Lime green"),rl.CFrame*angles(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,5,1,.05,4,.05,0.03)
  4120. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, 0.7, -0.3) * angles(math.rad(-32), math.rad(-2), math.rad(90)), 0.2)
  4121. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(-17), math.rad(-90)), 0.2)
  4122. RW.C0 = clerp(RW.C0, CFrame.new(1.1, 0.5, -0.6) * angles(math.rad(90), math.rad(0), math.rad(-56)), 0.3)
  4123. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.6, -0.5) * angles(math.rad(90), math.rad(0), math.rad(56)), 0.3)
  4124. RH.C0 = clerp(RH.C0, CFrame.new(1, .62 , -0.3) * RHCF * angles(math.rad(-40), math.rad(0), math.rad(2)), 0.2)
  4125. LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.7, 0) * LHCF * angles(math.rad(-28), math.rad(0), math.rad(0)), 0.2)
  4126. end
  4127.  
  4128.  
  4129. for i = 1, 17 do
  4130.  
  4131. con5=hum.Touched:connect(function(hit)
  4132. if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  4133. if attackdebounce == false then
  4134. attackdebounce = true
  4135. coroutine.resume(coroutine.create(function()
  4136. for i = 0,1.5,0.1 do
  4137. swait()
  4138. hit.Parent.Head.CFrame = root.CFrame * CFrame.new(0,1.1,-1.8)
  4139. end
  4140. end))
  4141. kDamagefunc(hit,1,2,math.random(0,0),"Normal",root,0,1)
  4142. so("http://roblox.com/asset/?id=636494529",rl,2,1.6)
  4143. RingEffect(BrickColor.new("Lime green"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,.2,2,.2,0.06)
  4144. RingEffect(BrickColor.new("Lime green"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,.2,2,.2,0.06)
  4145. SphereEffect(BrickColor.new("Lime green"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,3,3,3,0.06)
  4146.  
  4147.  
  4148.  
  4149. coroutine.resume(coroutine.create(function()
  4150. for i = 0,1,0.1 do
  4151. swait()
  4152. hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(math.random(-0.55*1.8,0.55*1.8),math.random(-0.55*1.8,0.55*1.8),math.random(-0.55*1.8,0.55*1.8)),0.34)
  4153. end
  4154. end))
  4155.  
  4156.  
  4157. wait(0.05)
  4158. attackdebounce = false
  4159. end
  4160. end
  4161. end)
  4162.  
  4163. for i = 0, .1, 0.2 do
  4164. swait()
  4165. BlockEffect(BrickColor.new("Lime green"), rl.CFrame*CF(0,-1,0), 2, 2, 2, 1.5, 1.5, 1.5, 0.03)
  4166. root.Velocity = root.CFrame.lookVector * 10
  4167. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, -0.5, -0.3) * angles(math.rad(-44), math.rad(-2), math.rad(90)), 0.7)
  4168. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(-24), math.rad(-90)), 0.7)
  4169. RW.C0 = clerp(RW.C0, CFrame.new(1.1, 0.5, -0.6) * angles(math.rad(90), math.rad(0), math.rad(-56)), 0.7)
  4170. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.6, -0.5) * angles(math.rad(90), math.rad(0), math.rad(56)), 0.7)
  4171. RH.C0 = clerp(RH.C0, CFrame.new(1, -.6 , 0) * RHCF * angles(math.rad(math.random(-100,-10)), math.rad(0), math.rad(2)), 0.7)
  4172. LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.7, 0) * LHCF * angles(math.rad(-34), math.rad(0), math.rad(0)), 0.7)
  4173. end
  4174.  
  4175. so("http://roblox.com/asset/?id=1340545854",rl,1,math.random(0.7,1))
  4176.  
  4177. for i = 0, 0.4, 0.2 do
  4178. swait()
  4179. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, 0.7, -0.3) * angles(math.rad(-32), math.rad(-2), math.rad(90)), 0.2)
  4180. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(-17), math.rad(-90)), 0.2)
  4181. RW.C0 = clerp(RW.C0, CFrame.new(1.1, 0.5, -0.6) * angles(math.rad(90), math.rad(0), math.rad(-56)), 0.3)
  4182. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.6, -0.5) * angles(math.rad(90), math.rad(0), math.rad(56)), 0.3)
  4183. RH.C0 = clerp(RH.C0, CFrame.new(1, .62 , -0.3) * RHCF * angles(math.rad(-40), math.rad(0), math.rad(2)), 0.2)
  4184. LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.7, 0) * LHCF * angles(math.rad(-28), math.rad(0), math.rad(0)), 0.2)
  4185. end
  4186. con5:disconnect()
  4187. end
  4188.  
  4189.  
  4190. u = mouse.KeyDown:connect(function(key)
  4191. if key == 'r' and combohits >= 150 then
  4192. ultra = true
  4193. SphereEffect(BrickColor.new("Really red"),tors.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,15,15,15,0.04)
  4194. end
  4195. end)
  4196. wait(0.3)
  4197. if ultra == true then
  4198. combohits = 0
  4199. wait(0.1)
  4200. for i = 0, 1.65, 0.1 do
  4201. swait()
  4202. root.Velocity = root.CFrame.lookVector * 0
  4203. SphereEffect(BrickColor.new("Really red"),rl.CFrame*angles(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,5,1,.05,4,.05,0.03)
  4204. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, 0.7, -0.3) * angles(math.rad(-32), math.rad(-2), math.rad(90)), 0.2)
  4205. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(-17), math.rad(-90)), 0.2)
  4206. RW.C0 = clerp(RW.C0, CFrame.new(1.1, 0.5, -0.6) * angles(math.rad(90), math.rad(0), math.rad(-56)), 0.3)
  4207. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.6, -0.5) * angles(math.rad(90), math.rad(0), math.rad(56)), 0.3)
  4208. RH.C0 = clerp(RH.C0, CFrame.new(1, .62 , -0.3) * RHCF * angles(math.rad(-40), math.rad(0), math.rad(2)), 0.2)
  4209. LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.7, 0) * LHCF * angles(math.rad(-28), math.rad(0), math.rad(0)), 0.2)
  4210. end
  4211.  
  4212.  
  4213. so("http://roblox.com/asset/?id=146094803",hed,1,1.2)
  4214.  
  4215. for i = 1, 65 do
  4216. --Aura(5, 0.15, "Add" , root.CFrame * CF(Mrandom(-12, 12), -6, Mrandom(-12, 12)) * angles(Rad(90 + Mrandom(-12, 12)), 0, 0), 1.5, 1.5, 10, -0.015, BrickC"Really red", 0, "Brick")
  4217. con5=hum.Touched:connect(function(hit)
  4218. if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  4219. if attackdebounce == false then
  4220. attackdebounce = true
  4221. coroutine.resume(coroutine.create(function()
  4222. for i = 0,1.5,0.1 do
  4223. swait()
  4224. hit.Parent.Head.CFrame = root.CFrame * CFrame.new(0,1.1,-1.8)
  4225. end
  4226. end))
  4227. kDamagefunc(hit,1,2,math.random(0,0),"Normal",root,0,1)
  4228.  
  4229.  
  4230.  
  4231.  
  4232. so("http://roblox.com/asset/?id=636494529",rl,2,1.6)
  4233. RingEffect(BrickColor.new("Really red"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,.2,2,.2,0.06)
  4234. RingEffect(BrickColor.new("Really red"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,.2,2,.2,0.06)
  4235. SphereEffect(BrickColor.new("Really red"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,3,3,3,0.06)
  4236.  
  4237.  
  4238.  
  4239. coroutine.resume(coroutine.create(function()
  4240. for i = 0,1,0.1 do
  4241. swait()
  4242. hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(math.random(-0.55*1.8,0.55*1.8),math.random(-0.55*1.8,0.55*1.8),math.random(-0.55*1.8,0.55*1.8)),0.34)
  4243. end
  4244. end))
  4245.  
  4246.  
  4247. wait(0.05)
  4248. attackdebounce = false
  4249. end
  4250. end
  4251. end)
  4252.  
  4253. for i = 0, .03, 0.1 do
  4254. swait()
  4255. BlockEffect(BrickColor.new("Really red"), rl.CFrame*CF(0,-1,0), 2, 2, 2, 1.5, 1.5, 1.5, 0.03)
  4256. root.Velocity = root.CFrame.lookVector * 10
  4257. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, -0.5, -0.3) * angles(math.rad(-44), math.rad(-2), math.rad(90)), 0.7)
  4258. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(-24), math.rad(-90)), 0.7)
  4259. RW.C0 = clerp(RW.C0, CFrame.new(1.1, 0.5, -0.6) * angles(math.rad(90), math.rad(0), math.rad(-56)), 0.7)
  4260. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.6, -0.5) * angles(math.rad(90), math.rad(0), math.rad(56)), 0.7)
  4261. RH.C0 = clerp(RH.C0, CFrame.new(1, -.6 , 0) * RHCF * angles(math.rad(math.random(-100,-10)), math.rad(0), math.rad(2)), 0.7)
  4262. LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.7, 0) * LHCF * angles(math.rad(-34), math.rad(0), math.rad(0)), 0.7)
  4263. end
  4264.  
  4265. so("http://roblox.com/asset/?id=1340545854",rl,1,math.random(0.7,1))
  4266.  
  4267. for i = 0, 0.07, 0.1 do
  4268. swait()
  4269. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, 0.7, -0.3) * angles(math.rad(-32), math.rad(-2), math.rad(90)), 0.2)
  4270. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(-17), math.rad(-90)), 0.2)
  4271. RW.C0 = clerp(RW.C0, CFrame.new(1.1, 0.5, -0.6) * angles(math.rad(90), math.rad(0), math.rad(-56)), 0.3)
  4272. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.6, -0.5) * angles(math.rad(90), math.rad(0), math.rad(56)), 0.3)
  4273. RH.C0 = clerp(RH.C0, CFrame.new(1, .62 , -0.3) * RHCF * angles(math.rad(-40), math.rad(0), math.rad(2)), 0.2)
  4274. LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.7, 0) * LHCF * angles(math.rad(-28), math.rad(0), math.rad(0)), 0.2)
  4275. end
  4276. con5:disconnect()
  4277. end
  4278.  
  4279. for i = 0, 1.65, 0.1 do
  4280. swait()
  4281. root.Velocity = root.CFrame.lookVector * 0
  4282. SphereEffect(BrickColor.new("Really red"),rl.CFrame*angles(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,5,1,.05,4,.05,0.03)
  4283. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, 0.7, -0.3) * angles(math.rad(-32), math.rad(-2), math.rad(90)), 0.2)
  4284. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(-17), math.rad(-90)), 0.2)
  4285. RW.C0 = clerp(RW.C0, CFrame.new(1.1, 0.5, -0.6) * angles(math.rad(90), math.rad(0), math.rad(-56)), 0.3)
  4286. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.6, -0.5) * angles(math.rad(90), math.rad(0), math.rad(56)), 0.3)
  4287. RH.C0 = clerp(RH.C0, CFrame.new(1, .62 , -0.3) * RHCF * angles(math.rad(-40), math.rad(0), math.rad(2)), 0.2)
  4288. LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.7, 0) * LHCF * angles(math.rad(-28), math.rad(0), math.rad(0)), 0.2)
  4289. end
  4290.  
  4291. con5=hum.Touched:connect(function(hit)
  4292. if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  4293. if attackdebounce == false then
  4294. attackdebounce = true
  4295. coroutine.resume(coroutine.create(function()
  4296. for i = 0,1.5,0.1 do
  4297. swait()
  4298. --hit.Parent.Head.CFrame = root.CFrame * CFrame.new(0,1.1,-1.8)
  4299. end
  4300. end))
  4301. kDamagefunc(hit, 1, 3, 0,"Normal",root,0,1)
  4302. so("http://roblox.com/asset/?id=636494529",rl,2,.63)
  4303. RingEffect(BrickColor.new("Really red"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,.2,2,.2,0.06)
  4304. RingEffect(BrickColor.new("Really red"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,.2,2,.2,0.06)
  4305. SphereEffect(BrickColor.new("Really red"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,3,3,3,0.06)
  4306.  
  4307.  
  4308. coroutine.resume(coroutine.create(function()
  4309. for i = 0,1,0.1 do
  4310. swait()
  4311. hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(math.random(-0.55*1.8,0.55*1.8),math.random(-0.55*1.8,0.55*1.8),math.random(-0.55*1.8,0.55*1.8)),0.34)
  4312. end
  4313. end))
  4314.  
  4315.  
  4316. wait(0.05)
  4317. attackdebounce = false
  4318. end
  4319. end
  4320. end)
  4321.  
  4322. so("http://www.roblox.com/asset/?id=1452040709", RightLeg, 1, 1.4)
  4323. SphereEffect(BrickColor.new("Really red"),rl.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,38,38,38,0.08)
  4324.  
  4325. for i = 0, 2, 0.1 do
  4326. swait()
  4327. --BlockEffect(BrickColor.new("Really red"), rl.CFrame*CF(0,-1,0), 2, 2, 2, 1.5, 1.5, 1.5, 0.03)
  4328. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, -0.5, -0.3) * angles(math.rad(-32), math.rad(-2), math.rad(90)), 0.2)
  4329. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(-17), math.rad(-90)), 0.2)
  4330. RW.C0 = clerp(RW.C0, CFrame.new(1.1, 0.5, -0.6) * angles(math.rad(90), math.rad(0), math.rad(-56)), 0.3)
  4331. LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.6, -0.5) * angles(math.rad(90), math.rad(0), math.rad(56)), 0.3)
  4332. RH.C0 = clerp(RH.C0, CFrame.new(1, -.6 , 0.2) * RHCF * angles(math.rad(-50), math.rad(0), math.rad(2)), 0.2)
  4333. LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.7, 0) * LHCF * angles(math.rad(-28), math.rad(0), math.rad(0)), 0.2)
  4334. end
  4335. SphereEffect(BrickColor.new("Really red"),tors.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,8,8,8,0.04)
  4336.  
  4337. wait(0.25)
  4338. con5:Disconnect()
  4339.  
  4340.  
  4341.  
  4342.  
  4343. con5=hum.Touched:connect(function(hit)
  4344. if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  4345. if attackdebounce == false then
  4346. attackdebounce = true
  4347.  
  4348. kDamagefunc(hit,1,2,math.random(0,0),"Normal",root,0,1)
  4349. so("http://roblox.com/asset/?id=565207203",ll,7,0.63)
  4350.  
  4351. RingEffect(BrickColor.new("Really red"),ll.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,2.2,6,2.2,0.04)
  4352. RingEffect(BrickColor.new("Really red"),ll.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,2.2,6,2.2,0.04)
  4353. SphereEffect(BrickColor.new("Really red"),ll.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,8,8,8,0.04)
  4354. SpecialEffect(BrickColor.new("Really red"),ll.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,8,8,8,0.04)
  4355. SphereEffect(BrickColor.new("Really red"),ll.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,5,18,5,0.04)
  4356. WaveEffect(BrickColor.new("Really red"),ll.CFrame*angles(math.random(-360,360),math.random(-360,360),math.random(-360,360)),1,5,1,1.5,16,1.5,0.04)
  4357.  
  4358. coroutine.resume(coroutine.create(function()
  4359. for i = 0,1,0.1 do
  4360. swait()
  4361. hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(math.random(-0.35*1.8,0.35*1.8),math.random(-0.35*1.8,0.35*1.8),math.random(-0.35*1.8,0.35*1.8)),0.24)
  4362. end
  4363. end))
  4364.  
  4365. wait(0.06)
  4366. attackdebounce = false
  4367.  
  4368. end
  4369. end
  4370. end)
  4371.  
  4372. coroutine.resume(coroutine.create(function()
  4373. while ultra == true do
  4374. swait()
  4375. root.CFrame = root.CFrame*CFrame.new(math.random(-3,3),math.random(-2,2),math.random(-3,3))
  4376. end
  4377. end))
  4378.  
  4379.  
  4380. so("http://www.roblox.com/asset/?id=158475221", RightLeg, 1, 1.3)
  4381. for i = 1,3 do
  4382. for i = 0, 9.14, 0.45 do
  4383. swait()
  4384. root.Velocity = root.CFrame.lookVector * 30
  4385. BlockEffect(BrickColor.new("Really red"), ll.CFrame*CF(0,-1,0), 2, 2, 2, 3.5, 3.5, 3.5, 0.05)
  4386. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, 0, -0.87) * angles(math.rad(8), math.rad(8), math.rad(0-94*i)), 0.35)
  4387. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(12), math.rad(0), math.rad(24)), 0.35)
  4388. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(12), math.rad(0), math.rad(62)), 0.35)
  4389. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.3, 0) * angles(math.rad(12), math.rad(0), math.rad(-23)), 0.35)
  4390. RH.C0 = clerp(RH.C0, CFrame.new(1, -0.17, -0.4) * RHCF * angles(math.rad(7), math.rad(0), math.rad(4)), 0.35)
  4391. LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.13, -0.6) * LHCF * angles(math.rad(-64-7*i), math.rad(0), math.rad(0-9*i)), 0.35)
  4392. end
  4393. end
  4394.  
  4395.  
  4396. for i = 1,3 do
  4397. for i = 0, 11.14, 0.45 do
  4398. swait()
  4399. root.Velocity = root.CFrame.lookVector * 30
  4400. BlockEffect(BrickColor.new("Really red"), ll.CFrame*CF(0,-1,0), 2, 2, 2, 3.5, 3.5, 3.5, 0.05)
  4401. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, 0, -0.87) * angles(math.rad(-21-30*i), math.rad(8+10*i), math.rad(0-110*i)), 0.35)
  4402. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(12), math.rad(0), math.rad(24)), 0.35)
  4403. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(12), math.rad(0), math.rad(62)), 0.35)
  4404. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.3, 0) * angles(math.rad(12), math.rad(0), math.rad(-23)), 0.35)
  4405. RH.C0 = clerp(RH.C0, CFrame.new(1, -0.17, -0.4) * RHCF * angles(math.rad(27), math.rad(0), math.rad(74)), 0.35)
  4406. LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.13, -0.6) * LHCF * angles(math.rad(-34-2*i), math.rad(0), math.rad(0-9*i)), 0.35)
  4407. end
  4408.  
  4409.  
  4410.  
  4411. end
  4412. so("http://www.roblox.com/asset/?id=197161452", char, 0.5, 0.8)
  4413. con5:disconnect()
  4414.  
  4415.  
  4416. end -- combo hit end
  4417. attack = false
  4418. ultra = false
  4419. u:disconnect()
  4420.  
  4421. end
  4422.  
  4423.  
  4424.  
  4425.  
  4426. -------------------------------------------------------
  4427. --End Attacks N Stuff--
  4428. -------------------------------------------------------
  4429. mouse.KeyDown:connect(function(key)
  4430. if string.byte(key) == 48 then
  4431. Swing = 2
  4432. hum.WalkSpeed = 24.82
  4433. end
  4434. end)
  4435. mouse.KeyUp:connect(function(key)
  4436. if string.byte(key) == 48 then
  4437. Swing = 1
  4438. hum.WalkSpeed = 8
  4439. end
  4440. end)
  4441.  
  4442.  
  4443.  
  4444.  
  4445.  
  4446.  
  4447.  
  4448. mouse.Button1Down:connect(function()
  4449. if attack==false then
  4450. if attacktype==1 then
  4451. attack=true
  4452. attacktype=2
  4453. attackone()
  4454. elseif attacktype==2 then
  4455. attack=true
  4456. attacktype=3
  4457. attacktwo()
  4458. elseif attacktype==3 then
  4459. attack=true
  4460. attacktype=4
  4461. attackthree()
  4462. elseif attacktype==4 then
  4463. attack=true
  4464. attacktype=1
  4465. attackfour()
  4466. end
  4467. end
  4468. end)
  4469.  
  4470.  
  4471.  
  4472.  
  4473. mouse.KeyDown:connect(function(key)
  4474. if key == 'e' and attack == false and cankick == true and cooldown == false then
  4475. quickkick()
  4476. cooldown = true
  4477.  
  4478. coroutine.resume(coroutine.create(function()
  4479. wait(2)
  4480. cooldown = false
  4481. end))
  4482.  
  4483.  
  4484.  
  4485. end
  4486. end)
  4487.  
  4488.  
  4489.  
  4490.  
  4491.  
  4492.  
  4493.  
  4494.  
  4495. mouse.KeyDown:connect(function(key)
  4496. if attack == false then
  4497. if key == 't' then
  4498. Taunt()
  4499. elseif key == 'f' then
  4500. Hyperkickcombo()
  4501. elseif key == 'r' then
  4502. Galekicks()
  4503. end
  4504. end
  4505. end)
  4506.  
  4507. -------------------------------------------------------
  4508. --Start Animations--
  4509. -------------------------------------------------------
  4510. print("By Makhail07 and KillerDarkness0105")
  4511. print("Basic Animations by Makhail07")
  4512. print("Attack Animations by KillerDarkness0105")
  4513. print("This is pretty much our final script together")
  4514. print("--------------------------------")
  4515. print("Attacks")
  4516. print("E in air: Quick Kicks")
  4517. print("Left Mouse: 4 click combo")
  4518. print("F: Hyper Kicks")
  4519. print("R: Gale Kicks, Spam R if your combo is over 150 to do an ultra combo")
  4520. print("--------------------------------")
  4521. while true do
  4522. swait()
  4523. sine = sine + change
  4524. local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude
  4525. local velderp = root.Velocity.y
  4526. hitfloor, posfloor = rayCast(root.Position, CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0)).lookVector, 4* Player_Size, char)
  4527.  
  4528. if hitfloor == nil then
  4529. cankick = true
  4530. else
  4531. cankick = false
  4532. end
  4533.  
  4534.  
  4535. if equipped == true or equipped == false then
  4536. if attack == false then
  4537. idle = idle + 1
  4538. else
  4539. idle = 0
  4540. end
  4541. if 1 < root.Velocity.y and hitfloor == nil then
  4542. Anim = "Jump"
  4543. if attack == false then
  4544. hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(0,0,0),0.15)
  4545. 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)
  4546. 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.1)
  4547. 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)
  4548. 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)
  4549. 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)
  4550. 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)
  4551. end
  4552. elseif -1 > root.Velocity.y and hitfloor == nil then
  4553. Anim = "Fall"
  4554. if attack == false then
  4555. hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(0,0,0),0.15)
  4556. 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)
  4557. 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.1)
  4558. 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)
  4559. 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)
  4560. 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)
  4561. 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)
  4562. end
  4563. elseif torvel < 1 and hitfloor ~= nil then
  4564. Anim = "Idle"
  4565. change = 1
  4566. if attack == false then
  4567. hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(0,0,0),0.15)
  4568. rootj.C0 = clerp(rootj.C0, RootCF * CF(0* Player_Size, 0* Player_Size, -0.1 + 0.1* Player_Size * Cos(sine / 12)) * angles(Rad(0), Rad(0), Rad(20)), 0.1)
  4569. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-6.5 * Sin(sine / 12)), Rad(0), Rad(-20)), 0.1)
  4570. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.9 - 0.1 * Cos(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(0), Rad(75), Rad(0)) * angles(Rad(-12.5), Rad(0), Rad(0)), 0.1)
  4571. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.9 - 0.1 * Cos(sine / 12)* Player_Size, -0.2* Player_Size) * angles(Rad(0), Rad(-65), Rad(0)) * angles(Rad(-6.5), Rad(0), Rad(6)), 0.1)
  4572. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.2 + 0.05 * Sin(sine / 12)* Player_Size, 0* Player_Size) * angles(Rad(110), Rad(6 + 6.5 * Sin(sine / 12)), Rad(25)), 0.1)
  4573. LW.C0 = clerp(LW.C0, CF(-1.3* Player_Size, 0.2 + 0.05 * Sin(sine / 12)* Player_Size, -0.5* Player_Size) * angles(Rad(110), Rad(6 - 6.5 * Sin(sine / 12)), Rad(25)), 0.1)
  4574. end
  4575. elseif torvel > 2 and torvel < 22 and hitfloor ~= nil then
  4576. Anim = "Walk"
  4577. change = 1
  4578. if attack == false then
  4579. hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(0,0,0),0.15)
  4580. 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)
  4581. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-1), Rad(0), Rad(0) - hed.RotVelocity.Y / 15), 0.15)
  4582. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.8 - 0.5 * Cos(sine / 7) / 2* Player_Size, 0.6 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-15 - 15 * 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)
  4583. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.8 + 0.5 * Cos(sine / 7) / 2* Player_Size, -0.6 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-15 + 15 * 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)
  4584. RW.C0 = clerp(RW.C0, CF(1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 7)* Player_Size, 0* Player_Size) * angles(Rad(56) * Cos(sine / 7) , Rad(10 * Cos(sine / 7)), Rad(6) - ra.RotVelocity.Y / 75), 0.1)
  4585. LW.C0 = clerp(LW.C0, CF(-1.5* Player_Size, 0.5 + 0.05 * Sin(sine / 7)* Player_Size, 0* Player_Size) * angles(Rad(-56) * Cos(sine / 7) , Rad(10 * Cos(sine / 7)) , Rad(-6) + la.RotVelocity.Y / 75), 0.1)
  4586. end
  4587. elseif torvel >= 22 and hitfloor ~= nil then
  4588. Anim = "Sprint"
  4589. change = 1.35
  4590. if attack == false then
  4591. hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(0,0,0),0.15)
  4592. 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)
  4593. tors.Neck.C0 = clerp(tors.Neck.C0, necko* CF(0, 0, 0 + ((1* Player_Size) - 1)) * angles(Rad(-8.5 - 2 * Sin(sine / 20)), Rad(0), Rad(0) - hed.RotVelocity.Y / 15), 0.15)
  4594. RH.C0 = clerp(RH.C0, CF(1* Player_Size, -0.925 - 0.5 * Cos(sine / 7) / 2* Player_Size, 0.7 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-15 - 55 * Cos(sine / 7)) - rl.RotVelocity.Y / 75 + -Sin(sine / 7) / 2.5, Rad(90 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 + 0.1 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  4595. LH.C0 = clerp(LH.C0, CF(-1* Player_Size, -0.925 + 0.5 * Cos(sine / 7) / 2* Player_Size, -0.7 * Cos(sine / 7) / 2* Player_Size) * angles(Rad(-15 + 55 * Cos(sine / 7)) + ll.RotVelocity.Y / 75 + Sin(sine / 7) / 2.5, Rad(-90 - 0.1 * Cos(sine / 7)), Rad(0)) * angles(Rad(0 - 0.1 * Cos(sine / 7)), Rad(0), Rad(0)), 0.3)
  4596. 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(-65) , Rad(0), Rad(13) - ra.RotVelocity.Y / 75), 0.15)
  4597. 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(-65) , Rad(0) , Rad(-13) + la.RotVelocity.Y / 75), 0.15)
  4598. end
  4599. end
  4600. end
  4601. Music.SoundId = "rbxassetid://"..SONG
  4602. Music.Looped = true
  4603. Music.Pitch = 1
  4604. Music.Volume = 0.7
  4605. Music.Parent = tors
  4606. Music:Resume()
  4607. if 0 < #Effects then
  4608. for e = 1, #Effects do
  4609. if Effects[e] ~= nil then
  4610. local Thing = Effects[e]
  4611. if Thing ~= nil then
  4612. local Part = Thing[1]
  4613. local Mode = Thing[2]
  4614. local Delay = Thing[3]
  4615. local IncX = Thing[4]
  4616. local IncY = Thing[5]
  4617. local IncZ = Thing[6]
  4618. if 1 >= Thing[1].Transparency then
  4619. if Thing[2] == "Block1" then
  4620. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  4621. local Mesh = Thing[1].Mesh
  4622. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  4623. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  4624. elseif Thing[2] == "Block2" then
  4625. Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0)
  4626. local Mesh = Thing[7]
  4627. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  4628. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  4629. elseif Thing[2] == "Block3" then
  4630. 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)
  4631. local Mesh = Thing[7]
  4632. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  4633. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  4634. elseif Thing[2] == "Cylinder" then
  4635. local Mesh = Thing[1].Mesh
  4636. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  4637. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  4638. elseif Thing[2] == "Blood" then
  4639. local Mesh = Thing[7]
  4640. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0)
  4641. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  4642. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  4643. elseif Thing[2] == "Elec" then
  4644. local Mesh = Thing[1].Mesh
  4645. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  4646. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  4647. elseif Thing[2] == "Disappear" then
  4648. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  4649. elseif Thing[2] == "Shatter" then
  4650. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  4651. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  4652. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  4653. Thing[6] = Thing[6] + Thing[5]
  4654. end
  4655. else
  4656. Part.Parent = nil
  4657. table.remove(Effects, e)
  4658. end
  4659. end
  4660. end
  4661. end
  4662. end
  4663. end
  4664. -------------------------------------------------------
  4665. --End Animations And Script--
  4666. -------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement