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