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