Advertisement
435uhreghjwe

Gale Fighter FE

Aug 29th, 2021
23
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 245.38 KB | None | 0 0
  1. --Thanks for using!
  2. game:GetService("StarterGui"):SetCore("SendNotification", {
  3. Title = "a Gift from : Dan";
  4. Text = "Thank you for using my edit :D";
  5. Icon = "rbxthumb://type=Asset&id=5107182114&w=150&h=150"})
  6. --[[ Options ]]
  7. _G.CharacterBug = false --Set to true if your uppertorso floats when you use the script with R15.
  8. _G.GodMode = true --Set to true if you want godmode.
  9. _G.R6 = true --Set to true if you wanna enable R15 to R6 when your R15.
  10. --[[Reanimate]]--
  11. loadstring(game:HttpGet("https://gist.githubusercontent.com/M6HqVBcddw2qaN4s/fc29cbf0eda6f8b129778b441be3128f/raw/6StQ2n56PnEHMhQ9"))()
  12.  
  13. function LoadLibrary(a)
  14. local t = {}
  15.  
  16. ------------------------------------------------------------------------------------------------------------------------
  17. ------------------------------------------------------------------------------------------------------------------------
  18. ------------------------------------------------------------------------------------------------------------------------
  19. ------------------------------------------------JSON Functions Begin----------------------------------------------------
  20. ------------------------------------------------------------------------------------------------------------------------
  21. ------------------------------------------------------------------------------------------------------------------------
  22. ------------------------------------------------------------------------------------------------------------------------
  23.  
  24. --JSON Encoder and Parser for Lua 5.1
  25. --
  26. --Copyright 2007 Shaun Brown (http://www.chipmunkav.com)
  27. --All Rights Reserved.
  28.  
  29. --Permission is hereby granted, free of charge, to any person
  30. --obtaining a copy of this software to deal in the Software without
  31. --restriction, including without limitation the rights to use,
  32. --copy, modify, merge, publish, distribute, sublicense, and/or
  33. --sell copies of the Software, and to permit persons to whom the
  34. --Software is furnished to do so, subject to the following conditions:
  35.  
  36. --The above copyright notice and this permission notice shall be
  37. --included in all copies or substantial portions of the Software.
  38. --If you find this software useful please give www.chipmunkav.com a mention.
  39.  
  40. --THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  41. --EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
  42. --OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
  43. --IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR
  44. --ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
  45. --CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  46. --CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  47.  
  48. local string = string
  49. local math = math
  50. local table = table
  51. local error = error
  52. local tonumber = tonumber
  53. local tostring = tostring
  54. local type = type
  55. local setmetatable = setmetatable
  56. local pairs = pairs
  57. local ipairs = ipairs
  58. local assert = assert
  59.  
  60.  
  61. local StringBuilder = {
  62. buffer = {}
  63. }
  64.  
  65. function StringBuilder:New()
  66. local o = {}
  67. setmetatable(o, self)
  68. self.__index = self
  69. o.buffer = {}
  70. return o
  71. end
  72.  
  73. function StringBuilder:Append(s)
  74. self.buffer[#self.buffer+1] = s
  75. end
  76.  
  77. function StringBuilder:ToString()
  78. return table.concat(self.buffer)
  79. end
  80.  
  81. local JsonWriter = {
  82. backslashes = {
  83. ['\b'] = "\\b",
  84. ['\t'] = "\\t",
  85. ['\n'] = "\\n",
  86. ['\f'] = "\\f",
  87. ['\r'] = "\\r",
  88. ['"'] = "\\\"",
  89. ['\\'] = "\\\\",
  90. ['/'] = "\\/"
  91. }
  92. }
  93.  
  94. function JsonWriter:New()
  95. local o = {}
  96. o.writer = StringBuilder:New()
  97. setmetatable(o, self)
  98. self.__index = self
  99. return o
  100. end
  101.  
  102. function JsonWriter:Append(s)
  103. self.writer:Append(s)
  104. end
  105.  
  106. function JsonWriter:ToString()
  107. return self.writer:ToString()
  108. end
  109.  
  110. function JsonWriter:Write(o)
  111. local t = type(o)
  112. if t == "nil" then
  113. self:WriteNil()
  114. elseif t == "boolean" then
  115. self:WriteString(o)
  116. elseif t == "number" then
  117. self:WriteString(o)
  118. elseif t == "string" then
  119. self:ParseString(o)
  120. elseif t == "table" then
  121. self:WriteTable(o)
  122. elseif t == "function" then
  123. self:WriteFunction(o)
  124. elseif t == "thread" then
  125. self:WriteError(o)
  126. elseif t == "userdata" then
  127. self:WriteError(o)
  128. end
  129. end
  130.  
  131. function JsonWriter:WriteNil()
  132. self:Append("null")
  133. end
  134.  
  135. function JsonWriter:WriteString(o)
  136. self:Append(tostring(o))
  137. end
  138.  
  139. function JsonWriter:ParseString(s)
  140. self:Append('"')
  141. self:Append(string.gsub(s, "[%z%c\\\"/]", function(n)
  142. local c = self.backslashes[n]
  143. if c then return c end
  144. return string.format("\\u%.4X", string.byte(n))
  145. end))
  146. self:Append('"')
  147. end
  148.  
  149. function JsonWriter:IsArray(t)
  150. local count = 0
  151. local isindex = function(k)
  152. if type(k) == "number" and k > 0 then
  153. if math.floor(k) == k then
  154. return true
  155. end
  156. end
  157. return false
  158. end
  159. for k,v in pairs(t) do
  160. if not isindex(k) then
  161. return false, '{', '}'
  162. else
  163. count = math.max(count, k)
  164. end
  165. end
  166. return true, '[', ']', count
  167. end
  168.  
  169. function JsonWriter:WriteTable(t)
  170. local ba, st, et, n = self:IsArray(t)
  171. self:Append(st)
  172. if ba then
  173. for i = 1, n do
  174. self:Write(t[i])
  175. if i < n then
  176. self:Append(',')
  177. end
  178. end
  179. else
  180. local first = true;
  181. for k, v in pairs(t) do
  182. if not first then
  183. self:Append(',')
  184. end
  185. first = false;
  186. self:ParseString(k)
  187. self:Append(':')
  188. self:Write(v)
  189. end
  190. end
  191. self:Append(et)
  192. end
  193.  
  194. function JsonWriter:WriteError(o)
  195. error(string.format(
  196. "Encoding of %s unsupported",
  197. tostring(o)))
  198. end
  199.  
  200. function JsonWriter:WriteFunction(o)
  201. if o == Null then
  202. self:WriteNil()
  203. else
  204. self:WriteError(o)
  205. end
  206. end
  207.  
  208. local StringReader = {
  209. s = "",
  210. i = 0
  211. }
  212.  
  213. function StringReader:New(s)
  214. local o = {}
  215. setmetatable(o, self)
  216. self.__index = self
  217. o.s = s or o.s
  218. return o
  219. end
  220.  
  221. function StringReader:Peek()
  222. local i = self.i + 1
  223. if i <= #self.s then
  224. return string.sub(self.s, i, i)
  225. end
  226. return nil
  227. end
  228.  
  229. function StringReader:Next()
  230. self.i = self.i+1
  231. if self.i <= #self.s then
  232. return string.sub(self.s, self.i, self.i)
  233. end
  234. return nil
  235. end
  236.  
  237. function StringReader:All()
  238. return self.s
  239. end
  240.  
  241. local JsonReader = {
  242. escapes = {
  243. ['t'] = '\t',
  244. ['n'] = '\n',
  245. ['f'] = '\f',
  246. ['r'] = '\r',
  247. ['b'] = '\b',
  248. }
  249. }
  250.  
  251. function JsonReader:New(s)
  252. local o = {}
  253. o.reader = StringReader:New(s)
  254. setmetatable(o, self)
  255. self.__index = self
  256. return o;
  257. end
  258.  
  259. function JsonReader:Read()
  260. self:SkipWhiteSpace()
  261. local peek = self:Peek()
  262. if peek == nil then
  263. error(string.format(
  264. "Nil string: '%s'",
  265. self:All()))
  266. elseif peek == '{' then
  267. return self:ReadObject()
  268. elseif peek == '[' then
  269. return self:ReadArray()
  270. elseif peek == '"' then
  271. return self:ReadString()
  272. elseif string.find(peek, "[%+%-%d]") then
  273. return self:ReadNumber()
  274. elseif peek == 't' then
  275. return self:ReadTrue()
  276. elseif peek == 'f' then
  277. return self:ReadFalse()
  278. elseif peek == 'n' then
  279. return self:ReadNull()
  280. elseif peek == '/' then
  281. self:ReadComment()
  282. return self:Read()
  283. else
  284. return nil
  285. end
  286. end
  287.  
  288. function JsonReader:ReadTrue()
  289. self:TestReservedWord{'t','r','u','e'}
  290. return true
  291. end
  292.  
  293. function JsonReader:ReadFalse()
  294. self:TestReservedWord{'f','a','l','s','e'}
  295. return false
  296. end
  297.  
  298. function JsonReader:ReadNull()
  299. self:TestReservedWord{'n','u','l','l'}
  300. return nil
  301. end
  302.  
  303. function JsonReader:TestReservedWord(t)
  304. for i, v in ipairs(t) do
  305. if self:Next() ~= v then
  306. error(string.format(
  307. "Error reading '%s': %s",
  308. table.concat(t),
  309. self:All()))
  310. end
  311. end
  312. end
  313.  
  314. function JsonReader:ReadNumber()
  315. local result = self:Next()
  316. local peek = self:Peek()
  317. while peek ~= nil and string.find(
  318. peek,
  319. "[%+%-%d%.eE]") do
  320. result = result .. self:Next()
  321. peek = self:Peek()
  322. end
  323. result = tonumber(result)
  324. if result == nil then
  325. error(string.format(
  326. "Invalid number: '%s'",
  327. result))
  328. else
  329. return result
  330. end
  331. end
  332.  
  333. function JsonReader:ReadString()
  334. local result = ""
  335. assert(self:Next() == '"')
  336. while self:Peek() ~= '"' do
  337. local ch = self:Next()
  338. if ch == '\\' then
  339. ch = self:Next()
  340. if self.escapes[ch] then
  341. ch = self.escapes[ch]
  342. end
  343. end
  344. result = result .. ch
  345. end
  346. assert(self:Next() == '"')
  347. local fromunicode = function(m)
  348. return string.char(tonumber(m, 16))
  349. end
  350. return string.gsub(
  351. result,
  352. "u%x%x(%x%x)",
  353. fromunicode)
  354. end
  355.  
  356. function JsonReader:ReadComment()
  357. assert(self:Next() == '/')
  358. local second = self:Next()
  359. if second == '/' then
  360. self:ReadSingleLineComment()
  361. elseif second == '*' then
  362. self:ReadBlockComment()
  363. else
  364. error(string.format(
  365. "Invalid comment: %s",
  366. self:All()))
  367. end
  368. end
  369.  
  370. function JsonReader:ReadBlockComment()
  371. local done = false
  372. while not done do
  373. local ch = self:Next()
  374. if ch == '*' and self:Peek() == '/' then
  375. done = true
  376. end
  377. if not done and
  378. ch == '/' and
  379. self:Peek() == "*" then
  380. error(string.format(
  381. "Invalid comment: %s, '/*' illegal.",
  382. self:All()))
  383. end
  384. end
  385. self:Next()
  386. end
  387.  
  388. function JsonReader:ReadSingleLineComment()
  389. local ch = self:Next()
  390. while ch ~= '\r' and ch ~= '\n' do
  391. ch = self:Next()
  392. end
  393. end
  394.  
  395. function JsonReader:ReadArray()
  396. local result = {}
  397. assert(self:Next() == '[')
  398. local done = false
  399. if self:Peek() == ']' then
  400. done = true;
  401. end
  402. while not done do
  403. local item = self:Read()
  404. result[#result+1] = item
  405. self:SkipWhiteSpace()
  406. if self:Peek() == ']' then
  407. done = true
  408. end
  409. if not done then
  410. local ch = self:Next()
  411. if ch ~= ',' then
  412. error(string.format(
  413. "Invalid array: '%s' due to: '%s'",
  414. self:All(), ch))
  415. end
  416. end
  417. end
  418. assert(']' == self:Next())
  419. return result
  420. end
  421.  
  422. function JsonReader:ReadObject()
  423. local result = {}
  424. assert(self:Next() == '{')
  425. local done = false
  426. if self:Peek() == '}' then
  427. done = true
  428. end
  429. while not done do
  430. local key = self:Read()
  431. if type(key) ~= "string" then
  432. error(string.format(
  433. "Invalid non-string object key: %s",
  434. key))
  435. end
  436. self:SkipWhiteSpace()
  437. local ch = self:Next()
  438. if ch ~= ':' then
  439. error(string.format(
  440. "Invalid object: '%s' due to: '%s'",
  441. self:All(),
  442. ch))
  443. end
  444. self:SkipWhiteSpace()
  445. local val = self:Read()
  446. result[key] = val
  447. self:SkipWhiteSpace()
  448. if self:Peek() == '}' then
  449. done = true
  450. end
  451. if not done then
  452. ch = self:Next()
  453. if ch ~= ',' then
  454. error(string.format(
  455. "Invalid array: '%s' near: '%s'",
  456. self:All(),
  457. ch))
  458. end
  459. end
  460. end
  461. assert(self:Next() == "}")
  462. return result
  463. end
  464.  
  465. function JsonReader:SkipWhiteSpace()
  466. local p = self:Peek()
  467. while p ~= nil and string.find(p, "[%s/]") do
  468. if p == '/' then
  469. self:ReadComment()
  470. else
  471. self:Next()
  472. end
  473. p = self:Peek()
  474. end
  475. end
  476.  
  477. function JsonReader:Peek()
  478. return self.reader:Peek()
  479. end
  480.  
  481. function JsonReader:Next()
  482. return self.reader:Next()
  483. end
  484.  
  485. function JsonReader:All()
  486. return self.reader:All()
  487. end
  488.  
  489. function Encode(o)
  490. local writer = JsonWriter:New()
  491. writer:Write(o)
  492. return writer:ToString()
  493. end
  494.  
  495. function Decode(s)
  496. local reader = JsonReader:New(s)
  497. return reader:Read()
  498. end
  499.  
  500. function Null()
  501. return Null
  502. end
  503. -------------------- End JSON Parser ------------------------
  504.  
  505. t.DecodeJSON = function(jsonString)
  506. pcall(function() warn("RbxUtility.DecodeJSON is deprecated, please use Game:GetService('HttpService'):JSONDecode() instead.") end)
  507.  
  508. if type(jsonString) == "string" then
  509. return Decode(jsonString)
  510. end
  511. print("RbxUtil.DecodeJSON expects string argument!")
  512. return nil
  513. end
  514.  
  515. t.EncodeJSON = function(jsonTable)
  516. pcall(function() warn("RbxUtility.EncodeJSON is deprecated, please use Game:GetService('HttpService'):JSONEncode() instead.") end)
  517. return Encode(jsonTable)
  518. end
  519.  
  520.  
  521.  
  522.  
  523.  
  524.  
  525.  
  526.  
  527. ------------------------------------------------------------------------------------------------------------------------
  528. ------------------------------------------------------------------------------------------------------------------------
  529. ------------------------------------------------------------------------------------------------------------------------
  530. --------------------------------------------Terrain Utilities Begin-----------------------------------------------------
  531. ------------------------------------------------------------------------------------------------------------------------
  532. ------------------------------------------------------------------------------------------------------------------------
  533. ------------------------------------------------------------------------------------------------------------------------
  534. --makes a wedge at location x, y, z
  535. --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
  536. --returns true if made a wedge, false if the cell remains a block
  537. t.MakeWedge = function(x, y, z, defaultmaterial)
  538. return game:GetService("Terrain"):AutoWedgeCell(x,y,z)
  539. end
  540.  
  541. t.SelectTerrainRegion = function(regionToSelect, color, selectEmptyCells, selectionParent)
  542. local terrain = game:GetService("Workspace"):FindFirstChild("Terrain")
  543. if not terrain then return end
  544.  
  545. assert(regionToSelect)
  546. assert(color)
  547.  
  548. if not type(regionToSelect) == "Region3" then
  549. error("regionToSelect (first arg), should be of type Region3, but is type",type(regionToSelect))
  550. end
  551. if not type(color) == "BrickColor" then
  552. error("color (second arg), should be of type BrickColor, but is type",type(color))
  553. end
  554.  
  555. -- frequently used terrain calls (speeds up call, no lookup necessary)
  556. local GetCell = terrain.GetCell
  557. local WorldToCellPreferSolid = terrain.WorldToCellPreferSolid
  558. local CellCenterToWorld = terrain.CellCenterToWorld
  559. local emptyMaterial = Enum.CellMaterial.Empty
  560.  
  561. -- container for all adornments, passed back to user
  562. local selectionContainer = Instance.new("Model")
  563. selectionContainer.Name = "SelectionContainer"
  564. selectionContainer.Archivable = false
  565. if selectionParent then
  566. selectionContainer.Parent = selectionParent
  567. else
  568. selectionContainer.Parent = game:GetService("Workspace")
  569. end
  570.  
  571. local updateSelection = nil -- function we return to allow user to update selection
  572. local currentKeepAliveTag = nil -- a tag that determines whether adorns should be destroyed
  573. local aliveCounter = 0 -- helper for currentKeepAliveTag
  574. local lastRegion = nil -- used to stop updates that do nothing
  575. local adornments = {} -- contains all adornments
  576. local reusableAdorns = {}
  577.  
  578. local selectionPart = Instance.new("Part")
  579. selectionPart.Name = "SelectionPart"
  580. selectionPart.Transparency = 1
  581. selectionPart.Anchored = true
  582. selectionPart.Locked = true
  583. selectionPart.CanCollide = false
  584. selectionPart.Size = Vector3.new(4.2,4.2,4.2)
  585.  
  586. local selectionBox = Instance.new("SelectionBox")
  587.  
  588. -- srs translation from region3 to region3int16
  589. local function Region3ToRegion3int16(region3)
  590. local theLowVec = region3.CFrame.p - (region3.Size/2) + Vector3.new(2,2,2)
  591. local lowCell = WorldToCellPreferSolid(terrain,theLowVec)
  592.  
  593. local theHighVec = region3.CFrame.p + (region3.Size/2) - Vector3.new(2,2,2)
  594. local highCell = WorldToCellPreferSolid(terrain, theHighVec)
  595.  
  596. local highIntVec = Vector3int16.new(highCell.x,highCell.y,highCell.z)
  597. local lowIntVec = Vector3int16.new(lowCell.x,lowCell.y,lowCell.z)
  598.  
  599. return Region3int16.new(lowIntVec,highIntVec)
  600. end
  601.  
  602. -- helper function that creates the basis for a selection box
  603. function createAdornment(theColor)
  604. local selectionPartClone = nil
  605. local selectionBoxClone = nil
  606.  
  607. if #reusableAdorns > 0 then
  608. selectionPartClone = reusableAdorns[1]["part"]
  609. selectionBoxClone = reusableAdorns[1]["box"]
  610. table.remove(reusableAdorns,1)
  611.  
  612. selectionBoxClone.Visible = true
  613. else
  614. selectionPartClone = selectionPart:Clone()
  615. selectionPartClone.Archivable = false
  616.  
  617. selectionBoxClone = selectionBox:Clone()
  618. selectionBoxClone.Archivable = false
  619.  
  620. selectionBoxClone.Adornee = selectionPartClone
  621. selectionBoxClone.Parent = selectionContainer
  622.  
  623. selectionBoxClone.Adornee = selectionPartClone
  624.  
  625. selectionBoxClone.Parent = selectionContainer
  626. end
  627.  
  628. if theColor then
  629. selectionBoxClone.Color = theColor
  630. end
  631.  
  632. return selectionPartClone, selectionBoxClone
  633. end
  634.  
  635. -- iterates through all current adornments and deletes any that don't have latest tag
  636. function cleanUpAdornments()
  637. for cellPos, adornTable in pairs(adornments) do
  638.  
  639. if adornTable.KeepAlive ~= currentKeepAliveTag then -- old news, we should get rid of this
  640. adornTable.SelectionBox.Visible = false
  641. table.insert(reusableAdorns,{part = adornTable.SelectionPart, box = adornTable.SelectionBox})
  642. adornments[cellPos] = nil
  643. end
  644. end
  645. end
  646.  
  647. -- helper function to update tag
  648. function incrementAliveCounter()
  649. aliveCounter = aliveCounter + 1
  650. if aliveCounter > 1000000 then
  651. aliveCounter = 0
  652. end
  653. return aliveCounter
  654. end
  655.  
  656. -- finds full cells in region and adorns each cell with a box, with the argument color
  657. function adornFullCellsInRegion(region, color)
  658. local regionBegin = region.CFrame.p - (region.Size/2) + Vector3.new(2,2,2)
  659. local regionEnd = region.CFrame.p + (region.Size/2) - Vector3.new(2,2,2)
  660.  
  661. local cellPosBegin = WorldToCellPreferSolid(terrain, regionBegin)
  662. local cellPosEnd = WorldToCellPreferSolid(terrain, regionEnd)
  663.  
  664. currentKeepAliveTag = incrementAliveCounter()
  665. for y = cellPosBegin.y, cellPosEnd.y do
  666. for z = cellPosBegin.z, cellPosEnd.z do
  667. for x = cellPosBegin.x, cellPosEnd.x do
  668. local cellMaterial = GetCell(terrain, x, y, z)
  669.  
  670. if cellMaterial ~= emptyMaterial then
  671. local cframePos = CellCenterToWorld(terrain, x, y, z)
  672. local cellPos = Vector3int16.new(x,y,z)
  673.  
  674. local updated = false
  675. for cellPosAdorn, adornTable in pairs(adornments) do
  676. if cellPosAdorn == cellPos then
  677. adornTable.KeepAlive = currentKeepAliveTag
  678. if color then
  679. adornTable.SelectionBox.Color = color
  680. end
  681. updated = true
  682. break
  683. end
  684. end
  685.  
  686. if not updated then
  687. local selectionPart, selectionBox = createAdornment(color)
  688. selectionPart.Size = Vector3.new(4,4,4)
  689. selectionPart.CFrame = CFrame.new(cframePos)
  690. local adornTable = {SelectionPart = selectionPart, SelectionBox = selectionBox, KeepAlive = currentKeepAliveTag}
  691. adornments[cellPos] = adornTable
  692. end
  693. end
  694. end
  695. end
  696. end
  697. cleanUpAdornments()
  698. end
  699.  
  700.  
  701. ------------------------------------- setup code ------------------------------
  702. lastRegion = regionToSelect
  703.  
  704. if selectEmptyCells then -- use one big selection to represent the area selected
  705. local selectionPart, selectionBox = createAdornment(color)
  706.  
  707. selectionPart.Size = regionToSelect.Size
  708. selectionPart.CFrame = regionToSelect.CFrame
  709.  
  710. adornments.SelectionPart = selectionPart
  711. adornments.SelectionBox = selectionBox
  712.  
  713. updateSelection =
  714. function (newRegion, color)
  715. if newRegion and newRegion ~= lastRegion then
  716. lastRegion = newRegion
  717. selectionPart.Size = newRegion.Size
  718. selectionPart.CFrame = newRegion.CFrame
  719. end
  720. if color then
  721. selectionBox.Color = color
  722. end
  723. end
  724. else -- use individual cell adorns to represent the area selected
  725. adornFullCellsInRegion(regionToSelect, color)
  726. updateSelection =
  727. function (newRegion, color)
  728. if newRegion and newRegion ~= lastRegion then
  729. lastRegion = newRegion
  730. adornFullCellsInRegion(newRegion, color)
  731. end
  732. end
  733.  
  734. end
  735.  
  736. local destroyFunc = function()
  737. updateSelection = nil
  738. if selectionContainer then selectionContainer:Destroy() end
  739. adornments = nil
  740. end
  741.  
  742. return updateSelection, destroyFunc
  743. end
  744.  
  745. -----------------------------Terrain Utilities End-----------------------------
  746.  
  747.  
  748.  
  749.  
  750.  
  751.  
  752.  
  753. ------------------------------------------------------------------------------------------------------------------------
  754. ------------------------------------------------------------------------------------------------------------------------
  755. ------------------------------------------------------------------------------------------------------------------------
  756. ------------------------------------------------Signal class begin------------------------------------------------------
  757. ------------------------------------------------------------------------------------------------------------------------
  758. ------------------------------------------------------------------------------------------------------------------------
  759. ------------------------------------------------------------------------------------------------------------------------
  760. --[[
  761. A 'Signal' object identical to the internal RBXScriptSignal object in it's public API and semantics. This function
  762. can be used to create "custom events" for user-made code.
  763. API:
  764. Method :connect( function handler )
  765. Arguments: The function to connect to.
  766. Returns: A new connection object which can be used to disconnect the connection
  767. Description: Connects this signal to the function specified by |handler|. That is, when |fire( ... )| is called for
  768. the signal the |handler| will be called with the arguments given to |fire( ... )|. Note, the functions
  769. connected to a signal are called in NO PARTICULAR ORDER, so connecting one function after another does
  770. NOT mean that the first will be called before the second as a result of a call to |fire|.
  771.  
  772. Method :disconnect()
  773. Arguments: None
  774. Returns: None
  775. Description: Disconnects all of the functions connected to this signal.
  776.  
  777. Method :fire( ... )
  778. Arguments: Any arguments are accepted
  779. Returns: None
  780. Description: Calls all of the currently connected functions with the given arguments.
  781.  
  782. Method :wait()
  783. Arguments: None
  784. Returns: The arguments given to fire
  785. Description: This call blocks until
  786. ]]
  787.  
  788. function t.CreateSignal()
  789. local this = {}
  790.  
  791. local mBindableEvent = Instance.new('BindableEvent')
  792. local mAllCns = {} --all connection objects returned by mBindableEvent::connect
  793.  
  794. --main functions
  795. function this:connect(func)
  796. if self ~= this then error("connect must be called with `:`, not `.`", 2) end
  797. if type(func) ~= 'function' then
  798. error("Argument #1 of connect must be a function, got a "..type(func), 2)
  799. end
  800. local cn = mBindableEvent.Event:Connect(func)
  801. mAllCns[cn] = true
  802. local pubCn = {}
  803. function pubCn:disconnect()
  804. cn:Disconnect()
  805. mAllCns[cn] = nil
  806. end
  807. pubCn.Disconnect = pubCn.disconnect
  808.  
  809. return pubCn
  810. end
  811.  
  812. function this:disconnect()
  813. if self ~= this then error("disconnect must be called with `:`, not `.`", 2) end
  814. for cn, _ in pairs(mAllCns) do
  815. cn:Disconnect()
  816. mAllCns[cn] = nil
  817. end
  818. end
  819.  
  820. function this:wait()
  821. if self ~= this then error("wait must be called with `:`, not `.`", 2) end
  822. return mBindableEvent.Event:Wait()
  823. end
  824.  
  825. function this:fire(...)
  826. if self ~= this then error("fire must be called with `:`, not `.`", 2) end
  827. mBindableEvent:Fire(...)
  828. end
  829.  
  830. this.Connect = this.connect
  831. this.Disconnect = this.disconnect
  832. this.Wait = this.wait
  833. this.Fire = this.fire
  834.  
  835. return this
  836. end
  837.  
  838. ------------------------------------------------- Sigal class End ------------------------------------------------------
  839.  
  840.  
  841.  
  842.  
  843. ------------------------------------------------------------------------------------------------------------------------
  844. ------------------------------------------------------------------------------------------------------------------------
  845. ------------------------------------------------------------------------------------------------------------------------
  846. -----------------------------------------------Create Function Begins---------------------------------------------------
  847. ------------------------------------------------------------------------------------------------------------------------
  848. ------------------------------------------------------------------------------------------------------------------------
  849. ------------------------------------------------------------------------------------------------------------------------
  850. --[[
  851. A "Create" function for easy creation of Roblox instances. The function accepts a string which is the classname of
  852. the object to be created. The function then returns another function which either accepts accepts no arguments, in
  853. which case it simply creates an object of the given type, or a table argument that may contain several types of data,
  854. in which case it mutates the object in varying ways depending on the nature of the aggregate data. These are the
  855. type of data and what operation each will perform:
  856. 1) A string key mapping to some value:
  857. Key-Value pairs in this form will be treated as properties of the object, and will be assigned in NO PARTICULAR
  858. ORDER. If the order in which properties is assigned matter, then they must be assigned somewhere else than the
  859. |Create| call's body.
  860.  
  861. 2) An integral key mapping to another Instance:
  862. Normal numeric keys mapping to Instances will be treated as children if the object being created, and will be
  863. parented to it. This allows nice recursive calls to Create to create a whole hierarchy of objects without a
  864. need for temporary variables to store references to those objects.
  865.  
  866. 3) A key which is a value returned from Create.Event( eventname ), and a value which is a function function
  867. The Create.E( string ) function provides a limited way to connect to signals inside of a Create hierarchy
  868. for those who really want such a functionality. The name of the event whose name is passed to
  869. Create.E( string )
  870.  
  871. 4) A key which is the Create function itself, and a value which is a function
  872. The function will be run with the argument of the object itself after all other initialization of the object is
  873. done by create. This provides a way to do arbitrary things involving the object from withing the create
  874. hierarchy.
  875. Note: This function is called SYNCHRONOUSLY, that means that you should only so initialization in
  876. it, not stuff which requires waiting, as the Create call will block until it returns. While waiting in the
  877. constructor callback function is possible, it is probably not a good design choice.
  878. Note: Since the constructor function is called after all other initialization, a Create block cannot have two
  879. constructor functions, as it would not be possible to call both of them last, also, this would be unnecessary.
  880.  
  881.  
  882. Some example usages:
  883.  
  884. A simple example which uses the Create function to create a model object and assign two of it's properties.
  885. local model = Create'Model'{
  886. Name = 'A New model',
  887. Parent = game.Workspace,
  888. }
  889.  
  890.  
  891. An example where a larger hierarchy of object is made. After the call the hierarchy will look like this:
  892. Model_Container
  893. |-ObjectValue
  894. | |
  895. | `-BoolValueChild
  896. `-IntValue
  897.  
  898. local model = Create'Model'{
  899. Name = 'Model_Container',
  900. Create'ObjectValue'{
  901. Create'BoolValue'{
  902. Name = 'BoolValueChild',
  903. },
  904. },
  905. Create'IntValue'{},
  906. }
  907.  
  908.  
  909. An example using the event syntax:
  910.  
  911. local part = Create'Part'{
  912. [Create.E'Touched'] = function(part)
  913. print("I was touched by "..part.Name)
  914. end,
  915. }
  916.  
  917.  
  918. An example using the general constructor syntax:
  919.  
  920. local model = Create'Part'{
  921. [Create] = function(this)
  922. print("Constructor running!")
  923. this.Name = GetGlobalFoosAndBars(this)
  924. end,
  925. }
  926.  
  927.  
  928. Note: It is also perfectly legal to save a reference to the function returned by a call Create, this will not cause
  929. any unexpected behavior. EG:
  930. local partCreatingFunction = Create'Part'
  931. local part = partCreatingFunction()
  932. ]]
  933.  
  934. --the Create function need to be created as a functor, not a function, in order to support the Create.E syntax, so it
  935. --will be created in several steps rather than as a single function declaration.
  936. local function Create_PrivImpl(objectType)
  937. if type(objectType) ~= 'string' then
  938. error("Argument of Create must be a string", 2)
  939. end
  940. --return the proxy function that gives us the nice Create'string'{data} syntax
  941. --The first function call is a function call using Lua's single-string-argument syntax
  942. --The second function call is using Lua's single-table-argument syntax
  943. --Both can be chained together for the nice effect.
  944. return function(dat)
  945. --default to nothing, to handle the no argument given case
  946. dat = dat or {}
  947.  
  948. --make the object to mutate
  949. local obj = Instance.new(objectType)
  950. local parent = nil
  951.  
  952. --stored constructor function to be called after other initialization
  953. local ctor = nil
  954.  
  955. for k, v in pairs(dat) do
  956. --add property
  957. if type(k) == 'string' then
  958. if k == 'Parent' then
  959. -- Parent should always be set last, setting the Parent of a new object
  960. -- immediately makes performance worse for all subsequent property updates.
  961. parent = v
  962. else
  963. obj[k] = v
  964. end
  965.  
  966.  
  967. --add child
  968. elseif type(k) == 'number' then
  969. if type(v) ~= 'userdata' then
  970. error("Bad entry in Create body: Numeric keys must be paired with children, got a: "..type(v), 2)
  971. end
  972. v.Parent = obj
  973.  
  974.  
  975. --event connect
  976. elseif type(k) == 'table' and k.__eventname then
  977. if type(v) ~= 'function' then
  978. error("Bad entry in Create body: Key `[Create.E\'"..k.__eventname.."\']` must have a function value\
  979. got: "..tostring(v), 2)
  980. end
  981. obj[k.__eventname]:connect(v)
  982.  
  983.  
  984. --define constructor function
  985. elseif k == t.Create then
  986. if type(v) ~= 'function' then
  987. error("Bad entry in Create body: Key `[Create]` should be paired with a constructor function, \
  988. got: "..tostring(v), 2)
  989. elseif ctor then
  990. --ctor already exists, only one allowed
  991. error("Bad entry in Create body: Only one constructor function is allowed", 2)
  992. end
  993. ctor = v
  994.  
  995.  
  996. else
  997. error("Bad entry ("..tostring(k).." => "..tostring(v)..") in Create body", 2)
  998. end
  999. end
  1000.  
  1001. --apply constructor function if it exists
  1002. if ctor then
  1003. ctor(obj)
  1004. end
  1005.  
  1006. if parent then
  1007. obj.Parent = parent
  1008. end
  1009.  
  1010. --return the completed object
  1011. return obj
  1012. end
  1013. end
  1014.  
  1015. --now, create the functor:
  1016. t.Create = setmetatable({}, {__call = function(tb, ...) return Create_PrivImpl(...) end})
  1017.  
  1018. --and create the "Event.E" syntax stub. Really it's just a stub to construct a table which our Create
  1019. --function can recognize as special.
  1020. t.Create.E = function(eventName)
  1021. return {__eventname = eventName}
  1022. end
  1023.  
  1024. -------------------------------------------------Create function End----------------------------------------------------
  1025.  
  1026.  
  1027.  
  1028.  
  1029. ------------------------------------------------------------------------------------------------------------------------
  1030. ------------------------------------------------------------------------------------------------------------------------
  1031. ------------------------------------------------------------------------------------------------------------------------
  1032. ------------------------------------------------Documentation Begin-----------------------------------------------------
  1033. ------------------------------------------------------------------------------------------------------------------------
  1034. ------------------------------------------------------------------------------------------------------------------------
  1035. ------------------------------------------------------------------------------------------------------------------------
  1036.  
  1037. t.Help =
  1038. function(funcNameOrFunc)
  1039. --input argument can be a string or a function. Should return a description (of arguments and expected side effects)
  1040. if funcNameOrFunc == "DecodeJSON" or funcNameOrFunc == t.DecodeJSON then
  1041. return "Function DecodeJSON. " ..
  1042. "Arguments: (string). " ..
  1043. "Side effect: returns a table with all parsed JSON values"
  1044. end
  1045. if funcNameOrFunc == "EncodeJSON" or funcNameOrFunc == t.EncodeJSON then
  1046. return "Function EncodeJSON. " ..
  1047. "Arguments: (table). " ..
  1048. "Side effect: returns a string composed of argument table in JSON data format"
  1049. end
  1050. if funcNameOrFunc == "MakeWedge" or funcNameOrFunc == t.MakeWedge then
  1051. return "Function MakeWedge. " ..
  1052. "Arguments: (x, y, z, [default material]). " ..
  1053. "Description: Makes a wedge at location x, y, z. Sets cell x, y, z to default material if "..
  1054. "parameter is provided, if not sets cell x, y, z to be whatever material it previously was. "..
  1055. "Returns true if made a wedge, false if the cell remains a block "
  1056. end
  1057. if funcNameOrFunc == "SelectTerrainRegion" or funcNameOrFunc == t.SelectTerrainRegion then
  1058. return "Function SelectTerrainRegion. " ..
  1059. "Arguments: (regionToSelect, color, selectEmptyCells, selectionParent). " ..
  1060. "Description: Selects all terrain via a series of selection boxes within the regionToSelect " ..
  1061. "(this should be a region3 value). The selection box color is detemined by the color argument " ..
  1062. "(should be a brickcolor value). SelectionParent is the parent that the selection model gets placed to (optional)." ..
  1063. "SelectEmptyCells is bool, when true will select all cells in the " ..
  1064. "region, otherwise we only select non-empty cells. Returns a function that can update the selection," ..
  1065. "arguments to said function are a new region3 to select, and the adornment color (color arg is optional). " ..
  1066. "Also returns a second function that takes no arguments and destroys the selection"
  1067. end
  1068. if funcNameOrFunc == "CreateSignal" or funcNameOrFunc == t.CreateSignal then
  1069. return "Function CreateSignal. "..
  1070. "Arguments: None. "..
  1071. "Returns: The newly created Signal object. This object is identical to the RBXScriptSignal class "..
  1072. "used for events in Objects, but is a Lua-side object so it can be used to create custom events in"..
  1073. "Lua code. "..
  1074. "Methods of the Signal object: :connect, :wait, :fire, :disconnect. "..
  1075. "For more info you can pass the method name to the Help function, or view the wiki page "..
  1076. "for this library. EG: Help('Signal:connect')."
  1077. end
  1078. if funcNameOrFunc == "Signal:connect" then
  1079. return "Method Signal:connect. "..
  1080. "Arguments: (function handler). "..
  1081. "Return: A connection object which can be used to disconnect the connection to this handler. "..
  1082. "Description: Connectes a handler function to this Signal, so that when |fire| is called the "..
  1083. "handler function will be called with the arguments passed to |fire|."
  1084. end
  1085. if funcNameOrFunc == "Signal:wait" then
  1086. return "Method Signal:wait. "..
  1087. "Arguments: None. "..
  1088. "Returns: The arguments passed to the next call to |fire|. "..
  1089. "Description: This call does not return until the next call to |fire| is made, at which point it "..
  1090. "will return the values which were passed as arguments to that |fire| call."
  1091. end
  1092. if funcNameOrFunc == "Signal:fire" then
  1093. return "Method Signal:fire. "..
  1094. "Arguments: Any number of arguments of any type. "..
  1095. "Returns: None. "..
  1096. "Description: This call will invoke any connected handler functions, and notify any waiting code "..
  1097. "attached to this Signal to continue, with the arguments passed to this function. Note: The calls "..
  1098. "to handlers are made asynchronously, so this call will return immediately regardless of how long "..
  1099. "it takes the connected handler functions to complete."
  1100. end
  1101. if funcNameOrFunc == "Signal:disconnect" then
  1102. return "Method Signal:disconnect. "..
  1103. "Arguments: None. "..
  1104. "Returns: None. "..
  1105. "Description: This call disconnects all handlers attacched to this function, note however, it "..
  1106. "does NOT make waiting code continue, as is the behavior of normal Roblox events. This method "..
  1107. "can also be called on the connection object which is returned from Signal:connect to only "..
  1108. "disconnect a single handler, as opposed to this method, which will disconnect all handlers."
  1109. end
  1110. if funcNameOrFunc == "Create" then
  1111. return "Function Create. "..
  1112. "Arguments: A table containing information about how to construct a collection of objects. "..
  1113. "Returns: The constructed objects. "..
  1114. "Descrition: Create is a very powerfull function, whose description is too long to fit here, and "..
  1115. "is best described via example, please see the wiki page for a description of how to use it."
  1116. end
  1117. end
  1118.  
  1119. --------------------------------------------Documentation Ends----------------------------------------------------------
  1120.  
  1121. return t
  1122. end
  1123.  
  1124. --[[ Name : Gale Fighter ]]--
  1125. -------------------------------------------------------
  1126. --A Collaboration Between makhail07 and KillerDarkness0105
  1127.  
  1128. --Base Animaion by makhail07, attacks by KillerDarkness0105
  1129. -------------------------------------------------------
  1130.  
  1131.  
  1132. local FavIDs = {
  1133. 340106355, --Nefl Crystals
  1134. 927529620, --Dimension
  1135. 876981900, --Fantasy
  1136. 398987889, --Ordinary Days
  1137. 1117396305, --Oh wait, it's you.
  1138. 885996042, --Action Winter Journey
  1139. 919231299, --Sprawling Idiot Effigy
  1140. 743466274, --Good Day Sunshine
  1141. 727411183, --Knife Fight
  1142. 1402748531, --The Earth Is Counting On You!
  1143. 595230126 --Robot Language
  1144. }
  1145.  
  1146.  
  1147.  
  1148. --The reality of my life isn't real but a Universe -makhail07
  1149. wait(0.2)
  1150. local plr = game:GetService("Players").LocalPlayer
  1151. print('Local User is '..plr.Name)
  1152. print('Gale Fighter Loaded')
  1153. print('The Fighter that is as fast as wind, a true Fighter')
  1154. local char = plr.Character.NullwareReanim
  1155. local hum = char.Humanoid
  1156. local hed = char.Head
  1157. local root = char.HumanoidRootPart
  1158. local rootj = root.RootJoint
  1159. local tors = char.Torso
  1160. local ra = char["Right Arm"]
  1161. local la = char["Left Arm"]
  1162. local rl = char["Right Leg"]
  1163. local ll = char["Left Leg"]
  1164. local neck = tors["Neck"]
  1165. local mouse = plr:GetMouse()
  1166. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  1167. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  1168. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  1169. local maincolor = BrickColor.new("Institutional white")
  1170. hum.MaxHealth = 200
  1171. hum.Health = 200
  1172.  
  1173. local hrp = game:GetService("Players").LocalPlayer.Character.HumanoidRootPart
  1174.  
  1175. hrp.Name = "HumanoidRootPart"
  1176. hrp.Transparency = 0.5
  1177. hrp.Anchored = false
  1178. if hrp:FindFirstChildOfClass("AlignPosition") then
  1179. hrp:FindFirstChildOfClass("AlignPosition"):Destroy()
  1180. end
  1181. if hrp:FindFirstChildOfClass("AlignOrientation") then
  1182. hrp:FindFirstChildOfClass("AlignOrientation"):Destroy()
  1183. end
  1184. local bp = Instance.new("BodyPosition", hrp)
  1185. bp.Position = hrp.Position
  1186. bp.D = 9999999
  1187. bp.P = 999999999999999
  1188. bp.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  1189. local flinger = Instance.new("BodyAngularVelocity",hrp)
  1190. flinger.MaxTorque = Vector3.new(math.huge,math.huge,math.huge)
  1191. flinger.P = 1000000000000000000000000000
  1192. flinger.AngularVelocity = Vector3.new(10000,10000,10000)
  1193.  
  1194. spawn(function()
  1195. while game:GetService("RunService").Heartbeat:Wait() do
  1196. bp.Position = game:GetService("Players").LocalPlayer.Character["NullwareReanim"].Torso.Position
  1197. end
  1198. end)
  1199.  
  1200. -------------------------------------------------------
  1201. --Start Good Stuff--
  1202. -------------------------------------------------------
  1203. cam = game.Workspace.CurrentCamera
  1204. CF = CFrame.new
  1205. angles = CFrame.Angles
  1206. attack = false
  1207. Euler = CFrame.fromEulerAnglesXYZ
  1208. Rad = math.rad
  1209. IT = Instance.new
  1210. BrickC = BrickColor.new
  1211. Cos = math.cos
  1212. Acos = math.acos
  1213. Sin = math.sin
  1214. Asin = math.asin
  1215. Abs = math.abs
  1216. Mrandom = math.random
  1217. Floor = math.floor
  1218. -------------------------------------------------------
  1219. --End Good Stuff--
  1220. -------------------------------------------------------
  1221. necko = CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1222. RSH, LSH = nil, nil
  1223. RW = Instance.new("Weld")
  1224. LW = Instance.new("Weld")
  1225. RH = tors["Right Hip"]
  1226. LH = tors["Left Hip"]
  1227. RSH = tors["Right Shoulder"]
  1228. LSH = tors["Left Shoulder"]
  1229. RSH.Parent = nil
  1230. LSH.Parent = nil
  1231. RW.Name = "RW"
  1232. RW.Part0 = tors
  1233. RW.C0 = CF(1.5, 0.5, 0)
  1234. RW.C1 = CF(0, 0.5, 0)
  1235. RW.Part1 = ra
  1236. RW.Parent = tors
  1237. LW.Name = "LW"
  1238. LW.Part0 = tors
  1239. LW.C0 = CF(-1.5, 0.5, 0)
  1240. LW.C1 = CF(0, 0.5, 0)
  1241. LW.Part1 = la
  1242. LW.Parent = tors
  1243. vt = Vector3.new
  1244. Effects = {}
  1245. -------------------------------------------------------
  1246. --Start HeartBeat--
  1247. -------------------------------------------------------
  1248. ArtificialHB = Instance.new("BindableEvent", script)
  1249. ArtificialHB.Name = "Heartbeat"
  1250. script:WaitForChild("Heartbeat")
  1251.  
  1252. frame = 1 / 90
  1253. tf = 0
  1254. allowframeloss = false
  1255. tossremainder = false
  1256.  
  1257.  
  1258. lastframe = tick()
  1259. script.Heartbeat:Fire()
  1260.  
  1261.  
  1262. game:GetService("RunService").Heartbeat:connect(function(s, p)
  1263. tf = tf + s
  1264. if tf >= frame then
  1265. if allowframeloss then
  1266. script.Heartbeat:Fire()
  1267. lastframe = tick()
  1268. else
  1269. for i = 1, math.floor(tf / frame) do
  1270. script.Heartbeat:Fire()
  1271. end
  1272. lastframe = tick()
  1273. end
  1274. if tossremainder then
  1275. tf = 0
  1276. else
  1277. tf = tf - frame * math.floor(tf / frame)
  1278. end
  1279. end
  1280. end)
  1281. -------------------------------------------------------
  1282. --End HeartBeat--
  1283. -------------------------------------------------------
  1284.  
  1285.  
  1286.  
  1287. -------------------------------------------------------
  1288. --Start Combo Function--
  1289. -------------------------------------------------------
  1290. local comboing = false
  1291. local combohits = 0
  1292. local combotime = 0
  1293. local maxtime = 65
  1294.  
  1295.  
  1296.  
  1297. function sandbox(var,func)
  1298. local env = getfenv(func)
  1299. local newenv = setmetatable({},{
  1300. __index = function(self,k)
  1301. if k=="script" then
  1302. return var
  1303. else
  1304. return env[k]
  1305. end
  1306. end,
  1307. })
  1308. setfenv(func,newenv)
  1309. return func
  1310. end
  1311. cors = {}
  1312. mas = Instance.new("Model",game:GetService("Lighting"))
  1313. comboframe = Instance.new("ScreenGui")
  1314. Frame1 = Instance.new("Frame")
  1315. Frame2 = Instance.new("Frame")
  1316. TextLabel3 = Instance.new("TextLabel")
  1317. comboframe.Name = "combinserter"
  1318. comboframe.Parent = mas
  1319. Frame1.Name = "combtimegui"
  1320. Frame1.Parent = comboframe
  1321. Frame1.Size = UDim2.new(0, 300, 0, 14)
  1322. Frame1.Position = UDim2.new(0, 900, 0.629999971, 0)
  1323. Frame1.BackgroundColor3 = Color3.new(0, 0, 0)
  1324. Frame1.BorderColor3 = Color3.new(0.0313726, 0.0470588, 0.0627451)
  1325. Frame1.BorderSizePixel = 5
  1326. Frame2.Name = "combtimeoverlay"
  1327. Frame2.Parent = Frame1
  1328. Frame2.Size = UDim2.new(0, 0, 0, 14)
  1329. Frame2.BackgroundColor3 = Color3.new(0, 1, 0)
  1330. Frame2.ZIndex = 2
  1331. TextLabel3.Parent = Frame2
  1332. TextLabel3.Transparency = 0
  1333. TextLabel3.Size = UDim2.new(0, 300, 0, 50)
  1334. TextLabel3.Text ="Hits: "..combohits
  1335. TextLabel3.Position = UDim2.new(0, 0, -5.5999999, 0)
  1336. TextLabel3.BackgroundColor3 = Color3.new(1, 1, 1)
  1337. TextLabel3.BackgroundTransparency = 1
  1338. TextLabel3.Font = Enum.Font.Bodoni
  1339. TextLabel3.FontSize = Enum.FontSize.Size60
  1340. TextLabel3.TextColor3 = Color3.new(0, 1, 0)
  1341. TextLabel3.TextStrokeTransparency = 0
  1342. gui = game:GetService("Players").LocalPlayer.PlayerGui
  1343. for i,v in pairs(mas:GetChildren()) do
  1344. v.Parent = game:GetService("Players").LocalPlayer.PlayerGui
  1345. pcall(function() v:MakeJoints() end)
  1346. end
  1347. mas:Destroy()
  1348. for i,v in pairs(cors) do
  1349. spawn(function()
  1350. pcall(v)
  1351. end)
  1352. end
  1353.  
  1354.  
  1355.  
  1356.  
  1357.  
  1358. coroutine.resume(coroutine.create(function()
  1359. while true do
  1360. wait()
  1361.  
  1362.  
  1363. if combotime>65 then
  1364. combotime = 65
  1365. end
  1366.  
  1367.  
  1368.  
  1369.  
  1370.  
  1371. if combotime>.1 and comboing == true then
  1372. TextLabel3.Transparency = 0
  1373. TextLabel3.TextStrokeTransparency = 0
  1374. TextLabel3.BackgroundTransparency = 1
  1375. Frame1.Transparency = 0
  1376. Frame2.Transparency = 0
  1377. TextLabel3.Text ="Hits: "..combohits
  1378. combotime = combotime - .34
  1379. Frame2.Size = Frame2.Size:lerp(UDim2.new(0, combotime/maxtime*300, 0, 14),0.42)
  1380. end
  1381.  
  1382.  
  1383.  
  1384.  
  1385. if combotime<.1 then
  1386. TextLabel3.BackgroundTransparency = 1
  1387. TextLabel3.Transparency = 1
  1388. TextLabel3.TextStrokeTransparency = 1
  1389.  
  1390. Frame2.Size = UDim2.new(0, 0, 0, 14)
  1391. combotime = 0
  1392. comboing = false
  1393. Frame1.Transparency = 1
  1394. Frame2.Transparency = 1
  1395. combohits = 0
  1396.  
  1397. end
  1398. end
  1399. end))
  1400.  
  1401.  
  1402.  
  1403. -------------------------------------------------------
  1404. --End Combo Function--
  1405. -------------------------------------------------------
  1406.  
  1407. -------------------------------------------------------
  1408. --Start Important Functions--
  1409. -------------------------------------------------------
  1410. function swait(num)
  1411. if num == 0 or num == nil then
  1412. game:service("RunService").Stepped:wait(0)
  1413. else
  1414. for i = 0, num do
  1415. game:service("RunService").Stepped:wait(0)
  1416. end
  1417. end
  1418. end
  1419. function thread(f)
  1420. coroutine.resume(coroutine.create(f))
  1421. end
  1422. function clerp(a, b, t)
  1423. local qa = {
  1424. QuaternionFromCFrame(a)
  1425. }
  1426. local qb = {
  1427. QuaternionFromCFrame(b)
  1428. }
  1429. local ax, ay, az = a.x, a.y, a.z
  1430. local bx, by, bz = b.x, b.y, b.z
  1431. local _t = 1 - t
  1432. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  1433. end
  1434. function QuaternionFromCFrame(cf)
  1435. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1436. local trace = m00 + m11 + m22
  1437. if trace > 0 then
  1438. local s = math.sqrt(1 + trace)
  1439. local recip = 0.5 / s
  1440. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  1441. else
  1442. local i = 0
  1443. if m00 < m11 then
  1444. i = 1
  1445. end
  1446. if m22 > (i == 0 and m00 or m11) then
  1447. i = 2
  1448. end
  1449. if i == 0 then
  1450. local s = math.sqrt(m00 - m11 - m22 + 1)
  1451. local recip = 0.5 / s
  1452. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  1453. elseif i == 1 then
  1454. local s = math.sqrt(m11 - m22 - m00 + 1)
  1455. local recip = 0.5 / s
  1456. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  1457. elseif i == 2 then
  1458. local s = math.sqrt(m22 - m00 - m11 + 1)
  1459. local recip = 0.5 / s
  1460. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  1461. end
  1462. end
  1463. end
  1464. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1465. local xs, ys, zs = x + x, y + y, z + z
  1466. local wx, wy, wz = w * xs, w * ys, w * zs
  1467. local xx = x * xs
  1468. local xy = x * ys
  1469. local xz = x * zs
  1470. local yy = y * ys
  1471. local yz = y * zs
  1472. local zz = z * zs
  1473. 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))
  1474. end
  1475. function QuaternionSlerp(a, b, t)
  1476. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  1477. local startInterp, finishInterp
  1478. if cosTheta >= 1.0E-4 then
  1479. if 1 - cosTheta > 1.0E-4 then
  1480. local theta = math.acos(cosTheta)
  1481. local invSinTheta = 1 / Sin(theta)
  1482. startInterp = Sin((1 - t) * theta) * invSinTheta
  1483. finishInterp = Sin(t * theta) * invSinTheta
  1484. else
  1485. startInterp = 1 - t
  1486. finishInterp = t
  1487. end
  1488. elseif 1 + cosTheta > 1.0E-4 then
  1489. local theta = math.acos(-cosTheta)
  1490. local invSinTheta = 1 / Sin(theta)
  1491. startInterp = Sin((t - 1) * theta) * invSinTheta
  1492. finishInterp = Sin(t * theta) * invSinTheta
  1493. else
  1494. startInterp = t - 1
  1495. finishInterp = t
  1496. end
  1497. 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
  1498. end
  1499. function rayCast(Position, Direction, Range, Ignore)
  1500. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  1501. end
  1502. local RbxUtility = LoadLibrary("RbxUtility")
  1503. local Create = RbxUtility.Create
  1504.  
  1505. -------------------------------------------------------
  1506. --Start Damage Function--
  1507. -------------------------------------------------------
  1508.  
  1509. -------------------------------------------------------
  1510. --End Damage Function--
  1511. -------------------------------------------------------
  1512.  
  1513. -------------------------------------------------------
  1514. --Start Damage Function Customization--
  1515. -------------------------------------------------------
  1516. function ShowDamage(Pos, Text, Time, Color)
  1517. local Rate = (1 / 30)
  1518. local Pos = (Pos or Vector3.new(0, 0, 0))
  1519. local Text = (Text or "")
  1520. local Time = (Time or 2)
  1521. local Color = (Color or Color3.new(1, 0, 1))
  1522. local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  1523. EffectPart.Anchored = true
  1524. local BillboardGui = Create("BillboardGui"){
  1525. Size = UDim2.new(3, 0, 3, 0),
  1526. Adornee = EffectPart,
  1527. Parent = EffectPart,
  1528. }
  1529. local TextLabel = Create("TextLabel"){
  1530. BackgroundTransparency = 1,
  1531. Size = UDim2.new(1, 0, 1, 0),
  1532. Text = Text,
  1533. Font = "Bodoni",
  1534. TextColor3 = Color,
  1535. TextScaled = true,
  1536. TextStrokeColor3 = Color3.fromRGB(0,0,0),
  1537. Parent = BillboardGui,
  1538. }
  1539. game.Debris:AddItem(EffectPart, (Time))
  1540. EffectPart.Parent = game:GetService("Workspace")
  1541. delay(0, function()
  1542. local Frames = (Time / Rate)
  1543. for Frame = 1, Frames do
  1544. wait(Rate)
  1545. local Percent = (Frame / Frames)
  1546. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  1547. TextLabel.TextTransparency = Percent
  1548. end
  1549. if EffectPart and EffectPart.Parent then
  1550. EffectPart:Destroy()
  1551. end
  1552. end)
  1553. end
  1554. -------------------------------------------------------
  1555. --End Damage Function Customization--
  1556. -------------------------------------------------------
  1557.  
  1558. CFuncs = {
  1559. Part = {
  1560. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1561. local Part = Create("Part")({
  1562. Parent = Parent,
  1563. Reflectance = Reflectance,
  1564. Transparency = Transparency,
  1565. CanCollide = false,
  1566. Locked = true,
  1567. BrickColor = BrickColor.new(tostring(BColor)),
  1568. Name = Name,
  1569. Size = Size,
  1570. Material = Material
  1571. })
  1572. RemoveOutlines(Part)
  1573. return Part
  1574. end
  1575. },
  1576. Mesh = {
  1577. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1578. local Msh = Create(Mesh)({
  1579. Parent = Part,
  1580. Offset = OffSet,
  1581. Scale = Scale
  1582. })
  1583. if Mesh == "SpecialMesh" then
  1584. Msh.MeshType = MeshType
  1585. Msh.MeshId = MeshId
  1586. end
  1587. return Msh
  1588. end
  1589. },
  1590. Mesh = {
  1591. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1592. local Msh = Create(Mesh)({
  1593. Parent = Part,
  1594. Offset = OffSet,
  1595. Scale = Scale
  1596. })
  1597. if Mesh == "SpecialMesh" then
  1598. Msh.MeshType = MeshType
  1599. Msh.MeshId = MeshId
  1600. end
  1601. return Msh
  1602. end
  1603. },
  1604. Weld = {
  1605. Create = function(Parent, Part0, Part1, C0, C1)
  1606. local Weld = Create("Weld")({
  1607. Parent = Parent,
  1608. Part0 = Part0,
  1609. Part1 = Part1,
  1610. C0 = C0,
  1611. C1 = C1
  1612. })
  1613. return Weld
  1614. end
  1615. },
  1616. Sound = {
  1617. Create = function(id, par, vol, pit)
  1618. coroutine.resume(coroutine.create(function()
  1619. local S = Create("Sound")({
  1620. Volume = vol,
  1621. Pitch = pit or 1,
  1622. SoundId = id,
  1623. Parent = par or workspace
  1624. })
  1625. wait()
  1626. S:play()
  1627. game:GetService("Debris"):AddItem(S, 6)
  1628. end))
  1629. end
  1630. },
  1631. ParticleEmitter = {
  1632. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  1633. local fp = Create("ParticleEmitter")({
  1634. Parent = Parent,
  1635. Color = ColorSequence.new(Color1, Color2),
  1636. LightEmission = LightEmission,
  1637. Size = Size,
  1638. Texture = Texture,
  1639. Transparency = Transparency,
  1640. ZOffset = ZOffset,
  1641. Acceleration = Accel,
  1642. Drag = Drag,
  1643. LockedToPart = LockedToPart,
  1644. VelocityInheritance = VelocityInheritance,
  1645. EmissionDirection = EmissionDirection,
  1646. Enabled = Enabled,
  1647. Lifetime = LifeTime,
  1648. Rate = Rate,
  1649. Rotation = Rotation,
  1650. RotSpeed = RotSpeed,
  1651. Speed = Speed,
  1652. VelocitySpread = VelocitySpread
  1653. })
  1654. return fp
  1655. end
  1656. }
  1657. }
  1658. function RemoveOutlines(part)
  1659. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  1660. end
  1661. function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  1662. local Part = Create("Part")({
  1663. formFactor = FormFactor,
  1664. Parent = Parent,
  1665. Reflectance = Reflectance,
  1666. Transparency = Transparency,
  1667. CanCollide = false,
  1668. Locked = true,
  1669. BrickColor = BrickColor.new(tostring(BColor)),
  1670. Name = Name,
  1671. Size = Size,
  1672. Material = Material
  1673. })
  1674. RemoveOutlines(Part)
  1675. return Part
  1676. end
  1677. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  1678. local Msh = Create(Mesh)({
  1679. Parent = Part,
  1680. Offset = OffSet,
  1681. Scale = Scale
  1682. })
  1683. if Mesh == "SpecialMesh" then
  1684. Msh.MeshType = MeshType
  1685. Msh.MeshId = MeshId
  1686. end
  1687. return Msh
  1688. end
  1689. function CreateWeld(Parent, Part0, Part1, C0, C1)
  1690. local Weld = Create("Weld")({
  1691. Parent = Parent,
  1692. Part0 = Part0,
  1693. Part1 = Part1,
  1694. C0 = C0,
  1695. C1 = C1
  1696. })
  1697. return Weld
  1698. end
  1699.  
  1700.  
  1701. -------------------------------------------------------
  1702. --Start Effect Function--
  1703. -------------------------------------------------------
  1704. EffectModel = Instance.new("Model", char)
  1705. Effects = {
  1706. Block = {
  1707. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  1708. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1709. prt.Anchored = true
  1710. prt.CFrame = cframe
  1711. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1712. game:GetService("Debris"):AddItem(prt, 10)
  1713. if Type == 1 or Type == nil then
  1714. table.insert(Effects, {
  1715. prt,
  1716. "Block1",
  1717. delay,
  1718. x3,
  1719. y3,
  1720. z3,
  1721. msh
  1722. })
  1723. elseif Type == 2 then
  1724. table.insert(Effects, {
  1725. prt,
  1726. "Block2",
  1727. delay,
  1728. x3,
  1729. y3,
  1730. z3,
  1731. msh
  1732. })
  1733. else
  1734. table.insert(Effects, {
  1735. prt,
  1736. "Block3",
  1737. delay,
  1738. x3,
  1739. y3,
  1740. z3,
  1741. msh
  1742. })
  1743. end
  1744. end
  1745. },
  1746. Sphere = {
  1747. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1748. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  1749. prt.Anchored = true
  1750. prt.CFrame = cframe
  1751. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1752. game:GetService("Debris"):AddItem(prt, 10)
  1753. table.insert(Effects, {
  1754. prt,
  1755. "Cylinder",
  1756. delay,
  1757. x3,
  1758. y3,
  1759. z3,
  1760. msh
  1761. })
  1762. end
  1763. },
  1764. Cylinder = {
  1765. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1766. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1767. prt.Anchored = true
  1768. prt.CFrame = cframe
  1769. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1770. game:GetService("Debris"):AddItem(prt, 10)
  1771. table.insert(Effects, {
  1772. prt,
  1773. "Cylinder",
  1774. delay,
  1775. x3,
  1776. y3,
  1777. z3,
  1778. msh
  1779. })
  1780. end
  1781. },
  1782. Wave = {
  1783. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1784. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  1785. prt.Anchored = true
  1786. prt.CFrame = cframe
  1787. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1 / 60, y1 / 60, z1 / 60))
  1788. game:GetService("Debris"):AddItem(prt, 10)
  1789. table.insert(Effects, {
  1790. prt,
  1791. "Cylinder",
  1792. delay,
  1793. x3 / 60,
  1794. y3 / 60,
  1795. z3 / 60,
  1796. msh
  1797. })
  1798. end
  1799. },
  1800. Ring = {
  1801. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1802. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1803. prt.Anchored = true
  1804. prt.CFrame = cframe
  1805. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1806. game:GetService("Debris"):AddItem(prt, 10)
  1807. table.insert(Effects, {
  1808. prt,
  1809. "Cylinder",
  1810. delay,
  1811. x3,
  1812. y3,
  1813. z3,
  1814. msh
  1815. })
  1816. end
  1817. },
  1818. Break = {
  1819. Create = function(brickcolor, cframe, x1, y1, z1)
  1820. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  1821. prt.Anchored = true
  1822. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1823. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1824. local num = math.random(10, 50) / 1000
  1825. game:GetService("Debris"):AddItem(prt, 10)
  1826. table.insert(Effects, {
  1827. prt,
  1828. "Shatter",
  1829. num,
  1830. prt.CFrame,
  1831. math.random() - math.random(),
  1832. 0,
  1833. math.random(50, 100) / 100
  1834. })
  1835. end
  1836. },
  1837. Spiral = {
  1838. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1839. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1840. prt.Anchored = true
  1841. prt.CFrame = cframe
  1842. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://1051557", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1843. game:GetService("Debris"):AddItem(prt, 10)
  1844. table.insert(Effects, {
  1845. prt,
  1846. "Cylinder",
  1847. delay,
  1848. x3,
  1849. y3,
  1850. z3,
  1851. msh
  1852. })
  1853. end
  1854. },
  1855. Push = {
  1856. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1857. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1858. prt.Anchored = true
  1859. prt.CFrame = cframe
  1860. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://437347603", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1861. game:GetService("Debris"):AddItem(prt, 10)
  1862. table.insert(Effects, {
  1863. prt,
  1864. "Cylinder",
  1865. delay,
  1866. x3,
  1867. y3,
  1868. z3,
  1869. msh
  1870. })
  1871. end
  1872. }
  1873. }
  1874. function part(formfactor ,parent, reflectance, transparency, brickcolor, name, size)
  1875. local fp = IT("Part")
  1876. fp.formFactor = formfactor
  1877. fp.Parent = parent
  1878. fp.Reflectance = reflectance
  1879. fp.Transparency = transparency
  1880. fp.CanCollide = false
  1881. fp.Locked = true
  1882. fp.BrickColor = brickcolor
  1883. fp.Name = name
  1884. fp.Size = size
  1885. fp.Position = tors.Position
  1886. RemoveOutlines(fp)
  1887. fp.Material = "SmoothPlastic"
  1888. fp:BreakJoints()
  1889. return fp
  1890. end
  1891.  
  1892. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  1893. local mesh = IT(Mesh)
  1894. mesh.Parent = part
  1895. if Mesh == "SpecialMesh" then
  1896. mesh.MeshType = meshtype
  1897. if meshid ~= "nil" then
  1898. mesh.MeshId = "http://www.roblox.com/asset/?id="..meshid
  1899. end
  1900. end
  1901. mesh.Offset = offset
  1902. mesh.Scale = scale
  1903. return mesh
  1904. end
  1905.  
  1906. function Magic(bonuspeed, type, pos, scale, value, color, MType)
  1907. local type = type
  1908. local rng = Instance.new("Part", char)
  1909. rng.Anchored = true
  1910. rng.BrickColor = color
  1911. rng.CanCollide = false
  1912. rng.FormFactor = 3
  1913. rng.Name = "Ring"
  1914. rng.Material = "Neon"
  1915. rng.Size = Vector3.new(1, 1, 1)
  1916. rng.Transparency = 0
  1917. rng.TopSurface = 0
  1918. rng.BottomSurface = 0
  1919. rng.CFrame = pos
  1920. local rngm = Instance.new("SpecialMesh", rng)
  1921. rngm.MeshType = MType
  1922. rngm.Scale = scale
  1923. local scaler2 = 1
  1924. if type == "Add" then
  1925. scaler2 = 1 * value
  1926. elseif type == "Divide" then
  1927. scaler2 = 1 / value
  1928. end
  1929. coroutine.resume(coroutine.create(function()
  1930. for i = 0, 10 / bonuspeed, 0.1 do
  1931. swait()
  1932. if type == "Add" then
  1933. scaler2 = scaler2 - 0.01 * value / bonuspeed
  1934. elseif type == "Divide" then
  1935. scaler2 = scaler2 - 0.01 / value * bonuspeed
  1936. end
  1937. rng.Transparency = rng.Transparency + 0.01 * bonuspeed
  1938. rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, scaler2 * bonuspeed)
  1939. end
  1940. rng:Destroy()
  1941. end))
  1942. end
  1943.  
  1944. function Eviscerate(dude)
  1945. if dude.Name ~= char then
  1946. local bgf = IT("BodyGyro", dude.Head)
  1947. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0)
  1948. local val = IT("BoolValue", dude)
  1949. val.Name = "IsHit"
  1950. local ds = coroutine.wrap(function()
  1951. dude:WaitForChild("Head"):BreakJoints()
  1952. wait(0.5)
  1953. target = nil
  1954. coroutine.resume(coroutine.create(function()
  1955. for i, v in pairs(dude:GetChildren()) do
  1956. if v:IsA("Accessory") then
  1957. v:Destroy()
  1958. end
  1959. if v:IsA("Humanoid") then
  1960. v:Destroy()
  1961. end
  1962. if v:IsA("CharacterMesh") then
  1963. v:Destroy()
  1964. end
  1965. if v:IsA("Model") then
  1966. v:Destroy()
  1967. end
  1968. if v:IsA("Part") or v:IsA("MeshPart") then
  1969. for x, o in pairs(v:GetChildren()) do
  1970. if o:IsA("Decal") then
  1971. o:Destroy()
  1972. end
  1973. end
  1974. coroutine.resume(coroutine.create(function()
  1975. v.Material = "Neon"
  1976. v.CanCollide = false
  1977. local PartEmmit1 = IT("ParticleEmitter", v)
  1978. PartEmmit1.LightEmission = 1
  1979. PartEmmit1.Texture = "rbxassetid://284205403"
  1980. PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  1981. PartEmmit1.Rate = 150
  1982. PartEmmit1.Lifetime = NumberRange.new(1)
  1983. PartEmmit1.Size = NumberSequence.new({
  1984. NumberSequenceKeypoint.new(0, 0.75, 0),
  1985. NumberSequenceKeypoint.new(1, 0, 0)
  1986. })
  1987. PartEmmit1.Transparency = NumberSequence.new({
  1988. NumberSequenceKeypoint.new(0, 0, 0),
  1989. NumberSequenceKeypoint.new(1, 1, 0)
  1990. })
  1991. PartEmmit1.Speed = NumberRange.new(0, 0)
  1992. PartEmmit1.VelocitySpread = 30000
  1993. PartEmmit1.Rotation = NumberRange.new(-500, 500)
  1994. PartEmmit1.RotSpeed = NumberRange.new(-500, 500)
  1995. local BodPoss = IT("BodyPosition", v)
  1996. BodPoss.P = 3000
  1997. BodPoss.D = 1000
  1998. BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  1999. BodPoss.position = v.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15))
  2000. v.Color = maincolor.Color
  2001. coroutine.resume(coroutine.create(function()
  2002. for i = 0, 49 do
  2003. swait(1)
  2004. v.Transparency = v.Transparency + 0.08
  2005. end
  2006. wait(0.5)
  2007. PartEmmit1.Enabled = false
  2008. wait(3)
  2009. v:Destroy()
  2010. dude:Destroy()
  2011. end))
  2012. end))
  2013. end
  2014. end
  2015. end))
  2016. end)
  2017. ds()
  2018. end
  2019. end
  2020.  
  2021. function FindNearestHead(Position, Distance, SinglePlayer)
  2022. if SinglePlayer then
  2023. return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude
  2024. end
  2025. local List = {}
  2026. for i, v in pairs(workspace:GetChildren()) do
  2027. if v:IsA("Model") and v:findFirstChild("Head") and v ~= char and Distance >= (v.Head.Position - Position).magnitude then
  2028. table.insert(List, v)
  2029. end
  2030. end
  2031. return List
  2032. end
  2033.  
  2034. function Aura(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos, MType)
  2035. local type = type
  2036. local rng = Instance.new("Part", char)
  2037. rng.Anchored = true
  2038. rng.BrickColor = color
  2039. rng.CanCollide = false
  2040. rng.FormFactor = 3
  2041. rng.Name = "Ring"
  2042. rng.Material = "Neon"
  2043. rng.Size = Vector3.new(1, 1, 1)
  2044. rng.Transparency = 0
  2045. rng.TopSurface = 0
  2046. rng.BottomSurface = 0
  2047. rng.CFrame = pos
  2048. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos
  2049. local rngm = Instance.new("SpecialMesh", rng)
  2050. rngm.MeshType = MType
  2051. rngm.Scale = Vector3.new(x1, y1, z1)
  2052. local scaler2 = 1
  2053. local speeder = FastSpeed
  2054. if type == "Add" then
  2055. scaler2 = 1 * value
  2056. elseif type == "Divide" then
  2057. scaler2 = 1 / value
  2058. end
  2059. coroutine.resume(coroutine.create(function()
  2060. for i = 0, 10 / bonuspeed, 0.1 do
  2061. swait()
  2062. if type == "Add" then
  2063. scaler2 = scaler2 - 0.01 * value / bonuspeed
  2064. elseif type == "Divide" then
  2065. scaler2 = scaler2 - 0.01 / value * bonuspeed
  2066. end
  2067. speeder = speeder - 0.01 * FastSpeed * bonuspeed
  2068. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed
  2069. rng.Transparency = rng.Transparency + 0.01 * bonuspeed
  2070. rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0)
  2071. end
  2072. rng:Destroy()
  2073. end))
  2074. end
  2075.  
  2076. function SoulSteal(dude)
  2077. if dude.Name ~= char then
  2078. local bgf = IT("BodyGyro", dude.Head)
  2079. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0)
  2080. local val = IT("BoolValue", dude)
  2081. val.Name = "IsHit"
  2082. local torso = (dude:FindFirstChild'Head' or dude:FindFirstChild'Torso' or dude:FindFirstChild'UpperTorso' or dude:FindFirstChild'LowerTorso' or dude:FindFirstChild'HumanoidRootPart')
  2083. local soulst = coroutine.wrap(function()
  2084. local soul = Instance.new("Part",dude)
  2085. soul.Size = Vector3.new(1,1,1)
  2086. soul.CanCollide = false
  2087. soul.Anchored = false
  2088. soul.Position = torso.Position
  2089. soul.Transparency = 1
  2090. local PartEmmit1 = IT("ParticleEmitter", soul)
  2091. PartEmmit1.LightEmission = 1
  2092. PartEmmit1.Texture = "rbxassetid://569507414"
  2093. PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  2094. PartEmmit1.Rate = 250
  2095. PartEmmit1.Lifetime = NumberRange.new(1.6)
  2096. PartEmmit1.Size = NumberSequence.new({
  2097. NumberSequenceKeypoint.new(0, 1, 0),
  2098. NumberSequenceKeypoint.new(1, 0, 0)
  2099. })
  2100. PartEmmit1.Transparency = NumberSequence.new({
  2101. NumberSequenceKeypoint.new(0, 0, 0),
  2102. NumberSequenceKeypoint.new(1, 1, 0)
  2103. })
  2104. PartEmmit1.Speed = NumberRange.new(0, 0)
  2105. PartEmmit1.VelocitySpread = 30000
  2106. PartEmmit1.Rotation = NumberRange.new(-360, 360)
  2107. PartEmmit1.RotSpeed = NumberRange.new(-360, 360)
  2108. local BodPoss = IT("BodyPosition", soul)
  2109. BodPoss.P = 3000
  2110. BodPoss.D = 1000
  2111. BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  2112. BodPoss.position = torso.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15))
  2113. wait(1.6)
  2114. soul.Touched:connect(function(hit)
  2115. if hit.Parent == char then
  2116. soul:Destroy()
  2117. end
  2118. end)
  2119. wait(1.2)
  2120. while soul do
  2121. swait()
  2122. PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  2123. BodPoss.Position = tors.Position
  2124. end
  2125. end)
  2126. soulst()
  2127. end
  2128. end
  2129.  
  2130.  
  2131.  
  2132.  
  2133. --killer's effects
  2134.  
  2135.  
  2136.  
  2137.  
  2138.  
  2139. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  2140. local Part = Create("Part"){
  2141. Parent = Parent,
  2142. Reflectance = Reflectance,
  2143. Transparency = Transparency,
  2144. CanCollide = false,
  2145. Locked = true,
  2146. BrickColor = BrickColor.new(tostring(BColor)),
  2147. Name = Name,
  2148. Size = Size,
  2149. Material = Material,
  2150. }
  2151. RemoveOutlines(Part)
  2152. return Part
  2153. end
  2154.  
  2155. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  2156. local Msh = Create(Mesh){
  2157. Parent = Part,
  2158. Offset = OffSet,
  2159. Scale = Scale,
  2160. }
  2161. if Mesh == "SpecialMesh" then
  2162. Msh.MeshType = MeshType
  2163. Msh.MeshId = MeshId
  2164. end
  2165. return Msh
  2166. end
  2167.  
  2168.  
  2169.  
  2170. function BlockEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  2171. local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  2172. prt.Anchored = true
  2173. prt.CFrame = cframe
  2174. local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  2175. game:GetService("Debris"):AddItem(prt, 10)
  2176. if Type == 1 or Type == nil then
  2177. table.insert(Effects, {
  2178. prt,
  2179. "Block1",
  2180. delay,
  2181. x3,
  2182. y3,
  2183. z3,
  2184. msh
  2185. })
  2186. elseif Type == 2 then
  2187. table.insert(Effects, {
  2188. prt,
  2189. "Block2",
  2190. delay,
  2191. x3,
  2192. y3,
  2193. z3,
  2194. msh
  2195. })
  2196. end
  2197. end
  2198.  
  2199. function SphereEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2200. local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  2201. prt.Anchored = true
  2202. prt.CFrame = cframe
  2203. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  2204. game:GetService("Debris"):AddItem(prt, 10)
  2205. table.insert(Effects, {
  2206. prt,
  2207. "Cylinder",
  2208. delay,
  2209. x3,
  2210. y3,
  2211. z3,
  2212. msh
  2213. })
  2214. end
  2215.  
  2216. function RingEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2217. 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))
  2218. prt.Anchored=true
  2219. prt.CFrame=cframe
  2220. msh=CreateMesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1))
  2221. game:GetService("Debris"):AddItem(prt,2)
  2222. coroutine.resume(coroutine.create(function(Part,Mesh,num)
  2223. for i=0,1,delay do
  2224. swait()
  2225. Part.Transparency=i
  2226. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  2227. end
  2228. Part.Parent=nil
  2229. end),prt,msh,(math.random(0,1)+math.random())/5)
  2230. end
  2231.  
  2232. function CylinderEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2233. local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  2234. prt.Anchored = true
  2235. prt.CFrame = cframe
  2236. local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  2237. game:GetService("Debris"):AddItem(prt, 10)
  2238. table.insert(Effects, {
  2239. prt,
  2240. "Cylinder",
  2241. delay,
  2242. x3,
  2243. y3,
  2244. z3,
  2245. msh
  2246. })
  2247. end
  2248.  
  2249. function WaveEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2250. local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  2251. prt.Anchored = true
  2252. prt.CFrame = cframe
  2253. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  2254. game:GetService("Debris"):AddItem(prt, 10)
  2255. table.insert(Effects, {
  2256. prt,
  2257. "Cylinder",
  2258. delay,
  2259. x3,
  2260. y3,
  2261. z3,
  2262. msh
  2263. })
  2264. end
  2265.  
  2266. function SpecialEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2267. local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  2268. prt.Anchored = true
  2269. prt.CFrame = cframe
  2270. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://24388358", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  2271. game:GetService("Debris"):AddItem(prt, 10)
  2272. table.insert(Effects, {
  2273. prt,
  2274. "Cylinder",
  2275. delay,
  2276. x3,
  2277. y3,
  2278. z3,
  2279. msh
  2280. })
  2281. end
  2282.  
  2283.  
  2284. function MoonEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2285. local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  2286. prt.Anchored = true
  2287. prt.CFrame = cframe
  2288. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://259403370", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  2289. game:GetService("Debris"):AddItem(prt, 10)
  2290. table.insert(Effects, {
  2291. prt,
  2292. "Cylinder",
  2293. delay,
  2294. x3,
  2295. y3,
  2296. z3,
  2297. msh
  2298. })
  2299. end
  2300.  
  2301. function HeadEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  2302. local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  2303. prt.Anchored = true
  2304. prt.CFrame = cframe
  2305. local msh = CreateMesh("SpecialMesh", prt, "Head", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  2306. game:GetService("Debris"):AddItem(prt, 10)
  2307. table.insert(Effects, {
  2308. prt,
  2309. "Cylinder",
  2310. delay,
  2311. x3,
  2312. y3,
  2313. z3,
  2314. msh
  2315. })
  2316. end
  2317.  
  2318. function BreakEffect(brickcolor, cframe, x1, y1, z1)
  2319. local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  2320. prt.Anchored = true
  2321. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  2322. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  2323. local num = math.random(10, 50) / 1000
  2324. game:GetService("Debris"):AddItem(prt, 10)
  2325. table.insert(Effects, {
  2326. prt,
  2327. "Shatter",
  2328. num,
  2329. prt.CFrame,
  2330. math.random() - math.random(),
  2331. 0,
  2332. math.random(50, 100) / 100
  2333. })
  2334. end
  2335.  
  2336.  
  2337.  
  2338.  
  2339.  
  2340. so = function(id,par,vol,pit)
  2341. coroutine.resume(coroutine.create(function()
  2342. local sou = Instance.new("Sound",par or workspace)
  2343. sou.Volume=vol
  2344. sou.Pitch=pit or 1
  2345. sou.SoundId=id
  2346. sou:play()
  2347. game:GetService("Debris"):AddItem(sou,8)
  2348. end))
  2349. end
  2350.  
  2351.  
  2352. --end of killer's effects
  2353.  
  2354.  
  2355. function FaceMouse()
  2356. local Cam = workspace.CurrentCamera
  2357. return {
  2358. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  2359. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  2360. }
  2361. end
  2362. -------------------------------------------------------
  2363. --End Effect Function--
  2364. -------------------------------------------------------
  2365. function Cso(ID, PARENT, VOLUME, PITCH)
  2366. local NSound = nil
  2367. coroutine.resume(coroutine.create(function()
  2368. NSound = IT("Sound", PARENT)
  2369. NSound.Volume = VOLUME
  2370. NSound.Pitch = PITCH
  2371. NSound.SoundId = "http://www.roblox.com/asset/?id="..ID
  2372. swait()
  2373. NSound:play()
  2374. game:GetService("Debris"):AddItem(NSound, 10)
  2375. end))
  2376. return NSound
  2377. end
  2378. function CameraEnshaking(Length, Intensity)
  2379. coroutine.resume(coroutine.create(function()
  2380. local intensity = 1 * Intensity
  2381. local rotM = 0.01 * Intensity
  2382. for i = 0, Length, 0.1 do
  2383. swait()
  2384. intensity = intensity - 0.05 * Intensity / Length
  2385. rotM = rotM - 5.0E-4 * Intensity / Length
  2386. hum.CameraOffset = Vector3.new(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)))
  2387. 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)
  2388. end
  2389. hum.CameraOffset = Vector3.new(0, 0, 0)
  2390. end))
  2391. end
  2392. -------------------------------------------------------
  2393. --End Important Functions--
  2394. -------------------------------------------------------
  2395.  
  2396.  
  2397. -------------------------------------------------------
  2398. --Start Customization--
  2399. -------------------------------------------------------
  2400. local Player_Size = 1
  2401. if Player_Size ~= 1 then
  2402. root.Size = root.Size * Player_Size
  2403. tors.Size = tors.Size * Player_Size
  2404. hed.Size = hed.Size * Player_Size
  2405. ra.Size = ra.Size * Player_Size
  2406. la.Size = la.Size * Player_Size
  2407. rl.Size = rl.Size * Player_Size
  2408. ll.Size = ll.Size * Player_Size
  2409. ----------------------------------------------------------------------------------
  2410. rootj.Parent = root
  2411. neck.Parent = tors
  2412. RW.Parent = tors
  2413. LW.Parent = tors
  2414. RH.Parent = tors
  2415. LH.Parent = tors
  2416. ----------------------------------------------------------------------------------
  2417. rootj.C0 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0))
  2418. rootj.C1 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0))
  2419. neck.C0 = necko * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * angles(Rad(0), Rad(0), Rad(0))
  2420. neck.C1 = CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * angles(Rad(-90), Rad(0), Rad(180))
  2421. RW.C0 = CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* RIGHTSHOULDERC0
  2422. LW.C0 = CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* LEFTSHOULDERC0
  2423. ----------------------------------------------------------------------------------
  2424. 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))
  2425. 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))
  2426. 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))
  2427. 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))
  2428. --hat.Parent = Character
  2429. end
  2430. ----------------------------------------------------------------------------------
  2431. local SONG = 900817147 --900817147
  2432. local SONG2 = 0
  2433. local Music = Instance.new("Sound",tors)
  2434. Music.Volume = 0.7
  2435. Music.Looped = true
  2436. Music.Pitch = 1 --Pitcher
  2437. ----------------------------------------------------------------------------------
  2438. local equipped = false
  2439. local idle = 0
  2440. local change = 1
  2441. local val = 0
  2442. local toim = 0
  2443. local idleanim = 0.4
  2444. local sine = 0
  2445. local Sit = 1
  2446. local attacktype = 1
  2447. local attackdebounce = false
  2448. local euler = CFrame.fromEulerAnglesXYZ
  2449. local cankick = false
  2450. ----------------------------------------------------------------------------------
  2451. hum.WalkSpeed = 30
  2452. hum.JumpPower = 90
  2453. --[[
  2454. local ROBLOXIDLEANIMATION = IT("Animation")
  2455. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  2456. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  2457. ]]
  2458. local ANIMATOR = hum.Animator
  2459. local ANIMATE = char.Animate
  2460. ANIMATE.Parent = nil
  2461. ANIMATOR.Parent = nil
  2462. -------------------------------------------------------
  2463. --End Customization--
  2464. -------------------------------------------------------
  2465.  
  2466.  
  2467. -------------------------------------------------------
  2468. --Start Attacks N Stuff--
  2469. -------------------------------------------------------
  2470.  
  2471. --pls be proud mak i did my best
  2472.  
  2473.  
  2474.  
  2475. function attackone()
  2476.  
  2477. attack = true
  2478.  
  2479. for i = 0, 1.35, 0.1 do
  2480. swait()
  2481. 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)
  2482. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(40+11*i)), 0.2)
  2483. 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)
  2484. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-43)), 0.3)
  2485. RH.C0 = clerp(RH.C0, CFrame.new(1, -0.7, 0) * RHCF * angles(math.rad(-34), math.rad(0), math.rad(-17)), 0.2)
  2486. 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)
  2487. end
  2488.  
  2489. so("http://roblox.com/asset/?id=1340545854",ra,1,math.random(0.7,1))
  2490.  
  2491.  
  2492. con5=ra.Touched:connect(function(hit)
  2493. if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  2494. if attackdebounce == false then
  2495. attackdebounce = true
  2496.  
  2497. so("http://roblox.com/asset/?id=636494529",ra,2,1)
  2498.  
  2499. 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)
  2500. 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)
  2501. 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)
  2502.  
  2503.  
  2504. coroutine.resume(coroutine.create(function()
  2505. for i = 0,1,0.1 do
  2506. swait()
  2507. 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)
  2508. end
  2509. end))
  2510.  
  2511.  
  2512. wait(0.34)
  2513. attackdebounce = false
  2514.  
  2515. end
  2516. end
  2517. end)
  2518. for i = 0, 1.12, 0.1 do
  2519. swait()
  2520. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, -0.9, -0) * angles(math.rad(14), math.rad(6), math.rad(23)), 0.35)
  2521. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(-4), math.rad(0), math.rad(-23)), 0.35)
  2522. 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)
  2523. 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)
  2524. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, -0.3) * RHCF * angles(math.rad(-4), math.rad(0), math.rad(6)), 0.3)
  2525. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0.05) * LHCF * angles(math.rad(-22), math.rad(0), math.rad(23)), 0.3)
  2526. end
  2527.  
  2528. con5:Disconnect()
  2529. attack = false
  2530.  
  2531. end
  2532.  
  2533.  
  2534.  
  2535.  
  2536.  
  2537.  
  2538.  
  2539.  
  2540.  
  2541.  
  2542.  
  2543.  
  2544. function attacktwo()
  2545.  
  2546. attack = true
  2547.  
  2548. for i = 0, 1.35, 0.1 do
  2549. swait()
  2550. 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)
  2551. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(-40)), 0.2)
  2552. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(46)), 0.3)
  2553. 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)
  2554. 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)
  2555. LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.7, 0) * LHCF * angles(math.rad(-24), math.rad(0), math.rad(0)), 0.2)
  2556. end
  2557.  
  2558. so("http://roblox.com/asset/?id=1340545854",la,1,math.random(0.7,1))
  2559.  
  2560.  
  2561. con5=la.Touched:connect(function(hit)
  2562. if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  2563. if attackdebounce == false then
  2564. attackdebounce = true
  2565.  
  2566. so("http://roblox.com/asset/?id=636494529",la,2,1)
  2567.  
  2568. 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)
  2569. 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)
  2570. 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)
  2571.  
  2572.  
  2573. coroutine.resume(coroutine.create(function()
  2574. for i = 0,1,0.1 do
  2575. swait()
  2576. 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)
  2577. end
  2578. end))
  2579.  
  2580.  
  2581. wait(0.34)
  2582. attackdebounce = false
  2583.  
  2584. end
  2585. end
  2586. end)
  2587.  
  2588.  
  2589.  
  2590.  
  2591. for i = 0, 1.12, 0.1 do
  2592. swait()
  2593. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, -0.9, -0) * angles(math.rad(14), math.rad(-6), math.rad(-27)), 0.35)
  2594. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(-4), math.rad(0), math.rad(27)), 0.35)
  2595. 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)
  2596. 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)
  2597. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0.05) * RHCF * angles(math.rad(-22), math.rad(0), math.rad(-18)), 0.3)
  2598. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, -0.3) * LHCF * angles(math.rad(-2), math.rad(0), math.rad(4)), 0.3)
  2599. end
  2600.  
  2601. con5:Disconnect()
  2602. attack = false
  2603.  
  2604. end
  2605.  
  2606.  
  2607.  
  2608.  
  2609.  
  2610. function attackthree()
  2611.  
  2612. attack = true
  2613.  
  2614.  
  2615. for i = 0, 1.14, 0.1 do
  2616. swait()
  2617. 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)
  2618. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(-40)), 0.2)
  2619. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-46)), 0.3)
  2620. 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)
  2621. 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)
  2622. LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.7, 0) * LHCF * angles(math.rad(-12), math.rad(0), math.rad(34)), 0.2)
  2623. end
  2624.  
  2625. con5=hum.Touched:connect(function(hit)
  2626. if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  2627. if attackdebounce == false then
  2628. attackdebounce = true
  2629.  
  2630. so("http://roblox.com/asset/?id=636494529",ll,2,1)
  2631.  
  2632. 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)
  2633. 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)
  2634. 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)
  2635.  
  2636.  
  2637. coroutine.resume(coroutine.create(function()
  2638. for i = 0,1,0.1 do
  2639. swait()
  2640. 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)
  2641. end
  2642. end))
  2643.  
  2644.  
  2645. wait(0.34)
  2646. attackdebounce = false
  2647.  
  2648. end
  2649. end
  2650. end)
  2651.  
  2652. so("http://www.roblox.com/asset/?id=158475221", RightLeg, 1, 1.3)
  2653. for i = 0, 9.14, 0.3 do
  2654. swait()
  2655. BlockEffect(BrickColor.new("White"), ll.CFrame*CF(0,-1,0), 2, 2, 2, 3.5, 3.5, 3.5, 0.05)
  2656. 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)
  2657. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(12), math.rad(0), math.rad(24)), 0.35)
  2658. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(12), math.rad(0), math.rad(62)), 0.35)
  2659. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.3, 0) * angles(math.rad(12), math.rad(0), math.rad(-23)), 0.35)
  2660. 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)
  2661. 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)
  2662. end
  2663. attack = false
  2664. con5:disconnect()
  2665. end
  2666.  
  2667.  
  2668.  
  2669. function attackfour()
  2670.  
  2671. attack = true
  2672. so("http://www.roblox.com/asset/?id=1452040709", RightLeg, 3, 1)
  2673. 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)
  2674. for i = 0, 5.14, 0.1 do
  2675. swait()
  2676. 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)
  2677. 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)
  2678. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0+11*i), math.rad(0), math.rad(0)), 0.2)
  2679. 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)
  2680. 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)
  2681. 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)
  2682. 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)
  2683. end
  2684. so("http://www.roblox.com/asset/?id=158475221", RightLeg, 1, 1.3)
  2685. local velo=Instance.new("BodyVelocity")
  2686. velo.velocity=vt(0,25,0)
  2687. velo.P=8000
  2688. velo.maxForce=Vector3.new(math.huge, math.huge, math.huge)
  2689. velo.Parent=root
  2690. game:GetService("Debris"):AddItem(velo,0.7)
  2691.  
  2692.  
  2693.  
  2694. con5=hum.Touched:connect(function(hit)
  2695. if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  2696. if attackdebounce == false then
  2697. attackdebounce = true
  2698. coroutine.resume(coroutine.create(function()
  2699. for i = 0,1.5,0.1 do
  2700. swait()
  2701. hit.Parent.Head.CFrame = root.CFrame * CFrame.new(0,1.6,-1.8)
  2702. end
  2703. end))
  2704. so("http://roblox.com/asset/?id=636494529",rl,2,1)
  2705. 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)
  2706. 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)
  2707. 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)
  2708.  
  2709.  
  2710.  
  2711. coroutine.resume(coroutine.create(function()
  2712. for i = 0,1,0.1 do
  2713. swait()
  2714. 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)
  2715. end
  2716. end))
  2717.  
  2718.  
  2719. wait(0.14)
  2720. attackdebounce = false
  2721. end
  2722. end
  2723. end)
  2724.  
  2725. for i = 0, 5.11, 0.15 do
  2726. swait()
  2727. BlockEffect(BrickColor.new("White"), rl.CFrame*CF(0,-1,0), 2, 2, 2, 3.5, 3.5, 3.5, 0.05)
  2728. 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)
  2729. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(-43), math.rad(0), math.rad(0)), 0.42)
  2730. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-8), math.rad(0), math.rad(60)), 0.35)
  2731. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-8), math.rad(0), math.rad(-60)), 0.35)
  2732. 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)
  2733. 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)
  2734. end
  2735.  
  2736.  
  2737. attack = false
  2738. con5:disconnect()
  2739. end
  2740.  
  2741.  
  2742.  
  2743.  
  2744.  
  2745. local cooldown = false
  2746. function quickkick()
  2747. attack = true
  2748.  
  2749.  
  2750. con5=hum.Touched:connect(function(hit)
  2751. if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  2752. if attackdebounce == false then
  2753. attackdebounce = true
  2754.  
  2755. coroutine.resume(coroutine.create(function()
  2756. for i = 0,1.5,0.1 do
  2757. swait()
  2758. hit.Parent.Head.CFrame = root.CFrame * CFrame.new(0,1.3,-1.8)
  2759. end
  2760. end))
  2761.  
  2762. so("http://roblox.com/asset/?id=636494529",rl,2,1)
  2763. 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)
  2764. 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)
  2765. 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)
  2766.  
  2767.  
  2768.  
  2769. coroutine.resume(coroutine.create(function()
  2770. for i = 0,1,0.1 do
  2771. swait()
  2772. 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)
  2773. end
  2774. end))
  2775.  
  2776.  
  2777. wait(0.08)
  2778. attackdebounce = false
  2779. end
  2780. end
  2781. end)
  2782.  
  2783. so("http://www.roblox.com/asset/?id=158475221", RightLeg, 1, 1.3)
  2784. for i = 0, 11.14, 0.3 do
  2785. swait()
  2786. root.Velocity = root.CFrame.lookVector * 30
  2787. BlockEffect(BrickColor.new("White"), ll.CFrame*CF(0,-1,0), 2, 2, 2, 3.5, 3.5, 3.5, 0.05)
  2788. 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)
  2789. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(12), math.rad(0), math.rad(24)), 0.35)
  2790. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(12), math.rad(0), math.rad(62)), 0.35)
  2791. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.3, 0) * angles(math.rad(12), math.rad(0), math.rad(-23)), 0.35)
  2792. 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)
  2793. 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)
  2794. end
  2795. attack = false
  2796. con5:disconnect()
  2797. end
  2798.  
  2799.  
  2800.  
  2801.  
  2802.  
  2803.  
  2804.  
  2805.  
  2806. function Taunt()
  2807. attack = true
  2808. hum.WalkSpeed = 10
  2809. Cso("1535995570", hed, 8.45, 1)
  2810. for i = 0, 8.2, 0.1 do
  2811. swait()
  2812. hum.WalkSpeed = 0
  2813. 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)
  2814. 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)
  2815. 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)
  2816. 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)
  2817. 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)
  2818. 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)
  2819. end
  2820. attack = false
  2821. hum.WalkSpeed = 30
  2822. end
  2823.  
  2824.  
  2825.  
  2826.  
  2827.  
  2828.  
  2829.  
  2830. function Hyperkickcombo()
  2831.  
  2832. attack = true
  2833. so("http://www.roblox.com/asset/?id=1452040709", RightLeg, 3, 1)
  2834. 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)
  2835. for i = 0, 7.14, 0.1 do
  2836. swait()
  2837. 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)
  2838. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, 0, -0.8) * angles(math.rad(24), math.rad(0), math.rad(0)), 0.2)
  2839. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
  2840. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(36)), 0.3)
  2841. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-36)), 0.3)
  2842. 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)
  2843. 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)
  2844. end
  2845. local Cracking = Cso("292536356", tors, 10, 1)
  2846. for i = 0, 7.14, 0.1 do
  2847. swait()
  2848. 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)
  2849. 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")
  2850. 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)
  2851. 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)
  2852. 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)
  2853. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, 0, -0.8) * angles(math.rad(24), math.rad(0), math.rad(0)), 0.2)
  2854. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(30), math.rad(0), math.rad(0)), 0.2)
  2855. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(36)), 0.3)
  2856. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-36)), 0.3)
  2857. 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)
  2858. 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)
  2859. end
  2860. Cracking.Playing = false
  2861. so("http://www.roblox.com/asset/?id=197161452", char, 3, 0.8)
  2862. so("http://www.roblox.com/asset/?id=158475221", RightLeg, 1, 1.3)
  2863. 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)
  2864. local velo=Instance.new("BodyVelocity")
  2865. velo.velocity=vt(0,27,0)
  2866. velo.P=11000
  2867. velo.maxForce=Vector3.new(math.huge, math.huge, math.huge)
  2868. velo.Parent=root
  2869. game:GetService("Debris"):AddItem(velo,1.24)
  2870.  
  2871.  
  2872.  
  2873. con5=hum.Touched:connect(function(hit)
  2874. if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  2875. if attackdebounce == false then
  2876. attackdebounce = true
  2877. coroutine.resume(coroutine.create(function()
  2878. for i = 0,1.5,0.1 do
  2879. swait()
  2880. hit.Parent.Head.CFrame = root.CFrame * CFrame.new(0,3.4,-1.8)
  2881. end
  2882. end))
  2883. so("http://roblox.com/asset/?id=636494529",rl,2,1.6)
  2884. 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)
  2885. 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)
  2886. 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)
  2887.  
  2888.  
  2889.  
  2890. coroutine.resume(coroutine.create(function()
  2891. for i = 0,1,0.1 do
  2892. swait()
  2893. 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)
  2894. end
  2895. end))
  2896.  
  2897.  
  2898. wait(0.09)
  2899. attackdebounce = false
  2900. end
  2901. end
  2902. end)
  2903.  
  2904. for i = 0, 9.11, 0.2 do
  2905. swait()
  2906. BlockEffect(BrickColor.new("Lime green"), rl.CFrame*CF(0,-1,0), 2, 2, 2, 3.5, 3.5, 3.5, 0.05)
  2907. 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)
  2908. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(-43), math.rad(0), math.rad(0)), 0.42)
  2909. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-8), math.rad(0), math.rad(60)), 0.35)
  2910. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-8), math.rad(0), math.rad(-60)), 0.35)
  2911. 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)
  2912. 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)
  2913. end
  2914.  
  2915.  
  2916.  
  2917.  
  2918. con5:disconnect()
  2919.  
  2920.  
  2921.  
  2922.  
  2923.  
  2924.  
  2925. con5=hum.Touched:connect(function(hit)
  2926. if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  2927. if attackdebounce == false then
  2928. attackdebounce = true
  2929. coroutine.resume(coroutine.create(function()
  2930. for i = 0,1.5,0.1 do
  2931. swait()
  2932. hit.Parent.Head.CFrame = root.CFrame * CFrame.new(0,1.1,-1.8)
  2933. end
  2934. end))
  2935. so("http://roblox.com/asset/?id=636494529",rl,2,1.6)
  2936. 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)
  2937. 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)
  2938. 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)
  2939.  
  2940.  
  2941.  
  2942. coroutine.resume(coroutine.create(function()
  2943. for i = 0,1,0.1 do
  2944. swait()
  2945. 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)
  2946. end
  2947. end))
  2948.  
  2949.  
  2950. wait(0.08)
  2951. attackdebounce = false
  2952. end
  2953. end
  2954. end)
  2955.  
  2956.  
  2957.  
  2958. so("http://www.roblox.com/asset/?id=158475221", RightLeg, 1, 1.3)
  2959. for i = 0, 9.14, 0.3 do
  2960. swait()
  2961. root.Velocity = root.CFrame.lookVector * 20
  2962. BlockEffect(BrickColor.new("Lime green"), ll.CFrame*CF(0,-1,0), 2, 2, 2, 3.5, 3.5, 3.5, 0.05)
  2963. 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)
  2964. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(12), math.rad(0), math.rad(24)), 0.35)
  2965. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(12), math.rad(0), math.rad(62)), 0.35)
  2966. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.3, 0) * angles(math.rad(12), math.rad(0), math.rad(-23)), 0.35)
  2967. 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)
  2968. 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)
  2969. end
  2970.  
  2971.  
  2972.  
  2973. con5:disconnect()
  2974.  
  2975.  
  2976.  
  2977. con5=hum.Touched:connect(function(hit)
  2978. if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  2979. if attackdebounce == false then
  2980. attackdebounce = true
  2981. coroutine.resume(coroutine.create(function()
  2982. for i = 0,1.5,0.1 do
  2983. swait()
  2984. hit.Parent.Head.CFrame = root.CFrame * CFrame.new(0,1.1,-1.8)
  2985. end
  2986. end))
  2987. so("http://roblox.com/asset/?id=636494529",rl,2,1.6)
  2988. 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)
  2989. 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)
  2990. 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)
  2991.  
  2992.  
  2993.  
  2994. coroutine.resume(coroutine.create(function()
  2995. for i = 0,1,0.1 do
  2996. swait()
  2997. 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)
  2998. end
  2999. end))
  3000.  
  3001.  
  3002. wait(0.05)
  3003. attackdebounce = false
  3004. end
  3005. end
  3006. end)
  3007.  
  3008.  
  3009. so("http://www.roblox.com/asset/?id=158475221", RightLeg, 1, 1.3)
  3010. for i = 0, 15.14, 0.32 do
  3011. swait()
  3012. root.Velocity = root.CFrame.lookVector * 20
  3013. BlockEffect(BrickColor.new("Lime green"), ll.CFrame*CF(0,-1,0), 2, 2, 2, 3.5, 3.5, 3.5, 0.05)
  3014. 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)
  3015. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(12), math.rad(0), math.rad(24)), 0.35)
  3016. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(12), math.rad(0), math.rad(62)), 0.35)
  3017. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.3, 0) * angles(math.rad(12), math.rad(0), math.rad(-23)), 0.35)
  3018. 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)
  3019. 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)
  3020. end
  3021.  
  3022. attack = false
  3023. con5:disconnect()
  3024.  
  3025. end
  3026.  
  3027.  
  3028.  
  3029.  
  3030.  
  3031. local ultra = false
  3032.  
  3033. function Galekicks()
  3034.  
  3035. attack = true
  3036. so("http://www.roblox.com/asset/?id=1452040709", RightLeg, 3, 1)
  3037. for i = 0, 1.65, 0.1 do
  3038. swait()
  3039. root.Velocity = root.CFrame.lookVector * 0
  3040. 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)
  3041. 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)
  3042. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(-17), math.rad(-90)), 0.2)
  3043. 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)
  3044. 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)
  3045. RH.C0 = clerp(RH.C0, CFrame.new(1, .62 , -0.3) * RHCF * angles(math.rad(-40), math.rad(0), math.rad(2)), 0.2)
  3046. LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.7, 0) * LHCF * angles(math.rad(-28), math.rad(0), math.rad(0)), 0.2)
  3047. end
  3048.  
  3049.  
  3050. for i = 1, 17 do
  3051.  
  3052. con5=hum.Touched:connect(function(hit)
  3053. if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  3054. if attackdebounce == false then
  3055. attackdebounce = true
  3056. coroutine.resume(coroutine.create(function()
  3057. for i = 0,1.5,0.1 do
  3058. swait()
  3059. hit.Parent.Head.CFrame = root.CFrame * CFrame.new(0,1.1,-1.8)
  3060. end
  3061. end))
  3062. so("http://roblox.com/asset/?id=636494529",rl,2,1.6)
  3063. 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)
  3064. 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)
  3065. 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)
  3066.  
  3067.  
  3068.  
  3069. coroutine.resume(coroutine.create(function()
  3070. for i = 0,1,0.1 do
  3071. swait()
  3072. 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)
  3073. end
  3074. end))
  3075.  
  3076.  
  3077. wait(0.05)
  3078. attackdebounce = false
  3079. end
  3080. end
  3081. end)
  3082.  
  3083. for i = 0, .1, 0.2 do
  3084. swait()
  3085. BlockEffect(BrickColor.new("Lime green"), rl.CFrame*CF(0,-1,0), 2, 2, 2, 1.5, 1.5, 1.5, 0.03)
  3086. root.Velocity = root.CFrame.lookVector * 10
  3087. 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)
  3088. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(-24), math.rad(-90)), 0.7)
  3089. 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)
  3090. 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)
  3091. 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)
  3092. LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.7, 0) * LHCF * angles(math.rad(-34), math.rad(0), math.rad(0)), 0.7)
  3093. end
  3094.  
  3095. so("http://roblox.com/asset/?id=1340545854",rl,1,math.random(0.7,1))
  3096.  
  3097. for i = 0, 0.4, 0.2 do
  3098. swait()
  3099. 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)
  3100. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(-17), math.rad(-90)), 0.2)
  3101. 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)
  3102. 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)
  3103. RH.C0 = clerp(RH.C0, CFrame.new(1, .62 , -0.3) * RHCF * angles(math.rad(-40), math.rad(0), math.rad(2)), 0.2)
  3104. LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.7, 0) * LHCF * angles(math.rad(-28), math.rad(0), math.rad(0)), 0.2)
  3105. end
  3106.  
  3107. for i = 0, .1, 0.2 do
  3108. swait()
  3109. BlockEffect(BrickColor.new("Lime green"), rl.CFrame*CF(0,-1,0), 2, 2, 2, 1.5, 1.5, 1.5, 0.03)
  3110. root.Velocity = root.CFrame.lookVector * 10
  3111. 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)
  3112. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(-24), math.rad(-90)), 0.7)
  3113. 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)
  3114. 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)
  3115. 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)
  3116. LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.7, 0) * LHCF * angles(math.rad(-34), math.rad(0), math.rad(0)), 0.7)
  3117. end
  3118.  
  3119. so("http://roblox.com/asset/?id=1340545854",rl,1,math.random(0.7,1))
  3120.  
  3121. for i = 0, 0.4, 0.2 do
  3122. swait()
  3123. 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)
  3124. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(-17), math.rad(-90)), 0.2)
  3125. 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)
  3126. 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)
  3127. RH.C0 = clerp(RH.C0, CFrame.new(1, .62 , -0.3) * RHCF * angles(math.rad(-40), math.rad(0), math.rad(2)), 0.2)
  3128. LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.7, 0) * LHCF * angles(math.rad(-28), math.rad(0), math.rad(0)), 0.2)
  3129. end
  3130.  
  3131.  
  3132. for i = 0, .1, 0.2 do
  3133. swait()
  3134. BlockEffect(BrickColor.new("Lime green"), rl.CFrame*CF(0,-1,0), 2, 2, 2, 1.5, 1.5, 1.5, 0.03)
  3135. root.Velocity = root.CFrame.lookVector * 10
  3136. 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)
  3137. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(-24), math.rad(-90)), 0.7)
  3138. 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)
  3139. 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)
  3140. 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)
  3141. LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.7, 0) * LHCF * angles(math.rad(-34), math.rad(0), math.rad(0)), 0.7)
  3142. end
  3143.  
  3144. so("http://roblox.com/asset/?id=1340545854",rl,1,math.random(0.7,1))
  3145.  
  3146. for i = 0, 0.4, 0.2 do
  3147. swait()
  3148. 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)
  3149. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(-17), math.rad(-90)), 0.2)
  3150. 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)
  3151. 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)
  3152. RH.C0 = clerp(RH.C0, CFrame.new(1, .62 , -0.3) * RHCF * angles(math.rad(-40), math.rad(0), math.rad(2)), 0.2)
  3153. LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.7, 0) * LHCF * angles(math.rad(-28), math.rad(0), math.rad(0)), 0.2)
  3154. end
  3155.  
  3156. for i = 0, .1, 0.2 do
  3157. swait()
  3158. BlockEffect(BrickColor.new("Really red"), rl.CFrame*CF(0,-1,0), 2, 2, 2, 1.5, 1.5, 1.5, 0.03)
  3159. root.Velocity = root.CFrame.lookVector * 10
  3160. 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)
  3161. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(-24), math.rad(-90)), 0.7)
  3162. 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)
  3163. 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)
  3164. 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)
  3165. LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.7, 0) * LHCF * angles(math.rad(-34), math.rad(0), math.rad(0)), 0.7)
  3166. end
  3167.  
  3168. so("http://roblox.com/asset/?id=1340545854",rl,1,math.random(0.7,1))
  3169.  
  3170. for i = 0, 0.4, 0.2 do
  3171. swait()
  3172. 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)
  3173. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(-17), math.rad(-90)), 0.2)
  3174. 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)
  3175. 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)
  3176. RH.C0 = clerp(RH.C0, CFrame.new(1, .62 , -0.3) * RHCF * angles(math.rad(-40), math.rad(0), math.rad(2)), 0.2)
  3177. LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.7, 0) * LHCF * angles(math.rad(-28), math.rad(0), math.rad(0)), 0.2)
  3178. end
  3179.  
  3180. for i = 0, .1, 0.2 do
  3181. swait()
  3182. BlockEffect(BrickColor.new("Really red"), rl.CFrame*CF(0,-1,0), 2, 2, 2, 1.5, 1.5, 1.5, 0.03)
  3183. root.Velocity = root.CFrame.lookVector * 10
  3184. 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)
  3185. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(-24), math.rad(-90)), 0.7)
  3186. 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)
  3187. 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)
  3188. 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)
  3189. LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.7, 0) * LHCF * angles(math.rad(-34), math.rad(0), math.rad(0)), 0.7)
  3190. end
  3191.  
  3192. so("http://roblox.com/asset/?id=1340545854",rl,1,math.random(0.7,1))
  3193.  
  3194. for i = 0, 0.4, 0.2 do
  3195. swait()
  3196. 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)
  3197. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(-17), math.rad(-90)), 0.2)
  3198. 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)
  3199. 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)
  3200. RH.C0 = clerp(RH.C0, CFrame.new(1, .62 , -0.3) * RHCF * angles(math.rad(-40), math.rad(0), math.rad(2)), 0.2)
  3201. LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.7, 0) * LHCF * angles(math.rad(-28), math.rad(0), math.rad(0)), 0.2)
  3202. end
  3203. con5:disconnect()
  3204. end
  3205.  
  3206.  
  3207. u = mouse.KeyDown:connect(function(key)
  3208. if key == 'r' and combohits >= 150 then
  3209. ultra = true
  3210. 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)
  3211. end
  3212. end)
  3213. wait(0.3)
  3214. if ultra == true then
  3215. combohits = 0
  3216. wait(0.1)
  3217. for i = 0, 1.65, 0.1 do
  3218. swait()
  3219. root.Velocity = root.CFrame.lookVector * 0
  3220. 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)
  3221. 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)
  3222. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(-17), math.rad(-90)), 0.2)
  3223. 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)
  3224. 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)
  3225. RH.C0 = clerp(RH.C0, CFrame.new(1, .62 , -0.3) * RHCF * angles(math.rad(-40), math.rad(0), math.rad(2)), 0.2)
  3226. LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.7, 0) * LHCF * angles(math.rad(-28), math.rad(0), math.rad(0)), 0.2)
  3227. end
  3228.  
  3229.  
  3230. so("http://roblox.com/asset/?id=146094803",hed,1,1.2)
  3231.  
  3232. for i = 1, 65 do
  3233. --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")
  3234. con5=hum.Touched:connect(function(hit)
  3235. if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  3236. if attackdebounce == false then
  3237. attackdebounce = true
  3238. coroutine.resume(coroutine.create(function()
  3239. for i = 0,1.5,0.1 do
  3240. swait()
  3241. hit.Parent.Head.CFrame = root.CFrame * CFrame.new(0,1.1,-1.8)
  3242. end
  3243. end))
  3244. so("http://roblox.com/asset/?id=636494529",rl,2,1.6)
  3245. 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)
  3246. 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)
  3247. 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)
  3248.  
  3249.  
  3250.  
  3251. coroutine.resume(coroutine.create(function()
  3252. for i = 0,1,0.1 do
  3253. swait()
  3254. 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)
  3255. end
  3256. end))
  3257.  
  3258.  
  3259. wait(0.05)
  3260. attackdebounce = false
  3261. end
  3262. end
  3263. end)
  3264.  
  3265. for i = 0, .03, 0.1 do
  3266. swait()
  3267. BlockEffect(BrickColor.new("Really red"), rl.CFrame*CF(0,-1,0), 2, 2, 2, 1.5, 1.5, 1.5, 0.03)
  3268. root.Velocity = root.CFrame.lookVector * 10
  3269. 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)
  3270. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(-24), math.rad(-90)), 0.7)
  3271. 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)
  3272. 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)
  3273. 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)
  3274. LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.7, 0) * LHCF * angles(math.rad(-34), math.rad(0), math.rad(0)), 0.7)
  3275. end
  3276.  
  3277. so("http://roblox.com/asset/?id=1340545854",rl,1,math.random(0.7,1))
  3278.  
  3279. for i = 0, 0.07, 0.1 do
  3280. swait()
  3281. 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)
  3282. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(-17), math.rad(-90)), 0.2)
  3283. 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)
  3284. 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)
  3285. RH.C0 = clerp(RH.C0, CFrame.new(1, .62 , -0.3) * RHCF * angles(math.rad(-40), math.rad(0), math.rad(2)), 0.2)
  3286. LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.7, 0) * LHCF * angles(math.rad(-28), math.rad(0), math.rad(0)), 0.2)
  3287. end
  3288. con5:disconnect()
  3289. end
  3290.  
  3291. for i = 0, 1.65, 0.1 do
  3292. swait()
  3293. root.Velocity = root.CFrame.lookVector * 0
  3294. 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)
  3295. 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)
  3296. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(-17), math.rad(-90)), 0.2)
  3297. 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)
  3298. 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)
  3299. RH.C0 = clerp(RH.C0, CFrame.new(1, .62 , -0.3) * RHCF * angles(math.rad(-40), math.rad(0), math.rad(2)), 0.2)
  3300. LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.7, 0) * LHCF * angles(math.rad(-28), math.rad(0), math.rad(0)), 0.2)
  3301. end
  3302.  
  3303. con5=hum.Touched:connect(function(hit)
  3304. if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  3305. if attackdebounce == false then
  3306. attackdebounce = true
  3307. coroutine.resume(coroutine.create(function()
  3308. for i = 0,1.5,0.1 do
  3309. swait()
  3310. --hit.Parent.Head.CFrame = root.CFrame * CFrame.new(0,1.1,-1.8)
  3311. end
  3312. end))
  3313. so("http://roblox.com/asset/?id=636494529",rl,2,.63)
  3314. 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)
  3315. 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)
  3316. 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)
  3317.  
  3318.  
  3319. coroutine.resume(coroutine.create(function()
  3320. for i = 0,1,0.1 do
  3321. swait()
  3322. 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)
  3323. end
  3324. end))
  3325.  
  3326.  
  3327. wait(0.05)
  3328. attackdebounce = false
  3329. end
  3330. end
  3331. end)
  3332.  
  3333. so("http://www.roblox.com/asset/?id=1452040709", RightLeg, 1, 1.4)
  3334. 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)
  3335.  
  3336. for i = 0, 2, 0.1 do
  3337. swait()
  3338. --BlockEffect(BrickColor.new("Really red"), rl.CFrame*CF(0,-1,0), 2, 2, 2, 1.5, 1.5, 1.5, 0.03)
  3339. 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)
  3340. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(-17), math.rad(-90)), 0.2)
  3341. 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)
  3342. 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)
  3343. RH.C0 = clerp(RH.C0, CFrame.new(1, -.6 , 0.2) * RHCF * angles(math.rad(-50), math.rad(0), math.rad(2)), 0.2)
  3344. LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.7, 0) * LHCF * angles(math.rad(-28), math.rad(0), math.rad(0)), 0.2)
  3345. end
  3346. 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)
  3347.  
  3348. wait(0.25)
  3349. con5:Disconnect()
  3350.  
  3351.  
  3352.  
  3353.  
  3354. con5=hum.Touched:connect(function(hit)
  3355. if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  3356. if attackdebounce == false then
  3357. attackdebounce = true
  3358.  
  3359. so("http://roblox.com/asset/?id=565207203",ll,7,0.63)
  3360.  
  3361. 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)
  3362. 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)
  3363. 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)
  3364. 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)
  3365. 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)
  3366. 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)
  3367.  
  3368. coroutine.resume(coroutine.create(function()
  3369. for i = 0,1,0.1 do
  3370. swait()
  3371. 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)
  3372. end
  3373. end))
  3374.  
  3375. wait(0.06)
  3376. attackdebounce = false
  3377.  
  3378. end
  3379. end
  3380. end)
  3381.  
  3382. coroutine.resume(coroutine.create(function()
  3383. while ultra == true do
  3384. swait()
  3385. root.CFrame = root.CFrame*CFrame.new(math.random(-3,3),math.random(-2,2),math.random(-3,3))
  3386. end
  3387. end))
  3388.  
  3389.  
  3390. so("http://www.roblox.com/asset/?id=158475221", RightLeg, 1, 1.3)
  3391. for i = 1,3 do
  3392. for i = 0, 9.14, 0.45 do
  3393. swait()
  3394. root.Velocity = root.CFrame.lookVector * 30
  3395. BlockEffect(BrickColor.new("Really red"), ll.CFrame*CF(0,-1,0), 2, 2, 2, 3.5, 3.5, 3.5, 0.05)
  3396. 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)
  3397. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(12), math.rad(0), math.rad(24)), 0.35)
  3398. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(12), math.rad(0), math.rad(62)), 0.35)
  3399. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.3, 0) * angles(math.rad(12), math.rad(0), math.rad(-23)), 0.35)
  3400. 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)
  3401. 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)
  3402. end
  3403. end
  3404.  
  3405.  
  3406. for i = 1,3 do
  3407. for i = 0, 11.14, 0.45 do
  3408. swait()
  3409. root.Velocity = root.CFrame.lookVector * 30
  3410. BlockEffect(BrickColor.new("Really red"), ll.CFrame*CF(0,-1,0), 2, 2, 2, 3.5, 3.5, 3.5, 0.05)
  3411. 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)
  3412. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(12), math.rad(0), math.rad(24)), 0.35)
  3413. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(12), math.rad(0), math.rad(62)), 0.35)
  3414. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.3, 0) * angles(math.rad(12), math.rad(0), math.rad(-23)), 0.35)
  3415. 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)
  3416. 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)
  3417. end
  3418.  
  3419.  
  3420.  
  3421. end
  3422. so("http://www.roblox.com/asset/?id=197161452", char, 0.5, 0.8)
  3423. con5:disconnect()
  3424.  
  3425.  
  3426. end -- combo hit end
  3427. attack = false
  3428. ultra = false
  3429. u:disconnect()
  3430.  
  3431. end
  3432.  
  3433.  
  3434.  
  3435.  
  3436. -------------------------------------------------------
  3437. --End Attacks N Stuff--
  3438. -------------------------------------------------------
  3439. mouse.KeyDown:connect(function(key)
  3440. if string.byte(key) == 48 then
  3441. Swing = 2
  3442. hum.WalkSpeed = 30
  3443. end
  3444. end)
  3445. mouse.KeyUp:connect(function(key)
  3446. if string.byte(key) == 48 then
  3447. Swing = 1
  3448. hum.WalkSpeed = 30
  3449. end
  3450. end)
  3451.  
  3452.  
  3453.  
  3454.  
  3455.  
  3456.  
  3457.  
  3458. mouse.Button1Down:connect(function()
  3459. if attack==false then
  3460. if attacktype==1 then
  3461. attack=true
  3462. attacktype=2
  3463. attackone()
  3464. elseif attacktype==2 then
  3465. attack=true
  3466. attacktype=3
  3467. attacktwo()
  3468. elseif attacktype==3 then
  3469. attack=true
  3470. attacktype=4
  3471. attackthree()
  3472. elseif attacktype==4 then
  3473. attack=true
  3474. attacktype=1
  3475. attackfour()
  3476. end
  3477. end
  3478. end)
  3479.  
  3480.  
  3481.  
  3482.  
  3483. mouse.KeyDown:connect(function(key)
  3484. if key == 'e' and attack == false and cankick == true and cooldown == false then
  3485. quickkick()
  3486. cooldown = false
  3487.  
  3488. coroutine.resume(coroutine.create(function()
  3489. wait(2)
  3490. cooldown = false
  3491. end))
  3492.  
  3493.  
  3494.  
  3495. end
  3496. end)
  3497.  
  3498.  
  3499.  
  3500.  
  3501.  
  3502.  
  3503.  
  3504.  
  3505. mouse.KeyDown:connect(function(key)
  3506. if attack == false then
  3507. if key == 't' then
  3508. Taunt()
  3509. elseif key == 'f' then
  3510. Hyperkickcombo()
  3511. elseif key == 'r' then
  3512. Galekicks()
  3513. end
  3514. end
  3515. end)
  3516.  
  3517. -------------------------------------------------------
  3518. --Start Animations--
  3519. -------------------------------------------------------
  3520. print("By Makhail07 and KillerDarkness0105")
  3521. print("Basic Animations by Makhail07")
  3522. print("Attack Animations by KillerDarkness0105")
  3523. print("This is pretty much our final script together")
  3524. print("--------------------------------")
  3525. print("Attacks")
  3526. print("E in air: Quick Kicks")
  3527. print("Left Mouse: 4 click combo")
  3528. print("F: Hyper Kicks")
  3529. print("R: Gale Kicks, Spam R if your combo is over 150 to do an ultra combo")
  3530. print("--------------------------------")
  3531. while true do
  3532. swait()
  3533. sine = sine + change
  3534. local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude
  3535. local velderp = root.Velocity.y
  3536. hitfloor, posfloor = rayCast(root.Position, CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0)).lookVector, 4* Player_Size, char)
  3537.  
  3538. if hitfloor == nil then
  3539. cankick = true
  3540. else
  3541. cankick = false
  3542. end
  3543.  
  3544.  
  3545. if equipped == true or equipped == false then
  3546. if attack == false then
  3547. idle = idle + 1
  3548. else
  3549. idle = 0
  3550. end
  3551. if 1 < root.Velocity.y and hitfloor == nil then
  3552. Anim = "Jump"
  3553. if attack == false then
  3554. hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(0,0,0),0.15)
  3555. 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)
  3556. 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)
  3557. 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)
  3558. 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)
  3559. 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)
  3560. 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)
  3561. end
  3562. elseif -1 > root.Velocity.y and hitfloor == nil then
  3563. Anim = "Fall"
  3564. if attack == false then
  3565. hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(0,0,0),0.15)
  3566. 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)
  3567. 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)
  3568. 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)
  3569. 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)
  3570. 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)
  3571. 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)
  3572. end
  3573. elseif torvel < 1 and hitfloor ~= nil then
  3574. Anim = "Idle"
  3575. change = 1
  3576. if attack == false then
  3577. hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(0,0,0),0.15)
  3578. 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)
  3579. 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)
  3580. 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)
  3581. 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)
  3582. 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)
  3583. 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)
  3584. end
  3585. elseif torvel > 2 and torvel < 22 and hitfloor ~= nil then
  3586. Anim = "Walk"
  3587. change = 1
  3588. if attack == false then
  3589. hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(0,0,0),0.15)
  3590. 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)
  3591. 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)
  3592. 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)
  3593. 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)
  3594. 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)
  3595. 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)
  3596. end
  3597. elseif torvel >= 22 and hitfloor ~= nil then
  3598. Anim = "Sprint"
  3599. change = 1.35
  3600. if attack == false then
  3601. hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(0,0,0),0.15)
  3602. 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)
  3603. 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)
  3604. 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)
  3605. 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)
  3606. 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)
  3607. 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)
  3608. end
  3609. end
  3610. end
  3611. Music.SoundId = "rbxassetid://"..SONG
  3612. Music.Looped = true
  3613. Music.Pitch = 1
  3614. Music.Volume = 0.7
  3615. Music.Parent = tors
  3616. Music:Resume()
  3617. if 0 < #Effects then
  3618. for e = 1, #Effects do
  3619. if Effects[e] ~= nil then
  3620. local Thing = Effects[e]
  3621. if Thing ~= nil then
  3622. local Part = Thing[1]
  3623. local Mode = Thing[2]
  3624. local Delay = Thing[3]
  3625. local IncX = Thing[4]
  3626. local IncY = Thing[5]
  3627. local IncZ = Thing[6]
  3628. if 1 >= Thing[1].Transparency then
  3629. if Thing[2] == "Block1" then
  3630. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  3631. local Mesh = Thing[1].Mesh
  3632. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  3633. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  3634. elseif Thing[2] == "Block2" then
  3635. Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0)
  3636. local Mesh = Thing[7]
  3637. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  3638. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  3639. elseif Thing[2] == "Block3" then
  3640. 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)
  3641. local Mesh = Thing[7]
  3642. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  3643. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  3644. elseif Thing[2] == "Cylinder" then
  3645. local Mesh = Thing[1].Mesh
  3646. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  3647. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  3648. elseif Thing[2] == "Blood" then
  3649. local Mesh = Thing[7]
  3650. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0)
  3651. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  3652. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  3653. elseif Thing[2] == "Elec" then
  3654. local Mesh = Thing[1].Mesh
  3655. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  3656. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  3657. elseif Thing[2] == "Disappear" then
  3658. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  3659. elseif Thing[2] == "Shatter" then
  3660. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  3661. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  3662. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  3663. Thing[6] = Thing[6] + Thing[5]
  3664. end
  3665. else
  3666. Part.Parent = nil
  3667. table.remove(Effects, e)
  3668. end
  3669. end
  3670. end
  3671. end
  3672. end
  3673. end
  3674. -------------------------------------------------------
  3675. --End Animations And Script--
  3676. ---------------------------------------------------------[[ Options ]]--
  3677. _G.CharacterBug = false --Set to true if your uppertorso floats when you use the script with R15.
  3678. _G.GodMode = true --Set to true if you want godmode.
  3679. _G.R6 = true --Set to true if you wanna enable R15 to R6 when your R15.
  3680. --[[Reanimate]]--
  3681. loadstring(game:HttpGet("https://gist.githubusercontent.com/M6HqVBcddw2qaN4s/fc29cbf0eda6f8b129778b441be3128f/raw/6StQ2n56PnEHMhQ9"))()
  3682.  
  3683. function LoadLibrary(a)
  3684. local t = {}
  3685.  
  3686. ------------------------------------------------------------------------------------------------------------------------
  3687. ------------------------------------------------------------------------------------------------------------------------
  3688. ------------------------------------------------------------------------------------------------------------------------
  3689. ------------------------------------------------JSON Functions Begin----------------------------------------------------
  3690. ------------------------------------------------------------------------------------------------------------------------
  3691. ------------------------------------------------------------------------------------------------------------------------
  3692. ------------------------------------------------------------------------------------------------------------------------
  3693.  
  3694. --JSON Encoder and Parser for Lua 5.1
  3695. --
  3696. --Copyright 2007 Shaun Brown (http://www.chipmunkav.com)
  3697. --All Rights Reserved.
  3698.  
  3699. --Permission is hereby granted, free of charge, to any person
  3700. --obtaining a copy of this software to deal in the Software without
  3701. --restriction, including without limitation the rights to use,
  3702. --copy, modify, merge, publish, distribute, sublicense, and/or
  3703. --sell copies of the Software, and to permit persons to whom the
  3704. --Software is furnished to do so, subject to the following conditions:
  3705.  
  3706. --The above copyright notice and this permission notice shall be
  3707. --included in all copies or substantial portions of the Software.
  3708. --If you find this software useful please give www.chipmunkav.com a mention.
  3709.  
  3710. --THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  3711. --EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
  3712. --OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
  3713. --IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR
  3714. --ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
  3715. --CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  3716. --CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  3717.  
  3718. local string = string
  3719. local math = math
  3720. local table = table
  3721. local error = error
  3722. local tonumber = tonumber
  3723. local tostring = tostring
  3724. local type = type
  3725. local setmetatable = setmetatable
  3726. local pairs = pairs
  3727. local ipairs = ipairs
  3728. local assert = assert
  3729.  
  3730.  
  3731. local StringBuilder = {
  3732. buffer = {}
  3733. }
  3734.  
  3735. function StringBuilder:New()
  3736. local o = {}
  3737. setmetatable(o, self)
  3738. self.__index = self
  3739. o.buffer = {}
  3740. return o
  3741. end
  3742.  
  3743. function StringBuilder:Append(s)
  3744. self.buffer[#self.buffer+1] = s
  3745. end
  3746.  
  3747. function StringBuilder:ToString()
  3748. return table.concat(self.buffer)
  3749. end
  3750.  
  3751. local JsonWriter = {
  3752. backslashes = {
  3753. ['\b'] = "\\b",
  3754. ['\t'] = "\\t",
  3755. ['\n'] = "\\n",
  3756. ['\f'] = "\\f",
  3757. ['\r'] = "\\r",
  3758. ['"'] = "\\\"",
  3759. ['\\'] = "\\\\",
  3760. ['/'] = "\\/"
  3761. }
  3762. }
  3763.  
  3764. function JsonWriter:New()
  3765. local o = {}
  3766. o.writer = StringBuilder:New()
  3767. setmetatable(o, self)
  3768. self.__index = self
  3769. return o
  3770. end
  3771.  
  3772. function JsonWriter:Append(s)
  3773. self.writer:Append(s)
  3774. end
  3775.  
  3776. function JsonWriter:ToString()
  3777. return self.writer:ToString()
  3778. end
  3779.  
  3780. function JsonWriter:Write(o)
  3781. local t = type(o)
  3782. if t == "nil" then
  3783. self:WriteNil()
  3784. elseif t == "boolean" then
  3785. self:WriteString(o)
  3786. elseif t == "number" then
  3787. self:WriteString(o)
  3788. elseif t == "string" then
  3789. self:ParseString(o)
  3790. elseif t == "table" then
  3791. self:WriteTable(o)
  3792. elseif t == "function" then
  3793. self:WriteFunction(o)
  3794. elseif t == "thread" then
  3795. self:WriteError(o)
  3796. elseif t == "userdata" then
  3797. self:WriteError(o)
  3798. end
  3799. end
  3800.  
  3801. function JsonWriter:WriteNil()
  3802. self:Append("null")
  3803. end
  3804.  
  3805. function JsonWriter:WriteString(o)
  3806. self:Append(tostring(o))
  3807. end
  3808.  
  3809. function JsonWriter:ParseString(s)
  3810. self:Append('"')
  3811. self:Append(string.gsub(s, "[%z%c\\\"/]", function(n)
  3812. local c = self.backslashes[n]
  3813. if c then return c end
  3814. return string.format("\\u%.4X", string.byte(n))
  3815. end))
  3816. self:Append('"')
  3817. end
  3818.  
  3819. function JsonWriter:IsArray(t)
  3820. local count = 0
  3821. local isindex = function(k)
  3822. if type(k) == "number" and k > 0 then
  3823. if math.floor(k) == k then
  3824. return true
  3825. end
  3826. end
  3827. return false
  3828. end
  3829. for k,v in pairs(t) do
  3830. if not isindex(k) then
  3831. return false, '{', '}'
  3832. else
  3833. count = math.max(count, k)
  3834. end
  3835. end
  3836. return true, '[', ']', count
  3837. end
  3838.  
  3839. function JsonWriter:WriteTable(t)
  3840. local ba, st, et, n = self:IsArray(t)
  3841. self:Append(st)
  3842. if ba then
  3843. for i = 1, n do
  3844. self:Write(t[i])
  3845. if i < n then
  3846. self:Append(',')
  3847. end
  3848. end
  3849. else
  3850. local first = true;
  3851. for k, v in pairs(t) do
  3852. if not first then
  3853. self:Append(',')
  3854. end
  3855. first = false;
  3856. self:ParseString(k)
  3857. self:Append(':')
  3858. self:Write(v)
  3859. end
  3860. end
  3861. self:Append(et)
  3862. end
  3863.  
  3864. function JsonWriter:WriteError(o)
  3865. error(string.format(
  3866. "Encoding of %s unsupported",
  3867. tostring(o)))
  3868. end
  3869.  
  3870. function JsonWriter:WriteFunction(o)
  3871. if o == Null then
  3872. self:WriteNil()
  3873. else
  3874. self:WriteError(o)
  3875. end
  3876. end
  3877.  
  3878. local StringReader = {
  3879. s = "",
  3880. i = 0
  3881. }
  3882.  
  3883. function StringReader:New(s)
  3884. local o = {}
  3885. setmetatable(o, self)
  3886. self.__index = self
  3887. o.s = s or o.s
  3888. return o
  3889. end
  3890.  
  3891. function StringReader:Peek()
  3892. local i = self.i + 1
  3893. if i <= #self.s then
  3894. return string.sub(self.s, i, i)
  3895. end
  3896. return nil
  3897. end
  3898.  
  3899. function StringReader:Next()
  3900. self.i = self.i+1
  3901. if self.i <= #self.s then
  3902. return string.sub(self.s, self.i, self.i)
  3903. end
  3904. return nil
  3905. end
  3906.  
  3907. function StringReader:All()
  3908. return self.s
  3909. end
  3910.  
  3911. local JsonReader = {
  3912. escapes = {
  3913. ['t'] = '\t',
  3914. ['n'] = '\n',
  3915. ['f'] = '\f',
  3916. ['r'] = '\r',
  3917. ['b'] = '\b',
  3918. }
  3919. }
  3920.  
  3921. function JsonReader:New(s)
  3922. local o = {}
  3923. o.reader = StringReader:New(s)
  3924. setmetatable(o, self)
  3925. self.__index = self
  3926. return o;
  3927. end
  3928.  
  3929. function JsonReader:Read()
  3930. self:SkipWhiteSpace()
  3931. local peek = self:Peek()
  3932. if peek == nil then
  3933. error(string.format(
  3934. "Nil string: '%s'",
  3935. self:All()))
  3936. elseif peek == '{' then
  3937. return self:ReadObject()
  3938. elseif peek == '[' then
  3939. return self:ReadArray()
  3940. elseif peek == '"' then
  3941. return self:ReadString()
  3942. elseif string.find(peek, "[%+%-%d]") then
  3943. return self:ReadNumber()
  3944. elseif peek == 't' then
  3945. return self:ReadTrue()
  3946. elseif peek == 'f' then
  3947. return self:ReadFalse()
  3948. elseif peek == 'n' then
  3949. return self:ReadNull()
  3950. elseif peek == '/' then
  3951. self:ReadComment()
  3952. return self:Read()
  3953. else
  3954. return nil
  3955. end
  3956. end
  3957.  
  3958. function JsonReader:ReadTrue()
  3959. self:TestReservedWord{'t','r','u','e'}
  3960. return true
  3961. end
  3962.  
  3963. function JsonReader:ReadFalse()
  3964. self:TestReservedWord{'f','a','l','s','e'}
  3965. return false
  3966. end
  3967.  
  3968. function JsonReader:ReadNull()
  3969. self:TestReservedWord{'n','u','l','l'}
  3970. return nil
  3971. end
  3972.  
  3973. function JsonReader:TestReservedWord(t)
  3974. for i, v in ipairs(t) do
  3975. if self:Next() ~= v then
  3976. error(string.format(
  3977. "Error reading '%s': %s",
  3978. table.concat(t),
  3979. self:All()))
  3980. end
  3981. end
  3982. end
  3983.  
  3984. function JsonReader:ReadNumber()
  3985. local result = self:Next()
  3986. local peek = self:Peek()
  3987. while peek ~= nil and string.find(
  3988. peek,
  3989. "[%+%-%d%.eE]") do
  3990. result = result .. self:Next()
  3991. peek = self:Peek()
  3992. end
  3993. result = tonumber(result)
  3994. if result == nil then
  3995. error(string.format(
  3996. "Invalid number: '%s'",
  3997. result))
  3998. else
  3999. return result
  4000. end
  4001. end
  4002.  
  4003. function JsonReader:ReadString()
  4004. local result = ""
  4005. assert(self:Next() == '"')
  4006. while self:Peek() ~= '"' do
  4007. local ch = self:Next()
  4008. if ch == '\\' then
  4009. ch = self:Next()
  4010. if self.escapes[ch] then
  4011. ch = self.escapes[ch]
  4012. end
  4013. end
  4014. result = result .. ch
  4015. end
  4016. assert(self:Next() == '"')
  4017. local fromunicode = function(m)
  4018. return string.char(tonumber(m, 16))
  4019. end
  4020. return string.gsub(
  4021. result,
  4022. "u%x%x(%x%x)",
  4023. fromunicode)
  4024. end
  4025.  
  4026. function JsonReader:ReadComment()
  4027. assert(self:Next() == '/')
  4028. local second = self:Next()
  4029. if second == '/' then
  4030. self:ReadSingleLineComment()
  4031. elseif second == '*' then
  4032. self:ReadBlockComment()
  4033. else
  4034. error(string.format(
  4035. "Invalid comment: %s",
  4036. self:All()))
  4037. end
  4038. end
  4039.  
  4040. function JsonReader:ReadBlockComment()
  4041. local done = false
  4042. while not done do
  4043. local ch = self:Next()
  4044. if ch == '*' and self:Peek() == '/' then
  4045. done = true
  4046. end
  4047. if not done and
  4048. ch == '/' and
  4049. self:Peek() == "*" then
  4050. error(string.format(
  4051. "Invalid comment: %s, '/*' illegal.",
  4052. self:All()))
  4053. end
  4054. end
  4055. self:Next()
  4056. end
  4057.  
  4058. function JsonReader:ReadSingleLineComment()
  4059. local ch = self:Next()
  4060. while ch ~= '\r' and ch ~= '\n' do
  4061. ch = self:Next()
  4062. end
  4063. end
  4064.  
  4065. function JsonReader:ReadArray()
  4066. local result = {}
  4067. assert(self:Next() == '[')
  4068. local done = false
  4069. if self:Peek() == ']' then
  4070. done = true;
  4071. end
  4072. while not done do
  4073. local item = self:Read()
  4074. result[#result+1] = item
  4075. self:SkipWhiteSpace()
  4076. if self:Peek() == ']' then
  4077. done = true
  4078. end
  4079. if not done then
  4080. local ch = self:Next()
  4081. if ch ~= ',' then
  4082. error(string.format(
  4083. "Invalid array: '%s' due to: '%s'",
  4084. self:All(), ch))
  4085. end
  4086. end
  4087. end
  4088. assert(']' == self:Next())
  4089. return result
  4090. end
  4091.  
  4092. function JsonReader:ReadObject()
  4093. local result = {}
  4094. assert(self:Next() == '{')
  4095. local done = false
  4096. if self:Peek() == '}' then
  4097. done = true
  4098. end
  4099. while not done do
  4100. local key = self:Read()
  4101. if type(key) ~= "string" then
  4102. error(string.format(
  4103. "Invalid non-string object key: %s",
  4104. key))
  4105. end
  4106. self:SkipWhiteSpace()
  4107. local ch = self:Next()
  4108. if ch ~= ':' then
  4109. error(string.format(
  4110. "Invalid object: '%s' due to: '%s'",
  4111. self:All(),
  4112. ch))
  4113. end
  4114. self:SkipWhiteSpace()
  4115. local val = self:Read()
  4116. result[key] = val
  4117. self:SkipWhiteSpace()
  4118. if self:Peek() == '}' then
  4119. done = true
  4120. end
  4121. if not done then
  4122. ch = self:Next()
  4123. if ch ~= ',' then
  4124. error(string.format(
  4125. "Invalid array: '%s' near: '%s'",
  4126. self:All(),
  4127. ch))
  4128. end
  4129. end
  4130. end
  4131. assert(self:Next() == "}")
  4132. return result
  4133. end
  4134.  
  4135. function JsonReader:SkipWhiteSpace()
  4136. local p = self:Peek()
  4137. while p ~= nil and string.find(p, "[%s/]") do
  4138. if p == '/' then
  4139. self:ReadComment()
  4140. else
  4141. self:Next()
  4142. end
  4143. p = self:Peek()
  4144. end
  4145. end
  4146.  
  4147. function JsonReader:Peek()
  4148. return self.reader:Peek()
  4149. end
  4150.  
  4151. function JsonReader:Next()
  4152. return self.reader:Next()
  4153. end
  4154.  
  4155. function JsonReader:All()
  4156. return self.reader:All()
  4157. end
  4158.  
  4159. function Encode(o)
  4160. local writer = JsonWriter:New()
  4161. writer:Write(o)
  4162. return writer:ToString()
  4163. end
  4164.  
  4165. function Decode(s)
  4166. local reader = JsonReader:New(s)
  4167. return reader:Read()
  4168. end
  4169.  
  4170. function Null()
  4171. return Null
  4172. end
  4173. -------------------- End JSON Parser ------------------------
  4174.  
  4175. t.DecodeJSON = function(jsonString)
  4176. pcall(function() warn("RbxUtility.DecodeJSON is deprecated, please use Game:GetService('HttpService'):JSONDecode() instead.") end)
  4177.  
  4178. if type(jsonString) == "string" then
  4179. return Decode(jsonString)
  4180. end
  4181. print("RbxUtil.DecodeJSON expects string argument!")
  4182. return nil
  4183. end
  4184.  
  4185. t.EncodeJSON = function(jsonTable)
  4186. pcall(function() warn("RbxUtility.EncodeJSON is deprecated, please use Game:GetService('HttpService'):JSONEncode() instead.") end)
  4187. return Encode(jsonTable)
  4188. end
  4189.  
  4190.  
  4191.  
  4192.  
  4193.  
  4194.  
  4195.  
  4196.  
  4197. ------------------------------------------------------------------------------------------------------------------------
  4198. ------------------------------------------------------------------------------------------------------------------------
  4199. ------------------------------------------------------------------------------------------------------------------------
  4200. --------------------------------------------Terrain Utilities Begin-----------------------------------------------------
  4201. ------------------------------------------------------------------------------------------------------------------------
  4202. ------------------------------------------------------------------------------------------------------------------------
  4203. ------------------------------------------------------------------------------------------------------------------------
  4204. --makes a wedge at location x, y, z
  4205. --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
  4206. --returns true if made a wedge, false if the cell remains a block
  4207. t.MakeWedge = function(x, y, z, defaultmaterial)
  4208. return game:GetService("Terrain"):AutoWedgeCell(x,y,z)
  4209. end
  4210.  
  4211. t.SelectTerrainRegion = function(regionToSelect, color, selectEmptyCells, selectionParent)
  4212. local terrain = game:GetService("Workspace"):FindFirstChild("Terrain")
  4213. if not terrain then return end
  4214.  
  4215. assert(regionToSelect)
  4216. assert(color)
  4217.  
  4218. if not type(regionToSelect) == "Region3" then
  4219. error("regionToSelect (first arg), should be of type Region3, but is type",type(regionToSelect))
  4220. end
  4221. if not type(color) == "BrickColor" then
  4222. error("color (second arg), should be of type BrickColor, but is type",type(color))
  4223. end
  4224.  
  4225. -- frequently used terrain calls (speeds up call, no lookup necessary)
  4226. local GetCell = terrain.GetCell
  4227. local WorldToCellPreferSolid = terrain.WorldToCellPreferSolid
  4228. local CellCenterToWorld = terrain.CellCenterToWorld
  4229. local emptyMaterial = Enum.CellMaterial.Empty
  4230.  
  4231. -- container for all adornments, passed back to user
  4232. local selectionContainer = Instance.new("Model")
  4233. selectionContainer.Name = "SelectionContainer"
  4234. selectionContainer.Archivable = false
  4235. if selectionParent then
  4236. selectionContainer.Parent = selectionParent
  4237. else
  4238. selectionContainer.Parent = game:GetService("Workspace")
  4239. end
  4240.  
  4241. local updateSelection = nil -- function we return to allow user to update selection
  4242. local currentKeepAliveTag = nil -- a tag that determines whether adorns should be destroyed
  4243. local aliveCounter = 0 -- helper for currentKeepAliveTag
  4244. local lastRegion = nil -- used to stop updates that do nothing
  4245. local adornments = {} -- contains all adornments
  4246. local reusableAdorns = {}
  4247.  
  4248. local selectionPart = Instance.new("Part")
  4249. selectionPart.Name = "SelectionPart"
  4250. selectionPart.Transparency = 1
  4251. selectionPart.Anchored = true
  4252. selectionPart.Locked = true
  4253. selectionPart.CanCollide = false
  4254. selectionPart.Size = Vector3.new(4.2,4.2,4.2)
  4255.  
  4256. local selectionBox = Instance.new("SelectionBox")
  4257.  
  4258. -- srs translation from region3 to region3int16
  4259. local function Region3ToRegion3int16(region3)
  4260. local theLowVec = region3.CFrame.p - (region3.Size/2) + Vector3.new(2,2,2)
  4261. local lowCell = WorldToCellPreferSolid(terrain,theLowVec)
  4262.  
  4263. local theHighVec = region3.CFrame.p + (region3.Size/2) - Vector3.new(2,2,2)
  4264. local highCell = WorldToCellPreferSolid(terrain, theHighVec)
  4265.  
  4266. local highIntVec = Vector3int16.new(highCell.x,highCell.y,highCell.z)
  4267. local lowIntVec = Vector3int16.new(lowCell.x,lowCell.y,lowCell.z)
  4268.  
  4269. return Region3int16.new(lowIntVec,highIntVec)
  4270. end
  4271.  
  4272. -- helper function that creates the basis for a selection box
  4273. function createAdornment(theColor)
  4274. local selectionPartClone = nil
  4275. local selectionBoxClone = nil
  4276.  
  4277. if #reusableAdorns > 0 then
  4278. selectionPartClone = reusableAdorns[1]["part"]
  4279. selectionBoxClone = reusableAdorns[1]["box"]
  4280. table.remove(reusableAdorns,1)
  4281.  
  4282. selectionBoxClone.Visible = true
  4283. else
  4284. selectionPartClone = selectionPart:Clone()
  4285. selectionPartClone.Archivable = false
  4286.  
  4287. selectionBoxClone = selectionBox:Clone()
  4288. selectionBoxClone.Archivable = false
  4289.  
  4290. selectionBoxClone.Adornee = selectionPartClone
  4291. selectionBoxClone.Parent = selectionContainer
  4292.  
  4293. selectionBoxClone.Adornee = selectionPartClone
  4294.  
  4295. selectionBoxClone.Parent = selectionContainer
  4296. end
  4297.  
  4298. if theColor then
  4299. selectionBoxClone.Color = theColor
  4300. end
  4301.  
  4302. return selectionPartClone, selectionBoxClone
  4303. end
  4304.  
  4305. -- iterates through all current adornments and deletes any that don't have latest tag
  4306. function cleanUpAdornments()
  4307. for cellPos, adornTable in pairs(adornments) do
  4308.  
  4309. if adornTable.KeepAlive ~= currentKeepAliveTag then -- old news, we should get rid of this
  4310. adornTable.SelectionBox.Visible = false
  4311. table.insert(reusableAdorns,{part = adornTable.SelectionPart, box = adornTable.SelectionBox})
  4312. adornments[cellPos] = nil
  4313. end
  4314. end
  4315. end
  4316.  
  4317. -- helper function to update tag
  4318. function incrementAliveCounter()
  4319. aliveCounter = aliveCounter + 1
  4320. if aliveCounter > 1000000 then
  4321. aliveCounter = 0
  4322. end
  4323. return aliveCounter
  4324. end
  4325.  
  4326. -- finds full cells in region and adorns each cell with a box, with the argument color
  4327. function adornFullCellsInRegion(region, color)
  4328. local regionBegin = region.CFrame.p - (region.Size/2) + Vector3.new(2,2,2)
  4329. local regionEnd = region.CFrame.p + (region.Size/2) - Vector3.new(2,2,2)
  4330.  
  4331. local cellPosBegin = WorldToCellPreferSolid(terrain, regionBegin)
  4332. local cellPosEnd = WorldToCellPreferSolid(terrain, regionEnd)
  4333.  
  4334. currentKeepAliveTag = incrementAliveCounter()
  4335. for y = cellPosBegin.y, cellPosEnd.y do
  4336. for z = cellPosBegin.z, cellPosEnd.z do
  4337. for x = cellPosBegin.x, cellPosEnd.x do
  4338. local cellMaterial = GetCell(terrain, x, y, z)
  4339.  
  4340. if cellMaterial ~= emptyMaterial then
  4341. local cframePos = CellCenterToWorld(terrain, x, y, z)
  4342. local cellPos = Vector3int16.new(x,y,z)
  4343.  
  4344. local updated = false
  4345. for cellPosAdorn, adornTable in pairs(adornments) do
  4346. if cellPosAdorn == cellPos then
  4347. adornTable.KeepAlive = currentKeepAliveTag
  4348. if color then
  4349. adornTable.SelectionBox.Color = color
  4350. end
  4351. updated = true
  4352. break
  4353. end
  4354. end
  4355.  
  4356. if not updated then
  4357. local selectionPart, selectionBox = createAdornment(color)
  4358. selectionPart.Size = Vector3.new(4,4,4)
  4359. selectionPart.CFrame = CFrame.new(cframePos)
  4360. local adornTable = {SelectionPart = selectionPart, SelectionBox = selectionBox, KeepAlive = currentKeepAliveTag}
  4361. adornments[cellPos] = adornTable
  4362. end
  4363. end
  4364. end
  4365. end
  4366. end
  4367. cleanUpAdornments()
  4368. end
  4369.  
  4370.  
  4371. ------------------------------------- setup code ------------------------------
  4372. lastRegion = regionToSelect
  4373.  
  4374. if selectEmptyCells then -- use one big selection to represent the area selected
  4375. local selectionPart, selectionBox = createAdornment(color)
  4376.  
  4377. selectionPart.Size = regionToSelect.Size
  4378. selectionPart.CFrame = regionToSelect.CFrame
  4379.  
  4380. adornments.SelectionPart = selectionPart
  4381. adornments.SelectionBox = selectionBox
  4382.  
  4383. updateSelection =
  4384. function (newRegion, color)
  4385. if newRegion and newRegion ~= lastRegion then
  4386. lastRegion = newRegion
  4387. selectionPart.Size = newRegion.Size
  4388. selectionPart.CFrame = newRegion.CFrame
  4389. end
  4390. if color then
  4391. selectionBox.Color = color
  4392. end
  4393. end
  4394. else -- use individual cell adorns to represent the area selected
  4395. adornFullCellsInRegion(regionToSelect, color)
  4396. updateSelection =
  4397. function (newRegion, color)
  4398. if newRegion and newRegion ~= lastRegion then
  4399. lastRegion = newRegion
  4400. adornFullCellsInRegion(newRegion, color)
  4401. end
  4402. end
  4403.  
  4404. end
  4405.  
  4406. local destroyFunc = function()
  4407. updateSelection = nil
  4408. if selectionContainer then selectionContainer:Destroy() end
  4409. adornments = nil
  4410. end
  4411.  
  4412. return updateSelection, destroyFunc
  4413. end
  4414.  
  4415. -----------------------------Terrain Utilities End-----------------------------
  4416.  
  4417.  
  4418.  
  4419.  
  4420.  
  4421.  
  4422.  
  4423. ------------------------------------------------------------------------------------------------------------------------
  4424. ------------------------------------------------------------------------------------------------------------------------
  4425. ------------------------------------------------------------------------------------------------------------------------
  4426. ------------------------------------------------Signal class begin------------------------------------------------------
  4427. ------------------------------------------------------------------------------------------------------------------------
  4428. ------------------------------------------------------------------------------------------------------------------------
  4429. ------------------------------------------------------------------------------------------------------------------------
  4430. --[[
  4431. A 'Signal' object identical to the internal RBXScriptSignal object in it's public API and semantics. This function
  4432. can be used to create "custom events" for user-made code.
  4433. API:
  4434. Method :connect( function handler )
  4435. Arguments: The function to connect to.
  4436. Returns: A new connection object which can be used to disconnect the connection
  4437. Description: Connects this signal to the function specified by |handler|. That is, when |fire( ... )| is called for
  4438. the signal the |handler| will be called with the arguments given to |fire( ... )|. Note, the functions
  4439. connected to a signal are called in NO PARTICULAR ORDER, so connecting one function after another does
  4440. NOT mean that the first will be called before the second as a result of a call to |fire|.
  4441.  
  4442. Method :disconnect()
  4443. Arguments: None
  4444. Returns: None
  4445. Description: Disconnects all of the functions connected to this signal.
  4446.  
  4447. Method :fire( ... )
  4448. Arguments: Any arguments are accepted
  4449. Returns: None
  4450. Description: Calls all of the currently connected functions with the given arguments.
  4451.  
  4452. Method :wait()
  4453. Arguments: None
  4454. Returns: The arguments given to fire
  4455. Description: This call blocks until
  4456. ]]
  4457.  
  4458. function t.CreateSignal()
  4459. local this = {}
  4460.  
  4461. local mBindableEvent = Instance.new('BindableEvent')
  4462. local mAllCns = {} --all connection objects returned by mBindableEvent::connect
  4463.  
  4464. --main functions
  4465. function this:connect(func)
  4466. if self ~= this then error("connect must be called with `:`, not `.`", 2) end
  4467. if type(func) ~= 'function' then
  4468. error("Argument #1 of connect must be a function, got a "..type(func), 2)
  4469. end
  4470. local cn = mBindableEvent.Event:Connect(func)
  4471. mAllCns[cn] = true
  4472. local pubCn = {}
  4473. function pubCn:disconnect()
  4474. cn:Disconnect()
  4475. mAllCns[cn] = nil
  4476. end
  4477. pubCn.Disconnect = pubCn.disconnect
  4478.  
  4479. return pubCn
  4480. end
  4481.  
  4482. function this:disconnect()
  4483. if self ~= this then error("disconnect must be called with `:`, not `.`", 2) end
  4484. for cn, _ in pairs(mAllCns) do
  4485. cn:Disconnect()
  4486. mAllCns[cn] = nil
  4487. end
  4488. end
  4489.  
  4490. function this:wait()
  4491. if self ~= this then error("wait must be called with `:`, not `.`", 2) end
  4492. return mBindableEvent.Event:Wait()
  4493. end
  4494.  
  4495. function this:fire(...)
  4496. if self ~= this then error("fire must be called with `:`, not `.`", 2) end
  4497. mBindableEvent:Fire(...)
  4498. end
  4499.  
  4500. this.Connect = this.connect
  4501. this.Disconnect = this.disconnect
  4502. this.Wait = this.wait
  4503. this.Fire = this.fire
  4504.  
  4505. return this
  4506. end
  4507.  
  4508. ------------------------------------------------- Sigal class End ------------------------------------------------------
  4509.  
  4510.  
  4511.  
  4512.  
  4513. ------------------------------------------------------------------------------------------------------------------------
  4514. ------------------------------------------------------------------------------------------------------------------------
  4515. ------------------------------------------------------------------------------------------------------------------------
  4516. -----------------------------------------------Create Function Begins---------------------------------------------------
  4517. ------------------------------------------------------------------------------------------------------------------------
  4518. ------------------------------------------------------------------------------------------------------------------------
  4519. ------------------------------------------------------------------------------------------------------------------------
  4520. --[[
  4521. A "Create" function for easy creation of Roblox instances. The function accepts a string which is the classname of
  4522. the object to be created. The function then returns another function which either accepts accepts no arguments, in
  4523. which case it simply creates an object of the given type, or a table argument that may contain several types of data,
  4524. in which case it mutates the object in varying ways depending on the nature of the aggregate data. These are the
  4525. type of data and what operation each will perform:
  4526. 1) A string key mapping to some value:
  4527. Key-Value pairs in this form will be treated as properties of the object, and will be assigned in NO PARTICULAR
  4528. ORDER. If the order in which properties is assigned matter, then they must be assigned somewhere else than the
  4529. |Create| call's body.
  4530.  
  4531. 2) An integral key mapping to another Instance:
  4532. Normal numeric keys mapping to Instances will be treated as children if the object being created, and will be
  4533. parented to it. This allows nice recursive calls to Create to create a whole hierarchy of objects without a
  4534. need for temporary variables to store references to those objects.
  4535.  
  4536. 3) A key which is a value returned from Create.Event( eventname ), and a value which is a function function
  4537. The Create.E( string ) function provides a limited way to connect to signals inside of a Create hierarchy
  4538. for those who really want such a functionality. The name of the event whose name is passed to
  4539. Create.E( string )
  4540.  
  4541. 4) A key which is the Create function itself, and a value which is a function
  4542. The function will be run with the argument of the object itself after all other initialization of the object is
  4543. done by create. This provides a way to do arbitrary things involving the object from withing the create
  4544. hierarchy.
  4545. Note: This function is called SYNCHRONOUSLY, that means that you should only so initialization in
  4546. it, not stuff which requires waiting, as the Create call will block until it returns. While waiting in the
  4547. constructor callback function is possible, it is probably not a good design choice.
  4548. Note: Since the constructor function is called after all other initialization, a Create block cannot have two
  4549. constructor functions, as it would not be possible to call both of them last, also, this would be unnecessary.
  4550.  
  4551.  
  4552. Some example usages:
  4553.  
  4554. A simple example which uses the Create function to create a model object and assign two of it's properties.
  4555. local model = Create'Model'{
  4556. Name = 'A New model',
  4557. Parent = game.Workspace,
  4558. }
  4559.  
  4560.  
  4561. An example where a larger hierarchy of object is made. After the call the hierarchy will look like this:
  4562. Model_Container
  4563. |-ObjectValue
  4564. | |
  4565. | `-BoolValueChild
  4566. `-IntValue
  4567.  
  4568. local model = Create'Model'{
  4569. Name = 'Model_Container',
  4570. Create'ObjectValue'{
  4571. Create'BoolValue'{
  4572. Name = 'BoolValueChild',
  4573. },
  4574. },
  4575. Create'IntValue'{},
  4576. }
  4577.  
  4578.  
  4579. An example using the event syntax:
  4580.  
  4581. local part = Create'Part'{
  4582. [Create.E'Touched'] = function(part)
  4583. print("I was touched by "..part.Name)
  4584. end,
  4585. }
  4586.  
  4587.  
  4588. An example using the general constructor syntax:
  4589.  
  4590. local model = Create'Part'{
  4591. [Create] = function(this)
  4592. print("Constructor running!")
  4593. this.Name = GetGlobalFoosAndBars(this)
  4594. end,
  4595. }
  4596.  
  4597.  
  4598. Note: It is also perfectly legal to save a reference to the function returned by a call Create, this will not cause
  4599. any unexpected behavior. EG:
  4600. local partCreatingFunction = Create'Part'
  4601. local part = partCreatingFunction()
  4602. ]]
  4603.  
  4604. --the Create function need to be created as a functor, not a function, in order to support the Create.E syntax, so it
  4605. --will be created in several steps rather than as a single function declaration.
  4606. local function Create_PrivImpl(objectType)
  4607. if type(objectType) ~= 'string' then
  4608. error("Argument of Create must be a string", 2)
  4609. end
  4610. --return the proxy function that gives us the nice Create'string'{data} syntax
  4611. --The first function call is a function call using Lua's single-string-argument syntax
  4612. --The second function call is using Lua's single-table-argument syntax
  4613. --Both can be chained together for the nice effect.
  4614. return function(dat)
  4615. --default to nothing, to handle the no argument given case
  4616. dat = dat or {}
  4617.  
  4618. --make the object to mutate
  4619. local obj = Instance.new(objectType)
  4620. local parent = nil
  4621.  
  4622. --stored constructor function to be called after other initialization
  4623. local ctor = nil
  4624.  
  4625. for k, v in pairs(dat) do
  4626. --add property
  4627. if type(k) == 'string' then
  4628. if k == 'Parent' then
  4629. -- Parent should always be set last, setting the Parent of a new object
  4630. -- immediately makes performance worse for all subsequent property updates.
  4631. parent = v
  4632. else
  4633. obj[k] = v
  4634. end
  4635.  
  4636.  
  4637. --add child
  4638. elseif type(k) == 'number' then
  4639. if type(v) ~= 'userdata' then
  4640. error("Bad entry in Create body: Numeric keys must be paired with children, got a: "..type(v), 2)
  4641. end
  4642. v.Parent = obj
  4643.  
  4644.  
  4645. --event connect
  4646. elseif type(k) == 'table' and k.__eventname then
  4647. if type(v) ~= 'function' then
  4648. error("Bad entry in Create body: Key `[Create.E\'"..k.__eventname.."\']` must have a function value\
  4649. got: "..tostring(v), 2)
  4650. end
  4651. obj[k.__eventname]:connect(v)
  4652.  
  4653.  
  4654. --define constructor function
  4655. elseif k == t.Create then
  4656. if type(v) ~= 'function' then
  4657. error("Bad entry in Create body: Key `[Create]` should be paired with a constructor function, \
  4658. got: "..tostring(v), 2)
  4659. elseif ctor then
  4660. --ctor already exists, only one allowed
  4661. error("Bad entry in Create body: Only one constructor function is allowed", 2)
  4662. end
  4663. ctor = v
  4664.  
  4665.  
  4666. else
  4667. error("Bad entry ("..tostring(k).." => "..tostring(v)..") in Create body", 2)
  4668. end
  4669. end
  4670.  
  4671. --apply constructor function if it exists
  4672. if ctor then
  4673. ctor(obj)
  4674. end
  4675.  
  4676. if parent then
  4677. obj.Parent = parent
  4678. end
  4679.  
  4680. --return the completed object
  4681. return obj
  4682. end
  4683. end
  4684.  
  4685. --now, create the functor:
  4686. t.Create = setmetatable({}, {__call = function(tb, ...) return Create_PrivImpl(...) end})
  4687.  
  4688. --and create the "Event.E" syntax stub. Really it's just a stub to construct a table which our Create
  4689. --function can recognize as special.
  4690. t.Create.E = function(eventName)
  4691. return {__eventname = eventName}
  4692. end
  4693.  
  4694. -------------------------------------------------Create function End----------------------------------------------------
  4695.  
  4696.  
  4697.  
  4698.  
  4699. ------------------------------------------------------------------------------------------------------------------------
  4700. ------------------------------------------------------------------------------------------------------------------------
  4701. ------------------------------------------------------------------------------------------------------------------------
  4702. ------------------------------------------------Documentation Begin-----------------------------------------------------
  4703. ------------------------------------------------------------------------------------------------------------------------
  4704. ------------------------------------------------------------------------------------------------------------------------
  4705. ------------------------------------------------------------------------------------------------------------------------
  4706.  
  4707. t.Help =
  4708. function(funcNameOrFunc)
  4709. --input argument can be a string or a function. Should return a description (of arguments and expected side effects)
  4710. if funcNameOrFunc == "DecodeJSON" or funcNameOrFunc == t.DecodeJSON then
  4711. return "Function DecodeJSON. " ..
  4712. "Arguments: (string). " ..
  4713. "Side effect: returns a table with all parsed JSON values"
  4714. end
  4715. if funcNameOrFunc == "EncodeJSON" or funcNameOrFunc == t.EncodeJSON then
  4716. return "Function EncodeJSON. " ..
  4717. "Arguments: (table). " ..
  4718. "Side effect: returns a string composed of argument table in JSON data format"
  4719. end
  4720. if funcNameOrFunc == "MakeWedge" or funcNameOrFunc == t.MakeWedge then
  4721. return "Function MakeWedge. " ..
  4722. "Arguments: (x, y, z, [default material]). " ..
  4723. "Description: Makes a wedge at location x, y, z. Sets cell x, y, z to default material if "..
  4724. "parameter is provided, if not sets cell x, y, z to be whatever material it previously was. "..
  4725. "Returns true if made a wedge, false if the cell remains a block "
  4726. end
  4727. if funcNameOrFunc == "SelectTerrainRegion" or funcNameOrFunc == t.SelectTerrainRegion then
  4728. return "Function SelectTerrainRegion. " ..
  4729. "Arguments: (regionToSelect, color, selectEmptyCells, selectionParent). " ..
  4730. "Description: Selects all terrain via a series of selection boxes within the regionToSelect " ..
  4731. "(this should be a region3 value). The selection box color is detemined by the color argument " ..
  4732. "(should be a brickcolor value). SelectionParent is the parent that the selection model gets placed to (optional)." ..
  4733. "SelectEmptyCells is bool, when true will select all cells in the " ..
  4734. "region, otherwise we only select non-empty cells. Returns a function that can update the selection," ..
  4735. "arguments to said function are a new region3 to select, and the adornment color (color arg is optional). " ..
  4736. "Also returns a second function that takes no arguments and destroys the selection"
  4737. end
  4738. if funcNameOrFunc == "CreateSignal" or funcNameOrFunc == t.CreateSignal then
  4739. return "Function CreateSignal. "..
  4740. "Arguments: None. "..
  4741. "Returns: The newly created Signal object. This object is identical to the RBXScriptSignal class "..
  4742. "used for events in Objects, but is a Lua-side object so it can be used to create custom events in"..
  4743. "Lua code. "..
  4744. "Methods of the Signal object: :connect, :wait, :fire, :disconnect. "..
  4745. "For more info you can pass the method name to the Help function, or view the wiki page "..
  4746. "for this library. EG: Help('Signal:connect')."
  4747. end
  4748. if funcNameOrFunc == "Signal:connect" then
  4749. return "Method Signal:connect. "..
  4750. "Arguments: (function handler). "..
  4751. "Return: A connection object which can be used to disconnect the connection to this handler. "..
  4752. "Description: Connectes a handler function to this Signal, so that when |fire| is called the "..
  4753. "handler function will be called with the arguments passed to |fire|."
  4754. end
  4755. if funcNameOrFunc == "Signal:wait" then
  4756. return "Method Signal:wait. "..
  4757. "Arguments: None. "..
  4758. "Returns: The arguments passed to the next call to |fire|. "..
  4759. "Description: This call does not return until the next call to |fire| is made, at which point it "..
  4760. "will return the values which were passed as arguments to that |fire| call."
  4761. end
  4762. if funcNameOrFunc == "Signal:fire" then
  4763. return "Method Signal:fire. "..
  4764. "Arguments: Any number of arguments of any type. "..
  4765. "Returns: None. "..
  4766. "Description: This call will invoke any connected handler functions, and notify any waiting code "..
  4767. "attached to this Signal to continue, with the arguments passed to this function. Note: The calls "..
  4768. "to handlers are made asynchronously, so this call will return immediately regardless of how long "..
  4769. "it takes the connected handler functions to complete."
  4770. end
  4771. if funcNameOrFunc == "Signal:disconnect" then
  4772. return "Method Signal:disconnect. "..
  4773. "Arguments: None. "..
  4774. "Returns: None. "..
  4775. "Description: This call disconnects all handlers attacched to this function, note however, it "..
  4776. "does NOT make waiting code continue, as is the behavior of normal Roblox events. This method "..
  4777. "can also be called on the connection object which is returned from Signal:connect to only "..
  4778. "disconnect a single handler, as opposed to this method, which will disconnect all handlers."
  4779. end
  4780. if funcNameOrFunc == "Create" then
  4781. return "Function Create. "..
  4782. "Arguments: A table containing information about how to construct a collection of objects. "..
  4783. "Returns: The constructed objects. "..
  4784. "Descrition: Create is a very powerfull function, whose description is too long to fit here, and "..
  4785. "is best described via example, please see the wiki page for a description of how to use it."
  4786. end
  4787. end
  4788.  
  4789. --------------------------------------------Documentation Ends----------------------------------------------------------
  4790.  
  4791. return t
  4792. end
  4793.  
  4794. --[[ Name : Gale Fighter ]]--
  4795. -------------------------------------------------------
  4796. --A Collaboration Between makhail07 and KillerDarkness0105
  4797.  
  4798. --Base Animaion by makhail07, attacks by KillerDarkness0105
  4799. -------------------------------------------------------
  4800.  
  4801.  
  4802. local FavIDs = {
  4803. 340106355, --Nefl Crystals
  4804. 927529620, --Dimension
  4805. 876981900, --Fantasy
  4806. 398987889, --Ordinary Days
  4807. 1117396305, --Oh wait, it's you.
  4808. 885996042, --Action Winter Journey
  4809. 919231299, --Sprawling Idiot Effigy
  4810. 743466274, --Good Day Sunshine
  4811. 727411183, --Knife Fight
  4812. 1402748531, --The Earth Is Counting On You!
  4813. 595230126 --Robot Language
  4814. }
  4815.  
  4816.  
  4817.  
  4818. --The reality of my life isn't real but a Universe -makhail07
  4819. wait(0.2)
  4820. local plr = game:GetService("Players").LocalPlayer
  4821. print('Local User is '..plr.Name)
  4822. print('Gale Fighter Loaded')
  4823. print('The Fighter that is as fast as wind, a true Fighter')
  4824. local char = plr.Character.NullwareReanim
  4825. local hum = char.Humanoid
  4826. local hed = char.Head
  4827. local root = char.HumanoidRootPart
  4828. local rootj = root.RootJoint
  4829. local tors = char.Torso
  4830. local ra = char["Right Arm"]
  4831. local la = char["Left Arm"]
  4832. local rl = char["Right Leg"]
  4833. local ll = char["Left Leg"]
  4834. local neck = tors["Neck"]
  4835. local mouse = plr:GetMouse()
  4836. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  4837. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  4838. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  4839. local maincolor = BrickColor.new("Institutional white")
  4840. hum.MaxHealth = 200
  4841. hum.Health = 200
  4842.  
  4843. local hrp = game:GetService("Players").LocalPlayer.Character.HumanoidRootPart
  4844.  
  4845. hrp.Name = "HumanoidRootPart"
  4846. hrp.Transparency = 0.5
  4847. hrp.Anchored = false
  4848. if hrp:FindFirstChildOfClass("AlignPosition") then
  4849. hrp:FindFirstChildOfClass("AlignPosition"):Destroy()
  4850. end
  4851. if hrp:FindFirstChildOfClass("AlignOrientation") then
  4852. hrp:FindFirstChildOfClass("AlignOrientation"):Destroy()
  4853. end
  4854. local bp = Instance.new("BodyPosition", hrp)
  4855. bp.Position = hrp.Position
  4856. bp.D = 9999999
  4857. bp.P = 999999999999999
  4858. bp.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  4859. local flinger = Instance.new("BodyAngularVelocity",hrp)
  4860. flinger.MaxTorque = Vector3.new(math.huge,math.huge,math.huge)
  4861. flinger.P = 1000000000000000000000000000
  4862. flinger.AngularVelocity = Vector3.new(10000,10000,10000)
  4863.  
  4864. spawn(function()
  4865. while game:GetService("RunService").Heartbeat:Wait() do
  4866. bp.Position = game:GetService("Players").LocalPlayer.Character["NullwareReanim"].Torso.Position
  4867. end
  4868. end)
  4869.  
  4870. -------------------------------------------------------
  4871. --Start Good Stuff--
  4872. -------------------------------------------------------
  4873. cam = game.Workspace.CurrentCamera
  4874. CF = CFrame.new
  4875. angles = CFrame.Angles
  4876. attack = false
  4877. Euler = CFrame.fromEulerAnglesXYZ
  4878. Rad = math.rad
  4879. IT = Instance.new
  4880. BrickC = BrickColor.new
  4881. Cos = math.cos
  4882. Acos = math.acos
  4883. Sin = math.sin
  4884. Asin = math.asin
  4885. Abs = math.abs
  4886. Mrandom = math.random
  4887. Floor = math.floor
  4888. -------------------------------------------------------
  4889. --End Good Stuff--
  4890. -------------------------------------------------------
  4891. necko = CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  4892. RSH, LSH = nil, nil
  4893. RW = Instance.new("Weld")
  4894. LW = Instance.new("Weld")
  4895. RH = tors["Right Hip"]
  4896. LH = tors["Left Hip"]
  4897. RSH = tors["Right Shoulder"]
  4898. LSH = tors["Left Shoulder"]
  4899. RSH.Parent = nil
  4900. LSH.Parent = nil
  4901. RW.Name = "RW"
  4902. RW.Part0 = tors
  4903. RW.C0 = CF(1.5, 0.5, 0)
  4904. RW.C1 = CF(0, 0.5, 0)
  4905. RW.Part1 = ra
  4906. RW.Parent = tors
  4907. LW.Name = "LW"
  4908. LW.Part0 = tors
  4909. LW.C0 = CF(-1.5, 0.5, 0)
  4910. LW.C1 = CF(0, 0.5, 0)
  4911. LW.Part1 = la
  4912. LW.Parent = tors
  4913. vt = Vector3.new
  4914. Effects = {}
  4915. -------------------------------------------------------
  4916. --Start HeartBeat--
  4917. -------------------------------------------------------
  4918. ArtificialHB = Instance.new("BindableEvent", script)
  4919. ArtificialHB.Name = "Heartbeat"
  4920. script:WaitForChild("Heartbeat")
  4921.  
  4922. frame = 1 / 90
  4923. tf = 0
  4924. allowframeloss = false
  4925. tossremainder = false
  4926.  
  4927.  
  4928. lastframe = tick()
  4929. script.Heartbeat:Fire()
  4930.  
  4931.  
  4932. game:GetService("RunService").Heartbeat:connect(function(s, p)
  4933. tf = tf + s
  4934. if tf >= frame then
  4935. if allowframeloss then
  4936. script.Heartbeat:Fire()
  4937. lastframe = tick()
  4938. else
  4939. for i = 1, math.floor(tf / frame) do
  4940. script.Heartbeat:Fire()
  4941. end
  4942. lastframe = tick()
  4943. end
  4944. if tossremainder then
  4945. tf = 0
  4946. else
  4947. tf = tf - frame * math.floor(tf / frame)
  4948. end
  4949. end
  4950. end)
  4951. -------------------------------------------------------
  4952. --End HeartBeat--
  4953. -------------------------------------------------------
  4954.  
  4955.  
  4956.  
  4957. -------------------------------------------------------
  4958. --Start Combo Function--
  4959. -------------------------------------------------------
  4960. local comboing = false
  4961. local combohits = 0
  4962. local combotime = 0
  4963. local maxtime = 65
  4964.  
  4965.  
  4966.  
  4967. function sandbox(var,func)
  4968. local env = getfenv(func)
  4969. local newenv = setmetatable({},{
  4970. __index = function(self,k)
  4971. if k=="script" then
  4972. return var
  4973. else
  4974. return env[k]
  4975. end
  4976. end,
  4977. })
  4978. setfenv(func,newenv)
  4979. return func
  4980. end
  4981. cors = {}
  4982. mas = Instance.new("Model",game:GetService("Lighting"))
  4983. comboframe = Instance.new("ScreenGui")
  4984. Frame1 = Instance.new("Frame")
  4985. Frame2 = Instance.new("Frame")
  4986. TextLabel3 = Instance.new("TextLabel")
  4987. comboframe.Name = "combinserter"
  4988. comboframe.Parent = mas
  4989. Frame1.Name = "combtimegui"
  4990. Frame1.Parent = comboframe
  4991. Frame1.Size = UDim2.new(0, 300, 0, 14)
  4992. Frame1.Position = UDim2.new(0, 900, 0.629999971, 0)
  4993. Frame1.BackgroundColor3 = Color3.new(0, 0, 0)
  4994. Frame1.BorderColor3 = Color3.new(0.0313726, 0.0470588, 0.0627451)
  4995. Frame1.BorderSizePixel = 5
  4996. Frame2.Name = "combtimeoverlay"
  4997. Frame2.Parent = Frame1
  4998. Frame2.Size = UDim2.new(0, 0, 0, 14)
  4999. Frame2.BackgroundColor3 = Color3.new(0, 1, 0)
  5000. Frame2.ZIndex = 2
  5001. TextLabel3.Parent = Frame2
  5002. TextLabel3.Transparency = 0
  5003. TextLabel3.Size = UDim2.new(0, 300, 0, 50)
  5004. TextLabel3.Text ="Hits: "..combohits
  5005. TextLabel3.Position = UDim2.new(0, 0, -5.5999999, 0)
  5006. TextLabel3.BackgroundColor3 = Color3.new(1, 1, 1)
  5007. TextLabel3.BackgroundTransparency = 1
  5008. TextLabel3.Font = Enum.Font.Bodoni
  5009. TextLabel3.FontSize = Enum.FontSize.Size60
  5010. TextLabel3.TextColor3 = Color3.new(0, 1, 0)
  5011. TextLabel3.TextStrokeTransparency = 0
  5012. gui = game:GetService("Players").LocalPlayer.PlayerGui
  5013. for i,v in pairs(mas:GetChildren()) do
  5014. v.Parent = game:GetService("Players").LocalPlayer.PlayerGui
  5015. pcall(function() v:MakeJoints() end)
  5016. end
  5017. mas:Destroy()
  5018. for i,v in pairs(cors) do
  5019. spawn(function()
  5020. pcall(v)
  5021. end)
  5022. end
  5023.  
  5024.  
  5025.  
  5026.  
  5027.  
  5028. coroutine.resume(coroutine.create(function()
  5029. while true do
  5030. wait()
  5031.  
  5032.  
  5033. if combotime>65 then
  5034. combotime = 65
  5035. end
  5036.  
  5037.  
  5038.  
  5039.  
  5040.  
  5041. if combotime>.1 and comboing == true then
  5042. TextLabel3.Transparency = 0
  5043. TextLabel3.TextStrokeTransparency = 0
  5044. TextLabel3.BackgroundTransparency = 1
  5045. Frame1.Transparency = 0
  5046. Frame2.Transparency = 0
  5047. TextLabel3.Text ="Hits: "..combohits
  5048. combotime = combotime - .34
  5049. Frame2.Size = Frame2.Size:lerp(UDim2.new(0, combotime/maxtime*300, 0, 14),0.42)
  5050. end
  5051.  
  5052.  
  5053.  
  5054.  
  5055. if combotime<.1 then
  5056. TextLabel3.BackgroundTransparency = 1
  5057. TextLabel3.Transparency = 1
  5058. TextLabel3.TextStrokeTransparency = 1
  5059.  
  5060. Frame2.Size = UDim2.new(0, 0, 0, 14)
  5061. combotime = 0
  5062. comboing = false
  5063. Frame1.Transparency = 1
  5064. Frame2.Transparency = 1
  5065. combohits = 0
  5066.  
  5067. end
  5068. end
  5069. end))
  5070.  
  5071.  
  5072.  
  5073. -------------------------------------------------------
  5074. --End Combo Function--
  5075. -------------------------------------------------------
  5076.  
  5077. -------------------------------------------------------
  5078. --Start Important Functions--
  5079. -------------------------------------------------------
  5080. function swait(num)
  5081. if num == 0 or num == nil then
  5082. game:service("RunService").Stepped:wait(0)
  5083. else
  5084. for i = 0, num do
  5085. game:service("RunService").Stepped:wait(0)
  5086. end
  5087. end
  5088. end
  5089. function thread(f)
  5090. coroutine.resume(coroutine.create(f))
  5091. end
  5092. function clerp(a, b, t)
  5093. local qa = {
  5094. QuaternionFromCFrame(a)
  5095. }
  5096. local qb = {
  5097. QuaternionFromCFrame(b)
  5098. }
  5099. local ax, ay, az = a.x, a.y, a.z
  5100. local bx, by, bz = b.x, b.y, b.z
  5101. local _t = 1 - t
  5102. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  5103. end
  5104. function QuaternionFromCFrame(cf)
  5105. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  5106. local trace = m00 + m11 + m22
  5107. if trace > 0 then
  5108. local s = math.sqrt(1 + trace)
  5109. local recip = 0.5 / s
  5110. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  5111. else
  5112. local i = 0
  5113. if m00 < m11 then
  5114. i = 1
  5115. end
  5116. if m22 > (i == 0 and m00 or m11) then
  5117. i = 2
  5118. end
  5119. if i == 0 then
  5120. local s = math.sqrt(m00 - m11 - m22 + 1)
  5121. local recip = 0.5 / s
  5122. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  5123. elseif i == 1 then
  5124. local s = math.sqrt(m11 - m22 - m00 + 1)
  5125. local recip = 0.5 / s
  5126. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  5127. elseif i == 2 then
  5128. local s = math.sqrt(m22 - m00 - m11 + 1)
  5129. local recip = 0.5 / s
  5130. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  5131. end
  5132. end
  5133. end
  5134. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  5135. local xs, ys, zs = x + x, y + y, z + z
  5136. local wx, wy, wz = w * xs, w * ys, w * zs
  5137. local xx = x * xs
  5138. local xy = x * ys
  5139. local xz = x * zs
  5140. local yy = y * ys
  5141. local yz = y * zs
  5142. local zz = z * zs
  5143. 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))
  5144. end
  5145. function QuaternionSlerp(a, b, t)
  5146. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  5147. local startInterp, finishInterp
  5148. if cosTheta >= 1.0E-4 then
  5149. if 1 - cosTheta > 1.0E-4 then
  5150. local theta = math.acos(cosTheta)
  5151. local invSinTheta = 1 / Sin(theta)
  5152. startInterp = Sin((1 - t) * theta) * invSinTheta
  5153. finishInterp = Sin(t * theta) * invSinTheta
  5154. else
  5155. startInterp = 1 - t
  5156. finishInterp = t
  5157. end
  5158. elseif 1 + cosTheta > 1.0E-4 then
  5159. local theta = math.acos(-cosTheta)
  5160. local invSinTheta = 1 / Sin(theta)
  5161. startInterp = Sin((t - 1) * theta) * invSinTheta
  5162. finishInterp = Sin(t * theta) * invSinTheta
  5163. else
  5164. startInterp = t - 1
  5165. finishInterp = t
  5166. end
  5167. 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
  5168. end
  5169. function rayCast(Position, Direction, Range, Ignore)
  5170. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  5171. end
  5172. local RbxUtility = LoadLibrary("RbxUtility")
  5173. local Create = RbxUtility.Create
  5174.  
  5175. -------------------------------------------------------
  5176. --Start Damage Function--
  5177. -------------------------------------------------------
  5178.  
  5179. -------------------------------------------------------
  5180. --End Damage Function--
  5181. -------------------------------------------------------
  5182.  
  5183. -------------------------------------------------------
  5184. --Start Damage Function Customization--
  5185. -------------------------------------------------------
  5186. function ShowDamage(Pos, Text, Time, Color)
  5187. local Rate = (1 / 30)
  5188. local Pos = (Pos or Vector3.new(0, 0, 0))
  5189. local Text = (Text or "")
  5190. local Time = (Time or 2)
  5191. local Color = (Color or Color3.new(1, 0, 1))
  5192. local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
  5193. EffectPart.Anchored = true
  5194. local BillboardGui = Create("BillboardGui"){
  5195. Size = UDim2.new(3, 0, 3, 0),
  5196. Adornee = EffectPart,
  5197. Parent = EffectPart,
  5198. }
  5199. local TextLabel = Create("TextLabel"){
  5200. BackgroundTransparency = 1,
  5201. Size = UDim2.new(1, 0, 1, 0),
  5202. Text = Text,
  5203. Font = "Bodoni",
  5204. TextColor3 = Color,
  5205. TextScaled = true,
  5206. TextStrokeColor3 = Color3.fromRGB(0,0,0),
  5207. Parent = BillboardGui,
  5208. }
  5209. game.Debris:AddItem(EffectPart, (Time))
  5210. EffectPart.Parent = game:GetService("Workspace")
  5211. delay(0, function()
  5212. local Frames = (Time / Rate)
  5213. for Frame = 1, Frames do
  5214. wait(Rate)
  5215. local Percent = (Frame / Frames)
  5216. EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  5217. TextLabel.TextTransparency = Percent
  5218. end
  5219. if EffectPart and EffectPart.Parent then
  5220. EffectPart:Destroy()
  5221. end
  5222. end)
  5223. end
  5224. -------------------------------------------------------
  5225. --End Damage Function Customization--
  5226. -------------------------------------------------------
  5227.  
  5228. CFuncs = {
  5229. Part = {
  5230. Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  5231. local Part = Create("Part")({
  5232. Parent = Parent,
  5233. Reflectance = Reflectance,
  5234. Transparency = Transparency,
  5235. CanCollide = false,
  5236. Locked = true,
  5237. BrickColor = BrickColor.new(tostring(BColor)),
  5238. Name = Name,
  5239. Size = Size,
  5240. Material = Material
  5241. })
  5242. RemoveOutlines(Part)
  5243. return Part
  5244. end
  5245. },
  5246. Mesh = {
  5247. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  5248. local Msh = Create(Mesh)({
  5249. Parent = Part,
  5250. Offset = OffSet,
  5251. Scale = Scale
  5252. })
  5253. if Mesh == "SpecialMesh" then
  5254. Msh.MeshType = MeshType
  5255. Msh.MeshId = MeshId
  5256. end
  5257. return Msh
  5258. end
  5259. },
  5260. Mesh = {
  5261. Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  5262. local Msh = Create(Mesh)({
  5263. Parent = Part,
  5264. Offset = OffSet,
  5265. Scale = Scale
  5266. })
  5267. if Mesh == "SpecialMesh" then
  5268. Msh.MeshType = MeshType
  5269. Msh.MeshId = MeshId
  5270. end
  5271. return Msh
  5272. end
  5273. },
  5274. Weld = {
  5275. Create = function(Parent, Part0, Part1, C0, C1)
  5276. local Weld = Create("Weld")({
  5277. Parent = Parent,
  5278. Part0 = Part0,
  5279. Part1 = Part1,
  5280. C0 = C0,
  5281. C1 = C1
  5282. })
  5283. return Weld
  5284. end
  5285. },
  5286. Sound = {
  5287. Create = function(id, par, vol, pit)
  5288. coroutine.resume(coroutine.create(function()
  5289. local S = Create("Sound")({
  5290. Volume = vol,
  5291. Pitch = pit or 1,
  5292. SoundId = id,
  5293. Parent = par or workspace
  5294. })
  5295. wait()
  5296. S:play()
  5297. game:GetService("Debris"):AddItem(S, 6)
  5298. end))
  5299. end
  5300. },
  5301. ParticleEmitter = {
  5302. Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
  5303. local fp = Create("ParticleEmitter")({
  5304. Parent = Parent,
  5305. Color = ColorSequence.new(Color1, Color2),
  5306. LightEmission = LightEmission,
  5307. Size = Size,
  5308. Texture = Texture,
  5309. Transparency = Transparency,
  5310. ZOffset = ZOffset,
  5311. Acceleration = Accel,
  5312. Drag = Drag,
  5313. LockedToPart = LockedToPart,
  5314. VelocityInheritance = VelocityInheritance,
  5315. EmissionDirection = EmissionDirection,
  5316. Enabled = Enabled,
  5317. Lifetime = LifeTime,
  5318. Rate = Rate,
  5319. Rotation = Rotation,
  5320. RotSpeed = RotSpeed,
  5321. Speed = Speed,
  5322. VelocitySpread = VelocitySpread
  5323. })
  5324. return fp
  5325. end
  5326. }
  5327. }
  5328. function RemoveOutlines(part)
  5329. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  5330. end
  5331. function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  5332. local Part = Create("Part")({
  5333. formFactor = FormFactor,
  5334. Parent = Parent,
  5335. Reflectance = Reflectance,
  5336. Transparency = Transparency,
  5337. CanCollide = false,
  5338. Locked = true,
  5339. BrickColor = BrickColor.new(tostring(BColor)),
  5340. Name = Name,
  5341. Size = Size,
  5342. Material = Material
  5343. })
  5344. RemoveOutlines(Part)
  5345. return Part
  5346. end
  5347. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  5348. local Msh = Create(Mesh)({
  5349. Parent = Part,
  5350. Offset = OffSet,
  5351. Scale = Scale
  5352. })
  5353. if Mesh == "SpecialMesh" then
  5354. Msh.MeshType = MeshType
  5355. Msh.MeshId = MeshId
  5356. end
  5357. return Msh
  5358. end
  5359. function CreateWeld(Parent, Part0, Part1, C0, C1)
  5360. local Weld = Create("Weld")({
  5361. Parent = Parent,
  5362. Part0 = Part0,
  5363. Part1 = Part1,
  5364. C0 = C0,
  5365. C1 = C1
  5366. })
  5367. return Weld
  5368. end
  5369.  
  5370.  
  5371. -------------------------------------------------------
  5372. --Start Effect Function--
  5373. -------------------------------------------------------
  5374. EffectModel = Instance.new("Model", char)
  5375. Effects = {
  5376. Block = {
  5377. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  5378. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  5379. prt.Anchored = true
  5380. prt.CFrame = cframe
  5381. local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  5382. game:GetService("Debris"):AddItem(prt, 10)
  5383. if Type == 1 or Type == nil then
  5384. table.insert(Effects, {
  5385. prt,
  5386. "Block1",
  5387. delay,
  5388. x3,
  5389. y3,
  5390. z3,
  5391. msh
  5392. })
  5393. elseif Type == 2 then
  5394. table.insert(Effects, {
  5395. prt,
  5396. "Block2",
  5397. delay,
  5398. x3,
  5399. y3,
  5400. z3,
  5401. msh
  5402. })
  5403. else
  5404. table.insert(Effects, {
  5405. prt,
  5406. "Block3",
  5407. delay,
  5408. x3,
  5409. y3,
  5410. z3,
  5411. msh
  5412. })
  5413. end
  5414. end
  5415. },
  5416. Sphere = {
  5417. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  5418. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  5419. prt.Anchored = true
  5420. prt.CFrame = cframe
  5421. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  5422. game:GetService("Debris"):AddItem(prt, 10)
  5423. table.insert(Effects, {
  5424. prt,
  5425. "Cylinder",
  5426. delay,
  5427. x3,
  5428. y3,
  5429. z3,
  5430. msh
  5431. })
  5432. end
  5433. },
  5434. Cylinder = {
  5435. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  5436. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  5437. prt.Anchored = true
  5438. prt.CFrame = cframe
  5439. local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  5440. game:GetService("Debris"):AddItem(prt, 10)
  5441. table.insert(Effects, {
  5442. prt,
  5443. "Cylinder",
  5444. delay,
  5445. x3,
  5446. y3,
  5447. z3,
  5448. msh
  5449. })
  5450. end
  5451. },
  5452. Wave = {
  5453. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  5454. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  5455. prt.Anchored = true
  5456. prt.CFrame = cframe
  5457. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1 / 60, y1 / 60, z1 / 60))
  5458. game:GetService("Debris"):AddItem(prt, 10)
  5459. table.insert(Effects, {
  5460. prt,
  5461. "Cylinder",
  5462. delay,
  5463. x3 / 60,
  5464. y3 / 60,
  5465. z3 / 60,
  5466. msh
  5467. })
  5468. end
  5469. },
  5470. Ring = {
  5471. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  5472. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  5473. prt.Anchored = true
  5474. prt.CFrame = cframe
  5475. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  5476. game:GetService("Debris"):AddItem(prt, 10)
  5477. table.insert(Effects, {
  5478. prt,
  5479. "Cylinder",
  5480. delay,
  5481. x3,
  5482. y3,
  5483. z3,
  5484. msh
  5485. })
  5486. end
  5487. },
  5488. Break = {
  5489. Create = function(brickcolor, cframe, x1, y1, z1)
  5490. local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  5491. prt.Anchored = true
  5492. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  5493. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  5494. local num = math.random(10, 50) / 1000
  5495. game:GetService("Debris"):AddItem(prt, 10)
  5496. table.insert(Effects, {
  5497. prt,
  5498. "Shatter",
  5499. num,
  5500. prt.CFrame,
  5501. math.random() - math.random(),
  5502. 0,
  5503. math.random(50, 100) / 100
  5504. })
  5505. end
  5506. },
  5507. Spiral = {
  5508. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  5509. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  5510. prt.Anchored = true
  5511. prt.CFrame = cframe
  5512. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://1051557", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  5513. game:GetService("Debris"):AddItem(prt, 10)
  5514. table.insert(Effects, {
  5515. prt,
  5516. "Cylinder",
  5517. delay,
  5518. x3,
  5519. y3,
  5520. z3,
  5521. msh
  5522. })
  5523. end
  5524. },
  5525. Push = {
  5526. Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  5527. local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  5528. prt.Anchored = true
  5529. prt.CFrame = cframe
  5530. local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://437347603", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  5531. game:GetService("Debris"):AddItem(prt, 10)
  5532. table.insert(Effects, {
  5533. prt,
  5534. "Cylinder",
  5535. delay,
  5536. x3,
  5537. y3,
  5538. z3,
  5539. msh
  5540. })
  5541. end
  5542. }
  5543. }
  5544. function part(formfactor ,parent, reflectance, transparency, brickcolor, name, size)
  5545. local fp = IT("Part")
  5546. fp.formFactor = formfactor
  5547. fp.Parent = parent
  5548. fp.Reflectance = reflectance
  5549. fp.Transparency = transparency
  5550. fp.CanCollide = false
  5551. fp.Locked = true
  5552. fp.BrickColor = brickcolor
  5553. fp.Name = name
  5554. fp.Size = size
  5555. fp.Position = tors.Position
  5556. RemoveOutlines(fp)
  5557. fp.Material = "SmoothPlastic"
  5558. fp:BreakJoints()
  5559. return fp
  5560. end
  5561.  
  5562. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  5563. local mesh = IT(Mesh)
  5564. mesh.Parent = part
  5565. if Mesh == "SpecialMesh" then
  5566. mesh.MeshType = meshtype
  5567. if meshid ~= "nil" then
  5568. mesh.MeshId = "http://www.roblox.com/asset/?id="..meshid
  5569. end
  5570. end
  5571. mesh.Offset = offset
  5572. mesh.Scale = scale
  5573. return mesh
  5574. end
  5575.  
  5576. function Magic(bonuspeed, type, pos, scale, value, color, MType)
  5577. local type = type
  5578. local rng = Instance.new("Part", char)
  5579. rng.Anchored = true
  5580. rng.BrickColor = color
  5581. rng.CanCollide = false
  5582. rng.FormFactor = 3
  5583. rng.Name = "Ring"
  5584. rng.Material = "Neon"
  5585. rng.Size = Vector3.new(1, 1, 1)
  5586. rng.Transparency = 0
  5587. rng.TopSurface = 0
  5588. rng.BottomSurface = 0
  5589. rng.CFrame = pos
  5590. local rngm = Instance.new("SpecialMesh", rng)
  5591. rngm.MeshType = MType
  5592. rngm.Scale = scale
  5593. local scaler2 = 1
  5594. if type == "Add" then
  5595. scaler2 = 1 * value
  5596. elseif type == "Divide" then
  5597. scaler2 = 1 / value
  5598. end
  5599. coroutine.resume(coroutine.create(function()
  5600. for i = 0, 10 / bonuspeed, 0.1 do
  5601. swait()
  5602. if type == "Add" then
  5603. scaler2 = scaler2 - 0.01 * value / bonuspeed
  5604. elseif type == "Divide" then
  5605. scaler2 = scaler2 - 0.01 / value * bonuspeed
  5606. end
  5607. rng.Transparency = rng.Transparency + 0.01 * bonuspeed
  5608. rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, scaler2 * bonuspeed)
  5609. end
  5610. rng:Destroy()
  5611. end))
  5612. end
  5613.  
  5614. function Eviscerate(dude)
  5615. if dude.Name ~= char then
  5616. local bgf = IT("BodyGyro", dude.Head)
  5617. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0)
  5618. local val = IT("BoolValue", dude)
  5619. val.Name = "IsHit"
  5620. local ds = coroutine.wrap(function()
  5621. dude:WaitForChild("Head"):BreakJoints()
  5622. wait(0.5)
  5623. target = nil
  5624. coroutine.resume(coroutine.create(function()
  5625. for i, v in pairs(dude:GetChildren()) do
  5626. if v:IsA("Accessory") then
  5627. v:Destroy()
  5628. end
  5629. if v:IsA("Humanoid") then
  5630. v:Destroy()
  5631. end
  5632. if v:IsA("CharacterMesh") then
  5633. v:Destroy()
  5634. end
  5635. if v:IsA("Model") then
  5636. v:Destroy()
  5637. end
  5638. if v:IsA("Part") or v:IsA("MeshPart") then
  5639. for x, o in pairs(v:GetChildren()) do
  5640. if o:IsA("Decal") then
  5641. o:Destroy()
  5642. end
  5643. end
  5644. coroutine.resume(coroutine.create(function()
  5645. v.Material = "Neon"
  5646. v.CanCollide = false
  5647. local PartEmmit1 = IT("ParticleEmitter", v)
  5648. PartEmmit1.LightEmission = 1
  5649. PartEmmit1.Texture = "rbxassetid://284205403"
  5650. PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  5651. PartEmmit1.Rate = 150
  5652. PartEmmit1.Lifetime = NumberRange.new(1)
  5653. PartEmmit1.Size = NumberSequence.new({
  5654. NumberSequenceKeypoint.new(0, 0.75, 0),
  5655. NumberSequenceKeypoint.new(1, 0, 0)
  5656. })
  5657. PartEmmit1.Transparency = NumberSequence.new({
  5658. NumberSequenceKeypoint.new(0, 0, 0),
  5659. NumberSequenceKeypoint.new(1, 1, 0)
  5660. })
  5661. PartEmmit1.Speed = NumberRange.new(0, 0)
  5662. PartEmmit1.VelocitySpread = 30000
  5663. PartEmmit1.Rotation = NumberRange.new(-500, 500)
  5664. PartEmmit1.RotSpeed = NumberRange.new(-500, 500)
  5665. local BodPoss = IT("BodyPosition", v)
  5666. BodPoss.P = 3000
  5667. BodPoss.D = 1000
  5668. BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  5669. BodPoss.position = v.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15))
  5670. v.Color = maincolor.Color
  5671. coroutine.resume(coroutine.create(function()
  5672. for i = 0, 49 do
  5673. swait(1)
  5674. v.Transparency = v.Transparency + 0.08
  5675. end
  5676. wait(0.5)
  5677. PartEmmit1.Enabled = false
  5678. wait(3)
  5679. v:Destroy()
  5680. dude:Destroy()
  5681. end))
  5682. end))
  5683. end
  5684. end
  5685. end))
  5686. end)
  5687. ds()
  5688. end
  5689. end
  5690.  
  5691. function FindNearestHead(Position, Distance, SinglePlayer)
  5692. if SinglePlayer then
  5693. return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude
  5694. end
  5695. local List = {}
  5696. for i, v in pairs(workspace:GetChildren()) do
  5697. if v:IsA("Model") and v:findFirstChild("Head") and v ~= char and Distance >= (v.Head.Position - Position).magnitude then
  5698. table.insert(List, v)
  5699. end
  5700. end
  5701. return List
  5702. end
  5703.  
  5704. function Aura(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos, MType)
  5705. local type = type
  5706. local rng = Instance.new("Part", char)
  5707. rng.Anchored = true
  5708. rng.BrickColor = color
  5709. rng.CanCollide = false
  5710. rng.FormFactor = 3
  5711. rng.Name = "Ring"
  5712. rng.Material = "Neon"
  5713. rng.Size = Vector3.new(1, 1, 1)
  5714. rng.Transparency = 0
  5715. rng.TopSurface = 0
  5716. rng.BottomSurface = 0
  5717. rng.CFrame = pos
  5718. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos
  5719. local rngm = Instance.new("SpecialMesh", rng)
  5720. rngm.MeshType = MType
  5721. rngm.Scale = Vector3.new(x1, y1, z1)
  5722. local scaler2 = 1
  5723. local speeder = FastSpeed
  5724. if type == "Add" then
  5725. scaler2 = 1 * value
  5726. elseif type == "Divide" then
  5727. scaler2 = 1 / value
  5728. end
  5729. coroutine.resume(coroutine.create(function()
  5730. for i = 0, 10 / bonuspeed, 0.1 do
  5731. swait()
  5732. if type == "Add" then
  5733. scaler2 = scaler2 - 0.01 * value / bonuspeed
  5734. elseif type == "Divide" then
  5735. scaler2 = scaler2 - 0.01 / value * bonuspeed
  5736. end
  5737. speeder = speeder - 0.01 * FastSpeed * bonuspeed
  5738. rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed
  5739. rng.Transparency = rng.Transparency + 0.01 * bonuspeed
  5740. rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0)
  5741. end
  5742. rng:Destroy()
  5743. end))
  5744. end
  5745.  
  5746. function SoulSteal(dude)
  5747. if dude.Name ~= char then
  5748. local bgf = IT("BodyGyro", dude.Head)
  5749. bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0)
  5750. local val = IT("BoolValue", dude)
  5751. val.Name = "IsHit"
  5752. local torso = (dude:FindFirstChild'Head' or dude:FindFirstChild'Torso' or dude:FindFirstChild'UpperTorso' or dude:FindFirstChild'LowerTorso' or dude:FindFirstChild'HumanoidRootPart')
  5753. local soulst = coroutine.wrap(function()
  5754. local soul = Instance.new("Part",dude)
  5755. soul.Size = Vector3.new(1,1,1)
  5756. soul.CanCollide = false
  5757. soul.Anchored = false
  5758. soul.Position = torso.Position
  5759. soul.Transparency = 1
  5760. local PartEmmit1 = IT("ParticleEmitter", soul)
  5761. PartEmmit1.LightEmission = 1
  5762. PartEmmit1.Texture = "rbxassetid://569507414"
  5763. PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  5764. PartEmmit1.Rate = 250
  5765. PartEmmit1.Lifetime = NumberRange.new(1.6)
  5766. PartEmmit1.Size = NumberSequence.new({
  5767. NumberSequenceKeypoint.new(0, 1, 0),
  5768. NumberSequenceKeypoint.new(1, 0, 0)
  5769. })
  5770. PartEmmit1.Transparency = NumberSequence.new({
  5771. NumberSequenceKeypoint.new(0, 0, 0),
  5772. NumberSequenceKeypoint.new(1, 1, 0)
  5773. })
  5774. PartEmmit1.Speed = NumberRange.new(0, 0)
  5775. PartEmmit1.VelocitySpread = 30000
  5776. PartEmmit1.Rotation = NumberRange.new(-360, 360)
  5777. PartEmmit1.RotSpeed = NumberRange.new(-360, 360)
  5778. local BodPoss = IT("BodyPosition", soul)
  5779. BodPoss.P = 3000
  5780. BodPoss.D = 1000
  5781. BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
  5782. BodPoss.position = torso.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15))
  5783. wait(1.6)
  5784. soul.Touched:connect(function(hit)
  5785. if hit.Parent == char then
  5786. soul:Destroy()
  5787. end
  5788. end)
  5789. wait(1.2)
  5790. while soul do
  5791. swait()
  5792. PartEmmit1.Color = ColorSequence.new(maincolor.Color)
  5793. BodPoss.Position = tors.Position
  5794. end
  5795. end)
  5796. soulst()
  5797. end
  5798. end
  5799.  
  5800.  
  5801.  
  5802.  
  5803. --killer's effects
  5804.  
  5805.  
  5806.  
  5807.  
  5808.  
  5809. function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  5810. local Part = Create("Part"){
  5811. Parent = Parent,
  5812. Reflectance = Reflectance,
  5813. Transparency = Transparency,
  5814. CanCollide = false,
  5815. Locked = true,
  5816. BrickColor = BrickColor.new(tostring(BColor)),
  5817. Name = Name,
  5818. Size = Size,
  5819. Material = Material,
  5820. }
  5821. RemoveOutlines(Part)
  5822. return Part
  5823. end
  5824.  
  5825. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  5826. local Msh = Create(Mesh){
  5827. Parent = Part,
  5828. Offset = OffSet,
  5829. Scale = Scale,
  5830. }
  5831. if Mesh == "SpecialMesh" then
  5832. Msh.MeshType = MeshType
  5833. Msh.MeshId = MeshId
  5834. end
  5835. return Msh
  5836. end
  5837.  
  5838.  
  5839.  
  5840. function BlockEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  5841. local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  5842. prt.Anchored = true
  5843. prt.CFrame = cframe
  5844. local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  5845. game:GetService("Debris"):AddItem(prt, 10)
  5846. if Type == 1 or Type == nil then
  5847. table.insert(Effects, {
  5848. prt,
  5849. "Block1",
  5850. delay,
  5851. x3,
  5852. y3,
  5853. z3,
  5854. msh
  5855. })
  5856. elseif Type == 2 then
  5857. table.insert(Effects, {
  5858. prt,
  5859. "Block2",
  5860. delay,
  5861. x3,
  5862. y3,
  5863. z3,
  5864. msh
  5865. })
  5866. end
  5867. end
  5868.  
  5869. function SphereEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  5870. local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  5871. prt.Anchored = true
  5872. prt.CFrame = cframe
  5873. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  5874. game:GetService("Debris"):AddItem(prt, 10)
  5875. table.insert(Effects, {
  5876. prt,
  5877. "Cylinder",
  5878. delay,
  5879. x3,
  5880. y3,
  5881. z3,
  5882. msh
  5883. })
  5884. end
  5885.  
  5886. function RingEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  5887. 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))
  5888. prt.Anchored=true
  5889. prt.CFrame=cframe
  5890. msh=CreateMesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1))
  5891. game:GetService("Debris"):AddItem(prt,2)
  5892. coroutine.resume(coroutine.create(function(Part,Mesh,num)
  5893. for i=0,1,delay do
  5894. swait()
  5895. Part.Transparency=i
  5896. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  5897. end
  5898. Part.Parent=nil
  5899. end),prt,msh,(math.random(0,1)+math.random())/5)
  5900. end
  5901.  
  5902. function CylinderEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  5903. local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  5904. prt.Anchored = true
  5905. prt.CFrame = cframe
  5906. local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  5907. game:GetService("Debris"):AddItem(prt, 10)
  5908. table.insert(Effects, {
  5909. prt,
  5910. "Cylinder",
  5911. delay,
  5912. x3,
  5913. y3,
  5914. z3,
  5915. msh
  5916. })
  5917. end
  5918.  
  5919. function WaveEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  5920. local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  5921. prt.Anchored = true
  5922. prt.CFrame = cframe
  5923. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  5924. game:GetService("Debris"):AddItem(prt, 10)
  5925. table.insert(Effects, {
  5926. prt,
  5927. "Cylinder",
  5928. delay,
  5929. x3,
  5930. y3,
  5931. z3,
  5932. msh
  5933. })
  5934. end
  5935.  
  5936. function SpecialEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  5937. local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  5938. prt.Anchored = true
  5939. prt.CFrame = cframe
  5940. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://24388358", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  5941. game:GetService("Debris"):AddItem(prt, 10)
  5942. table.insert(Effects, {
  5943. prt,
  5944. "Cylinder",
  5945. delay,
  5946. x3,
  5947. y3,
  5948. z3,
  5949. msh
  5950. })
  5951. end
  5952.  
  5953.  
  5954. function MoonEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  5955. local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  5956. prt.Anchored = true
  5957. prt.CFrame = cframe
  5958. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://259403370", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  5959. game:GetService("Debris"):AddItem(prt, 10)
  5960. table.insert(Effects, {
  5961. prt,
  5962. "Cylinder",
  5963. delay,
  5964. x3,
  5965. y3,
  5966. z3,
  5967. msh
  5968. })
  5969. end
  5970.  
  5971. function HeadEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  5972. local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
  5973. prt.Anchored = true
  5974. prt.CFrame = cframe
  5975. local msh = CreateMesh("SpecialMesh", prt, "Head", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  5976. game:GetService("Debris"):AddItem(prt, 10)
  5977. table.insert(Effects, {
  5978. prt,
  5979. "Cylinder",
  5980. delay,
  5981. x3,
  5982. y3,
  5983. z3,
  5984. msh
  5985. })
  5986. end
  5987.  
  5988. function BreakEffect(brickcolor, cframe, x1, y1, z1)
  5989. local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  5990. prt.Anchored = true
  5991. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  5992. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  5993. local num = math.random(10, 50) / 1000
  5994. game:GetService("Debris"):AddItem(prt, 10)
  5995. table.insert(Effects, {
  5996. prt,
  5997. "Shatter",
  5998. num,
  5999. prt.CFrame,
  6000. math.random() - math.random(),
  6001. 0,
  6002. math.random(50, 100) / 100
  6003. })
  6004. end
  6005.  
  6006.  
  6007.  
  6008.  
  6009.  
  6010. so = function(id,par,vol,pit)
  6011. coroutine.resume(coroutine.create(function()
  6012. local sou = Instance.new("Sound",par or workspace)
  6013. sou.Volume=vol
  6014. sou.Pitch=pit or 1
  6015. sou.SoundId=id
  6016. sou:play()
  6017. game:GetService("Debris"):AddItem(sou,8)
  6018. end))
  6019. end
  6020.  
  6021.  
  6022. --end of killer's effects
  6023.  
  6024.  
  6025. function FaceMouse()
  6026. local Cam = workspace.CurrentCamera
  6027. return {
  6028. CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
  6029. Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
  6030. }
  6031. end
  6032. -------------------------------------------------------
  6033. --End Effect Function--
  6034. -------------------------------------------------------
  6035. function Cso(ID, PARENT, VOLUME, PITCH)
  6036. local NSound = nil
  6037. coroutine.resume(coroutine.create(function()
  6038. NSound = IT("Sound", PARENT)
  6039. NSound.Volume = VOLUME
  6040. NSound.Pitch = PITCH
  6041. NSound.SoundId = "http://www.roblox.com/asset/?id="..ID
  6042. swait()
  6043. NSound:play()
  6044. game:GetService("Debris"):AddItem(NSound, 10)
  6045. end))
  6046. return NSound
  6047. end
  6048. function CameraEnshaking(Length, Intensity)
  6049. coroutine.resume(coroutine.create(function()
  6050. local intensity = 1 * Intensity
  6051. local rotM = 0.01 * Intensity
  6052. for i = 0, Length, 0.1 do
  6053. swait()
  6054. intensity = intensity - 0.05 * Intensity / Length
  6055. rotM = rotM - 5.0E-4 * Intensity / Length
  6056. hum.CameraOffset = Vector3.new(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)))
  6057. 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)
  6058. end
  6059. hum.CameraOffset = Vector3.new(0, 0, 0)
  6060. end))
  6061. end
  6062. -------------------------------------------------------
  6063. --End Important Functions--
  6064. -------------------------------------------------------
  6065.  
  6066.  
  6067. -------------------------------------------------------
  6068. --Start Customization--
  6069. -------------------------------------------------------
  6070. local Player_Size = 1
  6071. if Player_Size ~= 1 then
  6072. root.Size = root.Size * Player_Size
  6073. tors.Size = tors.Size * Player_Size
  6074. hed.Size = hed.Size * Player_Size
  6075. ra.Size = ra.Size * Player_Size
  6076. la.Size = la.Size * Player_Size
  6077. rl.Size = rl.Size * Player_Size
  6078. ll.Size = ll.Size * Player_Size
  6079. ----------------------------------------------------------------------------------
  6080. rootj.Parent = root
  6081. neck.Parent = tors
  6082. RW.Parent = tors
  6083. LW.Parent = tors
  6084. RH.Parent = tors
  6085. LH.Parent = tors
  6086. ----------------------------------------------------------------------------------
  6087. rootj.C0 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0))
  6088. rootj.C1 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0))
  6089. neck.C0 = necko * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * angles(Rad(0), Rad(0), Rad(0))
  6090. neck.C1 = CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * angles(Rad(-90), Rad(0), Rad(180))
  6091. RW.C0 = CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* RIGHTSHOULDERC0
  6092. LW.C0 = CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* LEFTSHOULDERC0
  6093. ----------------------------------------------------------------------------------
  6094. 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))
  6095. 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))
  6096. 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))
  6097. 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))
  6098. --hat.Parent = Character
  6099. end
  6100. ----------------------------------------------------------------------------------
  6101. local SONG = 900817147 --900817147
  6102. local SONG2 = 0
  6103. local Music = Instance.new("Sound",tors)
  6104. Music.Volume = 0.7
  6105. Music.Looped = true
  6106. Music.Pitch = 1 --Pitcher
  6107. ----------------------------------------------------------------------------------
  6108. local equipped = false
  6109. local idle = 0
  6110. local change = 1
  6111. local val = 0
  6112. local toim = 0
  6113. local idleanim = 0.4
  6114. local sine = 0
  6115. local Sit = 1
  6116. local attacktype = 1
  6117. local attackdebounce = false
  6118. local euler = CFrame.fromEulerAnglesXYZ
  6119. local cankick = false
  6120. ----------------------------------------------------------------------------------
  6121. hum.WalkSpeed = 20
  6122. hum.JumpPower = 90
  6123. --[[
  6124. local ROBLOXIDLEANIMATION = IT("Animation")
  6125. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  6126. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  6127. ]]
  6128. local ANIMATOR = hum.Animator
  6129. local ANIMATE = char.Animate
  6130. ANIMATE.Parent = nil
  6131. ANIMATOR.Parent = nil
  6132. -------------------------------------------------------
  6133. --End Customization--
  6134. -------------------------------------------------------
  6135.  
  6136.  
  6137. -------------------------------------------------------
  6138. --Start Attacks N Stuff--
  6139. -------------------------------------------------------
  6140.  
  6141. --pls be proud mak i did my best
  6142.  
  6143.  
  6144.  
  6145. function attackone()
  6146.  
  6147. attack = true
  6148.  
  6149. for i = 0, 1.35, 0.1 do
  6150. swait()
  6151. 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)
  6152. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(40+11*i)), 0.2)
  6153. 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)
  6154. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-43)), 0.3)
  6155. RH.C0 = clerp(RH.C0, CFrame.new(1, -0.7, 0) * RHCF * angles(math.rad(-34), math.rad(0), math.rad(-17)), 0.2)
  6156. 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)
  6157. end
  6158.  
  6159. so("http://roblox.com/asset/?id=1340545854",ra,1,math.random(0.7,1))
  6160.  
  6161.  
  6162. con5=ra.Touched:connect(function(hit)
  6163. if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  6164. if attackdebounce == false then
  6165. attackdebounce = true
  6166.  
  6167. so("http://roblox.com/asset/?id=636494529",ra,2,1)
  6168.  
  6169. 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)
  6170. 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)
  6171. 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)
  6172.  
  6173.  
  6174. coroutine.resume(coroutine.create(function()
  6175. for i = 0,1,0.1 do
  6176. swait()
  6177. 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)
  6178. end
  6179. end))
  6180.  
  6181.  
  6182. wait(0.34)
  6183. attackdebounce = false
  6184.  
  6185. end
  6186. end
  6187. end)
  6188. for i = 0, 1.12, 0.1 do
  6189. swait()
  6190. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, -0.9, -0) * angles(math.rad(14), math.rad(6), math.rad(23)), 0.35)
  6191. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(-4), math.rad(0), math.rad(-23)), 0.35)
  6192. 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)
  6193. 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)
  6194. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, -0.3) * RHCF * angles(math.rad(-4), math.rad(0), math.rad(6)), 0.3)
  6195. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0.05) * LHCF * angles(math.rad(-22), math.rad(0), math.rad(23)), 0.3)
  6196. end
  6197.  
  6198. con5:Disconnect()
  6199. attack = false
  6200.  
  6201. end
  6202.  
  6203.  
  6204.  
  6205.  
  6206.  
  6207.  
  6208.  
  6209.  
  6210.  
  6211.  
  6212.  
  6213.  
  6214. function attacktwo()
  6215.  
  6216. attack = true
  6217.  
  6218. for i = 0, 1.35, 0.1 do
  6219. swait()
  6220. 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)
  6221. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(-40)), 0.2)
  6222. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(46)), 0.3)
  6223. 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)
  6224. 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)
  6225. LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.7, 0) * LHCF * angles(math.rad(-24), math.rad(0), math.rad(0)), 0.2)
  6226. end
  6227.  
  6228. so("http://roblox.com/asset/?id=1340545854",la,1,math.random(0.7,1))
  6229.  
  6230.  
  6231. con5=la.Touched:connect(function(hit)
  6232. if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  6233. if attackdebounce == false then
  6234. attackdebounce = true
  6235.  
  6236. so("http://roblox.com/asset/?id=636494529",la,2,1)
  6237.  
  6238. 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)
  6239. 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)
  6240. 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)
  6241.  
  6242.  
  6243. coroutine.resume(coroutine.create(function()
  6244. for i = 0,1,0.1 do
  6245. swait()
  6246. 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)
  6247. end
  6248. end))
  6249.  
  6250.  
  6251. wait(0.34)
  6252. attackdebounce = false
  6253.  
  6254. end
  6255. end
  6256. end)
  6257.  
  6258.  
  6259.  
  6260.  
  6261. for i = 0, 1.12, 0.1 do
  6262. swait()
  6263. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, -0.9, -0) * angles(math.rad(14), math.rad(-6), math.rad(-27)), 0.35)
  6264. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(-4), math.rad(0), math.rad(27)), 0.35)
  6265. 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)
  6266. 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)
  6267. RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0.05) * RHCF * angles(math.rad(-22), math.rad(0), math.rad(-18)), 0.3)
  6268. LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, -0.3) * LHCF * angles(math.rad(-2), math.rad(0), math.rad(4)), 0.3)
  6269. end
  6270.  
  6271. con5:Disconnect()
  6272. attack = false
  6273.  
  6274. end
  6275.  
  6276.  
  6277.  
  6278.  
  6279.  
  6280. function attackthree()
  6281.  
  6282. attack = true
  6283.  
  6284.  
  6285. for i = 0, 1.14, 0.1 do
  6286. swait()
  6287. 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)
  6288. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(-40)), 0.2)
  6289. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-46)), 0.3)
  6290. 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)
  6291. 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)
  6292. LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.7, 0) * LHCF * angles(math.rad(-12), math.rad(0), math.rad(34)), 0.2)
  6293. end
  6294.  
  6295. con5=hum.Touched:connect(function(hit)
  6296. if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  6297. if attackdebounce == false then
  6298. attackdebounce = true
  6299.  
  6300. so("http://roblox.com/asset/?id=636494529",ll,2,1)
  6301.  
  6302. 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)
  6303. 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)
  6304. 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)
  6305.  
  6306.  
  6307. coroutine.resume(coroutine.create(function()
  6308. for i = 0,1,0.1 do
  6309. swait()
  6310. 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)
  6311. end
  6312. end))
  6313.  
  6314.  
  6315. wait(0.34)
  6316. attackdebounce = false
  6317.  
  6318. end
  6319. end
  6320. end)
  6321.  
  6322. so("http://www.roblox.com/asset/?id=158475221", RightLeg, 1, 1.3)
  6323. for i = 0, 9.14, 0.3 do
  6324. swait()
  6325. BlockEffect(BrickColor.new("White"), ll.CFrame*CF(0,-1,0), 2, 2, 2, 3.5, 3.5, 3.5, 0.05)
  6326. 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)
  6327. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(12), math.rad(0), math.rad(24)), 0.35)
  6328. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(12), math.rad(0), math.rad(62)), 0.35)
  6329. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.3, 0) * angles(math.rad(12), math.rad(0), math.rad(-23)), 0.35)
  6330. 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)
  6331. 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)
  6332. end
  6333. attack = false
  6334. con5:disconnect()
  6335. end
  6336.  
  6337.  
  6338.  
  6339. function attackfour()
  6340.  
  6341. attack = true
  6342. so("http://www.roblox.com/asset/?id=1452040709", RightLeg, 3, 1)
  6343. 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)
  6344. for i = 0, 5.14, 0.1 do
  6345. swait()
  6346. 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)
  6347. 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)
  6348. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0+11*i), math.rad(0), math.rad(0)), 0.2)
  6349. 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)
  6350. 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)
  6351. 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)
  6352. 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)
  6353. end
  6354. so("http://www.roblox.com/asset/?id=158475221", RightLeg, 1, 1.3)
  6355. local velo=Instance.new("BodyVelocity")
  6356. velo.velocity=vt(0,25,0)
  6357. velo.P=8000
  6358. velo.maxForce=Vector3.new(math.huge, math.huge, math.huge)
  6359. velo.Parent=root
  6360. game:GetService("Debris"):AddItem(velo,0.7)
  6361.  
  6362.  
  6363.  
  6364. con5=hum.Touched:connect(function(hit)
  6365. if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  6366. if attackdebounce == false then
  6367. attackdebounce = true
  6368. coroutine.resume(coroutine.create(function()
  6369. for i = 0,1.5,0.1 do
  6370. swait()
  6371. hit.Parent.Head.CFrame = root.CFrame * CFrame.new(0,1.6,-1.8)
  6372. end
  6373. end))
  6374. so("http://roblox.com/asset/?id=636494529",rl,2,1)
  6375. 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)
  6376. 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)
  6377. 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)
  6378.  
  6379.  
  6380.  
  6381. coroutine.resume(coroutine.create(function()
  6382. for i = 0,1,0.1 do
  6383. swait()
  6384. 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)
  6385. end
  6386. end))
  6387.  
  6388.  
  6389. wait(0.14)
  6390. attackdebounce = false
  6391. end
  6392. end
  6393. end)
  6394.  
  6395. for i = 0, 5.11, 0.15 do
  6396. swait()
  6397. BlockEffect(BrickColor.new("White"), rl.CFrame*CF(0,-1,0), 2, 2, 2, 3.5, 3.5, 3.5, 0.05)
  6398. 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)
  6399. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(-43), math.rad(0), math.rad(0)), 0.42)
  6400. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-8), math.rad(0), math.rad(60)), 0.35)
  6401. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-8), math.rad(0), math.rad(-60)), 0.35)
  6402. 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)
  6403. 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)
  6404. end
  6405.  
  6406.  
  6407. attack = false
  6408. con5:disconnect()
  6409. end
  6410.  
  6411.  
  6412.  
  6413.  
  6414.  
  6415. local cooldown = false
  6416. function quickkick()
  6417. attack = true
  6418.  
  6419.  
  6420. con5=hum.Touched:connect(function(hit)
  6421. if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  6422. if attackdebounce == false then
  6423. attackdebounce = true
  6424.  
  6425. coroutine.resume(coroutine.create(function()
  6426. for i = 0,1.5,0.1 do
  6427. swait()
  6428. hit.Parent.Head.CFrame = root.CFrame * CFrame.new(0,1.3,-1.8)
  6429. end
  6430. end))
  6431.  
  6432. so("http://roblox.com/asset/?id=636494529",rl,2,1)
  6433. 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)
  6434. 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)
  6435. 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)
  6436.  
  6437.  
  6438.  
  6439. coroutine.resume(coroutine.create(function()
  6440. for i = 0,1,0.1 do
  6441. swait()
  6442. 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)
  6443. end
  6444. end))
  6445.  
  6446.  
  6447. wait(0.08)
  6448. attackdebounce = false
  6449. end
  6450. end
  6451. end)
  6452.  
  6453. so("http://www.roblox.com/asset/?id=158475221", RightLeg, 1, 1.3)
  6454. for i = 0, 11.14, 0.3 do
  6455. swait()
  6456. root.Velocity = root.CFrame.lookVector * 30
  6457. BlockEffect(BrickColor.new("White"), ll.CFrame*CF(0,-1,0), 2, 2, 2, 3.5, 3.5, 3.5, 0.05)
  6458. 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)
  6459. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(12), math.rad(0), math.rad(24)), 0.35)
  6460. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(12), math.rad(0), math.rad(62)), 0.35)
  6461. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.3, 0) * angles(math.rad(12), math.rad(0), math.rad(-23)), 0.35)
  6462. 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)
  6463. 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)
  6464. end
  6465. attack = false
  6466. con5:disconnect()
  6467. end
  6468.  
  6469.  
  6470.  
  6471.  
  6472.  
  6473.  
  6474.  
  6475.  
  6476. function Taunt()
  6477. attack = true
  6478. hum.WalkSpeed = 30
  6479. Cso("1535995570", hed, 8.45, 1)
  6480. for i = 0, 8.2, 0.1 do
  6481. swait()
  6482. hum.WalkSpeed = 30
  6483. 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)
  6484. 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)
  6485. 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)
  6486. 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)
  6487. 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)
  6488. 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)
  6489. end
  6490. attack = false
  6491. hum.WalkSpeed = 20
  6492. end
  6493.  
  6494.  
  6495.  
  6496.  
  6497.  
  6498.  
  6499.  
  6500. function Hyperkickcombo()
  6501.  
  6502. attack = true
  6503. so("http://www.roblox.com/asset/?id=1452040709", RightLeg, 3, 1)
  6504. 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)
  6505. for i = 0, 7.14, 0.1 do
  6506. swait()
  6507. 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)
  6508. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, 0, -0.8) * angles(math.rad(24), math.rad(0), math.rad(0)), 0.2)
  6509. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
  6510. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(36)), 0.3)
  6511. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-36)), 0.3)
  6512. 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)
  6513. 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)
  6514. end
  6515. local Cracking = Cso("292536356", tors, 10, 1)
  6516. for i = 0, 7.14, 0.1 do
  6517. swait()
  6518. 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)
  6519. 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")
  6520. 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)
  6521. 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)
  6522. 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)
  6523. rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, 0, -0.8) * angles(math.rad(24), math.rad(0), math.rad(0)), 0.2)
  6524. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(30), math.rad(0), math.rad(0)), 0.2)
  6525. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(36)), 0.3)
  6526. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-36)), 0.3)
  6527. 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)
  6528. 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)
  6529. end
  6530. Cracking.Playing = false
  6531. so("http://www.roblox.com/asset/?id=197161452", char, 3, 0.8)
  6532. so("http://www.roblox.com/asset/?id=158475221", RightLeg, 1, 1.3)
  6533. 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)
  6534. local velo=Instance.new("BodyVelocity")
  6535. velo.velocity=vt(0,27,0)
  6536. velo.P=11000
  6537. velo.maxForce=Vector3.new(math.huge, math.huge, math.huge)
  6538. velo.Parent=root
  6539. game:GetService("Debris"):AddItem(velo,1.24)
  6540.  
  6541.  
  6542.  
  6543. con5=hum.Touched:connect(function(hit)
  6544. if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  6545. if attackdebounce == false then
  6546. attackdebounce = true
  6547. coroutine.resume(coroutine.create(function()
  6548. for i = 0,1.5,0.1 do
  6549. swait()
  6550. hit.Parent.Head.CFrame = root.CFrame * CFrame.new(0,3.4,-1.8)
  6551. end
  6552. end))
  6553. so("http://roblox.com/asset/?id=636494529",rl,2,1.6)
  6554. 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)
  6555. 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)
  6556. 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)
  6557.  
  6558.  
  6559.  
  6560. coroutine.resume(coroutine.create(function()
  6561. for i = 0,1,0.1 do
  6562. swait()
  6563. 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)
  6564. end
  6565. end))
  6566.  
  6567.  
  6568. wait(0.09)
  6569. attackdebounce = false
  6570. end
  6571. end
  6572. end)
  6573.  
  6574. for i = 0, 9.11, 0.2 do
  6575. swait()
  6576. BlockEffect(BrickColor.new("Lime green"), rl.CFrame*CF(0,-1,0), 2, 2, 2, 3.5, 3.5, 3.5, 0.05)
  6577. 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)
  6578. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(-43), math.rad(0), math.rad(0)), 0.42)
  6579. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-8), math.rad(0), math.rad(60)), 0.35)
  6580. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-8), math.rad(0), math.rad(-60)), 0.35)
  6581. 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)
  6582. 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)
  6583. end
  6584.  
  6585.  
  6586.  
  6587.  
  6588. con5:disconnect()
  6589.  
  6590.  
  6591.  
  6592.  
  6593.  
  6594.  
  6595. con5=hum.Touched:connect(function(hit)
  6596. if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  6597. if attackdebounce == false then
  6598. attackdebounce = true
  6599. coroutine.resume(coroutine.create(function()
  6600. for i = 0,1.5,0.1 do
  6601. swait()
  6602. hit.Parent.Head.CFrame = root.CFrame * CFrame.new(0,1.1,-1.8)
  6603. end
  6604. end))
  6605. so("http://roblox.com/asset/?id=636494529",rl,2,1.6)
  6606. 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)
  6607. 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)
  6608. 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)
  6609.  
  6610.  
  6611.  
  6612. coroutine.resume(coroutine.create(function()
  6613. for i = 0,1,0.1 do
  6614. swait()
  6615. 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)
  6616. end
  6617. end))
  6618.  
  6619.  
  6620. wait(0.08)
  6621. attackdebounce = false
  6622. end
  6623. end
  6624. end)
  6625.  
  6626.  
  6627.  
  6628. so("http://www.roblox.com/asset/?id=158475221", RightLeg, 1, 1.3)
  6629. for i = 0, 9.14, 0.3 do
  6630. swait()
  6631. root.Velocity = root.CFrame.lookVector * 20
  6632. BlockEffect(BrickColor.new("Lime green"), ll.CFrame*CF(0,-1,0), 2, 2, 2, 3.5, 3.5, 3.5, 0.05)
  6633. 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)
  6634. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(12), math.rad(0), math.rad(24)), 0.35)
  6635. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(12), math.rad(0), math.rad(62)), 0.35)
  6636. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.3, 0) * angles(math.rad(12), math.rad(0), math.rad(-23)), 0.35)
  6637. 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)
  6638. 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)
  6639. end
  6640.  
  6641.  
  6642.  
  6643. con5:disconnect()
  6644.  
  6645.  
  6646.  
  6647. con5=hum.Touched:connect(function(hit)
  6648. if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  6649. if attackdebounce == false then
  6650. attackdebounce = true
  6651. coroutine.resume(coroutine.create(function()
  6652. for i = 0,1.5,0.1 do
  6653. swait()
  6654. hit.Parent.Head.CFrame = root.CFrame * CFrame.new(0,1.1,-1.8)
  6655. end
  6656. end))
  6657. so("http://roblox.com/asset/?id=636494529",rl,2,1.6)
  6658. 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)
  6659. 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)
  6660. 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)
  6661.  
  6662.  
  6663.  
  6664. coroutine.resume(coroutine.create(function()
  6665. for i = 0,1,0.1 do
  6666. swait()
  6667. 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)
  6668. end
  6669. end))
  6670.  
  6671.  
  6672. wait(0.05)
  6673. attackdebounce = false
  6674. end
  6675. end
  6676. end)
  6677.  
  6678.  
  6679. so("http://www.roblox.com/asset/?id=158475221", RightLeg, 1, 1.3)
  6680. for i = 0, 15.14, 0.32 do
  6681. swait()
  6682. root.Velocity = root.CFrame.lookVector * 20
  6683. BlockEffect(BrickColor.new("Lime green"), ll.CFrame*CF(0,-1,0), 2, 2, 2, 3.5, 3.5, 3.5, 0.05)
  6684. 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)
  6685. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(12), math.rad(0), math.rad(24)), 0.35)
  6686. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(12), math.rad(0), math.rad(62)), 0.35)
  6687. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.3, 0) * angles(math.rad(12), math.rad(0), math.rad(-23)), 0.35)
  6688. 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)
  6689. 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)
  6690. end
  6691.  
  6692. attack = false
  6693. con5:disconnect()
  6694.  
  6695. end
  6696.  
  6697.  
  6698.  
  6699.  
  6700.  
  6701. local ultra = false
  6702.  
  6703. function Galekicks()
  6704.  
  6705. attack = true
  6706. so("http://www.roblox.com/asset/?id=1452040709", RightLeg, 3, 1)
  6707. for i = 0, 1.65, 0.1 do
  6708. swait()
  6709. root.Velocity = root.CFrame.lookVector * 0
  6710. 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)
  6711. 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)
  6712. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(-17), math.rad(-90)), 0.2)
  6713. 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)
  6714. 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)
  6715. RH.C0 = clerp(RH.C0, CFrame.new(1, .62 , -0.3) * RHCF * angles(math.rad(-40), math.rad(0), math.rad(2)), 0.2)
  6716. LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.7, 0) * LHCF * angles(math.rad(-28), math.rad(0), math.rad(0)), 0.2)
  6717. end
  6718.  
  6719.  
  6720. for i = 1, 17 do
  6721.  
  6722. con5=hum.Touched:connect(function(hit)
  6723. if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  6724. if attackdebounce == false then
  6725. attackdebounce = true
  6726. coroutine.resume(coroutine.create(function()
  6727. for i = 0,1.5,0.1 do
  6728. swait()
  6729. hit.Parent.Head.CFrame = root.CFrame * CFrame.new(0,1.1,-1.8)
  6730. end
  6731. end))
  6732. so("http://roblox.com/asset/?id=636494529",rl,2,1.6)
  6733. 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)
  6734. 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)
  6735. 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)
  6736.  
  6737.  
  6738.  
  6739. coroutine.resume(coroutine.create(function()
  6740. for i = 0,1,0.1 do
  6741. swait()
  6742. 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)
  6743. end
  6744. end))
  6745.  
  6746.  
  6747. wait(0.05)
  6748. attackdebounce = false
  6749. end
  6750. end
  6751. end)
  6752.  
  6753. for i = 0, .1, 0.2 do
  6754. swait()
  6755. BlockEffect(BrickColor.new("Lime green"), rl.CFrame*CF(0,-1,0), 2, 2, 2, 1.5, 1.5, 1.5, 0.03)
  6756. root.Velocity = root.CFrame.lookVector * 10
  6757. 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)
  6758. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(-24), math.rad(-90)), 0.7)
  6759. 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)
  6760. 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)
  6761. 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)
  6762. LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.7, 0) * LHCF * angles(math.rad(-34), math.rad(0), math.rad(0)), 0.7)
  6763. end
  6764.  
  6765. so("http://roblox.com/asset/?id=1340545854",rl,1,math.random(0.7,1))
  6766.  
  6767. for i = 0, 0.4, 0.2 do
  6768. swait()
  6769. 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)
  6770. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(-17), math.rad(-90)), 0.2)
  6771. 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)
  6772. 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)
  6773. RH.C0 = clerp(RH.C0, CFrame.new(1, .62 , -0.3) * RHCF * angles(math.rad(-40), math.rad(0), math.rad(2)), 0.2)
  6774. LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.7, 0) * LHCF * angles(math.rad(-28), math.rad(0), math.rad(0)), 0.2)
  6775. end
  6776. con5:disconnect()
  6777. end
  6778.  
  6779.  
  6780. u = mouse.KeyDown:connect(function(key)
  6781. if key == 'r' and combohits >= 150 then
  6782. ultra = true
  6783. 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)
  6784. end
  6785. end)
  6786. wait(0.3)
  6787. if ultra == true then
  6788. combohits = 0
  6789. wait(0.1)
  6790. for i = 0, 1.65, 0.1 do
  6791. swait()
  6792. root.Velocity = root.CFrame.lookVector * 0
  6793. 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)
  6794. 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)
  6795. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(-17), math.rad(-90)), 0.2)
  6796. 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)
  6797. 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)
  6798. RH.C0 = clerp(RH.C0, CFrame.new(1, .62 , -0.3) * RHCF * angles(math.rad(-40), math.rad(0), math.rad(2)), 0.2)
  6799. LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.7, 0) * LHCF * angles(math.rad(-28), math.rad(0), math.rad(0)), 0.2)
  6800. end
  6801.  
  6802.  
  6803. so("http://roblox.com/asset/?id=146094803",hed,1,1.2)
  6804.  
  6805. for i = 1, 65 do
  6806. --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")
  6807. con5=hum.Touched:connect(function(hit)
  6808. if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  6809. if attackdebounce == false then
  6810. attackdebounce = true
  6811. coroutine.resume(coroutine.create(function()
  6812. for i = 0,1.5,0.1 do
  6813. swait()
  6814. hit.Parent.Head.CFrame = root.CFrame * CFrame.new(0,1.1,-1.8)
  6815. end
  6816. end))
  6817. so("http://roblox.com/asset/?id=636494529",rl,2,1.6)
  6818. 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)
  6819. 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)
  6820. 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)
  6821.  
  6822.  
  6823.  
  6824. coroutine.resume(coroutine.create(function()
  6825. for i = 0,1,0.1 do
  6826. swait()
  6827. 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)
  6828. end
  6829. end))
  6830.  
  6831.  
  6832. wait(0.05)
  6833. attackdebounce = false
  6834. end
  6835. end
  6836. end)
  6837.  
  6838. for i = 0, .03, 0.1 do
  6839. swait()
  6840. BlockEffect(BrickColor.new("Really red"), rl.CFrame*CF(0,-1,0), 2, 2, 2, 1.5, 1.5, 1.5, 0.03)
  6841. root.Velocity = root.CFrame.lookVector * 10
  6842. 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)
  6843. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(-24), math.rad(-90)), 0.7)
  6844. 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)
  6845. 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)
  6846. 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)
  6847. LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.7, 0) * LHCF * angles(math.rad(-34), math.rad(0), math.rad(0)), 0.7)
  6848. end
  6849.  
  6850. so("http://roblox.com/asset/?id=1340545854",rl,1,math.random(0.7,1))
  6851.  
  6852. for i = 0, 0.07, 0.1 do
  6853. swait()
  6854. 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)
  6855. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(-17), math.rad(-90)), 0.2)
  6856. 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)
  6857. 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)
  6858. RH.C0 = clerp(RH.C0, CFrame.new(1, .62 , -0.3) * RHCF * angles(math.rad(-40), math.rad(0), math.rad(2)), 0.2)
  6859. LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.7, 0) * LHCF * angles(math.rad(-28), math.rad(0), math.rad(0)), 0.2)
  6860. end
  6861. con5:disconnect()
  6862. end
  6863.  
  6864. for i = 0, 1.65, 0.1 do
  6865. swait()
  6866. root.Velocity = root.CFrame.lookVector * 0
  6867. 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)
  6868. 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)
  6869. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(-17), math.rad(-90)), 0.2)
  6870. 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)
  6871. 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)
  6872. RH.C0 = clerp(RH.C0, CFrame.new(1, .62 , -0.3) * RHCF * angles(math.rad(-40), math.rad(0), math.rad(2)), 0.2)
  6873. LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.7, 0) * LHCF * angles(math.rad(-28), math.rad(0), math.rad(0)), 0.2)
  6874. end
  6875.  
  6876. con5=hum.Touched:connect(function(hit)
  6877. if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  6878. if attackdebounce == false then
  6879. attackdebounce = true
  6880. coroutine.resume(coroutine.create(function()
  6881. for i = 0,1.5,0.1 do
  6882. swait()
  6883. --hit.Parent.Head.CFrame = root.CFrame * CFrame.new(0,1.1,-1.8)
  6884. end
  6885. end))
  6886. so("http://roblox.com/asset/?id=636494529",rl,2,.63)
  6887. 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)
  6888. 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)
  6889. 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)
  6890.  
  6891.  
  6892. coroutine.resume(coroutine.create(function()
  6893. for i = 0,1,0.1 do
  6894. swait()
  6895. 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)
  6896. end
  6897. end))
  6898.  
  6899.  
  6900. wait(0.05)
  6901. attackdebounce = false
  6902. end
  6903. end
  6904. end)
  6905.  
  6906. so("http://www.roblox.com/asset/?id=1452040709", RightLeg, 1, 1.4)
  6907. 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)
  6908.  
  6909. for i = 0, 2, 0.1 do
  6910. swait()
  6911. --BlockEffect(BrickColor.new("Really red"), rl.CFrame*CF(0,-1,0), 2, 2, 2, 1.5, 1.5, 1.5, 0.03)
  6912. 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)
  6913. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(-17), math.rad(-90)), 0.2)
  6914. 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)
  6915. 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)
  6916. RH.C0 = clerp(RH.C0, CFrame.new(1, -.6 , 0.2) * RHCF * angles(math.rad(-50), math.rad(0), math.rad(2)), 0.2)
  6917. LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.7, 0) * LHCF * angles(math.rad(-28), math.rad(0), math.rad(0)), 0.2)
  6918. end
  6919. 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)
  6920.  
  6921. wait(0.25)
  6922. con5:Disconnect()
  6923.  
  6924.  
  6925.  
  6926.  
  6927. con5=hum.Touched:connect(function(hit)
  6928. if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
  6929. if attackdebounce == false then
  6930. attackdebounce = true
  6931.  
  6932. so("http://roblox.com/asset/?id=565207203",ll,7,0.63)
  6933.  
  6934. 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)
  6935. 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)
  6936. 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)
  6937. 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)
  6938. 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)
  6939. 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)
  6940.  
  6941. coroutine.resume(coroutine.create(function()
  6942. for i = 0,1,0.1 do
  6943. swait()
  6944. 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)
  6945. end
  6946. end))
  6947.  
  6948. wait(0.06)
  6949. attackdebounce = false
  6950.  
  6951. end
  6952. end
  6953. end)
  6954.  
  6955. coroutine.resume(coroutine.create(function()
  6956. while ultra == true do
  6957. swait()
  6958. root.CFrame = root.CFrame*CFrame.new(math.random(-3,3),math.random(-2,2),math.random(-3,3))
  6959. end
  6960. end))
  6961.  
  6962.  
  6963. so("http://www.roblox.com/asset/?id=158475221", RightLeg, 1, 1.3)
  6964. for i = 1,3 do
  6965. for i = 0, 9.14, 0.45 do
  6966. swait()
  6967. root.Velocity = root.CFrame.lookVector * 30
  6968. BlockEffect(BrickColor.new("Really red"), ll.CFrame*CF(0,-1,0), 2, 2, 2, 3.5, 3.5, 3.5, 0.05)
  6969. 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)
  6970. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(12), math.rad(0), math.rad(24)), 0.35)
  6971. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(12), math.rad(0), math.rad(62)), 0.35)
  6972. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.3, 0) * angles(math.rad(12), math.rad(0), math.rad(-23)), 0.35)
  6973. 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)
  6974. 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)
  6975. end
  6976. end
  6977.  
  6978.  
  6979. for i = 1,3 do
  6980. for i = 0, 11.14, 0.45 do
  6981. swait()
  6982. root.Velocity = root.CFrame.lookVector * 30
  6983. BlockEffect(BrickColor.new("Really red"), ll.CFrame*CF(0,-1,0), 2, 2, 2, 3.5, 3.5, 3.5, 0.05)
  6984. 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)
  6985. tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(12), math.rad(0), math.rad(24)), 0.35)
  6986. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(12), math.rad(0), math.rad(62)), 0.35)
  6987. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.3, 0) * angles(math.rad(12), math.rad(0), math.rad(-23)), 0.35)
  6988. 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)
  6989. 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)
  6990. end
  6991.  
  6992.  
  6993.  
  6994. end
  6995. so("http://www.roblox.com/asset/?id=197161452", char, 0.5, 0.8)
  6996. con5:disconnect()
  6997.  
  6998.  
  6999. end -- combo hit end
  7000. attack = false
  7001. ultra = false
  7002. u:disconnect()
  7003.  
  7004. end
  7005.  
  7006.  
  7007.  
  7008.  
  7009. -------------------------------------------------------
  7010. --End Attacks N Stuff--
  7011. -------------------------------------------------------
  7012. mouse.KeyDown:connect(function(key)
  7013. if string.byte(key) == 48 then
  7014. Swing = 2
  7015. hum.WalkSpeed = 24.82
  7016. end
  7017. end)
  7018. mouse.KeyUp:connect(function(key)
  7019. if string.byte(key) == 48 then
  7020. Swing = 1
  7021. hum.WalkSpeed = 30
  7022. end
  7023. end)
  7024.  
  7025.  
  7026.  
  7027.  
  7028.  
  7029.  
  7030.  
  7031. mouse.Button1Down:connect(function()
  7032. if attack==false then
  7033. if attacktype==1 then
  7034. attack=true
  7035. attacktype=2
  7036. attackone()
  7037. elseif attacktype==2 then
  7038. attack=true
  7039. attacktype=3
  7040. attacktwo()
  7041. elseif attacktype==3 then
  7042. attack=true
  7043. attacktype=4
  7044. attackthree()
  7045. elseif attacktype==4 then
  7046. attack=true
  7047. attacktype=1
  7048. attackfour()
  7049. end
  7050. end
  7051. end)
  7052.  
  7053.  
  7054.  
  7055.  
  7056. mouse.KeyDown:connect(function(key)
  7057. if key == 'e' and attack == false and cankick == true and cooldown == false then
  7058. quickkick()
  7059. cooldown = true
  7060.  
  7061. coroutine.resume(coroutine.create(function()
  7062. wait(2)
  7063. cooldown = false
  7064. end))
  7065.  
  7066.  
  7067.  
  7068. end
  7069. end)
  7070.  
  7071.  
  7072.  
  7073.  
  7074.  
  7075.  
  7076.  
  7077.  
  7078. mouse.KeyDown:connect(function(key)
  7079. if attack == false then
  7080. if key == 't' then
  7081. Taunt()
  7082. elseif key == 'f' then
  7083. Hyperkickcombo()
  7084. elseif key == 'r' then
  7085. Galekicks()
  7086. end
  7087. end
  7088. end)
  7089.  
  7090. -------------------------------------------------------
  7091. --Start Animations--
  7092. -------------------------------------------------------
  7093. print("By Makhail07 and KillerDarkness0105")
  7094. print("Basic Animations by Makhail07")
  7095. print("Attack Animations by KillerDarkness0105")
  7096. print("This is pretty much our final script together")
  7097. print("--------------------------------")
  7098. print("Attacks")
  7099. print("E in air: Quick Kicks")
  7100. print("Left Mouse: 4 click combo")
  7101. print("F: Hyper Kicks")
  7102. print("R: Gale Kicks, Spam R if your combo is over 150 to do an ultra combo")
  7103. print("--------------------------------")
  7104. while true do
  7105. swait()
  7106. sine = sine + change
  7107. local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude
  7108. local velderp = root.Velocity.y
  7109. hitfloor, posfloor = rayCast(root.Position, CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0)).lookVector, 4* Player_Size, char)
  7110.  
  7111. if hitfloor == nil then
  7112. cankick = true
  7113. else
  7114. cankick = false
  7115. end
  7116.  
  7117.  
  7118. if equipped == true or equipped == false then
  7119. if attack == false then
  7120. idle = idle + 1
  7121. else
  7122. idle = 0
  7123. end
  7124. if 1 < root.Velocity.y and hitfloor == nil then
  7125. Anim = "Jump"
  7126. if attack == false then
  7127. hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(0,0,0),0.15)
  7128. 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)
  7129. 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)
  7130. 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)
  7131. 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)
  7132. 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)
  7133. 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)
  7134. end
  7135. elseif -1 > root.Velocity.y and hitfloor == nil then
  7136. Anim = "Fall"
  7137. if attack == false then
  7138. hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(0,0,0),0.15)
  7139. 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)
  7140. 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)
  7141. 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)
  7142. 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)
  7143. 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)
  7144. 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)
  7145. end
  7146. elseif torvel < 1 and hitfloor ~= nil then
  7147. Anim = "Idle"
  7148. change = 1
  7149. if attack == false then
  7150. hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(0,0,0),0.15)
  7151. 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)
  7152. 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)
  7153. 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)
  7154. 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)
  7155. 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)
  7156. 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)
  7157. end
  7158. elseif torvel > 2 and torvel < 22 and hitfloor ~= nil then
  7159. Anim = "Walk"
  7160. change = 1
  7161. if attack == false then
  7162. hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(0,0,0),0.15)
  7163. 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)
  7164. 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)
  7165. 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)
  7166. 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)
  7167. 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)
  7168. 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)
  7169. end
  7170. elseif torvel >= 22 and hitfloor ~= nil then
  7171. Anim = "Sprint"
  7172. change = 1.35
  7173. if attack == false then
  7174. hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(0,0,0),0.15)
  7175. 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)
  7176. 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)
  7177. 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)
  7178. 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)
  7179. 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)
  7180. 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)
  7181. end
  7182. end
  7183. end
  7184. Music.SoundId = "rbxassetid://"..SONG
  7185. Music.Looped = true
  7186. Music.Pitch = 1
  7187. Music.Volume = 0.7
  7188. Music.Parent = tors
  7189. Music:Resume()
  7190. if 0 < #Effects then
  7191. for e = 1, #Effects do
  7192. if Effects[e] ~= nil then
  7193. local Thing = Effects[e]
  7194. if Thing ~= nil then
  7195. local Part = Thing[1]
  7196. local Mode = Thing[2]
  7197. local Delay = Thing[3]
  7198. local IncX = Thing[4]
  7199. local IncY = Thing[5]
  7200. local IncZ = Thing[6]
  7201. if 1 >= Thing[1].Transparency then
  7202. if Thing[2] == "Block1" then
  7203. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  7204. local Mesh = Thing[1].Mesh
  7205. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  7206. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  7207. elseif Thing[2] == "Block2" then
  7208. Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0)
  7209. local Mesh = Thing[7]
  7210. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  7211. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  7212. elseif Thing[2] == "Block3" then
  7213. 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)
  7214. local Mesh = Thing[7]
  7215. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  7216. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  7217. elseif Thing[2] == "Cylinder" then
  7218. local Mesh = Thing[1].Mesh
  7219. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  7220. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  7221. elseif Thing[2] == "Blood" then
  7222. local Mesh = Thing[7]
  7223. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0)
  7224. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  7225. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  7226. elseif Thing[2] == "Elec" then
  7227. local Mesh = Thing[1].Mesh
  7228. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  7229. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  7230. elseif Thing[2] == "Disappear" then
  7231. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  7232. elseif Thing[2] == "Shatter" then
  7233. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  7234. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  7235. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  7236. Thing[6] = Thing[6] + Thing[5]
  7237. end
  7238. else
  7239. Part.Parent = nil
  7240. table.remove(Effects, e)
  7241. end
  7242. end
  7243. end
  7244. end
  7245. end
  7246. end
  7247. -------------------------------------------------------
  7248. --End Animations And Script--
  7249. -------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement