· 4 years ago · Aug 04, 2021, 01:30 PM
1print("LoaderHub SuccessFully Loaded!")
2local Library = loadstring(game:HttpGet("https://raw.githubusercontent.com/xHeptc/Kavo-UI-Library/main/source.lua"))()
3local Window = Library.CreateLib("LoaderHub", "Sentinel")
4local Tab = Window:NewTab("Hubs")
5local Section = Tab:NewSection("Select Hub!")
6Section:NewButton("Vortex Hub V2", "Opens Vortex Hub V2", function()
7loadstring(game:HttpGet("https://pastebin.com/raw/8V3QXYgr"))()
8end)
9Section:NewButton("INFINITE YEILD", "Opens INFINITE YEILD", function()
10loadstring(game:HttpGet(('https://raw.githubusercontent.com/EdgeIY/infiniteyield/master/source'),true))()
11end)
12Section:NewButton("XXHub", "Opens XXHub", function()
13loadstring(game:HttpGet(('https://pastebin.com/raw/YVE4njap'),true))()
14end)
15local Tab = Window:NewTab("Scripts")
16local Sectioned = Tab:NewSection("Select Script To Execute!")
17Sectioned:NewButton("Gale Fighter", "Executes Gale Fighter", function()
18--[[ Options ]]--
19_G.CharacterBug = false --Set to true if your uppertorso floats when you use the script with R15.
20_G.GodMode = true --Set to true if you want godmode.
21_G.R6 = true --Set to true if you wanna enable R15 to R6 when your R15.
22--[[Reanimate]]--
23loadstring(game:HttpGet("https://gist.githubusercontent.com/M6HqVBcddw2qaN4s/fc29cbf0eda6f8b129778b441be3128f/raw/6StQ2n56PnEHMhQ9"))()
24
25function LoadLibrary(a)
26local t = {}
27
28------------------------------------------------------------------------------------------------------------------------
29------------------------------------------------------------------------------------------------------------------------
30------------------------------------------------------------------------------------------------------------------------
31------------------------------------------------JSON Functions Begin----------------------------------------------------
32------------------------------------------------------------------------------------------------------------------------
33------------------------------------------------------------------------------------------------------------------------
34------------------------------------------------------------------------------------------------------------------------
35
36--JSON Encoder and Parser for Lua 5.1
37--
38--Copyright 2007 Shaun Brown (http://www.chipmunkav.com)
39--All Rights Reserved.
40
41--Permission is hereby granted, free of charge, to any person
42--obtaining a copy of this software to deal in the Software without
43--restriction, including without limitation the rights to use,
44--copy, modify, merge, publish, distribute, sublicense, and/or
45--sell copies of the Software, and to permit persons to whom the
46--Software is furnished to do so, subject to the following conditions:
47
48--The above copyright notice and this permission notice shall be
49--included in all copies or substantial portions of the Software.
50--If you find this software useful please give www.chipmunkav.com a mention.
51
52--THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
53--EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
54--OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
55--IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR
56--ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
57--CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
58--CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
59
60local string = string
61local math = math
62local table = table
63local error = error
64local tonumber = tonumber
65local tostring = tostring
66local type = type
67local setmetatable = setmetatable
68local pairs = pairs
69local ipairs = ipairs
70local assert = assert
71
72
73local StringBuilder = {
74buffer = {}
75}
76
77function StringBuilder:New()
78local o = {}
79setmetatable(o, self)
80self.__index = self
81o.buffer = {}
82return o
83end
84
85function StringBuilder:Append(s)
86self.buffer[#self.buffer+1] = s
87end
88
89function StringBuilder:ToString()
90return table.concat(self.buffer)
91end
92
93local JsonWriter = {
94backslashes = {
95['\b'] = "\\b",
96['\t'] = "\\t",
97['\n'] = "\\n",
98['\f'] = "\\f",
99['\r'] = "\\r",
100['"'] = "\\\"",
101['\\'] = "\\\\",
102['/'] = "\\/"
103}
104}
105
106function JsonWriter:New()
107local o = {}
108o.writer = StringBuilder:New()
109setmetatable(o, self)
110self.__index = self
111return o
112end
113
114function JsonWriter:Append(s)
115self.writer:Append(s)
116end
117
118function JsonWriter:ToString()
119return self.writer:ToString()
120end
121
122function JsonWriter:Write(o)
123local t = type(o)
124if t == "nil" then
125self:WriteNil()
126elseif t == "boolean" then
127self:WriteString(o)
128elseif t == "number" then
129self:WriteString(o)
130elseif t == "string" then
131self:ParseString(o)
132elseif t == "table" then
133self:WriteTable(o)
134elseif t == "function" then
135self:WriteFunction(o)
136elseif t == "thread" then
137self:WriteError(o)
138elseif t == "userdata" then
139self:WriteError(o)
140end
141end
142
143function JsonWriter:WriteNil()
144self:Append("null")
145end
146
147function JsonWriter:WriteString(o)
148self:Append(tostring(o))
149end
150
151function JsonWriter:ParseString(s)
152self:Append('"')
153self:Append(string.gsub(s, "[%z%c\\\"/]", function(n)
154local c = self.backslashes[n]
155if c then return c end
156return string.format("\\u%.4X", string.byte(n))
157end))
158self:Append('"')
159end
160
161function JsonWriter:IsArray(t)
162local count = 0
163local isindex = function(k)
164if type(k) == "number" and k > 0 then
165if math.floor(k) == k then
166return true
167end
168end
169return false
170end
171for k,v in pairs(t) do
172if not isindex(k) then
173return false, '{', '}'
174else
175count = math.max(count, k)
176end
177end
178return true, '[', ']', count
179end
180
181function JsonWriter:WriteTable(t)
182local ba, st, et, n = self:IsArray(t)
183self:Append(st)
184if ba then
185for i = 1, n do
186self:Write(t[i])
187if i < n then
188self:Append(',')
189end
190end
191else
192local first = true;
193for k, v in pairs(t) do
194if not first then
195self:Append(',')
196end
197first = false;
198self:ParseString(k)
199self:Append(':')
200self:Write(v)
201end
202end
203self:Append(et)
204end
205
206function JsonWriter:WriteError(o)
207error(string.format(
208"Encoding of %s unsupported",
209tostring(o)))
210end
211
212function JsonWriter:WriteFunction(o)
213if o == Null then
214self:WriteNil()
215else
216self:WriteError(o)
217end
218end
219
220local StringReader = {
221s = "",
222i = 0
223}
224
225function StringReader:New(s)
226local o = {}
227setmetatable(o, self)
228self.__index = self
229o.s = s or o.s
230return o
231end
232
233function StringReader:Peek()
234local i = self.i + 1
235if i <= #self.s then
236return string.sub(self.s, i, i)
237end
238return nil
239end
240
241function StringReader:Next()
242self.i = self.i+1
243if self.i <= #self.s then
244return string.sub(self.s, self.i, self.i)
245end
246return nil
247end
248
249function StringReader:All()
250return self.s
251end
252
253local JsonReader = {
254escapes = {
255['t'] = '\t',
256['n'] = '\n',
257['f'] = '\f',
258['r'] = '\r',
259['b'] = '\b',
260}
261}
262
263function JsonReader:New(s)
264local o = {}
265o.reader = StringReader:New(s)
266setmetatable(o, self)
267self.__index = self
268return o;
269end
270
271function JsonReader:Read()
272self:SkipWhiteSpace()
273local peek = self:Peek()
274if peek == nil then
275error(string.format(
276"Nil string: '%s'",
277self:All()))
278elseif peek == '{' then
279return self:ReadObject()
280elseif peek == '[' then
281return self:ReadArray()
282elseif peek == '"' then
283return self:ReadString()
284elseif string.find(peek, "[%+%-%d]") then
285return self:ReadNumber()
286elseif peek == 't' then
287return self:ReadTrue()
288elseif peek == 'f' then
289return self:ReadFalse()
290elseif peek == 'n' then
291return self:ReadNull()
292elseif peek == '/' then
293self:ReadComment()
294return self:Read()
295else
296return nil
297end
298end
299
300function JsonReader:ReadTrue()
301self:TestReservedWord{'t','r','u','e'}
302return true
303end
304
305function JsonReader:ReadFalse()
306self:TestReservedWord{'f','a','l','s','e'}
307return false
308end
309
310function JsonReader:ReadNull()
311self:TestReservedWord{'n','u','l','l'}
312return nil
313end
314
315function JsonReader:TestReservedWord(t)
316for i, v in ipairs(t) do
317if self:Next() ~= v then
318error(string.format(
319"Error reading '%s': %s",
320table.concat(t),
321self:All()))
322end
323end
324end
325
326function JsonReader:ReadNumber()
327local result = self:Next()
328local peek = self:Peek()
329while peek ~= nil and string.find(
330peek,
331"[%+%-%d%.eE]") do
332result = result .. self:Next()
333peek = self:Peek()
334end
335result = tonumber(result)
336if result == nil then
337error(string.format(
338"Invalid number: '%s'",
339result))
340else
341return result
342end
343end
344
345function JsonReader:ReadString()
346local result = ""
347assert(self:Next() == '"')
348while self:Peek() ~= '"' do
349local ch = self:Next()
350if ch == '\\' then
351ch = self:Next()
352if self.escapes[ch] then
353ch = self.escapes[ch]
354end
355end
356result = result .. ch
357end
358assert(self:Next() == '"')
359local fromunicode = function(m)
360return string.char(tonumber(m, 16))
361end
362return string.gsub(
363result,
364"u%x%x(%x%x)",
365fromunicode)
366end
367
368function JsonReader:ReadComment()
369assert(self:Next() == '/')
370local second = self:Next()
371if second == '/' then
372self:ReadSingleLineComment()
373elseif second == '*' then
374self:ReadBlockComment()
375else
376error(string.format(
377"Invalid comment: %s",
378self:All()))
379end
380end
381
382function JsonReader:ReadBlockComment()
383local done = false
384while not done do
385local ch = self:Next()
386if ch == '*' and self:Peek() == '/' then
387done = true
388end
389if not done and
390ch == '/' and
391self:Peek() == "*" then
392error(string.format(
393"Invalid comment: %s, '/*' illegal.",
394self:All()))
395end
396end
397self:Next()
398end
399
400function JsonReader:ReadSingleLineComment()
401local ch = self:Next()
402while ch ~= '\r' and ch ~= '\n' do
403ch = self:Next()
404end
405end
406
407function JsonReader:ReadArray()
408local result = {}
409assert(self:Next() == '[')
410local done = false
411if self:Peek() == ']' then
412done = true;
413end
414while not done do
415local item = self:Read()
416result[#result+1] = item
417self:SkipWhiteSpace()
418if self:Peek() == ']' then
419done = true
420end
421if not done then
422local ch = self:Next()
423if ch ~= ',' then
424error(string.format(
425"Invalid array: '%s' due to: '%s'",
426self:All(), ch))
427end
428end
429end
430assert(']' == self:Next())
431return result
432end
433
434function JsonReader:ReadObject()
435local result = {}
436assert(self:Next() == '{')
437local done = false
438if self:Peek() == '}' then
439done = true
440end
441while not done do
442local key = self:Read()
443if type(key) ~= "string" then
444error(string.format(
445"Invalid non-string object key: %s",
446key))
447end
448self:SkipWhiteSpace()
449local ch = self:Next()
450if ch ~= ':' then
451error(string.format(
452"Invalid object: '%s' due to: '%s'",
453self:All(),
454ch))
455end
456self:SkipWhiteSpace()
457local val = self:Read()
458result[key] = val
459self:SkipWhiteSpace()
460if self:Peek() == '}' then
461done = true
462end
463if not done then
464ch = self:Next()
465if ch ~= ',' then
466error(string.format(
467"Invalid array: '%s' near: '%s'",
468self:All(),
469ch))
470end
471end
472end
473assert(self:Next() == "}")
474return result
475end
476
477function JsonReader:SkipWhiteSpace()
478local p = self:Peek()
479while p ~= nil and string.find(p, "[%s/]") do
480if p == '/' then
481self:ReadComment()
482else
483self:Next()
484end
485p = self:Peek()
486end
487end
488
489function JsonReader:Peek()
490return self.reader:Peek()
491end
492
493function JsonReader:Next()
494return self.reader:Next()
495end
496
497function JsonReader:All()
498return self.reader:All()
499end
500
501function Encode(o)
502local writer = JsonWriter:New()
503writer:Write(o)
504return writer:ToString()
505end
506
507function Decode(s)
508local reader = JsonReader:New(s)
509return reader:Read()
510end
511
512function Null()
513return Null
514end
515-------------------- End JSON Parser ------------------------
516
517t.DecodeJSON = function(jsonString)
518pcall(function() warn("RbxUtility.DecodeJSON is deprecated, please use Game:GetService('HttpService'):JSONDecode() instead.") end)
519
520if type(jsonString) == "string" then
521return Decode(jsonString)
522end
523print("RbxUtil.DecodeJSON expects string argument!")
524return nil
525end
526
527t.EncodeJSON = function(jsonTable)
528pcall(function() warn("RbxUtility.EncodeJSON is deprecated, please use Game:GetService('HttpService'):JSONEncode() instead.") end)
529return Encode(jsonTable)
530end
531
532
533
534
535
536
537
538
539------------------------------------------------------------------------------------------------------------------------
540------------------------------------------------------------------------------------------------------------------------
541------------------------------------------------------------------------------------------------------------------------
542--------------------------------------------Terrain Utilities Begin-----------------------------------------------------
543------------------------------------------------------------------------------------------------------------------------
544------------------------------------------------------------------------------------------------------------------------
545------------------------------------------------------------------------------------------------------------------------
546--makes a wedge at location x, y, z
547--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
548--returns true if made a wedge, false if the cell remains a block
549t.MakeWedge = function(x, y, z, defaultmaterial)
550return game:GetService("Terrain"):AutoWedgeCell(x,y,z)
551end
552
553t.SelectTerrainRegion = function(regionToSelect, color, selectEmptyCells, selectionParent)
554local terrain = game:GetService("Workspace"):FindFirstChild("Terrain")
555if not terrain then return end
556
557assert(regionToSelect)
558assert(color)
559
560if not type(regionToSelect) == "Region3" then
561error("regionToSelect (first arg), should be of type Region3, but is type",type(regionToSelect))
562end
563if not type(color) == "BrickColor" then
564error("color (second arg), should be of type BrickColor, but is type",type(color))
565end
566
567-- frequently used terrain calls (speeds up call, no lookup necessary)
568local GetCell = terrain.GetCell
569local WorldToCellPreferSolid = terrain.WorldToCellPreferSolid
570local CellCenterToWorld = terrain.CellCenterToWorld
571local emptyMaterial = Enum.CellMaterial.Empty
572
573-- container for all adornments, passed back to user
574local selectionContainer = Instance.new("Model")
575selectionContainer.Name = "SelectionContainer"
576selectionContainer.Archivable = false
577if selectionParent then
578selectionContainer.Parent = selectionParent
579else
580selectionContainer.Parent = game:GetService("Workspace")
581end
582
583local updateSelection = nil -- function we return to allow user to update selection
584local currentKeepAliveTag = nil -- a tag that determines whether adorns should be destroyed
585local aliveCounter = 0 -- helper for currentKeepAliveTag
586local lastRegion = nil -- used to stop updates that do nothing
587local adornments = {} -- contains all adornments
588local reusableAdorns = {}
589
590local selectionPart = Instance.new("Part")
591selectionPart.Name = "SelectionPart"
592selectionPart.Transparency = 1
593selectionPart.Anchored = true
594selectionPart.Locked = true
595selectionPart.CanCollide = false
596selectionPart.Size = Vector3.new(4.2,4.2,4.2)
597
598local selectionBox = Instance.new("SelectionBox")
599
600-- srs translation from region3 to region3int16
601local function Region3ToRegion3int16(region3)
602local theLowVec = region3.CFrame.p - (region3.Size/2) + Vector3.new(2,2,2)
603local lowCell = WorldToCellPreferSolid(terrain,theLowVec)
604
605local theHighVec = region3.CFrame.p + (region3.Size/2) - Vector3.new(2,2,2)
606local highCell = WorldToCellPreferSolid(terrain, theHighVec)
607
608local highIntVec = Vector3int16.new(highCell.x,highCell.y,highCell.z)
609local lowIntVec = Vector3int16.new(lowCell.x,lowCell.y,lowCell.z)
610
611return Region3int16.new(lowIntVec,highIntVec)
612end
613
614-- helper function that creates the basis for a selection box
615function createAdornment(theColor)
616local selectionPartClone = nil
617local selectionBoxClone = nil
618
619if #reusableAdorns > 0 then
620selectionPartClone = reusableAdorns[1]["part"]
621selectionBoxClone = reusableAdorns[1]["box"]
622table.remove(reusableAdorns,1)
623
624selectionBoxClone.Visible = true
625else
626selectionPartClone = selectionPart:Clone()
627selectionPartClone.Archivable = false
628
629selectionBoxClone = selectionBox:Clone()
630selectionBoxClone.Archivable = false
631
632selectionBoxClone.Adornee = selectionPartClone
633selectionBoxClone.Parent = selectionContainer
634
635selectionBoxClone.Adornee = selectionPartClone
636
637selectionBoxClone.Parent = selectionContainer
638end
639
640if theColor then
641selectionBoxClone.Color = theColor
642end
643
644return selectionPartClone, selectionBoxClone
645end
646
647-- iterates through all current adornments and deletes any that don't have latest tag
648function cleanUpAdornments()
649for cellPos, adornTable in pairs(adornments) do
650
651if adornTable.KeepAlive ~= currentKeepAliveTag then -- old news, we should get rid of this
652adornTable.SelectionBox.Visible = false
653table.insert(reusableAdorns,{part = adornTable.SelectionPart, box = adornTable.SelectionBox})
654adornments[cellPos] = nil
655end
656end
657end
658
659-- helper function to update tag
660function incrementAliveCounter()
661aliveCounter = aliveCounter + 1
662if aliveCounter > 1000000 then
663aliveCounter = 0
664end
665return aliveCounter
666end
667
668-- finds full cells in region and adorns each cell with a box, with the argument color
669function adornFullCellsInRegion(region, color)
670local regionBegin = region.CFrame.p - (region.Size/2) + Vector3.new(2,2,2)
671local regionEnd = region.CFrame.p + (region.Size/2) - Vector3.new(2,2,2)
672
673local cellPosBegin = WorldToCellPreferSolid(terrain, regionBegin)
674local cellPosEnd = WorldToCellPreferSolid(terrain, regionEnd)
675
676currentKeepAliveTag = incrementAliveCounter()
677for y = cellPosBegin.y, cellPosEnd.y do
678for z = cellPosBegin.z, cellPosEnd.z do
679for x = cellPosBegin.x, cellPosEnd.x do
680local cellMaterial = GetCell(terrain, x, y, z)
681
682if cellMaterial ~= emptyMaterial then
683local cframePos = CellCenterToWorld(terrain, x, y, z)
684local cellPos = Vector3int16.new(x,y,z)
685
686local updated = false
687for cellPosAdorn, adornTable in pairs(adornments) do
688if cellPosAdorn == cellPos then
689adornTable.KeepAlive = currentKeepAliveTag
690if color then
691adornTable.SelectionBox.Color = color
692end
693updated = true
694break
695end
696end
697
698if not updated then
699local selectionPart, selectionBox = createAdornment(color)
700selectionPart.Size = Vector3.new(4,4,4)
701selectionPart.CFrame = CFrame.new(cframePos)
702local adornTable = {SelectionPart = selectionPart, SelectionBox = selectionBox, KeepAlive = currentKeepAliveTag}
703adornments[cellPos] = adornTable
704end
705end
706end
707end
708end
709cleanUpAdornments()
710end
711
712
713------------------------------------- setup code ------------------------------
714lastRegion = regionToSelect
715
716if selectEmptyCells then -- use one big selection to represent the area selected
717local selectionPart, selectionBox = createAdornment(color)
718
719selectionPart.Size = regionToSelect.Size
720selectionPart.CFrame = regionToSelect.CFrame
721
722adornments.SelectionPart = selectionPart
723adornments.SelectionBox = selectionBox
724
725updateSelection =
726function (newRegion, color)
727if newRegion and newRegion ~= lastRegion then
728lastRegion = newRegion
729selectionPart.Size = newRegion.Size
730selectionPart.CFrame = newRegion.CFrame
731end
732if color then
733selectionBox.Color = color
734end
735end
736else -- use individual cell adorns to represent the area selected
737adornFullCellsInRegion(regionToSelect, color)
738updateSelection =
739function (newRegion, color)
740if newRegion and newRegion ~= lastRegion then
741lastRegion = newRegion
742adornFullCellsInRegion(newRegion, color)
743end
744end
745
746end
747
748local destroyFunc = function()
749updateSelection = nil
750if selectionContainer then selectionContainer:Destroy() end
751adornments = nil
752end
753
754return updateSelection, destroyFunc
755end
756
757-----------------------------Terrain Utilities End-----------------------------
758
759
760
761
762
763
764
765------------------------------------------------------------------------------------------------------------------------
766------------------------------------------------------------------------------------------------------------------------
767------------------------------------------------------------------------------------------------------------------------
768------------------------------------------------Signal class begin------------------------------------------------------
769------------------------------------------------------------------------------------------------------------------------
770------------------------------------------------------------------------------------------------------------------------
771------------------------------------------------------------------------------------------------------------------------
772--[[
773A 'Signal' object identical to the internal RBXScriptSignal object in it's public API and semantics. This function
774can be used to create "custom events" for user-made code.
775API:
776Method :connect( function handler )
777Arguments: The function to connect to.
778Returns: A new connection object which can be used to disconnect the connection
779Description: Connects this signal to the function specified by |handler|. That is, when |fire( ... )| is called for
780the signal the |handler| will be called with the arguments given to |fire( ... )|. Note, the functions
781connected to a signal are called in NO PARTICULAR ORDER, so connecting one function after another does
782NOT mean that the first will be called before the second as a result of a call to |fire|.
783
784Method :disconnect()
785Arguments: None
786Returns: None
787Description: Disconnects all of the functions connected to this signal.
788
789Method :fire( ... )
790Arguments: Any arguments are accepted
791Returns: None
792Description: Calls all of the currently connected functions with the given arguments.
793
794Method :wait()
795Arguments: None
796Returns: The arguments given to fire
797Description: This call blocks until
798]]
799
800function t.CreateSignal()
801local this = {}
802
803local mBindableEvent = Instance.new('BindableEvent')
804local mAllCns = {} --all connection objects returned by mBindableEvent::connect
805
806--main functions
807function this:connect(func)
808if self ~= this then error("connect must be called with `:`, not `.`", 2) end
809if type(func) ~= 'function' then
810error("Argument #1 of connect must be a function, got a "..type(func), 2)
811end
812local cn = mBindableEvent.Event:Connect(func)
813mAllCns[cn] = true
814local pubCn = {}
815function pubCn:disconnect()
816cn:Disconnect()
817mAllCns[cn] = nil
818end
819pubCn.Disconnect = pubCn.disconnect
820
821return pubCn
822end
823
824function this:disconnect()
825if self ~= this then error("disconnect must be called with `:`, not `.`", 2) end
826for cn, _ in pairs(mAllCns) do
827cn:Disconnect()
828mAllCns[cn] = nil
829end
830end
831
832function this:wait()
833if self ~= this then error("wait must be called with `:`, not `.`", 2) end
834return mBindableEvent.Event:Wait()
835end
836
837function this:fire(...)
838if self ~= this then error("fire must be called with `:`, not `.`", 2) end
839mBindableEvent:Fire(...)
840end
841
842this.Connect = this.connect
843this.Disconnect = this.disconnect
844this.Wait = this.wait
845this.Fire = this.fire
846
847return this
848end
849
850------------------------------------------------- Sigal class End ------------------------------------------------------
851
852
853
854
855------------------------------------------------------------------------------------------------------------------------
856------------------------------------------------------------------------------------------------------------------------
857------------------------------------------------------------------------------------------------------------------------
858-----------------------------------------------Create Function Begins---------------------------------------------------
859------------------------------------------------------------------------------------------------------------------------
860------------------------------------------------------------------------------------------------------------------------
861------------------------------------------------------------------------------------------------------------------------
862--[[
863A "Create" function for easy creation of Roblox instances. The function accepts a string which is the classname of
864the object to be created. The function then returns another function which either accepts accepts no arguments, in
865which case it simply creates an object of the given type, or a table argument that may contain several types of data,
866in which case it mutates the object in varying ways depending on the nature of the aggregate data. These are the
867type of data and what operation each will perform:
8681) A string key mapping to some value:
869Key-Value pairs in this form will be treated as properties of the object, and will be assigned in NO PARTICULAR
870ORDER. If the order in which properties is assigned matter, then they must be assigned somewhere else than the
871|Create| call's body.
872
8732) An integral key mapping to another Instance:
874Normal numeric keys mapping to Instances will be treated as children if the object being created, and will be
875parented to it. This allows nice recursive calls to Create to create a whole hierarchy of objects without a
876need for temporary variables to store references to those objects.
877
8783) A key which is a value returned from Create.Event( eventname ), and a value which is a function function
879The Create.E( string ) function provides a limited way to connect to signals inside of a Create hierarchy
880for those who really want such a functionality. The name of the event whose name is passed to
881Create.E( string )
882
8834) A key which is the Create function itself, and a value which is a function
884The function will be run with the argument of the object itself after all other initialization of the object is
885done by create. This provides a way to do arbitrary things involving the object from withing the create
886hierarchy.
887Note: This function is called SYNCHRONOUSLY, that means that you should only so initialization in
888it, not stuff which requires waiting, as the Create call will block until it returns. While waiting in the
889constructor callback function is possible, it is probably not a good design choice.
890Note: Since the constructor function is called after all other initialization, a Create block cannot have two
891constructor functions, as it would not be possible to call both of them last, also, this would be unnecessary.
892
893
894Some example usages:
895
896A simple example which uses the Create function to create a model object and assign two of it's properties.
897local model = Create'Model'{
898Name = 'A New model',
899Parent = game.Workspace,
900}
901
902
903An example where a larger hierarchy of object is made. After the call the hierarchy will look like this:
904Model_Container
905|-ObjectValue
906| |
907| `-BoolValueChild
908`-IntValue
909
910local model = Create'Model'{
911Name = 'Model_Container',
912Create'ObjectValue'{
913Create'BoolValue'{
914Name = 'BoolValueChild',
915},
916},
917Create'IntValue'{},
918}
919
920
921An example using the event syntax:
922
923local part = Create'Part'{
924[Create.E'Touched'] = function(part)
925print("I was touched by "..part.Name)
926end,
927}
928
929
930An example using the general constructor syntax:
931
932local model = Create'Part'{
933[Create] = function(this)
934print("Constructor running!")
935this.Name = GetGlobalFoosAndBars(this)
936end,
937}
938
939
940Note: It is also perfectly legal to save a reference to the function returned by a call Create, this will not cause
941any unexpected behavior. EG:
942local partCreatingFunction = Create'Part'
943local part = partCreatingFunction()
944]]
945
946--the Create function need to be created as a functor, not a function, in order to support the Create.E syntax, so it
947--will be created in several steps rather than as a single function declaration.
948local function Create_PrivImpl(objectType)
949if type(objectType) ~= 'string' then
950error("Argument of Create must be a string", 2)
951end
952--return the proxy function that gives us the nice Create'string'{data} syntax
953--The first function call is a function call using Lua's single-string-argument syntax
954--The second function call is using Lua's single-table-argument syntax
955--Both can be chained together for the nice effect.
956return function(dat)
957--default to nothing, to handle the no argument given case
958dat = dat or {}
959
960--make the object to mutate
961local obj = Instance.new(objectType)
962local parent = nil
963
964--stored constructor function to be called after other initialization
965local ctor = nil
966
967for k, v in pairs(dat) do
968--add property
969if type(k) == 'string' then
970if k == 'Parent' then
971-- Parent should always be set last, setting the Parent of a new object
972-- immediately makes performance worse for all subsequent property updates.
973parent = v
974else
975obj[k] = v
976end
977
978
979--add child
980elseif type(k) == 'number' then
981if type(v) ~= 'userdata' then
982error("Bad entry in Create body: Numeric keys must be paired with children, got a: "..type(v), 2)
983end
984v.Parent = obj
985
986
987--event connect
988elseif type(k) == 'table' and k.__eventname then
989if type(v) ~= 'function' then
990error("Bad entry in Create body: Key `[Create.E\'"..k.__eventname.."\']` must have a function value\
991got: "..tostring(v), 2)
992end
993obj[k.__eventname]:connect(v)
994
995
996--define constructor function
997elseif k == t.Create then
998if type(v) ~= 'function' then
999error("Bad entry in Create body: Key `[Create]` should be paired with a constructor function, \
1000got: "..tostring(v), 2)
1001elseif ctor then
1002--ctor already exists, only one allowed
1003error("Bad entry in Create body: Only one constructor function is allowed", 2)
1004end
1005ctor = v
1006
1007
1008else
1009error("Bad entry ("..tostring(k).." => "..tostring(v)..") in Create body", 2)
1010end
1011end
1012
1013--apply constructor function if it exists
1014if ctor then
1015ctor(obj)
1016end
1017
1018if parent then
1019obj.Parent = parent
1020end
1021
1022--return the completed object
1023return obj
1024end
1025end
1026
1027--now, create the functor:
1028t.Create = setmetatable({}, {__call = function(tb, ...) return Create_PrivImpl(...) end})
1029
1030--and create the "Event.E" syntax stub. Really it's just a stub to construct a table which our Create
1031--function can recognize as special.
1032t.Create.E = function(eventName)
1033return {__eventname = eventName}
1034end
1035
1036-------------------------------------------------Create function End----------------------------------------------------
1037
1038
1039
1040
1041------------------------------------------------------------------------------------------------------------------------
1042------------------------------------------------------------------------------------------------------------------------
1043------------------------------------------------------------------------------------------------------------------------
1044------------------------------------------------Documentation Begin-----------------------------------------------------
1045------------------------------------------------------------------------------------------------------------------------
1046------------------------------------------------------------------------------------------------------------------------
1047------------------------------------------------------------------------------------------------------------------------
1048
1049t.Help =
1050function(funcNameOrFunc)
1051--input argument can be a string or a function. Should return a description (of arguments and expected side effects)
1052if funcNameOrFunc == "DecodeJSON" or funcNameOrFunc == t.DecodeJSON then
1053return "Function DecodeJSON. " ..
1054"Arguments: (string). " ..
1055"Side effect: returns a table with all parsed JSON values"
1056end
1057if funcNameOrFunc == "EncodeJSON" or funcNameOrFunc == t.EncodeJSON then
1058return "Function EncodeJSON. " ..
1059"Arguments: (table). " ..
1060"Side effect: returns a string composed of argument table in JSON data format"
1061end
1062if funcNameOrFunc == "MakeWedge" or funcNameOrFunc == t.MakeWedge then
1063return "Function MakeWedge. " ..
1064"Arguments: (x, y, z, [default material]). " ..
1065"Description: Makes a wedge at location x, y, z. Sets cell x, y, z to default material if "..
1066"parameter is provided, if not sets cell x, y, z to be whatever material it previously was. "..
1067"Returns true if made a wedge, false if the cell remains a block "
1068end
1069if funcNameOrFunc == "SelectTerrainRegion" or funcNameOrFunc == t.SelectTerrainRegion then
1070return "Function SelectTerrainRegion. " ..
1071"Arguments: (regionToSelect, color, selectEmptyCells, selectionParent). " ..
1072"Description: Selects all terrain via a series of selection boxes within the regionToSelect " ..
1073"(this should be a region3 value). The selection box color is detemined by the color argument " ..
1074"(should be a brickcolor value). SelectionParent is the parent that the selection model gets placed to (optional)." ..
1075"SelectEmptyCells is bool, when true will select all cells in the " ..
1076"region, otherwise we only select non-empty cells. Returns a function that can update the selection," ..
1077"arguments to said function are a new region3 to select, and the adornment color (color arg is optional). " ..
1078"Also returns a second function that takes no arguments and destroys the selection"
1079end
1080if funcNameOrFunc == "CreateSignal" or funcNameOrFunc == t.CreateSignal then
1081return "Function CreateSignal. "..
1082"Arguments: None. "..
1083"Returns: The newly created Signal object. This object is identical to the RBXScriptSignal class "..
1084"used for events in Objects, but is a Lua-side object so it can be used to create custom events in"..
1085"Lua code. "..
1086"Methods of the Signal object: :connect, :wait, :fire, :disconnect. "..
1087"For more info you can pass the method name to the Help function, or view the wiki page "..
1088"for this library. EG: Help('Signal:connect')."
1089end
1090if funcNameOrFunc == "Signal:connect" then
1091return "Method Signal:connect. "..
1092"Arguments: (function handler). "..
1093"Return: A connection object which can be used to disconnect the connection to this handler. "..
1094"Description: Connectes a handler function to this Signal, so that when |fire| is called the "..
1095"handler function will be called with the arguments passed to |fire|."
1096end
1097if funcNameOrFunc == "Signal:wait" then
1098return "Method Signal:wait. "..
1099"Arguments: None. "..
1100"Returns: The arguments passed to the next call to |fire|. "..
1101"Description: This call does not return until the next call to |fire| is made, at which point it "..
1102"will return the values which were passed as arguments to that |fire| call."
1103end
1104if funcNameOrFunc == "Signal:fire" then
1105return "Method Signal:fire. "..
1106"Arguments: Any number of arguments of any type. "..
1107"Returns: None. "..
1108"Description: This call will invoke any connected handler functions, and notify any waiting code "..
1109"attached to this Signal to continue, with the arguments passed to this function. Note: The calls "..
1110"to handlers are made asynchronously, so this call will return immediately regardless of how long "..
1111"it takes the connected handler functions to complete."
1112end
1113if funcNameOrFunc == "Signal:disconnect" then
1114return "Method Signal:disconnect. "..
1115"Arguments: None. "..
1116"Returns: None. "..
1117"Description: This call disconnects all handlers attacched to this function, note however, it "..
1118"does NOT make waiting code continue, as is the behavior of normal Roblox events. This method "..
1119"can also be called on the connection object which is returned from Signal:connect to only "..
1120"disconnect a single handler, as opposed to this method, which will disconnect all handlers."
1121end
1122if funcNameOrFunc == "Create" then
1123return "Function Create. "..
1124"Arguments: A table containing information about how to construct a collection of objects. "..
1125"Returns: The constructed objects. "..
1126"Descrition: Create is a very powerfull function, whose description is too long to fit here, and "..
1127"is best described via example, please see the wiki page for a description of how to use it."
1128end
1129end
1130
1131--------------------------------------------Documentation Ends----------------------------------------------------------
1132
1133return t
1134end
1135
1136--[[ Name : Gale Fighter ]]--
1137-------------------------------------------------------
1138--A Collaboration Between makhail07 and KillerDarkness0105
1139
1140--Base Animaion by makhail07, attacks by KillerDarkness0105
1141-------------------------------------------------------
1142
1143
1144local FavIDs = {
1145340106355, --Nefl Crystals
1146927529620, --Dimension
1147876981900, --Fantasy
1148398987889, --Ordinary Days
11491117396305, --Oh wait, it's you.
1150885996042, --Action Winter Journey
1151919231299, --Sprawling Idiot Effigy
1152743466274, --Good Day Sunshine
1153727411183, --Knife Fight
11541402748531, --The Earth Is Counting On You!
1155595230126 --Robot Language
1156}
1157
1158
1159
1160--The reality of my life isn't real but a Universe -makhail07
1161wait(0.2)
1162local plr = game:GetService("Players").LocalPlayer
1163print('Local User is '..plr.Name)
1164print('Gale Fighter Loaded')
1165print('The Fighter that is as fast as wind, a true Fighter')
1166local char = plr.Character.NullwareReanim
1167local hum = char.Humanoid
1168local hed = char.Head
1169local root = char.HumanoidRootPart
1170local rootj = root.RootJoint
1171local tors = char.Torso
1172local ra = char["Right Arm"]
1173local la = char["Left Arm"]
1174local rl = char["Right Leg"]
1175local ll = char["Left Leg"]
1176local neck = tors["Neck"]
1177local mouse = plr:GetMouse()
1178local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
1179local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
1180local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
1181local maincolor = BrickColor.new("Institutional white")
1182hum.MaxHealth = 200
1183hum.Health = 200
1184
1185local hrp = game:GetService("Players").LocalPlayer.Character.HumanoidRootPart
1186
1187hrp.Name = "HumanoidRootPart"
1188hrp.Transparency = 0.5
1189hrp.Anchored = false
1190if hrp:FindFirstChildOfClass("AlignPosition") then
1191hrp:FindFirstChildOfClass("AlignPosition"):Destroy()
1192end
1193if hrp:FindFirstChildOfClass("AlignOrientation") then
1194hrp:FindFirstChildOfClass("AlignOrientation"):Destroy()
1195end
1196local bp = Instance.new("BodyPosition", hrp)
1197bp.Position = hrp.Position
1198bp.D = 9999999
1199bp.P = 999999999999999
1200bp.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
1201local flinger = Instance.new("BodyAngularVelocity",hrp)
1202flinger.MaxTorque = Vector3.new(math.huge,math.huge,math.huge)
1203flinger.P = 1000000000000000000000000000
1204flinger.AngularVelocity = Vector3.new(10000,10000,10000)
1205
1206spawn(function()
1207while game:GetService("RunService").Heartbeat:Wait() do
1208bp.Position = game:GetService("Players").LocalPlayer.Character["NullwareReanim"].Torso.Position
1209end
1210end)
1211
1212-------------------------------------------------------
1213--Start Good Stuff--
1214-------------------------------------------------------
1215cam = game.Workspace.CurrentCamera
1216CF = CFrame.new
1217angles = CFrame.Angles
1218attack = false
1219Euler = CFrame.fromEulerAnglesXYZ
1220Rad = math.rad
1221IT = Instance.new
1222BrickC = BrickColor.new
1223Cos = math.cos
1224Acos = math.acos
1225Sin = math.sin
1226Asin = math.asin
1227Abs = math.abs
1228Mrandom = math.random
1229Floor = math.floor
1230-------------------------------------------------------
1231--End Good Stuff--
1232-------------------------------------------------------
1233necko = CF(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
1234RSH, LSH = nil, nil
1235RW = Instance.new("Weld")
1236LW = Instance.new("Weld")
1237RH = tors["Right Hip"]
1238LH = tors["Left Hip"]
1239RSH = tors["Right Shoulder"]
1240LSH = tors["Left Shoulder"]
1241RSH.Parent = nil
1242LSH.Parent = nil
1243RW.Name = "RW"
1244RW.Part0 = tors
1245RW.C0 = CF(1.5, 0.5, 0)
1246RW.C1 = CF(0, 0.5, 0)
1247RW.Part1 = ra
1248RW.Parent = tors
1249LW.Name = "LW"
1250LW.Part0 = tors
1251LW.C0 = CF(-1.5, 0.5, 0)
1252LW.C1 = CF(0, 0.5, 0)
1253LW.Part1 = la
1254LW.Parent = tors
1255vt = Vector3.new
1256Effects = {}
1257-------------------------------------------------------
1258--Start HeartBeat--
1259-------------------------------------------------------
1260ArtificialHB = Instance.new("BindableEvent", script)
1261ArtificialHB.Name = "Heartbeat"
1262script:WaitForChild("Heartbeat")
1263
1264frame = 1 / 90
1265tf = 0
1266allowframeloss = false
1267tossremainder = false
1268
1269
1270lastframe = tick()
1271script.Heartbeat:Fire()
1272
1273
1274game:GetService("RunService").Heartbeat:connect(function(s, p)
1275tf = tf + s
1276if tf >= frame then
1277if allowframeloss then
1278script.Heartbeat:Fire()
1279lastframe = tick()
1280else
1281for i = 1, math.floor(tf / frame) do
1282script.Heartbeat:Fire()
1283end
1284lastframe = tick()
1285end
1286if tossremainder then
1287tf = 0
1288else
1289tf = tf - frame * math.floor(tf / frame)
1290end
1291end
1292end)
1293-------------------------------------------------------
1294--End HeartBeat--
1295-------------------------------------------------------
1296
1297
1298
1299-------------------------------------------------------
1300--Start Combo Function--
1301-------------------------------------------------------
1302local comboing = false
1303local combohits = 0
1304local combotime = 0
1305local maxtime = 65
1306
1307
1308
1309function sandbox(var,func)
1310local env = getfenv(func)
1311local newenv = setmetatable({},{
1312__index = function(self,k)
1313if k=="script" then
1314return var
1315else
1316return env[k]
1317end
1318end,
1319})
1320setfenv(func,newenv)
1321return func
1322end
1323cors = {}
1324mas = Instance.new("Model",game:GetService("Lighting"))
1325comboframe = Instance.new("ScreenGui")
1326Frame1 = Instance.new("Frame")
1327Frame2 = Instance.new("Frame")
1328TextLabel3 = Instance.new("TextLabel")
1329comboframe.Name = "combinserter"
1330comboframe.Parent = mas
1331Frame1.Name = "combtimegui"
1332Frame1.Parent = comboframe
1333Frame1.Size = UDim2.new(0, 300, 0, 14)
1334Frame1.Position = UDim2.new(0, 900, 0.629999971, 0)
1335Frame1.BackgroundColor3 = Color3.new(0, 0, 0)
1336Frame1.BorderColor3 = Color3.new(0.0313726, 0.0470588, 0.0627451)
1337Frame1.BorderSizePixel = 5
1338Frame2.Name = "combtimeoverlay"
1339Frame2.Parent = Frame1
1340Frame2.Size = UDim2.new(0, 0, 0, 14)
1341Frame2.BackgroundColor3 = Color3.new(0, 1, 0)
1342Frame2.ZIndex = 2
1343TextLabel3.Parent = Frame2
1344TextLabel3.Transparency = 0
1345TextLabel3.Size = UDim2.new(0, 300, 0, 50)
1346TextLabel3.Text ="Hits: "..combohits
1347TextLabel3.Position = UDim2.new(0, 0, -5.5999999, 0)
1348TextLabel3.BackgroundColor3 = Color3.new(1, 1, 1)
1349TextLabel3.BackgroundTransparency = 1
1350TextLabel3.Font = Enum.Font.Bodoni
1351TextLabel3.FontSize = Enum.FontSize.Size60
1352TextLabel3.TextColor3 = Color3.new(0, 1, 0)
1353TextLabel3.TextStrokeTransparency = 0
1354gui = game:GetService("Players").LocalPlayer.PlayerGui
1355for i,v in pairs(mas:GetChildren()) do
1356v.Parent = game:GetService("Players").LocalPlayer.PlayerGui
1357pcall(function() v:MakeJoints() end)
1358end
1359mas:Destroy()
1360for i,v in pairs(cors) do
1361spawn(function()
1362pcall(v)
1363end)
1364end
1365
1366
1367
1368
1369
1370coroutine.resume(coroutine.create(function()
1371while true do
1372wait()
1373
1374
1375if combotime>65 then
1376combotime = 65
1377end
1378
1379
1380
1381
1382
1383if combotime>.1 and comboing == true then
1384TextLabel3.Transparency = 0
1385TextLabel3.TextStrokeTransparency = 0
1386TextLabel3.BackgroundTransparency = 1
1387Frame1.Transparency = 0
1388Frame2.Transparency = 0
1389TextLabel3.Text ="Hits: "..combohits
1390combotime = combotime - .34
1391Frame2.Size = Frame2.Size:lerp(UDim2.new(0, combotime/maxtime*300, 0, 14),0.42)
1392end
1393
1394
1395
1396
1397if combotime<.1 then
1398TextLabel3.BackgroundTransparency = 1
1399TextLabel3.Transparency = 1
1400TextLabel3.TextStrokeTransparency = 1
1401
1402Frame2.Size = UDim2.new(0, 0, 0, 14)
1403combotime = 0
1404comboing = false
1405Frame1.Transparency = 1
1406Frame2.Transparency = 1
1407combohits = 0
1408
1409end
1410end
1411end))
1412
1413
1414
1415-------------------------------------------------------
1416--End Combo Function--
1417-------------------------------------------------------
1418
1419-------------------------------------------------------
1420--Start Important Functions--
1421-------------------------------------------------------
1422function swait(num)
1423if num == 0 or num == nil then
1424game:service("RunService").Stepped:wait(0)
1425else
1426for i = 0, num do
1427game:service("RunService").Stepped:wait(0)
1428end
1429end
1430end
1431function thread(f)
1432coroutine.resume(coroutine.create(f))
1433end
1434function clerp(a, b, t)
1435local qa = {
1436QuaternionFromCFrame(a)
1437}
1438local qb = {
1439QuaternionFromCFrame(b)
1440}
1441local ax, ay, az = a.x, a.y, a.z
1442local bx, by, bz = b.x, b.y, b.z
1443local _t = 1 - t
1444return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
1445end
1446function QuaternionFromCFrame(cf)
1447local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
1448local trace = m00 + m11 + m22
1449if trace > 0 then
1450local s = math.sqrt(1 + trace)
1451local recip = 0.5 / s
1452return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
1453else
1454local i = 0
1455if m00 < m11 then
1456i = 1
1457end
1458if m22 > (i == 0 and m00 or m11) then
1459i = 2
1460end
1461if i == 0 then
1462local s = math.sqrt(m00 - m11 - m22 + 1)
1463local recip = 0.5 / s
1464return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
1465elseif i == 1 then
1466local s = math.sqrt(m11 - m22 - m00 + 1)
1467local recip = 0.5 / s
1468return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
1469elseif i == 2 then
1470local s = math.sqrt(m22 - m00 - m11 + 1)
1471local recip = 0.5 / s
1472return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
1473end
1474end
1475end
1476function QuaternionToCFrame(px, py, pz, x, y, z, w)
1477local xs, ys, zs = x + x, y + y, z + z
1478local wx, wy, wz = w * xs, w * ys, w * zs
1479local xx = x * xs
1480local xy = x * ys
1481local xz = x * zs
1482local yy = y * ys
1483local yz = y * zs
1484local zz = z * zs
1485return 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))
1486end
1487function QuaternionSlerp(a, b, t)
1488local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
1489local startInterp, finishInterp
1490if cosTheta >= 1.0E-4 then
1491if 1 - cosTheta > 1.0E-4 then
1492local theta = math.acos(cosTheta)
1493local invSinTheta = 1 / Sin(theta)
1494startInterp = Sin((1 - t) * theta) * invSinTheta
1495finishInterp = Sin(t * theta) * invSinTheta
1496else
1497startInterp = 1 - t
1498finishInterp = t
1499end
1500elseif 1 + cosTheta > 1.0E-4 then
1501local theta = math.acos(-cosTheta)
1502local invSinTheta = 1 / Sin(theta)
1503startInterp = Sin((t - 1) * theta) * invSinTheta
1504finishInterp = Sin(t * theta) * invSinTheta
1505else
1506startInterp = t - 1
1507finishInterp = t
1508end
1509return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp
1510end
1511function rayCast(Position, Direction, Range, Ignore)
1512return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
1513end
1514local RbxUtility = LoadLibrary("RbxUtility")
1515local Create = RbxUtility.Create
1516
1517-------------------------------------------------------
1518--Start Damage Function--
1519-------------------------------------------------------
1520
1521-------------------------------------------------------
1522--End Damage Function--
1523-------------------------------------------------------
1524
1525-------------------------------------------------------
1526--Start Damage Function Customization--
1527-------------------------------------------------------
1528function ShowDamage(Pos, Text, Time, Color)
1529local Rate = (1 / 30)
1530local Pos = (Pos or Vector3.new(0, 0, 0))
1531local Text = (Text or "")
1532local Time = (Time or 2)
1533local Color = (Color or Color3.new(1, 0, 1))
1534local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
1535EffectPart.Anchored = true
1536local BillboardGui = Create("BillboardGui"){
1537Size = UDim2.new(3, 0, 3, 0),
1538Adornee = EffectPart,
1539Parent = EffectPart,
1540}
1541local TextLabel = Create("TextLabel"){
1542BackgroundTransparency = 1,
1543Size = UDim2.new(1, 0, 1, 0),
1544Text = Text,
1545Font = "Bodoni",
1546TextColor3 = Color,
1547TextScaled = true,
1548TextStrokeColor3 = Color3.fromRGB(0,0,0),
1549Parent = BillboardGui,
1550}
1551game.Debris:AddItem(EffectPart, (Time))
1552EffectPart.Parent = game:GetService("Workspace")
1553delay(0, function()
1554local Frames = (Time / Rate)
1555for Frame = 1, Frames do
1556wait(Rate)
1557local Percent = (Frame / Frames)
1558EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
1559TextLabel.TextTransparency = Percent
1560end
1561if EffectPart and EffectPart.Parent then
1562EffectPart:Destroy()
1563end
1564end)
1565end
1566-------------------------------------------------------
1567--End Damage Function Customization--
1568-------------------------------------------------------
1569
1570CFuncs = {
1571Part = {
1572Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
1573local Part = Create("Part")({
1574Parent = Parent,
1575Reflectance = Reflectance,
1576Transparency = Transparency,
1577CanCollide = false,
1578Locked = true,
1579BrickColor = BrickColor.new(tostring(BColor)),
1580Name = Name,
1581Size = Size,
1582Material = Material
1583})
1584RemoveOutlines(Part)
1585return Part
1586end
1587},
1588Mesh = {
1589Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
1590local Msh = Create(Mesh)({
1591Parent = Part,
1592Offset = OffSet,
1593Scale = Scale
1594})
1595if Mesh == "SpecialMesh" then
1596Msh.MeshType = MeshType
1597Msh.MeshId = MeshId
1598end
1599return Msh
1600end
1601},
1602Mesh = {
1603Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
1604local Msh = Create(Mesh)({
1605Parent = Part,
1606Offset = OffSet,
1607Scale = Scale
1608})
1609if Mesh == "SpecialMesh" then
1610Msh.MeshType = MeshType
1611Msh.MeshId = MeshId
1612end
1613return Msh
1614end
1615},
1616Weld = {
1617Create = function(Parent, Part0, Part1, C0, C1)
1618local Weld = Create("Weld")({
1619Parent = Parent,
1620Part0 = Part0,
1621Part1 = Part1,
1622C0 = C0,
1623C1 = C1
1624})
1625return Weld
1626end
1627},
1628Sound = {
1629Create = function(id, par, vol, pit)
1630coroutine.resume(coroutine.create(function()
1631local S = Create("Sound")({
1632Volume = vol,
1633Pitch = pit or 1,
1634SoundId = id,
1635Parent = par or workspace
1636})
1637wait()
1638S:play()
1639game:GetService("Debris"):AddItem(S, 6)
1640end))
1641end
1642},
1643ParticleEmitter = {
1644Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
1645local fp = Create("ParticleEmitter")({
1646Parent = Parent,
1647Color = ColorSequence.new(Color1, Color2),
1648LightEmission = LightEmission,
1649Size = Size,
1650Texture = Texture,
1651Transparency = Transparency,
1652ZOffset = ZOffset,
1653Acceleration = Accel,
1654Drag = Drag,
1655LockedToPart = LockedToPart,
1656VelocityInheritance = VelocityInheritance,
1657EmissionDirection = EmissionDirection,
1658Enabled = Enabled,
1659Lifetime = LifeTime,
1660Rate = Rate,
1661Rotation = Rotation,
1662RotSpeed = RotSpeed,
1663Speed = Speed,
1664VelocitySpread = VelocitySpread
1665})
1666return fp
1667end
1668}
1669}
1670function RemoveOutlines(part)
1671part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
1672end
1673function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
1674local Part = Create("Part")({
1675formFactor = FormFactor,
1676Parent = Parent,
1677Reflectance = Reflectance,
1678Transparency = Transparency,
1679CanCollide = false,
1680Locked = true,
1681BrickColor = BrickColor.new(tostring(BColor)),
1682Name = Name,
1683Size = Size,
1684Material = Material
1685})
1686RemoveOutlines(Part)
1687return Part
1688end
1689function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
1690local Msh = Create(Mesh)({
1691Parent = Part,
1692Offset = OffSet,
1693Scale = Scale
1694})
1695if Mesh == "SpecialMesh" then
1696Msh.MeshType = MeshType
1697Msh.MeshId = MeshId
1698end
1699return Msh
1700end
1701function CreateWeld(Parent, Part0, Part1, C0, C1)
1702local Weld = Create("Weld")({
1703Parent = Parent,
1704Part0 = Part0,
1705Part1 = Part1,
1706C0 = C0,
1707C1 = C1
1708})
1709return Weld
1710end
1711
1712
1713-------------------------------------------------------
1714--Start Effect Function--
1715-------------------------------------------------------
1716EffectModel = Instance.new("Model", char)
1717Effects = {
1718Block = {
1719Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
1720local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
1721prt.Anchored = true
1722prt.CFrame = cframe
1723local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
1724game:GetService("Debris"):AddItem(prt, 10)
1725if Type == 1 or Type == nil then
1726table.insert(Effects, {
1727prt,
1728"Block1",
1729delay,
1730x3,
1731y3,
1732z3,
1733msh
1734})
1735elseif Type == 2 then
1736table.insert(Effects, {
1737prt,
1738"Block2",
1739delay,
1740x3,
1741y3,
1742z3,
1743msh
1744})
1745else
1746table.insert(Effects, {
1747prt,
1748"Block3",
1749delay,
1750x3,
1751y3,
1752z3,
1753msh
1754})
1755end
1756end
1757},
1758Sphere = {
1759Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
1760local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
1761prt.Anchored = true
1762prt.CFrame = cframe
1763local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
1764game:GetService("Debris"):AddItem(prt, 10)
1765table.insert(Effects, {
1766prt,
1767"Cylinder",
1768delay,
1769x3,
1770y3,
1771z3,
1772msh
1773})
1774end
1775},
1776Cylinder = {
1777Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
1778local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
1779prt.Anchored = true
1780prt.CFrame = cframe
1781local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
1782game:GetService("Debris"):AddItem(prt, 10)
1783table.insert(Effects, {
1784prt,
1785"Cylinder",
1786delay,
1787x3,
1788y3,
1789z3,
1790msh
1791})
1792end
1793},
1794Wave = {
1795Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
1796local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
1797prt.Anchored = true
1798prt.CFrame = cframe
1799local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1 / 60, y1 / 60, z1 / 60))
1800game:GetService("Debris"):AddItem(prt, 10)
1801table.insert(Effects, {
1802prt,
1803"Cylinder",
1804delay,
1805x3 / 60,
1806y3 / 60,
1807z3 / 60,
1808msh
1809})
1810end
1811},
1812Ring = {
1813Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
1814local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
1815prt.Anchored = true
1816prt.CFrame = cframe
1817local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
1818game:GetService("Debris"):AddItem(prt, 10)
1819table.insert(Effects, {
1820prt,
1821"Cylinder",
1822delay,
1823x3,
1824y3,
1825z3,
1826msh
1827})
1828end
1829},
1830Break = {
1831Create = function(brickcolor, cframe, x1, y1, z1)
1832local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
1833prt.Anchored = true
1834prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
1835local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
1836local num = math.random(10, 50) / 1000
1837game:GetService("Debris"):AddItem(prt, 10)
1838table.insert(Effects, {
1839prt,
1840"Shatter",
1841num,
1842prt.CFrame,
1843math.random() - math.random(),
18440,
1845math.random(50, 100) / 100
1846})
1847end
1848},
1849Spiral = {
1850Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
1851local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
1852prt.Anchored = true
1853prt.CFrame = cframe
1854local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://1051557", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
1855game:GetService("Debris"):AddItem(prt, 10)
1856table.insert(Effects, {
1857prt,
1858"Cylinder",
1859delay,
1860x3,
1861y3,
1862z3,
1863msh
1864})
1865end
1866},
1867Push = {
1868Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
1869local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
1870prt.Anchored = true
1871prt.CFrame = cframe
1872local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://437347603", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
1873game:GetService("Debris"):AddItem(prt, 10)
1874table.insert(Effects, {
1875prt,
1876"Cylinder",
1877delay,
1878x3,
1879y3,
1880z3,
1881msh
1882})
1883end
1884}
1885}
1886function part(formfactor ,parent, reflectance, transparency, brickcolor, name, size)
1887local fp = IT("Part")
1888fp.formFactor = formfactor
1889fp.Parent = parent
1890fp.Reflectance = reflectance
1891fp.Transparency = transparency
1892fp.CanCollide = false
1893fp.Locked = true
1894fp.BrickColor = brickcolor
1895fp.Name = name
1896fp.Size = size
1897fp.Position = tors.Position
1898RemoveOutlines(fp)
1899fp.Material = "SmoothPlastic"
1900fp:BreakJoints()
1901return fp
1902end
1903
1904function mesh(Mesh,part,meshtype,meshid,offset,scale)
1905local mesh = IT(Mesh)
1906mesh.Parent = part
1907if Mesh == "SpecialMesh" then
1908mesh.MeshType = meshtype
1909if meshid ~= "nil" then
1910mesh.MeshId = "http://www.roblox.com/asset/?id="..meshid
1911end
1912end
1913mesh.Offset = offset
1914mesh.Scale = scale
1915return mesh
1916end
1917
1918function Magic(bonuspeed, type, pos, scale, value, color, MType)
1919local type = type
1920local rng = Instance.new("Part", char)
1921rng.Anchored = true
1922rng.BrickColor = color
1923rng.CanCollide = false
1924rng.FormFactor = 3
1925rng.Name = "Ring"
1926rng.Material = "Neon"
1927rng.Size = Vector3.new(1, 1, 1)
1928rng.Transparency = 0
1929rng.TopSurface = 0
1930rng.BottomSurface = 0
1931rng.CFrame = pos
1932local rngm = Instance.new("SpecialMesh", rng)
1933rngm.MeshType = MType
1934rngm.Scale = scale
1935local scaler2 = 1
1936if type == "Add" then
1937scaler2 = 1 * value
1938elseif type == "Divide" then
1939scaler2 = 1 / value
1940end
1941coroutine.resume(coroutine.create(function()
1942for i = 0, 10 / bonuspeed, 0.1 do
1943swait()
1944if type == "Add" then
1945scaler2 = scaler2 - 0.01 * value / bonuspeed
1946elseif type == "Divide" then
1947scaler2 = scaler2 - 0.01 / value * bonuspeed
1948end
1949rng.Transparency = rng.Transparency + 0.01 * bonuspeed
1950rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, scaler2 * bonuspeed)
1951end
1952rng:Destroy()
1953end))
1954end
1955
1956function Eviscerate(dude)
1957if dude.Name ~= char then
1958local bgf = IT("BodyGyro", dude.Head)
1959bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0)
1960local val = IT("BoolValue", dude)
1961val.Name = "IsHit"
1962local ds = coroutine.wrap(function()
1963dude:WaitForChild("Head"):BreakJoints()
1964wait(0.5)
1965target = nil
1966coroutine.resume(coroutine.create(function()
1967for i, v in pairs(dude:GetChildren()) do
1968if v:IsA("Accessory") then
1969v:Destroy()
1970end
1971if v:IsA("Humanoid") then
1972v:Destroy()
1973end
1974if v:IsA("CharacterMesh") then
1975v:Destroy()
1976end
1977if v:IsA("Model") then
1978v:Destroy()
1979end
1980if v:IsA("Part") or v:IsA("MeshPart") then
1981for x, o in pairs(v:GetChildren()) do
1982if o:IsA("Decal") then
1983o:Destroy()
1984end
1985end
1986coroutine.resume(coroutine.create(function()
1987v.Material = "Neon"
1988v.CanCollide = false
1989local PartEmmit1 = IT("ParticleEmitter", v)
1990PartEmmit1.LightEmission = 1
1991PartEmmit1.Texture = "rbxassetid://284205403"
1992PartEmmit1.Color = ColorSequence.new(maincolor.Color)
1993PartEmmit1.Rate = 150
1994PartEmmit1.Lifetime = NumberRange.new(1)
1995PartEmmit1.Size = NumberSequence.new({
1996NumberSequenceKeypoint.new(0, 0.75, 0),
1997NumberSequenceKeypoint.new(1, 0, 0)
1998})
1999PartEmmit1.Transparency = NumberSequence.new({
2000NumberSequenceKeypoint.new(0, 0, 0),
2001NumberSequenceKeypoint.new(1, 1, 0)
2002})
2003PartEmmit1.Speed = NumberRange.new(0, 0)
2004PartEmmit1.VelocitySpread = 30000
2005PartEmmit1.Rotation = NumberRange.new(-500, 500)
2006PartEmmit1.RotSpeed = NumberRange.new(-500, 500)
2007local BodPoss = IT("BodyPosition", v)
2008BodPoss.P = 3000
2009BodPoss.D = 1000
2010BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
2011BodPoss.position = v.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15))
2012v.Color = maincolor.Color
2013coroutine.resume(coroutine.create(function()
2014for i = 0, 49 do
2015swait(1)
2016v.Transparency = v.Transparency + 0.08
2017end
2018wait(0.5)
2019PartEmmit1.Enabled = false
2020wait(3)
2021v:Destroy()
2022dude:Destroy()
2023end))
2024end))
2025end
2026end
2027end))
2028end)
2029ds()
2030end
2031end
2032
2033function FindNearestHead(Position, Distance, SinglePlayer)
2034if SinglePlayer then
2035return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude
2036end
2037local List = {}
2038for i, v in pairs(workspace:GetChildren()) do
2039if v:IsA("Model") and v:findFirstChild("Head") and v ~= char and Distance >= (v.Head.Position - Position).magnitude then
2040table.insert(List, v)
2041end
2042end
2043return List
2044end
2045
2046function Aura(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos, MType)
2047local type = type
2048local rng = Instance.new("Part", char)
2049rng.Anchored = true
2050rng.BrickColor = color
2051rng.CanCollide = false
2052rng.FormFactor = 3
2053rng.Name = "Ring"
2054rng.Material = "Neon"
2055rng.Size = Vector3.new(1, 1, 1)
2056rng.Transparency = 0
2057rng.TopSurface = 0
2058rng.BottomSurface = 0
2059rng.CFrame = pos
2060rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos
2061local rngm = Instance.new("SpecialMesh", rng)
2062rngm.MeshType = MType
2063rngm.Scale = Vector3.new(x1, y1, z1)
2064local scaler2 = 1
2065local speeder = FastSpeed
2066if type == "Add" then
2067scaler2 = 1 * value
2068elseif type == "Divide" then
2069scaler2 = 1 / value
2070end
2071coroutine.resume(coroutine.create(function()
2072for i = 0, 10 / bonuspeed, 0.1 do
2073swait()
2074if type == "Add" then
2075scaler2 = scaler2 - 0.01 * value / bonuspeed
2076elseif type == "Divide" then
2077scaler2 = scaler2 - 0.01 / value * bonuspeed
2078end
2079speeder = speeder - 0.01 * FastSpeed * bonuspeed
2080rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed
2081rng.Transparency = rng.Transparency + 0.01 * bonuspeed
2082rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0)
2083end
2084rng:Destroy()
2085end))
2086end
2087
2088function SoulSteal(dude)
2089if dude.Name ~= char then
2090local bgf = IT("BodyGyro", dude.Head)
2091bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(Rad(-90), 0, 0)
2092local val = IT("BoolValue", dude)
2093val.Name = "IsHit"
2094local torso = (dude:FindFirstChild'Head' or dude:FindFirstChild'Torso' or dude:FindFirstChild'UpperTorso' or dude:FindFirstChild'LowerTorso' or dude:FindFirstChild'HumanoidRootPart')
2095local soulst = coroutine.wrap(function()
2096local soul = Instance.new("Part",dude)
2097soul.Size = Vector3.new(1,1,1)
2098soul.CanCollide = false
2099soul.Anchored = false
2100soul.Position = torso.Position
2101soul.Transparency = 1
2102local PartEmmit1 = IT("ParticleEmitter", soul)
2103PartEmmit1.LightEmission = 1
2104PartEmmit1.Texture = "rbxassetid://569507414"
2105PartEmmit1.Color = ColorSequence.new(maincolor.Color)
2106PartEmmit1.Rate = 250
2107PartEmmit1.Lifetime = NumberRange.new(1.6)
2108PartEmmit1.Size = NumberSequence.new({
2109NumberSequenceKeypoint.new(0, 1, 0),
2110NumberSequenceKeypoint.new(1, 0, 0)
2111})
2112PartEmmit1.Transparency = NumberSequence.new({
2113NumberSequenceKeypoint.new(0, 0, 0),
2114NumberSequenceKeypoint.new(1, 1, 0)
2115})
2116PartEmmit1.Speed = NumberRange.new(0, 0)
2117PartEmmit1.VelocitySpread = 30000
2118PartEmmit1.Rotation = NumberRange.new(-360, 360)
2119PartEmmit1.RotSpeed = NumberRange.new(-360, 360)
2120local BodPoss = IT("BodyPosition", soul)
2121BodPoss.P = 3000
2122BodPoss.D = 1000
2123BodPoss.maxForce = Vector3.new(50000000000, 50000000000, 50000000000)
2124BodPoss.position = torso.Position + Vector3.new(Mrandom(-15, 15), Mrandom(-15, 15), Mrandom(-15, 15))
2125wait(1.6)
2126soul.Touched:connect(function(hit)
2127if hit.Parent == char then
2128soul:Destroy()
2129end
2130end)
2131wait(1.2)
2132while soul do
2133swait()
2134PartEmmit1.Color = ColorSequence.new(maincolor.Color)
2135BodPoss.Position = tors.Position
2136end
2137end)
2138soulst()
2139end
2140end
2141
2142
2143
2144
2145--killer's effects
2146
2147
2148
2149
2150
2151function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
2152local Part = Create("Part"){
2153Parent = Parent,
2154Reflectance = Reflectance,
2155Transparency = Transparency,
2156CanCollide = false,
2157Locked = true,
2158BrickColor = BrickColor.new(tostring(BColor)),
2159Name = Name,
2160Size = Size,
2161Material = Material,
2162}
2163RemoveOutlines(Part)
2164return Part
2165end
2166
2167function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
2168local Msh = Create(Mesh){
2169Parent = Part,
2170Offset = OffSet,
2171Scale = Scale,
2172}
2173if Mesh == "SpecialMesh" then
2174Msh.MeshType = MeshType
2175Msh.MeshId = MeshId
2176end
2177return Msh
2178end
2179
2180
2181
2182function BlockEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
2183local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
2184prt.Anchored = true
2185prt.CFrame = cframe
2186local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
2187game:GetService("Debris"):AddItem(prt, 10)
2188if Type == 1 or Type == nil then
2189table.insert(Effects, {
2190prt,
2191"Block1",
2192delay,
2193x3,
2194y3,
2195z3,
2196msh
2197})
2198elseif Type == 2 then
2199table.insert(Effects, {
2200prt,
2201"Block2",
2202delay,
2203x3,
2204y3,
2205z3,
2206msh
2207})
2208end
2209end
2210
2211function SphereEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
2212local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
2213prt.Anchored = true
2214prt.CFrame = cframe
2215local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
2216game:GetService("Debris"):AddItem(prt, 10)
2217table.insert(Effects, {
2218prt,
2219"Cylinder",
2220delay,
2221x3,
2222y3,
2223z3,
2224msh
2225})
2226end
2227
2228function RingEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
2229local 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))
2230prt.Anchored=true
2231prt.CFrame=cframe
2232msh=CreateMesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1))
2233game:GetService("Debris"):AddItem(prt,2)
2234coroutine.resume(coroutine.create(function(Part,Mesh,num)
2235for i=0,1,delay do
2236swait()
2237Part.Transparency=i
2238Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
2239end
2240Part.Parent=nil
2241end),prt,msh,(math.random(0,1)+math.random())/5)
2242end
2243
2244function CylinderEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
2245local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
2246prt.Anchored = true
2247prt.CFrame = cframe
2248local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
2249game:GetService("Debris"):AddItem(prt, 10)
2250table.insert(Effects, {
2251prt,
2252"Cylinder",
2253delay,
2254x3,
2255y3,
2256z3,
2257msh
2258})
2259end
2260
2261function WaveEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
2262local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
2263prt.Anchored = true
2264prt.CFrame = cframe
2265local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
2266game:GetService("Debris"):AddItem(prt, 10)
2267table.insert(Effects, {
2268prt,
2269"Cylinder",
2270delay,
2271x3,
2272y3,
2273z3,
2274msh
2275})
2276end
2277
2278function SpecialEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
2279local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
2280prt.Anchored = true
2281prt.CFrame = cframe
2282local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://24388358", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
2283game:GetService("Debris"):AddItem(prt, 10)
2284table.insert(Effects, {
2285prt,
2286"Cylinder",
2287delay,
2288x3,
2289y3,
2290z3,
2291msh
2292})
2293end
2294
2295
2296function MoonEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
2297local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
2298prt.Anchored = true
2299prt.CFrame = cframe
2300local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://259403370", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
2301game:GetService("Debris"):AddItem(prt, 10)
2302table.insert(Effects, {
2303prt,
2304"Cylinder",
2305delay,
2306x3,
2307y3,
2308z3,
2309msh
2310})
2311end
2312
2313function HeadEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
2314local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
2315prt.Anchored = true
2316prt.CFrame = cframe
2317local msh = CreateMesh("SpecialMesh", prt, "Head", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
2318game:GetService("Debris"):AddItem(prt, 10)
2319table.insert(Effects, {
2320prt,
2321"Cylinder",
2322delay,
2323x3,
2324y3,
2325z3,
2326msh
2327})
2328end
2329
2330function BreakEffect(brickcolor, cframe, x1, y1, z1)
2331local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
2332prt.Anchored = true
2333prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
2334local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
2335local num = math.random(10, 50) / 1000
2336game:GetService("Debris"):AddItem(prt, 10)
2337table.insert(Effects, {
2338prt,
2339"Shatter",
2340num,
2341prt.CFrame,
2342math.random() - math.random(),
23430,
2344math.random(50, 100) / 100
2345})
2346end
2347
2348
2349
2350
2351
2352so = function(id,par,vol,pit)
2353coroutine.resume(coroutine.create(function()
2354local sou = Instance.new("Sound",par or workspace)
2355sou.Volume=vol
2356sou.Pitch=pit or 1
2357sou.SoundId=id
2358sou:play()
2359game:GetService("Debris"):AddItem(sou,8)
2360end))
2361end
2362
2363
2364--end of killer's effects
2365
2366
2367function FaceMouse()
2368local Cam = workspace.CurrentCamera
2369return {
2370CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
2371Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
2372}
2373end
2374-------------------------------------------------------
2375--End Effect Function--
2376-------------------------------------------------------
2377function Cso(ID, PARENT, VOLUME, PITCH)
2378local NSound = nil
2379coroutine.resume(coroutine.create(function()
2380NSound = IT("Sound", PARENT)
2381NSound.Volume = VOLUME
2382NSound.Pitch = PITCH
2383NSound.SoundId = "http://www.roblox.com/asset/?id="..ID
2384swait()
2385NSound:play()
2386game:GetService("Debris"):AddItem(NSound, 10)
2387end))
2388return NSound
2389end
2390function CameraEnshaking(Length, Intensity)
2391coroutine.resume(coroutine.create(function()
2392local intensity = 1 * Intensity
2393local rotM = 0.01 * Intensity
2394for i = 0, Length, 0.1 do
2395swait()
2396intensity = intensity - 0.05 * Intensity / Length
2397rotM = rotM - 5.0E-4 * Intensity / Length
2398hum.CameraOffset = Vector3.new(Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)), Rad(Mrandom(-intensity, intensity)))
2399cam.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)
2400end
2401hum.CameraOffset = Vector3.new(0, 0, 0)
2402end))
2403end
2404-------------------------------------------------------
2405--End Important Functions--
2406-------------------------------------------------------
2407
2408
2409-------------------------------------------------------
2410--Start Customization--
2411-------------------------------------------------------
2412local Player_Size = 1
2413if Player_Size ~= 1 then
2414root.Size = root.Size * Player_Size
2415tors.Size = tors.Size * Player_Size
2416hed.Size = hed.Size * Player_Size
2417ra.Size = ra.Size * Player_Size
2418la.Size = la.Size * Player_Size
2419rl.Size = rl.Size * Player_Size
2420ll.Size = ll.Size * Player_Size
2421----------------------------------------------------------------------------------
2422rootj.Parent = root
2423neck.Parent = tors
2424RW.Parent = tors
2425LW.Parent = tors
2426RH.Parent = tors
2427LH.Parent = tors
2428----------------------------------------------------------------------------------
2429rootj.C0 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0))
2430rootj.C1 = RootCF * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0))
2431neck.C0 = necko * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * angles(Rad(0), Rad(0), Rad(0))
2432neck.C1 = CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * angles(Rad(-90), Rad(0), Rad(180))
2433RW.C0 = CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* RIGHTSHOULDERC0
2434LW.C0 = CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * angles(Rad(0), Rad(0), Rad(0)) --* LEFTSHOULDERC0
2435----------------------------------------------------------------------------------
2436RH.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))
2437LH.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))
2438RH.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))
2439LH.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))
2440--hat.Parent = Character
2441end
2442----------------------------------------------------------------------------------
2443local SONG = 900817147 --900817147
2444local SONG2 = 0
2445local Music = Instance.new("Sound",tors)
2446Music.Volume = 0.7
2447Music.Looped = true
2448Music.Pitch = 1 --Pitcher
2449----------------------------------------------------------------------------------
2450local equipped = false
2451local idle = 0
2452local change = 1
2453local val = 0
2454local toim = 0
2455local idleanim = 0.4
2456local sine = 0
2457local Sit = 1
2458local attacktype = 1
2459local attackdebounce = false
2460local euler = CFrame.fromEulerAnglesXYZ
2461local cankick = false
2462----------------------------------------------------------------------------------
2463hum.WalkSpeed = 8
2464hum.JumpPower = 57
2465--[[
2466local ROBLOXIDLEANIMATION = IT("Animation")
2467ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
2468ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
2469]]
2470local ANIMATOR = hum.Animator
2471local ANIMATE = char.Animate
2472ANIMATE.Parent = nil
2473ANIMATOR.Parent = nil
2474-------------------------------------------------------
2475--End Customization--
2476-------------------------------------------------------
2477
2478
2479-------------------------------------------------------
2480--Start Attacks N Stuff--
2481-------------------------------------------------------
2482
2483--pls be proud mak i did my best
2484
2485
2486
2487function attackone()
2488
2489attack = true
2490
2491for i = 0, 1.35, 0.1 do
2492swait()
2493rootj.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)
2494tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(40+11*i)), 0.2)
2495RW.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)
2496LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-43)), 0.3)
2497RH.C0 = clerp(RH.C0, CFrame.new(1, -0.7, 0) * RHCF * angles(math.rad(-34), math.rad(0), math.rad(-17)), 0.2)
2498LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.7, -0.2) * LHCF * angles(math.rad(-24), math.rad(0), math.rad(0)), 0.2)
2499end
2500
2501so("http://roblox.com/asset/?id=1340545854",ra,1,math.random(0.7,1))
2502
2503
2504con5=ra.Touched:connect(function(hit)
2505if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
2506if attackdebounce == false then
2507attackdebounce = true
2508
2509so("http://roblox.com/asset/?id=636494529",ra,2,1)
2510
2511RingEffect(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)
2512RingEffect(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)
2513SphereEffect(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)
2514
2515
2516coroutine.resume(coroutine.create(function()
2517for i = 0,1,0.1 do
2518swait()
2519hum.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)
2520end
2521end))
2522
2523
2524wait(0.34)
2525attackdebounce = false
2526
2527end
2528end
2529end)
2530for i = 0, 1.12, 0.1 do
2531swait()
2532rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, -0.9, -0) * angles(math.rad(14), math.rad(6), math.rad(23)), 0.35)
2533tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(-4), math.rad(0), math.rad(-23)), 0.35)
2534RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.6, -0.8) * angles(math.rad(110), math.rad(23), math.rad(2)), 0.4)
2535LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0.2) * angles(math.rad(-37), math.rad(0), math.rad(-13)), 0.35)
2536RH.C0 = clerp(RH.C0, CFrame.new(1, -1, -0.3) * RHCF * angles(math.rad(-4), math.rad(0), math.rad(6)), 0.3)
2537LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0.05) * LHCF * angles(math.rad(-22), math.rad(0), math.rad(23)), 0.3)
2538end
2539
2540con5:Disconnect()
2541attack = false
2542
2543end
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556function attacktwo()
2557
2558attack = true
2559
2560for i = 0, 1.35, 0.1 do
2561swait()
2562rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, 0.7, -0.3) * angles(math.rad(-4), math.rad(-4), math.rad(40)), 0.2)
2563tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(-40)), 0.2)
2564RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(46)), 0.3)
2565LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.6, 0.2) * angles(math.rad(90), math.rad(23), math.rad(6)), 0.3)
2566RH.C0 = clerp(RH.C0, CFrame.new(1, -0.7, -0.2) * RHCF * angles(math.rad(-34), math.rad(0), math.rad(-17)), 0.2)
2567LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.7, 0) * LHCF * angles(math.rad(-24), math.rad(0), math.rad(0)), 0.2)
2568end
2569
2570so("http://roblox.com/asset/?id=1340545854",la,1,math.random(0.7,1))
2571
2572
2573con5=la.Touched:connect(function(hit)
2574if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
2575if attackdebounce == false then
2576attackdebounce = true
2577
2578so("http://roblox.com/asset/?id=636494529",la,2,1)
2579
2580RingEffect(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)
2581RingEffect(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)
2582SphereEffect(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)
2583
2584
2585coroutine.resume(coroutine.create(function()
2586for i = 0,1,0.1 do
2587swait()
2588hum.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)
2589end
2590end))
2591
2592
2593wait(0.34)
2594attackdebounce = false
2595
2596end
2597end
2598end)
2599
2600
2601
2602
2603for i = 0, 1.12, 0.1 do
2604swait()
2605rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, -0.9, -0) * angles(math.rad(14), math.rad(-6), math.rad(-27)), 0.35)
2606tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(-4), math.rad(0), math.rad(27)), 0.35)
2607RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0.16) * angles(math.rad(-33), math.rad(0), math.rad(23)), 0.4)
2608LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.67, -0.9) * angles(math.rad(116), math.rad(-28), math.rad(1)), 0.35)
2609RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0.05) * RHCF * angles(math.rad(-22), math.rad(0), math.rad(-18)), 0.3)
2610LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, -0.3) * LHCF * angles(math.rad(-2), math.rad(0), math.rad(4)), 0.3)
2611end
2612
2613con5:Disconnect()
2614attack = false
2615
2616end
2617
2618
2619
2620
2621
2622function attackthree()
2623
2624attack = true
2625
2626
2627for i = 0, 1.14, 0.1 do
2628swait()
2629rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, 0.7, -0.3) * angles(math.rad(-4), math.rad(-4), math.rad(40)), 0.2)
2630tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(-40)), 0.2)
2631RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-46)), 0.3)
2632LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.6, 0.2) * angles(math.rad(90), math.rad(23), math.rad(36)), 0.3)
2633RH.C0 = clerp(RH.C0, CFrame.new(1, -0.7, -0.2) * RHCF * angles(math.rad(-34), math.rad(0), math.rad(-17)), 0.2)
2634LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.7, 0) * LHCF * angles(math.rad(-12), math.rad(0), math.rad(34)), 0.2)
2635end
2636
2637con5=hum.Touched:connect(function(hit)
2638if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
2639if attackdebounce == false then
2640attackdebounce = true
2641
2642so("http://roblox.com/asset/?id=636494529",ll,2,1)
2643
2644RingEffect(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)
2645RingEffect(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)
2646SphereEffect(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)
2647
2648
2649coroutine.resume(coroutine.create(function()
2650for i = 0,1,0.1 do
2651swait()
2652hum.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)
2653end
2654end))
2655
2656
2657wait(0.34)
2658attackdebounce = false
2659
2660end
2661end
2662end)
2663
2664so("http://www.roblox.com/asset/?id=158475221", RightLeg, 1, 1.3)
2665for i = 0, 9.14, 0.3 do
2666swait()
2667BlockEffect(BrickColor.new("White"), ll.CFrame*CF(0,-1,0), 2, 2, 2, 3.5, 3.5, 3.5, 0.05)
2668rootj.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)
2669tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(12), math.rad(0), math.rad(24)), 0.35)
2670RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(12), math.rad(0), math.rad(62)), 0.35)
2671LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.3, 0) * angles(math.rad(12), math.rad(0), math.rad(-23)), 0.35)
2672RH.C0 = clerp(RH.C0, CFrame.new(1, -0.17, -0.4) * RHCF * angles(math.rad(7), math.rad(0), math.rad(4)), 0.35)
2673LH.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)
2674end
2675attack = false
2676con5:disconnect()
2677end
2678
2679
2680
2681function attackfour()
2682
2683attack = true
2684so("http://www.roblox.com/asset/?id=1452040709", RightLeg, 3, 1)
2685WaveEffect(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)
2686for i = 0, 5.14, 0.1 do
2687swait()
2688SphereEffect(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)
2689rootj.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)
2690tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0+11*i), math.rad(0), math.rad(0)), 0.2)
2691RW.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)
2692LW.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)
2693RH.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)
2694LH.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)
2695end
2696so("http://www.roblox.com/asset/?id=158475221", RightLeg, 1, 1.3)
2697local velo=Instance.new("BodyVelocity")
2698velo.velocity=vt(0,25,0)
2699velo.P=8000
2700velo.maxForce=Vector3.new(math.huge, math.huge, math.huge)
2701velo.Parent=root
2702game:GetService("Debris"):AddItem(velo,0.7)
2703
2704
2705
2706con5=hum.Touched:connect(function(hit)
2707if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
2708if attackdebounce == false then
2709attackdebounce = true
2710coroutine.resume(coroutine.create(function()
2711for i = 0,1.5,0.1 do
2712swait()
2713hit.Parent.Head.CFrame = root.CFrame * CFrame.new(0,1.6,-1.8)
2714end
2715end))
2716so("http://roblox.com/asset/?id=636494529",rl,2,1)
2717RingEffect(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)
2718RingEffect(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)
2719SphereEffect(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)
2720
2721
2722
2723coroutine.resume(coroutine.create(function()
2724for i = 0,1,0.1 do
2725swait()
2726hum.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)
2727end
2728end))
2729
2730
2731wait(0.14)
2732attackdebounce = false
2733end
2734end
2735end)
2736
2737for i = 0, 5.11, 0.15 do
2738swait()
2739BlockEffect(BrickColor.new("White"), rl.CFrame*CF(0,-1,0), 2, 2, 2, 3.5, 3.5, 3.5, 0.05)
2740rootj.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)
2741tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(-43), math.rad(0), math.rad(0)), 0.42)
2742RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-8), math.rad(0), math.rad(60)), 0.35)
2743LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-8), math.rad(0), math.rad(-60)), 0.35)
2744RH.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)
2745LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.5, -0.4) * LHCF * angles(math.rad(0), math.rad(0), math.rad(24)), 0.42)
2746end
2747
2748
2749attack = false
2750con5:disconnect()
2751end
2752
2753
2754
2755
2756
2757local cooldown = false
2758function quickkick()
2759attack = true
2760
2761
2762con5=hum.Touched:connect(function(hit)
2763if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
2764if attackdebounce == false then
2765attackdebounce = true
2766
2767coroutine.resume(coroutine.create(function()
2768for i = 0,1.5,0.1 do
2769swait()
2770hit.Parent.Head.CFrame = root.CFrame * CFrame.new(0,1.3,-1.8)
2771end
2772end))
2773
2774so("http://roblox.com/asset/?id=636494529",rl,2,1)
2775RingEffect(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)
2776RingEffect(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)
2777SphereEffect(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)
2778
2779
2780
2781coroutine.resume(coroutine.create(function()
2782for i = 0,1,0.1 do
2783swait()
2784hum.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)
2785end
2786end))
2787
2788
2789wait(0.08)
2790attackdebounce = false
2791end
2792end
2793end)
2794
2795so("http://www.roblox.com/asset/?id=158475221", RightLeg, 1, 1.3)
2796for i = 0, 11.14, 0.3 do
2797swait()
2798root.Velocity = root.CFrame.lookVector * 30
2799BlockEffect(BrickColor.new("White"), ll.CFrame*CF(0,-1,0), 2, 2, 2, 3.5, 3.5, 3.5, 0.05)
2800rootj.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)
2801tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(12), math.rad(0), math.rad(24)), 0.35)
2802RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(12), math.rad(0), math.rad(62)), 0.35)
2803LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.3, 0) * angles(math.rad(12), math.rad(0), math.rad(-23)), 0.35)
2804RH.C0 = clerp(RH.C0, CFrame.new(1, -0.17, -0.4) * RHCF * angles(math.rad(7), math.rad(0), math.rad(4)), 0.35)
2805LH.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)
2806end
2807attack = false
2808con5:disconnect()
2809end
2810
2811
2812
2813
2814
2815
2816
2817
2818function Taunt()
2819attack = true
2820hum.WalkSpeed = 0
2821Cso("1535995570", hed, 8.45, 1)
2822for i = 0, 8.2, 0.1 do
2823swait()
2824hum.WalkSpeed = 0
2825rootj.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)
2826tors.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)
2827RH.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)
2828LH.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)
2829RW.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)
2830LW.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)
2831end
2832attack = false
2833hum.WalkSpeed = 8
2834end
2835
2836
2837
2838
2839
2840
2841
2842function Hyperkickcombo()
2843
2844attack = true
2845so("http://www.roblox.com/asset/?id=1452040709", RightLeg, 3, 1)
2846WaveEffect(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)
2847for i = 0, 7.14, 0.1 do
2848swait()
2849SphereEffect(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)
2850rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, 0, -0.8) * angles(math.rad(24), math.rad(0), math.rad(0)), 0.2)
2851tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
2852RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(36)), 0.3)
2853LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-36)), 0.3)
2854RH.C0 = clerp(RH.C0, CFrame.new(1, -0.6, -0.3) * RHCF * angles(math.rad(0), math.rad(0), math.rad(-28)), 0.2)
2855LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.2, -0.5) * LHCF * angles(math.rad(0), math.rad(0), math.rad(-34)), 0.2)
2856end
2857local Cracking = Cso("292536356", tors, 10, 1)
2858for i = 0, 7.14, 0.1 do
2859swait()
2860hum.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)
2861Aura(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")
2862WaveEffect(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)
2863SphereEffect(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)
2864SphereEffect(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)
2865rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, 0, -0.8) * angles(math.rad(24), math.rad(0), math.rad(0)), 0.2)
2866tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(30), math.rad(0), math.rad(0)), 0.2)
2867RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(36)), 0.3)
2868LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-36)), 0.3)
2869RH.C0 = clerp(RH.C0, CFrame.new(1, -0.6, -0.3) * RHCF * angles(math.rad(0), math.rad(0), math.rad(-28)), 0.2)
2870LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.2, -0.5) * LHCF * angles(math.rad(0), math.rad(0), math.rad(-34)), 0.2)
2871end
2872Cracking.Playing = false
2873so("http://www.roblox.com/asset/?id=197161452", char, 3, 0.8)
2874so("http://www.roblox.com/asset/?id=158475221", RightLeg, 1, 1.3)
2875SphereEffect(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)
2876local velo=Instance.new("BodyVelocity")
2877velo.velocity=vt(0,27,0)
2878velo.P=11000
2879velo.maxForce=Vector3.new(math.huge, math.huge, math.huge)
2880velo.Parent=root
2881game:GetService("Debris"):AddItem(velo,1.24)
2882
2883
2884
2885con5=hum.Touched:connect(function(hit)
2886if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
2887if attackdebounce == false then
2888attackdebounce = true
2889coroutine.resume(coroutine.create(function()
2890for i = 0,1.5,0.1 do
2891swait()
2892hit.Parent.Head.CFrame = root.CFrame * CFrame.new(0,3.4,-1.8)
2893end
2894end))
2895so("http://roblox.com/asset/?id=636494529",rl,2,1.6)
2896RingEffect(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)
2897RingEffect(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)
2898SphereEffect(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)
2899
2900
2901
2902coroutine.resume(coroutine.create(function()
2903for i = 0,1,0.1 do
2904swait()
2905hum.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)
2906end
2907end))
2908
2909
2910wait(0.09)
2911attackdebounce = false
2912end
2913end
2914end)
2915
2916for i = 0, 9.11, 0.2 do
2917swait()
2918BlockEffect(BrickColor.new("Lime green"), rl.CFrame*CF(0,-1,0), 2, 2, 2, 3.5, 3.5, 3.5, 0.05)
2919rootj.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)
2920tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(-43), math.rad(0), math.rad(0)), 0.42)
2921RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-8), math.rad(0), math.rad(60)), 0.35)
2922LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-8), math.rad(0), math.rad(-60)), 0.35)
2923RH.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)
2924LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.5, -0.4) * LHCF * angles(math.rad(0), math.rad(0), math.rad(24)), 0.42)
2925end
2926
2927
2928
2929
2930con5:disconnect()
2931
2932
2933
2934
2935
2936
2937con5=hum.Touched:connect(function(hit)
2938if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
2939if attackdebounce == false then
2940attackdebounce = true
2941coroutine.resume(coroutine.create(function()
2942for i = 0,1.5,0.1 do
2943swait()
2944hit.Parent.Head.CFrame = root.CFrame * CFrame.new(0,1.1,-1.8)
2945end
2946end))
2947so("http://roblox.com/asset/?id=636494529",rl,2,1.6)
2948RingEffect(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)
2949RingEffect(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)
2950SphereEffect(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)
2951
2952
2953
2954coroutine.resume(coroutine.create(function()
2955for i = 0,1,0.1 do
2956swait()
2957hum.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)
2958end
2959end))
2960
2961
2962wait(0.08)
2963attackdebounce = false
2964end
2965end
2966end)
2967
2968
2969
2970so("http://www.roblox.com/asset/?id=158475221", RightLeg, 1, 1.3)
2971for i = 0, 9.14, 0.3 do
2972swait()
2973root.Velocity = root.CFrame.lookVector * 20
2974BlockEffect(BrickColor.new("Lime green"), ll.CFrame*CF(0,-1,0), 2, 2, 2, 3.5, 3.5, 3.5, 0.05)
2975rootj.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)
2976tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(12), math.rad(0), math.rad(24)), 0.35)
2977RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(12), math.rad(0), math.rad(62)), 0.35)
2978LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.3, 0) * angles(math.rad(12), math.rad(0), math.rad(-23)), 0.35)
2979RH.C0 = clerp(RH.C0, CFrame.new(1, -0.17, -0.4) * RHCF * angles(math.rad(7), math.rad(0), math.rad(4)), 0.35)
2980LH.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)
2981end
2982
2983
2984
2985con5:disconnect()
2986
2987
2988
2989con5=hum.Touched:connect(function(hit)
2990if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
2991if attackdebounce == false then
2992attackdebounce = true
2993coroutine.resume(coroutine.create(function()
2994for i = 0,1.5,0.1 do
2995swait()
2996hit.Parent.Head.CFrame = root.CFrame * CFrame.new(0,1.1,-1.8)
2997end
2998end))
2999so("http://roblox.com/asset/?id=636494529",rl,2,1.6)
3000RingEffect(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)
3001RingEffect(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)
3002SphereEffect(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)
3003
3004
3005
3006coroutine.resume(coroutine.create(function()
3007for i = 0,1,0.1 do
3008swait()
3009hum.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)
3010end
3011end))
3012
3013
3014wait(0.05)
3015attackdebounce = false
3016end
3017end
3018end)
3019
3020
3021so("http://www.roblox.com/asset/?id=158475221", RightLeg, 1, 1.3)
3022for i = 0, 15.14, 0.32 do
3023swait()
3024root.Velocity = root.CFrame.lookVector * 20
3025BlockEffect(BrickColor.new("Lime green"), ll.CFrame*CF(0,-1,0), 2, 2, 2, 3.5, 3.5, 3.5, 0.05)
3026rootj.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)
3027tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(12), math.rad(0), math.rad(24)), 0.35)
3028RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(12), math.rad(0), math.rad(62)), 0.35)
3029LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.3, 0) * angles(math.rad(12), math.rad(0), math.rad(-23)), 0.35)
3030RH.C0 = clerp(RH.C0, CFrame.new(1, -0.17, -0.4) * RHCF * angles(math.rad(7), math.rad(0), math.rad(4)), 0.35)
3031LH.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)
3032end
3033
3034attack = false
3035con5:disconnect()
3036
3037end
3038
3039
3040
3041
3042
3043local ultra = false
3044
3045function Galekicks()
3046
3047attack = true
3048so("http://www.roblox.com/asset/?id=1452040709", RightLeg, 3, 1)
3049for i = 0, 1.65, 0.1 do
3050swait()
3051root.Velocity = root.CFrame.lookVector * 0
3052SphereEffect(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)
3053rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, 0.7, -0.3) * angles(math.rad(-32), math.rad(-2), math.rad(90)), 0.2)
3054tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(-17), math.rad(-90)), 0.2)
3055RW.C0 = clerp(RW.C0, CFrame.new(1.1, 0.5, -0.6) * angles(math.rad(90), math.rad(0), math.rad(-56)), 0.3)
3056LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.6, -0.5) * angles(math.rad(90), math.rad(0), math.rad(56)), 0.3)
3057RH.C0 = clerp(RH.C0, CFrame.new(1, .62 , -0.3) * RHCF * angles(math.rad(-40), math.rad(0), math.rad(2)), 0.2)
3058LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.7, 0) * LHCF * angles(math.rad(-28), math.rad(0), math.rad(0)), 0.2)
3059end
3060
3061
3062for i = 1, 17 do
3063
3064con5=hum.Touched:connect(function(hit)
3065if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
3066if attackdebounce == false then
3067attackdebounce = true
3068coroutine.resume(coroutine.create(function()
3069for i = 0,1.5,0.1 do
3070swait()
3071hit.Parent.Head.CFrame = root.CFrame * CFrame.new(0,1.1,-1.8)
3072end
3073end))
3074so("http://roblox.com/asset/?id=636494529",rl,2,1.6)
3075RingEffect(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)
3076RingEffect(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)
3077SphereEffect(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)
3078
3079
3080
3081coroutine.resume(coroutine.create(function()
3082for i = 0,1,0.1 do
3083swait()
3084hum.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)
3085end
3086end))
3087
3088
3089wait(0.05)
3090attackdebounce = false
3091end
3092end
3093end)
3094
3095for i = 0, .1, 0.2 do
3096swait()
3097BlockEffect(BrickColor.new("Lime green"), rl.CFrame*CF(0,-1,0), 2, 2, 2, 1.5, 1.5, 1.5, 0.03)
3098root.Velocity = root.CFrame.lookVector * 10
3099rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, -0.5, -0.3) * angles(math.rad(-44), math.rad(-2), math.rad(90)), 0.7)
3100tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(-24), math.rad(-90)), 0.7)
3101RW.C0 = clerp(RW.C0, CFrame.new(1.1, 0.5, -0.6) * angles(math.rad(90), math.rad(0), math.rad(-56)), 0.7)
3102LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.6, -0.5) * angles(math.rad(90), math.rad(0), math.rad(56)), 0.7)
3103RH.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)
3104LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.7, 0) * LHCF * angles(math.rad(-34), math.rad(0), math.rad(0)), 0.7)
3105end
3106
3107so("http://roblox.com/asset/?id=1340545854",rl,1,math.random(0.7,1))
3108
3109for i = 0, 0.4, 0.2 do
3110swait()
3111rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, 0.7, -0.3) * angles(math.rad(-32), math.rad(-2), math.rad(90)), 0.2)
3112tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(-17), math.rad(-90)), 0.2)
3113RW.C0 = clerp(RW.C0, CFrame.new(1.1, 0.5, -0.6) * angles(math.rad(90), math.rad(0), math.rad(-56)), 0.3)
3114LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.6, -0.5) * angles(math.rad(90), math.rad(0), math.rad(56)), 0.3)
3115RH.C0 = clerp(RH.C0, CFrame.new(1, .62 , -0.3) * RHCF * angles(math.rad(-40), math.rad(0), math.rad(2)), 0.2)
3116LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.7, 0) * LHCF * angles(math.rad(-28), math.rad(0), math.rad(0)), 0.2)
3117end
3118con5:disconnect()
3119end
3120
3121
3122u = mouse.KeyDown:connect(function(key)
3123if key == 'r' and combohits >= 150 then
3124ultra = true
3125SphereEffect(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)
3126end
3127end)
3128wait(0.3)
3129if ultra == true then
3130combohits = 0
3131wait(0.1)
3132for i = 0, 1.65, 0.1 do
3133swait()
3134root.Velocity = root.CFrame.lookVector * 0
3135SphereEffect(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)
3136rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, 0.7, -0.3) * angles(math.rad(-32), math.rad(-2), math.rad(90)), 0.2)
3137tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(-17), math.rad(-90)), 0.2)
3138RW.C0 = clerp(RW.C0, CFrame.new(1.1, 0.5, -0.6) * angles(math.rad(90), math.rad(0), math.rad(-56)), 0.3)
3139LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.6, -0.5) * angles(math.rad(90), math.rad(0), math.rad(56)), 0.3)
3140RH.C0 = clerp(RH.C0, CFrame.new(1, .62 , -0.3) * RHCF * angles(math.rad(-40), math.rad(0), math.rad(2)), 0.2)
3141LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.7, 0) * LHCF * angles(math.rad(-28), math.rad(0), math.rad(0)), 0.2)
3142end
3143
3144
3145so("http://roblox.com/asset/?id=146094803",hed,1,1.2)
3146
3147for i = 1, 65 do
3148--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")
3149con5=hum.Touched:connect(function(hit)
3150if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
3151if attackdebounce == false then
3152attackdebounce = true
3153coroutine.resume(coroutine.create(function()
3154for i = 0,1.5,0.1 do
3155swait()
3156hit.Parent.Head.CFrame = root.CFrame * CFrame.new(0,1.1,-1.8)
3157end
3158end))
3159so("http://roblox.com/asset/?id=636494529",rl,2,1.6)
3160RingEffect(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)
3161RingEffect(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)
3162SphereEffect(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)
3163
3164
3165
3166coroutine.resume(coroutine.create(function()
3167for i = 0,1,0.1 do
3168swait()
3169hum.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)
3170end
3171end))
3172
3173
3174wait(0.05)
3175attackdebounce = false
3176end
3177end
3178end)
3179
3180for i = 0, .03, 0.1 do
3181swait()
3182BlockEffect(BrickColor.new("Really red"), rl.CFrame*CF(0,-1,0), 2, 2, 2, 1.5, 1.5, 1.5, 0.03)
3183root.Velocity = root.CFrame.lookVector * 10
3184rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, -0.5, -0.3) * angles(math.rad(-44), math.rad(-2), math.rad(90)), 0.7)
3185tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(-24), math.rad(-90)), 0.7)
3186RW.C0 = clerp(RW.C0, CFrame.new(1.1, 0.5, -0.6) * angles(math.rad(90), math.rad(0), math.rad(-56)), 0.7)
3187LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.6, -0.5) * angles(math.rad(90), math.rad(0), math.rad(56)), 0.7)
3188RH.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)
3189LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.7, 0) * LHCF * angles(math.rad(-34), math.rad(0), math.rad(0)), 0.7)
3190end
3191
3192so("http://roblox.com/asset/?id=1340545854",rl,1,math.random(0.7,1))
3193
3194for i = 0, 0.07, 0.1 do
3195swait()
3196rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, 0.7, -0.3) * angles(math.rad(-32), math.rad(-2), math.rad(90)), 0.2)
3197tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(-17), math.rad(-90)), 0.2)
3198RW.C0 = clerp(RW.C0, CFrame.new(1.1, 0.5, -0.6) * angles(math.rad(90), math.rad(0), math.rad(-56)), 0.3)
3199LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.6, -0.5) * angles(math.rad(90), math.rad(0), math.rad(56)), 0.3)
3200RH.C0 = clerp(RH.C0, CFrame.new(1, .62 , -0.3) * RHCF * angles(math.rad(-40), math.rad(0), math.rad(2)), 0.2)
3201LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.7, 0) * LHCF * angles(math.rad(-28), math.rad(0), math.rad(0)), 0.2)
3202end
3203con5:disconnect()
3204end
3205
3206for i = 0, 1.65, 0.1 do
3207swait()
3208root.Velocity = root.CFrame.lookVector * 0
3209SphereEffect(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)
3210rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, 0.7, -0.3) * angles(math.rad(-32), math.rad(-2), math.rad(90)), 0.2)
3211tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(-17), math.rad(-90)), 0.2)
3212RW.C0 = clerp(RW.C0, CFrame.new(1.1, 0.5, -0.6) * angles(math.rad(90), math.rad(0), math.rad(-56)), 0.3)
3213LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.6, -0.5) * angles(math.rad(90), math.rad(0), math.rad(56)), 0.3)
3214RH.C0 = clerp(RH.C0, CFrame.new(1, .62 , -0.3) * RHCF * angles(math.rad(-40), math.rad(0), math.rad(2)), 0.2)
3215LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.7, 0) * LHCF * angles(math.rad(-28), math.rad(0), math.rad(0)), 0.2)
3216end
3217
3218con5=hum.Touched:connect(function(hit)
3219if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
3220if attackdebounce == false then
3221attackdebounce = true
3222coroutine.resume(coroutine.create(function()
3223for i = 0,1.5,0.1 do
3224swait()
3225--hit.Parent.Head.CFrame = root.CFrame * CFrame.new(0,1.1,-1.8)
3226end
3227end))
3228so("http://roblox.com/asset/?id=636494529",rl,2,.63)
3229RingEffect(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)
3230RingEffect(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)
3231SphereEffect(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)
3232
3233
3234coroutine.resume(coroutine.create(function()
3235for i = 0,1,0.1 do
3236swait()
3237hum.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)
3238end
3239end))
3240
3241
3242wait(0.05)
3243attackdebounce = false
3244end
3245end
3246end)
3247
3248so("http://www.roblox.com/asset/?id=1452040709", RightLeg, 1, 1.4)
3249SphereEffect(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)
3250
3251for i = 0, 2, 0.1 do
3252swait()
3253--BlockEffect(BrickColor.new("Really red"), rl.CFrame*CF(0,-1,0), 2, 2, 2, 1.5, 1.5, 1.5, 0.03)
3254rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, -0.5, -0.3) * angles(math.rad(-32), math.rad(-2), math.rad(90)), 0.2)
3255tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(-17), math.rad(-90)), 0.2)
3256RW.C0 = clerp(RW.C0, CFrame.new(1.1, 0.5, -0.6) * angles(math.rad(90), math.rad(0), math.rad(-56)), 0.3)
3257LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.6, -0.5) * angles(math.rad(90), math.rad(0), math.rad(56)), 0.3)
3258RH.C0 = clerp(RH.C0, CFrame.new(1, -.6 , 0.2) * RHCF * angles(math.rad(-50), math.rad(0), math.rad(2)), 0.2)
3259LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.7, 0) * LHCF * angles(math.rad(-28), math.rad(0), math.rad(0)), 0.2)
3260end
3261SphereEffect(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)
3262
3263wait(0.25)
3264con5:Disconnect()
3265
3266
3267
3268
3269con5=hum.Touched:connect(function(hit)
3270if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
3271if attackdebounce == false then
3272attackdebounce = true
3273
3274so("http://roblox.com/asset/?id=565207203",ll,7,0.63)
3275
3276RingEffect(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)
3277RingEffect(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)
3278SphereEffect(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)
3279SpecialEffect(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)
3280SphereEffect(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)
3281WaveEffect(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)
3282
3283coroutine.resume(coroutine.create(function()
3284for i = 0,1,0.1 do
3285swait()
3286hum.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)
3287end
3288end))
3289
3290wait(0.06)
3291attackdebounce = false
3292
3293end
3294end
3295end)
3296
3297coroutine.resume(coroutine.create(function()
3298while ultra == true do
3299swait()
3300root.CFrame = root.CFrame*CFrame.new(math.random(-3,3),math.random(-2,2),math.random(-3,3))
3301end
3302end))
3303
3304
3305so("http://www.roblox.com/asset/?id=158475221", RightLeg, 1, 1.3)
3306for i = 1,3 do
3307for i = 0, 9.14, 0.45 do
3308swait()
3309root.Velocity = root.CFrame.lookVector * 30
3310BlockEffect(BrickColor.new("Really red"), ll.CFrame*CF(0,-1,0), 2, 2, 2, 3.5, 3.5, 3.5, 0.05)
3311rootj.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)
3312tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(12), math.rad(0), math.rad(24)), 0.35)
3313RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(12), math.rad(0), math.rad(62)), 0.35)
3314LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.3, 0) * angles(math.rad(12), math.rad(0), math.rad(-23)), 0.35)
3315RH.C0 = clerp(RH.C0, CFrame.new(1, -0.17, -0.4) * RHCF * angles(math.rad(7), math.rad(0), math.rad(4)), 0.35)
3316LH.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)
3317end
3318end
3319
3320
3321for i = 1,3 do
3322for i = 0, 11.14, 0.45 do
3323swait()
3324root.Velocity = root.CFrame.lookVector * 30
3325BlockEffect(BrickColor.new("Really red"), ll.CFrame*CF(0,-1,0), 2, 2, 2, 3.5, 3.5, 3.5, 0.05)
3326rootj.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)
3327tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(12), math.rad(0), math.rad(24)), 0.35)
3328RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(12), math.rad(0), math.rad(62)), 0.35)
3329LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.3, 0) * angles(math.rad(12), math.rad(0), math.rad(-23)), 0.35)
3330RH.C0 = clerp(RH.C0, CFrame.new(1, -0.17, -0.4) * RHCF * angles(math.rad(27), math.rad(0), math.rad(74)), 0.35)
3331LH.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)
3332end
3333
3334
3335
3336end
3337so("http://www.roblox.com/asset/?id=197161452", char, 0.5, 0.8)
3338con5:disconnect()
3339
3340
3341end -- combo hit end
3342attack = false
3343ultra = false
3344u:disconnect()
3345
3346end
3347
3348
3349
3350
3351-------------------------------------------------------
3352--End Attacks N Stuff--
3353-------------------------------------------------------
3354mouse.KeyDown:connect(function(key)
3355if string.byte(key) == 48 then
3356Swing = 2
3357hum.WalkSpeed = 24.82
3358end
3359end)
3360mouse.KeyUp:connect(function(key)
3361if string.byte(key) == 48 then
3362Swing = 1
3363hum.WalkSpeed = 8
3364end
3365end)
3366
3367
3368
3369
3370
3371
3372
3373mouse.Button1Down:connect(function()
3374if attack==false then
3375if attacktype==1 then
3376attack=true
3377attacktype=2
3378attackone()
3379elseif attacktype==2 then
3380attack=true
3381attacktype=3
3382attacktwo()
3383elseif attacktype==3 then
3384attack=true
3385attacktype=4
3386attackthree()
3387elseif attacktype==4 then
3388attack=true
3389attacktype=1
3390attackfour()
3391end
3392end
3393end)
3394
3395
3396
3397
3398mouse.KeyDown:connect(function(key)
3399if key == 'e' and attack == false and cankick == true and cooldown == false then
3400quickkick()
3401cooldown = true
3402
3403coroutine.resume(coroutine.create(function()
3404wait(2)
3405cooldown = false
3406end))
3407
3408
3409
3410end
3411end)
3412
3413
3414
3415
3416
3417
3418
3419
3420mouse.KeyDown:connect(function(key)
3421if attack == false then
3422if key == 't' then
3423Taunt()
3424elseif key == 'f' then
3425Hyperkickcombo()
3426elseif key == 'r' then
3427Galekicks()
3428end
3429end
3430end)
3431
3432-------------------------------------------------------
3433--Start Animations--
3434-------------------------------------------------------
3435print("By Makhail07 and KillerDarkness0105")
3436print("Basic Animations by Makhail07")
3437print("Attack Animations by KillerDarkness0105")
3438print("This is pretty much our final script together")
3439print("--------------------------------")
3440print("Attacks")
3441print("E in air: Quick Kicks")
3442print("Left Mouse: 4 click combo")
3443print("F: Hyper Kicks")
3444print("R: Gale Kicks, Spam R if your combo is over 150 to do an ultra combo")
3445print("--------------------------------")
3446while true do
3447swait()
3448sine = sine + change
3449local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude
3450local velderp = root.Velocity.y
3451hitfloor, posfloor = rayCast(root.Position, CFrame.new(root.Position, root.Position - Vector3.new(0, 1, 0)).lookVector, 4* Player_Size, char)
3452
3453if hitfloor == nil then
3454cankick = true
3455else
3456cankick = false
3457end
3458
3459
3460if equipped == true or equipped == false then
3461if attack == false then
3462idle = idle + 1
3463else
3464idle = 0
3465end
3466if 1 < root.Velocity.y and hitfloor == nil then
3467Anim = "Jump"
3468if attack == false then
3469hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(0,0,0),0.15)
3470rootj.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)
3471neck.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)
3472RH.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)
3473LH.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)
3474RW.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)
3475LW.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)
3476end
3477elseif -1 > root.Velocity.y and hitfloor == nil then
3478Anim = "Fall"
3479if attack == false then
3480hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(0,0,0),0.15)
3481rootj.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)
3482neck.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)
3483RH.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)
3484LH.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)
3485RW.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)
3486LW.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)
3487end
3488elseif torvel < 1 and hitfloor ~= nil then
3489Anim = "Idle"
3490change = 1
3491if attack == false then
3492hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(0,0,0),0.15)
3493rootj.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)
3494tors.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)
3495RH.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)
3496LH.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)
3497RW.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)
3498LW.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)
3499end
3500elseif torvel > 2 and torvel < 22 and hitfloor ~= nil then
3501Anim = "Walk"
3502change = 1
3503if attack == false then
3504hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(0,0,0),0.15)
3505rootj.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)
3506tors.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)
3507RH.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)
3508LH.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)
3509RW.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)
3510LW.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)
3511end
3512elseif torvel >= 22 and hitfloor ~= nil then
3513Anim = "Sprint"
3514change = 1.35
3515if attack == false then
3516hum.CameraOffset = hum.CameraOffset:lerp(Vector3.new(0,0,0),0.15)
3517rootj.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)
3518tors.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)
3519RH.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)
3520LH.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)
3521RW.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)
3522LW.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)
3523end
3524end
3525end
3526Music.SoundId = "rbxassetid://"..SONG
3527Music.Looped = true
3528Music.Pitch = 1
3529Music.Volume = 0.7
3530Music.Parent = tors
3531Music:Resume()
3532if 0 < #Effects then
3533for e = 1, #Effects do
3534if Effects[e] ~= nil then
3535local Thing = Effects[e]
3536if Thing ~= nil then
3537local Part = Thing[1]
3538local Mode = Thing[2]
3539local Delay = Thing[3]
3540local IncX = Thing[4]
3541local IncY = Thing[5]
3542local IncZ = Thing[6]
3543if 1 >= Thing[1].Transparency then
3544if Thing[2] == "Block1" then
3545Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
3546local Mesh = Thing[1].Mesh
3547Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
3548Thing[1].Transparency = Thing[1].Transparency + Thing[3]
3549elseif Thing[2] == "Block2" then
3550Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0)
3551local Mesh = Thing[7]
3552Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
3553Thing[1].Transparency = Thing[1].Transparency + Thing[3]
3554elseif Thing[2] == "Block3" then
3555Thing[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)
3556local Mesh = Thing[7]
3557Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
3558Thing[1].Transparency = Thing[1].Transparency + Thing[3]
3559elseif Thing[2] == "Cylinder" then
3560local Mesh = Thing[1].Mesh
3561Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
3562Thing[1].Transparency = Thing[1].Transparency + Thing[3]
3563elseif Thing[2] == "Blood" then
3564local Mesh = Thing[7]
3565Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0)
3566Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
3567Thing[1].Transparency = Thing[1].Transparency + Thing[3]
3568elseif Thing[2] == "Elec" then
3569local Mesh = Thing[1].Mesh
3570Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
3571Thing[1].Transparency = Thing[1].Transparency + Thing[3]
3572elseif Thing[2] == "Disappear" then
3573Thing[1].Transparency = Thing[1].Transparency + Thing[3]
3574elseif Thing[2] == "Shatter" then
3575Thing[1].Transparency = Thing[1].Transparency + Thing[3]
3576Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
3577Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
3578Thing[6] = Thing[6] + Thing[5]
3579end
3580else
3581Part.Parent = nil
3582table.remove(Effects, e)
3583end
3584end
3585end
3586end
3587end
3588end
3589-------------------------------------------------------
3590--End Animations And Script--
3591 -------------------------------------------------------
3592end)