· 5 years ago · Mar 26, 2020, 06:36 PM
1local NetworkAccess = coroutine.create(function()
2settings().Physics.AllowSleep = false
3while true do game:GetService("RunService").RenderStepped:Wait()
4local TBL = game:GetService("Players"):GetChildren()
5for _ = 1,#TBL do local Players = TBL[_]
6if Players ~= game:GetService("Players").LocalPlayer then
7Players.MaximumSimulationRadius = 0.1 Players.SimulationRadius = 0 end end
8game:GetService("Players").LocalPlayer.MaximumSimulationRadius = math.pow(math.huge,math.huge)
9game:GetService("Players").LocalPlayer.SimulationRadius = math.huge*math.huge end end)
10coroutine.resume(NetworkAccess)
11
12workspace.Camera.CameraType = "Fixed"
13game:GetService("Players").LocalPlayer["Character"].Archivable = true local CloneChar = game:GetService("Players").LocalPlayer["Character"]:Clone()
14game:GetService("Players").LocalPlayer["Character"].Humanoid.WalkSpeed = 0 game:GetService("Players").LocalPlayer["Character"].Humanoid.JumpPower = 0 game:GetService("Players").LocalPlayer["Character"].Humanoid.AutoRotate = false
15local FalseChar = Instance.new("Model", workspace); FalseChar.Name = ""
16Instance.new("Part",FalseChar).Name = "Head" Instance.new("Part",FalseChar).Name = "Torso" Instance.new("Humanoid",FalseChar).Name = "Humanoid"
17game:GetService("Players").LocalPlayer["Character"] = FalseChar
18game:GetService("Players").LocalPlayer["Character"].Humanoid.Name = "FalseHumanoid"
19local Clone = game:GetService("Players").LocalPlayer["Character"]:FindFirstChild("FalseHumanoid"):Clone()
20Clone.Parent = game:GetService("Players").LocalPlayer["Character"]
21Clone.Name = "Humanoid"
22game:GetService("Players").LocalPlayer["Character"]:FindFirstChild("FalseHumanoid"):Destroy() wait(1)
23game:GetService("Players").LocalPlayer["Character"].Humanoid.Health = 0 game:GetService("Players").LocalPlayer["Character"] = workspace[game:GetService("Players").LocalPlayer.Name] wait(4) game:GetService("Players").LocalPlayer["Character"].Humanoid.Health = 0
24local Character = game:GetService("Players").LocalPlayer["Character"]
25CloneChar.Parent = workspace CloneChar.HumanoidRootPart.CFrame = Character.HumanoidRootPart.CFrame * CFrame.new(0,0,-10)
26wait() CloneChar.Humanoid.BreakJointsOnDeath = false
27workspace.Camera.CameraSubject = CloneChar.Humanoid CloneChar.Name = "CloneCharacter" CloneChar.Humanoid.DisplayDistanceType = "None"
28local DeadChar = workspace[game:GetService("Players").LocalPlayer.Name]
29
30local LVecPart = Instance.new("Part", workspace) LVecPart.CanCollide = false LVecPart.Transparency = 1
31game:GetService("RunService").Heartbeat:Connect(function()
32local lookVec = workspace.Camera.CFrame.lookVector
33local Root = CloneChar["HumanoidRootPart"]
34LVecPart.Position = Root.Position
35LVecPart.CFrame = CFrame.new(LVecPart.Position, Vector3.new(lookVec.X * 9999, lookVec.Y, lookVec.Z * 9999))
36end)
37
38local WDown, ADown, SDown, DDown, SpaceDown = false, false, false, false, false
39game:GetService("UserInputService").InputBegan:Connect(function(_,Processed) if Processed ~= true then
40local Key = _.KeyCode
41if Key == Enum.KeyCode.W then
42WDown = true end
43if Key == Enum.KeyCode.A then
44ADown = true end
45if Key == Enum.KeyCode.S then
46SDown = true end
47if Key == Enum.KeyCode.D then
48DDown = true end
49if Key == Enum.KeyCode.Space then
50SpaceDown = true end end end)
51
52game:GetService("UserInputService").InputEnded:Connect(function(_)
53local Key = _.KeyCode
54if Key == Enum.KeyCode.W then
55WDown = false end
56if Key == Enum.KeyCode.A then
57ADown = false end
58if Key == Enum.KeyCode.S then
59SDown = false end
60if Key == Enum.KeyCode.D then
61DDown = false end
62if Key == Enum.KeyCode.Space then
63SpaceDown = false end end)
64
65local function MoveClone(X,Y,Z)
66LVecPart.CFrame = LVecPart.CFrame * CFrame.new(-X,Y,-Z)
67workspace["CloneCharacter"].Humanoid.WalkToPoint = LVecPart.Position
68end
69
70local WalkLoop = coroutine.create(function() while true do game:GetService("RunService").RenderStepped:Wait()
71if WDown then MoveClone(0,0,1e4) end
72if ADown then MoveClone(1e4,0,0) end
73if SDown then MoveClone(0,0,-1e4) end
74if DDown then MoveClone(-1e4,0,0) end
75if SpaceDown then CloneChar["Humanoid"].Jump = true end
76if WDown ~= true and ADown ~= true and SDown ~= true and DDown ~= true then
77workspace["CloneCharacter"].Humanoid.WalkToPoint = workspace["CloneCharacter"].HumanoidRootPart.Position end
78end end)
79coroutine.resume(WalkLoop)
80
81game:GetService("RunService").Stepped:Connect(function()
82for _,Parts in next, CloneChar:GetDescendants() do
83if Parts:IsA("BasePart") then
84Parts.CanCollide = false end end
85for _,Parts in next, DeadChar:GetDescendants() do
86if Parts:IsA("BasePart") then
87Parts.CanCollide = false
88end end end)
89
90local Amount = 6 --/* Riptxde's AlignForce Template
91local ApplyAtCenterOfMass = true
92local Char = CloneChar
93local A = Instance.new("Folder", game) A.Name = "AlignFolder"
94local B = Instance.new("Part", A) B.Name = "SPart"
95for _ = 1,Amount do
96local AP = Instance.new("AlignPosition", A) AP.Name = "APos".._
97if ApplyAtCenterOfMass then AP.ApplyAtCenterOfMass = true end
98AP.RigidityEnabled = false
99AP.ReactionForceEnabled = false
100AP.ApplyAtCenterOfMass = true
101AP.MaxForce = 67752
102AP.MaxVelocity = math.huge/9e110
103AP.Responsiveness = 200
104local Att0Pos = Instance.new("Attachment", B)
105AP.Attachment0 = Att0Pos Att0Pos.Name = "Att0Pos".._
106local Att1Pos = Instance.new("Attachment", B)
107AP.Attachment1 = Att1Pos Att1Pos.Name = "Att1Pos".._
108local AO = Instance.new("AlignOrientation", A) AO.Name = "ARot".._
109AO.RigidityEnabled = false
110AO.ReactionTorqueEnabled = true
111AO.PrimaryAxisOnly = false
112AO.MaxTorque = 67752
113AO.MaxAngularVelocity = math.huge/9e110
114AO.Responsiveness = 200
115local Att0Rot = Instance.new("Attachment", B)
116AO.Attachment0 = Att0Rot Att0Rot.Name = "Att0Rot".._
117local Att1Rot = Instance.new("Attachment", B)
118AO.Attachment1 = Att1Rot Att1Rot.Name = "Att1Rot".._ end
119
120B.Att1Pos1.Parent = CloneChar["Head"] B.Att1Rot1.Parent = CloneChar["Head"]
121B.Att1Pos2.Parent = CloneChar["Torso"] B.Att1Rot2.Parent = CloneChar["Torso"]
122B.Att1Pos3.Parent = CloneChar["Left Arm"] B.Att1Rot3.Parent = CloneChar["Left Arm"]
123B.Att1Pos4.Parent = CloneChar["Right Arm"] B.Att1Rot4.Parent = CloneChar["Right Arm"]
124B.Att1Pos5.Parent = CloneChar["Left Leg"] B.Att1Rot5.Parent = CloneChar["Left Leg"]
125B.Att1Pos6.Parent = CloneChar["Right Leg"] B.Att1Rot6.Parent = CloneChar["Right Leg"]
126
127B.Att0Pos1.Parent = DeadChar["Head"] B.Att0Rot1.Parent = DeadChar["Head"]
128B.Att0Pos2.Parent = DeadChar["Torso"] B.Att0Rot2.Parent = DeadChar["Torso"]
129B.Att0Pos3.Parent = DeadChar["Left Arm"] B.Att0Rot3.Parent = DeadChar["Left Arm"]
130B.Att0Pos4.Parent = DeadChar["Right Arm"] B.Att0Rot4.Parent = DeadChar["Right Arm"]
131B.Att0Pos5.Parent = DeadChar["Left Leg"] B.Att0Rot5.Parent = DeadChar["Left Leg"]
132B.Att0Pos6.Parent = DeadChar["Right Leg"] B.Att0Rot6.Parent = DeadChar["Right Leg"]
133
134local Num = 1
135for _,Hats in next, DeadChar:GetChildren() do
136if Hats:IsA("Accessory") then
137local AP = Instance.new("AlignPosition", A)
138AP.ApplyAtCenterOfMass = true
139AP.RigidityEnabled = false
140AP.ReactionForceEnabled = false
141AP.ApplyAtCenterOfMass = true
142AP.MaxForce = 64060*Hats.Handle.Size.X*Hats.Handle.Size.Y*Hats.Handle.Size.Z
143AP.MaxVelocity = math.huge/9e110
144AP.Responsiveness = 200
145local Att0Pos = Instance.new("Attachment", Hats.Handle)
146AP.Attachment0 = Att0Pos
147local Att1Pos = Instance.new("Attachment", CloneChar.Humanoid:GetAccessories()[Num].Handle)
148AP.Attachment1 = Att1Pos
149local AO = Instance.new("AlignOrientation", A)
150AO.RigidityEnabled = false
151AO.ReactionTorqueEnabled = false
152AO.PrimaryAxisOnly = false
153AO.MaxTorque = 42060*Hats.Handle.Size.X*Hats.Handle.Size.Y*Hats.Handle.Size.Z
154AO.MaxAngularVelocity = math.huge/9e110
155AO.Responsiveness = 200
156local Att0Rot = Instance.new("Attachment", Hats.Handle)
157AO.Attachment0 = Att0Rot
158local Att1Rot = Instance.new("Attachment", CloneChar.Humanoid:GetAccessories()[Num].Handle)
159AO.Attachment1 = Att1Rot
160Num = Num + 1
161end end
162
163for _,Aligns in next, A:GetChildren() do
164if Aligns:IsA("AlignOrientation") or Aligns:IsA("AlignPosition") then
165Aligns.Parent = CloneChar end end
166
167game:GetService("RunService").RenderStepped:Connect(function()
168for _,BodyParts in next, workspace["CloneCharacter"]:GetDescendants() do
169if BodyParts:IsA("BasePart") or BodyParts:IsA("Part") then
170BodyParts.Transparency = 1 end end
171for _,Effects in next, workspace["CloneCharacter"]:GetDescendants() do
172if Effects:IsA("ParticleEmitter") or Effects:IsA("Sparkles") or Effects:IsA("BillboardGui") or Effects:IsA("Fire") or Effects:IsA("TextLabel") then
173Effects:Destroy() end end
174for _,Decals in next, workspace["CloneCharacter"]:GetDescendants() do
175if Decals:IsA("Decal") then
176Decals.Texture = 0 end end end) workspace.Camera.CameraType = "Track"
177
178local function invisCam() game:GetService("Players").LocalPlayer.DevCameraOcclusionMode = "Invisicam" end invisCam()
179game:GetService("Players").LocalPlayer:GetPropertyChangedSignal("DevCameraOcclusionMode"):Connect(invisCam)
180wait(1)
181local fake_module_scripts = {}
182
183do -- asdasdasdadadadsdddwdadda.RbxUtility
184 local script = Instance.new('ModuleScript', game:GetService("ReplicatedStorage"))
185 script.Name = "RbxUtility"
186 local function module_script()
187 local t = {}
188 local string = string
189 local math = math
190 local table = table
191 local error = error
192 local tonumber = tonumber
193 local tostring = tostring
194 local type = type
195 local setmetatable = setmetatable
196 local pairs = pairs
197 local ipairs = ipairs
198 local assert = assert
199
200
201 local StringBuilder = {
202 buffer = {}
203 }
204
205 function StringBuilder:New()
206 local o = {}
207 setmetatable(o, self)
208 self.__index = self
209 o.buffer = {}
210 return o
211 end
212
213 function StringBuilder:Append(s)
214 self.buffer[#self.buffer+1] = s
215 end
216
217 function StringBuilder:ToString()
218 return table.concat(self.buffer)
219 end
220
221 local JsonWriter = {
222 backslashes = {
223 ['\b'] = "\\b",
224 ['\t'] = "\\t",
225 ['\n'] = "\\n",
226 ['\f'] = "\\f",
227 ['\r'] = "\\r",
228 ['"'] = "\\\"",
229 ['\\'] = "\\\\",
230 ['/'] = "\\/"
231 }
232 }
233
234 function JsonWriter:New()
235 local o = {}
236 o.writer = StringBuilder:New()
237 setmetatable(o, self)
238 self.__index = self
239 return o
240 end
241
242 function JsonWriter:Append(s)
243 self.writer:Append(s)
244 end
245
246 function JsonWriter:ToString()
247 return self.writer:ToString()
248 end
249
250 function JsonWriter:Write(o)
251 local t = type(o)
252 if t == "nil" then
253 self:WriteNil()
254 elseif t == "boolean" then
255 self:WriteString(o)
256 elseif t == "number" then
257 self:WriteString(o)
258 elseif t == "string" then
259 self:ParseString(o)
260 elseif t == "table" then
261 self:WriteTable(o)
262 elseif t == "function" then
263 self:WriteFunction(o)
264 elseif t == "thread" then
265 self:WriteError(o)
266 elseif t == "userdata" then
267 self:WriteError(o)
268 end
269 end
270
271 function JsonWriter:WriteNil()
272 self:Append("null")
273 end
274
275 function JsonWriter:WriteString(o)
276 self:Append(tostring(o))
277 end
278
279 function JsonWriter:ParseString(s)
280 self:Append('"')
281 self:Append(string.gsub(s, "[%z%c\\\"/]", function(n)
282 local c = self.backslashes[n]
283 if c then return c end
284 return string.format("\\u%.4X", string.byte(n))
285 end))
286 self:Append('"')
287 end
288
289 function JsonWriter:IsArray(t)
290 local count = 0
291 local isindex = function(k)
292 if type(k) == "number" and k > 0 then
293 if math.floor(k) == k then
294 return true
295 end
296 end
297 return false
298 end
299 for k,v in pairs(t) do
300 if not isindex(k) then
301 return false, '{', '}'
302 else
303 count = math.max(count, k)
304 end
305 end
306 return true, '[', ']', count
307 end
308
309 function JsonWriter:WriteTable(t)
310 local ba, st, et, n = self:IsArray(t)
311 self:Append(st)
312 if ba then
313 for i = 1, n do
314 self:Write(t[i])
315 if i < n then
316 self:Append(',')
317 end
318 end
319 else
320 local first = true;
321 for k, v in pairs(t) do
322 if not first then
323 self:Append(',')
324 end
325 first = false;
326 self:ParseString(k)
327 self:Append(':')
328 self:Write(v)
329 end
330 end
331 self:Append(et)
332 end
333
334 function JsonWriter:WriteError(o)
335 error(string.format(
336 "Encoding of %s unsupported",
337 tostring(o)))
338 end
339
340 function JsonWriter:WriteFunction(o)
341 if o == Null then
342 self:WriteNil()
343 else
344 self:WriteError(o)
345 end
346 end
347
348 local StringReader = {
349 s = "",
350 i = 0
351 }
352
353 function StringReader:New(s)
354 local o = {}
355 setmetatable(o, self)
356 self.__index = self
357 o.s = s or o.s
358 return o
359 end
360
361 function StringReader:Peek()
362 local i = self.i + 1
363 if i <= #self.s then
364 return string.sub(self.s, i, i)
365 end
366 return nil
367 end
368
369 function StringReader:Next()
370 self.i = self.i+1
371 if self.i <= #self.s then
372 return string.sub(self.s, self.i, self.i)
373 end
374 return nil
375 end
376
377 function StringReader:All()
378 return self.s
379 end
380
381 local JsonReader = {
382 escapes = {
383 ['t'] = '\t',
384 ['n'] = '\n',
385 ['f'] = '\f',
386 ['r'] = '\r',
387 ['b'] = '\b',
388 }
389 }
390
391 function JsonReader:New(s)
392 local o = {}
393 o.reader = StringReader:New(s)
394 setmetatable(o, self)
395 self.__index = self
396 return o;
397 end
398
399 function JsonReader:Read()
400 self:SkipWhiteSpace()
401 local peek = self:Peek()
402 if peek == nil then
403 error(string.format(
404 "Nil string: '%s'",
405 self:All()))
406 elseif peek == '{' then
407 return self:ReadObject()
408 elseif peek == '[' then
409 return self:ReadArray()
410 elseif peek == '"' then
411 return self:ReadString()
412 elseif string.find(peek, "[%+%-%d]") then
413 return self:ReadNumber()
414 elseif peek == 't' then
415 return self:ReadTrue()
416 elseif peek == 'f' then
417 return self:ReadFalse()
418 elseif peek == 'n' then
419 return self:ReadNull()
420 elseif peek == '/' then
421 self:ReadComment()
422 return self:Read()
423 else
424 return nil
425 end
426 end
427
428 function JsonReader:ReadTrue()
429 self:TestReservedWord{'t','r','u','e'}
430 return true
431 end
432
433 function JsonReader:ReadFalse()
434 self:TestReservedWord{'f','a','l','s','e'}
435 return false
436 end
437
438 function JsonReader:ReadNull()
439 self:TestReservedWord{'n','u','l','l'}
440 return nil
441 end
442
443 function JsonReader:TestReservedWord(t)
444 for i, v in ipairs(t) do
445 if self:Next() ~= v then
446 error(string.format(
447 "Error reading '%s': %s",
448 table.concat(t),
449 self:All()))
450 end
451 end
452 end
453
454 function JsonReader:ReadNumber()
455 local result = self:Next()
456 local peek = self:Peek()
457 while peek ~= nil and string.find(
458 peek,
459 "[%+%-%d%.eE]") do
460 result = result .. self:Next()
461 peek = self:Peek()
462 end
463 result = tonumber(result)
464 if result == nil then
465 error(string.format(
466 "Invalid number: '%s'",
467 result))
468 else
469 return result
470 end
471 end
472
473 function JsonReader:ReadString()
474 local result = ""
475 assert(self:Next() == '"')
476 while self:Peek() ~= '"' do
477 local ch = self:Next()
478 if ch == '\\' then
479 ch = self:Next()
480 if self.escapes[ch] then
481 ch = self.escapes[ch]
482 end
483 end
484 result = result .. ch
485 end
486 assert(self:Next() == '"')
487 local fromunicode = function(m)
488 return string.char(tonumber(m, 16))
489 end
490 return string.gsub(
491 result,
492 "u%x%x(%x%x)",
493 fromunicode)
494 end
495
496 function JsonReader:ReadComment()
497 assert(self:Next() == '/')
498 local second = self:Next()
499 if second == '/' then
500 self:ReadSingleLineComment()
501 elseif second == '*' then
502 self:ReadBlockComment()
503 else
504 error(string.format(
505 "Invalid comment: %s",
506 self:All()))
507 end
508 end
509
510 function JsonReader:ReadBlockComment()
511 local done = false
512 while not done do
513 local ch = self:Next()
514 if ch == '*' and self:Peek() == '/' then
515 done = true
516 end
517 if not done and
518 ch == '/' and
519 self:Peek() == "*" then
520 error(string.format(
521 "Invalid comment: %s, '/*' illegal.",
522 self:All()))
523 end
524 end
525 self:Next()
526 end
527
528 function JsonReader:ReadSingleLineComment()
529 local ch = self:Next()
530 while ch ~= '\r' and ch ~= '\n' do
531 ch = self:Next()
532 end
533 end
534
535 function JsonReader:ReadArray()
536 local result = {}
537 assert(self:Next() == '[')
538 local done = false
539 if self:Peek() == ']' then
540 done = true;
541 end
542 while not done do
543 local item = self:Read()
544 result[#result+1] = item
545 self:SkipWhiteSpace()
546 if self:Peek() == ']' then
547 done = true
548 end
549 if not done then
550 local ch = self:Next()
551 if ch ~= ',' then
552 error(string.format(
553 "Invalid array: '%s' due to: '%s'",
554 self:All(), ch))
555 end
556 end
557 end
558 assert(']' == self:Next())
559 return result
560 end
561
562 function JsonReader:ReadObject()
563 local result = {}
564 assert(self:Next() == '{')
565 local done = false
566 if self:Peek() == '}' then
567 done = true
568 end
569 while not done do
570 local key = self:Read()
571 if type(key) ~= "string" then
572 error(string.format(
573 "Invalid non-string object key: %s",
574 key))
575 end
576 self:SkipWhiteSpace()
577 local ch = self:Next()
578 if ch ~= ':' then
579 error(string.format(
580 "Invalid object: '%s' due to: '%s'",
581 self:All(),
582 ch))
583 end
584 self:SkipWhiteSpace()
585 local val = self:Read()
586 result[key] = val
587 self:SkipWhiteSpace()
588 if self:Peek() == '}' then
589 done = true
590 end
591 if not done then
592 ch = self:Next()
593 if ch ~= ',' then
594 error(string.format(
595 "Invalid array: '%s' near: '%s'",
596 self:All(),
597 ch))
598 end
599 end
600 end
601 assert(self:Next() == "}")
602 return result
603 end
604
605 function JsonReader:SkipWhiteSpace()
606 local p = self:Peek()
607 while p ~= nil and string.find(p, "[%s/]") do
608 if p == '/' then
609 self:ReadComment()
610 else
611 self:Next()
612 end
613 p = self:Peek()
614 end
615 end
616
617 function JsonReader:Peek()
618 return self.reader:Peek()
619 end
620
621 function JsonReader:Next()
622 return self.reader:Next()
623 end
624
625 function JsonReader:All()
626 return self.reader:All()
627 end
628
629 function Encode(o)
630 local writer = JsonWriter:New()
631 writer:Write(o)
632 return writer:ToString()
633 end
634
635 function Decode(s)
636 local reader = JsonReader:New(s)
637 return reader:Read()
638 end
639
640 function Null()
641 return Null
642 end
643 -------------------- End JSON Parser ------------------------
644
645 t.DecodeJSON = function(jsonString)
646 pcall(function() warn("RbxUtility.DecodeJSON is deprecated, please use Game:GetService('HttpService'):JSONDecode() instead.") end)
647
648 if type(jsonString) == "string" then
649 return Decode(jsonString)
650 end
651 print("RbxUtil.DecodeJSON expects string argument!")
652 return nil
653 end
654
655 t.EncodeJSON = function(jsonTable)
656 pcall(function() warn("RbxUtility.EncodeJSON is deprecated, please use Game:GetService('HttpService'):JSONEncode() instead.") end)
657 return Encode(jsonTable)
658 end
659
660
661
662
663
664
665
666
667 ------------------------------------------------------------------------------------------------------------------------
668 ------------------------------------------------------------------------------------------------------------------------
669 ------------------------------------------------------------------------------------------------------------------------
670 --------------------------------------------Terrain Utilities Begin-----------------------------------------------------
671 ------------------------------------------------------------------------------------------------------------------------
672 ------------------------------------------------------------------------------------------------------------------------
673 ------------------------------------------------------------------------------------------------------------------------
674 --makes a wedge at location x, y, z
675 --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
676 --returns true if made a wedge, false if the cell remains a block
677 t.MakeWedge = function(x, y, z, defaultmaterial)
678 return game:GetService("Terrain"):AutoWedgeCell(x,y,z)
679 end
680
681 t.SelectTerrainRegion = function(regionToSelect, color, selectEmptyCells, selectionParent)
682 local terrain = game:GetService("Workspace"):FindFirstChild("Terrain")
683 if not terrain then return end
684
685 assert(regionToSelect)
686 assert(color)
687
688 if not type(regionToSelect) == "Region3" then
689 error("regionToSelect (first arg), should be of type Region3, but is type",type(regionToSelect))
690 end
691 if not type(color) == "BrickColor" then
692 error("color (second arg), should be of type BrickColor, but is type",type(color))
693 end
694
695 -- frequently used terrain calls (speeds up call, no lookup necessary)
696 local GetCell = terrain.GetCell
697 local WorldToCellPreferSolid = terrain.WorldToCellPreferSolid
698 local CellCenterToWorld = terrain.CellCenterToWorld
699 local emptyMaterial = Enum.CellMaterial.Empty
700
701 -- container for all adornments, passed back to user
702 local selectionContainer = Instance.new("Model")
703 selectionContainer.Name = "SelectionContainer"
704 selectionContainer.Archivable = false
705 if selectionParent then
706 selectionContainer.Parent = selectionParent
707 else
708 selectionContainer.Parent = game:GetService("Workspace")
709 end
710
711 local updateSelection = nil -- function we return to allow user to update selection
712 local currentKeepAliveTag = nil -- a tag that determines whether adorns should be destroyed
713 local aliveCounter = 0 -- helper for currentKeepAliveTag
714 local lastRegion = nil -- used to stop updates that do nothing
715 local adornments = {} -- contains all adornments
716 local reusableAdorns = {}
717
718 local selectionPart = Instance.new("Part")
719 selectionPart.Name = "SelectionPart"
720 selectionPart.Transparency = 1
721 selectionPart.Anchored = true
722 selectionPart.Locked = true
723 selectionPart.CanCollide = false
724 selectionPart.Size = Vector3.new(4.2,4.2,4.2)
725
726 local selectionBox = Instance.new("SelectionBox")
727
728 -- srs translation from region3 to region3int16
729 local function Region3ToRegion3int16(region3)
730 local theLowVec = region3.CFrame.p - (region3.Size/2) + Vector3.new(2,2,2)
731 local lowCell = WorldToCellPreferSolid(terrain,theLowVec)
732
733 local theHighVec = region3.CFrame.p + (region3.Size/2) - Vector3.new(2,2,2)
734 local highCell = WorldToCellPreferSolid(terrain, theHighVec)
735
736 local highIntVec = Vector3int16.new(highCell.x,highCell.y,highCell.z)
737 local lowIntVec = Vector3int16.new(lowCell.x,lowCell.y,lowCell.z)
738
739 return Region3int16.new(lowIntVec,highIntVec)
740 end
741
742 -- helper function that creates the basis for a selection box
743 function createAdornment(theColor)
744 local selectionPartClone = nil
745 local selectionBoxClone = nil
746
747 if #reusableAdorns > 0 then
748 selectionPartClone = reusableAdorns[1]["part"]
749 selectionBoxClone = reusableAdorns[1]["box"]
750 table.remove(reusableAdorns,1)
751
752 selectionBoxClone.Visible = true
753 else
754 selectionPartClone = selectionPart:Clone()
755 selectionPartClone.Archivable = false
756
757 selectionBoxClone = selectionBox:Clone()
758 selectionBoxClone.Archivable = false
759
760 selectionBoxClone.Adornee = selectionPartClone
761 selectionBoxClone.Parent = selectionContainer
762
763 selectionBoxClone.Adornee = selectionPartClone
764
765 selectionBoxClone.Parent = selectionContainer
766 end
767
768 if theColor then
769 selectionBoxClone.Color = theColor
770 end
771
772 return selectionPartClone, selectionBoxClone
773 end
774
775 -- iterates through all current adornments and deletes any that don't have latest tag
776 function cleanUpAdornments()
777 for cellPos, adornTable in pairs(adornments) do
778
779 if adornTable.KeepAlive ~= currentKeepAliveTag then -- old news, we should get rid of this
780 adornTable.SelectionBox.Visible = false
781 table.insert(reusableAdorns,{part = adornTable.SelectionPart, box = adornTable.SelectionBox})
782 adornments[cellPos] = nil
783 end
784 end
785 end
786
787 -- helper function to update tag
788 function incrementAliveCounter()
789 aliveCounter = aliveCounter + 1
790 if aliveCounter > 1000000 then
791 aliveCounter = 0
792 end
793 return aliveCounter
794 end
795
796 -- finds full cells in region and adorns each cell with a box, with the argument color
797 function adornFullCellsInRegion(region, color)
798 local regionBegin = region.CFrame.p - (region.Size/2) + Vector3.new(2,2,2)
799 local regionEnd = region.CFrame.p + (region.Size/2) - Vector3.new(2,2,2)
800
801 local cellPosBegin = WorldToCellPreferSolid(terrain, regionBegin)
802 local cellPosEnd = WorldToCellPreferSolid(terrain, regionEnd)
803
804 currentKeepAliveTag = incrementAliveCounter()
805 for y = cellPosBegin.y, cellPosEnd.y do
806 for z = cellPosBegin.z, cellPosEnd.z do
807 for x = cellPosBegin.x, cellPosEnd.x do
808 local cellMaterial = GetCell(terrain, x, y, z)
809
810 if cellMaterial ~= emptyMaterial then
811 local cframePos = CellCenterToWorld(terrain, x, y, z)
812 local cellPos = Vector3int16.new(x,y,z)
813
814 local updated = false
815 for cellPosAdorn, adornTable in pairs(adornments) do
816 if cellPosAdorn == cellPos then
817 adornTable.KeepAlive = currentKeepAliveTag
818 if color then
819 adornTable.SelectionBox.Color = color
820 end
821 updated = true
822 break
823 end
824 end
825
826 if not updated then
827 local selectionPart, selectionBox = createAdornment(color)
828 selectionPart.Size = Vector3.new(4,4,4)
829 selectionPart.CFrame = CFrame.new(cframePos)
830 local adornTable = {SelectionPart = selectionPart, SelectionBox = selectionBox, KeepAlive = currentKeepAliveTag}
831 adornments[cellPos] = adornTable
832 end
833 end
834 end
835 end
836 end
837 cleanUpAdornments()
838 end
839
840
841 ------------------------------------- setup code ------------------------------
842 lastRegion = regionToSelect
843
844 if selectEmptyCells then -- use one big selection to represent the area selected
845 local selectionPart, selectionBox = createAdornment(color)
846
847 selectionPart.Size = regionToSelect.Size
848 selectionPart.CFrame = regionToSelect.CFrame
849
850 adornments.SelectionPart = selectionPart
851 adornments.SelectionBox = selectionBox
852
853 updateSelection =
854 function (newRegion, color)
855 if newRegion and newRegion ~= lastRegion then
856 lastRegion = newRegion
857 selectionPart.Size = newRegion.Size
858 selectionPart.CFrame = newRegion.CFrame
859 end
860 if color then
861 selectionBox.Color = color
862 end
863 end
864 else -- use individual cell adorns to represent the area selected
865 adornFullCellsInRegion(regionToSelect, color)
866 updateSelection =
867 function (newRegion, color)
868 if newRegion and newRegion ~= lastRegion then
869 lastRegion = newRegion
870 adornFullCellsInRegion(newRegion, color)
871 end
872 end
873
874 end
875
876 local destroyFunc = function()
877 updateSelection = nil
878 if selectionContainer then selectionContainer:Destroy() end
879 adornments = nil
880 end
881
882 return updateSelection, destroyFunc
883 end
884
885 -----------------------------Terrain Utilities End-----------------------------
886
887
888
889
890
891
892
893 ------------------------------------------------------------------------------------------------------------------------
894 ------------------------------------------------------------------------------------------------------------------------
895 ------------------------------------------------------------------------------------------------------------------------
896 ------------------------------------------------Signal class begin------------------------------------------------------
897 ------------------------------------------------------------------------------------------------------------------------
898 ------------------------------------------------------------------------------------------------------------------------
899 ------------------------------------------------------------------------------------------------------------------------
900 --[[
901 A 'Signal' object identical to the internal RBXScriptSignal object in it's public API and semantics. This function
902 can be used to create "custom events" for user-made code.
903 API:
904 Method :connect( function handler )
905 Arguments: The function to connect to.
906 Returns: A new connection object which can be used to disconnect the connection
907 Description: Connects this signal to the function specified by |handler|. That is, when |fire( ... )| is called for
908 the signal the |handler| will be called with the arguments given to |fire( ... )|. Note, the functions
909 connected to a signal are called in NO PARTICULAR ORDER, so connecting one function after another does
910 NOT mean that the first will be called before the second as a result of a call to |fire|.
911
912 Method :disconnect()
913 Arguments: None
914 Returns: None
915 Description: Disconnects all of the functions connected to this signal.
916
917 Method :fire( ... )
918 Arguments: Any arguments are accepted
919 Returns: None
920 Description: Calls all of the currently connected functions with the given arguments.
921
922 Method :wait()
923 Arguments: None
924 Returns: The arguments given to fire
925 Description: This call blocks until
926 ]]
927
928 function t.CreateSignal()
929 local this = {}
930
931 local mBindableEvent = Instance.new('BindableEvent')
932 local mAllCns = {} --all connection objects returned by mBindableEvent::connect
933
934 --main functions
935 function this:connect(func)
936 if self ~= this then error("connect must be called with `:`, not `.`", 2) end
937 if type(func) ~= 'function' then
938 error("Argument #1 of connect must be a function, got a "..type(func), 2)
939 end
940 local cn = mBindableEvent.Event:Connect(func)
941 mAllCns[cn] = true
942 local pubCn = {}
943 function pubCn:disconnect()
944 cn:Disconnect()
945 mAllCns[cn] = nil
946 end
947 pubCn.Disconnect = pubCn.disconnect
948
949 return pubCn
950 end
951
952 function this:disconnect()
953 if self ~= this then error("disconnect must be called with `:`, not `.`", 2) end
954 for cn, _ in pairs(mAllCns) do
955 cn:Disconnect()
956 mAllCns[cn] = nil
957 end
958 end
959
960 function this:wait()
961 if self ~= this then error("wait must be called with `:`, not `.`", 2) end
962 return mBindableEvent.Event:Wait()
963 end
964
965 function this:fire(...)
966 if self ~= this then error("fire must be called with `:`, not `.`", 2) end
967 mBindableEvent:Fire(...)
968 end
969
970 this.Connect = this.connect
971 this.Disconnect = this.disconnect
972 this.Wait = this.wait
973 this.Fire = this.fire
974
975 return this
976 end
977
978 ------------------------------------------------- Sigal class End ------------------------------------------------------
979
980
981
982
983 ------------------------------------------------------------------------------------------------------------------------
984 ------------------------------------------------------------------------------------------------------------------------
985 ------------------------------------------------------------------------------------------------------------------------
986 -----------------------------------------------Create Function Begins---------------------------------------------------
987 ------------------------------------------------------------------------------------------------------------------------
988 ------------------------------------------------------------------------------------------------------------------------
989 ------------------------------------------------------------------------------------------------------------------------
990 --[[
991 A "Create" function for easy creation of Roblox instances. The function accepts a string which is the classname of
992 the object to be created. The function then returns another function which either accepts accepts no arguments, in
993 which case it simply creates an object of the given type, or a table argument that may contain several types of data,
994 in which case it mutates the object in varying ways depending on the nature of the aggregate data. These are the
995 type of data and what operation each will perform:
996 1) A string key mapping to some value:
997 Key-Value pairs in this form will be treated as properties of the object, and will be assigned in NO PARTICULAR
998 ORDER. If the order in which properties is assigned matter, then they must be assigned somewhere else than the
999 |Create| call's body.
1000
1001 2) An integral key mapping to another Instance:
1002 Normal numeric keys mapping to Instances will be treated as children if the object being created, and will be
1003 parented to it. This allows nice recursive calls to Create to create a whole hierarchy of objects without a
1004 need for temporary variables to store references to those objects.
1005
1006 3) A key which is a value returned from Create.Event( eventname ), and a value which is a function function
1007 The Create.E( string ) function provides a limited way to connect to signals inside of a Create hierarchy
1008 for those who really want such a functionality. The name of the event whose name is passed to
1009 Create.E( string )
1010
1011 4) A key which is the Create function itself, and a value which is a function
1012 The function will be run with the argument of the object itself after all other initialization of the object is
1013 done by create. This provides a way to do arbitrary things involving the object from withing the create
1014 hierarchy.
1015 Note: This function is called SYNCHRONOUSLY, that means that you should only so initialization in
1016 it, not stuff which requires waiting, as the Create call will block until it returns. While waiting in the
1017 constructor callback function is possible, it is probably not a good design choice.
1018 Note: Since the constructor function is called after all other initialization, a Create block cannot have two
1019 constructor functions, as it would not be possible to call both of them last, also, this would be unnecessary.
1020
1021
1022 Some example usages:
1023
1024 A simple example which uses the Create function to create a model object and assign two of it's properties.
1025 local model = Create'Model'{
1026 Name = 'A New model',
1027 Parent = game.Workspace,
1028 }
1029
1030
1031 An example where a larger hierarchy of object is made. After the call the hierarchy will look like this:
1032 Model_Container
1033 |-ObjectValue
1034 | |
1035 | `-BoolValueChild
1036 `-IntValue
1037
1038 local model = Create'Model'{
1039 Name = 'Model_Container',
1040 Create'ObjectValue'{
1041 Create'BoolValue'{
1042 Name = 'BoolValueChild',
1043 },
1044 },
1045 Create'IntValue'{},
1046 }
1047
1048
1049 An example using the event syntax:
1050
1051 local part = Create'Part'{
1052 [Create.E'Touched'] = function(part)
1053 print("I was touched by "..part.Name)
1054 end,
1055 }
1056
1057
1058 An example using the general constructor syntax:
1059
1060 local model = Create'Part'{
1061 [Create] = function(this)
1062 print("Constructor running!")
1063 this.Name = GetGlobalFoosAndBars(this)
1064 end,
1065 }
1066
1067
1068 Note: It is also perfectly legal to save a reference to the function returned by a call Create, this will not cause
1069 any unexpected behavior. EG:
1070 local partCreatingFunction = Create'Part'
1071 local part = partCreatingFunction()
1072 ]]
1073
1074 --the Create function need to be created as a functor, not a function, in order to support the Create.E syntax, so it
1075 --will be created in several steps rather than as a single function declaration.
1076 local function Create_PrivImpl(objectType)
1077 if type(objectType) ~= 'string' then
1078 error("Argument of Create must be a string", 2)
1079 end
1080 --return the proxy function that gives us the nice Create'string'{data} syntax
1081 --The first function call is a function call using Lua's single-string-argument syntax
1082 --The second function call is using Lua's single-table-argument syntax
1083 --Both can be chained together for the nice effect.
1084 return function(dat)
1085 --default to nothing, to handle the no argument given case
1086 dat = dat or {}
1087
1088 --make the object to mutate
1089 local obj = Instance.new(objectType)
1090 local parent = nil
1091
1092 --stored constructor function to be called after other initialization
1093 local ctor = nil
1094
1095 for k, v in pairs(dat) do
1096 --add property
1097 if type(k) == 'string' then
1098 if k == 'Parent' then
1099 -- Parent should always be set last, setting the Parent of a new object
1100 -- immediately makes performance worse for all subsequent property updates.
1101 parent = v
1102 else
1103 obj[k] = v
1104 end
1105
1106
1107 --add child
1108 elseif type(k) == 'number' then
1109 if type(v) ~= 'userdata' then
1110 error("Bad entry in Create body: Numeric keys must be paired with children, got a: "..type(v), 2)
1111 end
1112 v.Parent = obj
1113
1114
1115 --event connect
1116 elseif type(k) == 'table' and k.__eventname then
1117 if type(v) ~= 'function' then
1118 error("Bad entry in Create body: Key `[Create.E\'"..k.__eventname.."\']` must have a function value\
1119 got: "..tostring(v), 2)
1120 end
1121 obj[k.__eventname]:connect(v)
1122
1123
1124 --define constructor function
1125 elseif k == t.Create then
1126 if type(v) ~= 'function' then
1127 error("Bad entry in Create body: Key `[Create]` should be paired with a constructor function, \
1128 got: "..tostring(v), 2)
1129 elseif ctor then
1130 --ctor already exists, only one allowed
1131 error("Bad entry in Create body: Only one constructor function is allowed", 2)
1132 end
1133 ctor = v
1134
1135
1136 else
1137 error("Bad entry ("..tostring(k).." => "..tostring(v)..") in Create body", 2)
1138 end
1139 end
1140
1141 --apply constructor function if it exists
1142 if ctor then
1143 ctor(obj)
1144 end
1145
1146 if parent then
1147 obj.Parent = parent
1148 end
1149
1150 --return the completed object
1151 return obj
1152 end
1153 end
1154
1155 --now, create the functor:
1156 t.Create = setmetatable({}, {__call = function(tb, ...) return Create_PrivImpl(...) end})
1157
1158 --and create the "Event.E" syntax stub. Really it's just a stub to construct a table which our Create
1159 --function can recognize as special.
1160 t.Create.E = function(eventName)
1161 return {__eventname = eventName}
1162 end
1163
1164 t.Help =
1165 function(funcNameOrFunc)
1166 --input argument can be a string or a function. Should return a description (of arguments and expected side effects)
1167 if funcNameOrFunc == "DecodeJSON" or funcNameOrFunc == t.DecodeJSON then
1168 return "Function DecodeJSON. " ..
1169 "Arguments: (string). " ..
1170 "Side effect: returns a table with all parsed JSON values"
1171 end
1172 if funcNameOrFunc == "EncodeJSON" or funcNameOrFunc == t.EncodeJSON then
1173 return "Function EncodeJSON. " ..
1174 "Arguments: (table). " ..
1175 "Side effect: returns a string composed of argument table in JSON data format"
1176 end
1177 if funcNameOrFunc == "MakeWedge" or funcNameOrFunc == t.MakeWedge then
1178 return "Function MakeWedge. " ..
1179 "Arguments: (x, y, z, [default material]). " ..
1180 "Description: Makes a wedge at location x, y, z. Sets cell x, y, z to default material if "..
1181 "parameter is provided, if not sets cell x, y, z to be whatever material it previously was. "..
1182 "Returns true if made a wedge, false if the cell remains a block "
1183 end
1184 if funcNameOrFunc == "SelectTerrainRegion" or funcNameOrFunc == t.SelectTerrainRegion then
1185 return "Function SelectTerrainRegion. " ..
1186 "Arguments: (regionToSelect, color, selectEmptyCells, selectionParent). " ..
1187 "Description: Selects all terrain via a series of selection boxes within the regionToSelect " ..
1188 "(this should be a region3 value). The selection box color is detemined by the color argument " ..
1189 "(should be a brickcolor value). SelectionParent is the parent that the selection model gets placed to (optional)." ..
1190 "SelectEmptyCells is bool, when true will select all cells in the " ..
1191 "region, otherwise we only select non-empty cells. Returns a function that can update the selection," ..
1192 "arguments to said function are a new region3 to select, and the adornment color (color arg is optional). " ..
1193 "Also returns a second function that takes no arguments and destroys the selection"
1194 end
1195 if funcNameOrFunc == "CreateSignal" or funcNameOrFunc == t.CreateSignal then
1196 return "Function CreateSignal. "..
1197 "Arguments: None. "..
1198 "Returns: The newly created Signal object. This object is identical to the RBXScriptSignal class "..
1199 "used for events in Objects, but is a Lua-side object so it can be used to create custom events in"..
1200 "Lua code. "..
1201 "Methods of the Signal object: :connect, :wait, :fire, :disconnect. "..
1202 "For more info you can pass the method name to the Help function, or view the wiki page "..
1203 "for this library. EG: Help('Signal:connect')."
1204 end
1205 if funcNameOrFunc == "Signal:connect" then
1206 return "Method Signal:connect. "..
1207 "Arguments: (function handler). "..
1208 "Return: A connection object which can be used to disconnect the connection to this handler. "..
1209 "Description: Connectes a handler function to this Signal, so that when |fire| is called the "..
1210 "handler function will be called with the arguments passed to |fire|."
1211 end
1212 if funcNameOrFunc == "Signal:wait" then
1213 return "Method Signal:wait. "..
1214 "Arguments: None. "..
1215 "Returns: The arguments passed to the next call to |fire|. "..
1216 "Description: This call does not return until the next call to |fire| is made, at which point it "..
1217 "will return the values which were passed as arguments to that |fire| call."
1218 end
1219 if funcNameOrFunc == "Signal:fire" then
1220 return "Method Signal:fire. "..
1221 "Arguments: Any number of arguments of any type. "..
1222 "Returns: None. "..
1223 "Description: This call will invoke any connected handler functions, and notify any waiting code "..
1224 "attached to this Signal to continue, with the arguments passed to this function. Note: The calls "..
1225 "to handlers are made asynchronously, so this call will return immediately regardless of how long "..
1226 "it takes the connected handler functions to complete."
1227 end
1228 if funcNameOrFunc == "Signal:disconnect" then
1229 return "Method Signal:disconnect. "..
1230 "Arguments: None. "..
1231 "Returns: None. "..
1232 "Description: This call disconnects all handlers attacched to this function, note however, it "..
1233 "does NOT make waiting code continue, as is the behavior of normal Roblox events. This method "..
1234 "can also be called on the connection object which is returned from Signal:connect to only "..
1235 "disconnect a single handler, as opposed to this method, which will disconnect all handlers."
1236 end
1237 if funcNameOrFunc == "Create" then
1238 return "Function Create. "..
1239 "Arguments: A table containing information about how to construct a collection of objects. "..
1240 "Returns: The constructed objects. "..
1241 "Descrition: Create is a very powerfull function, whose description is too long to fit here, and "..
1242 "is best described via example, please see the wiki page for a description of how to use it."
1243 end
1244 end
1245
1246 --------------------------------------------Documentation Ends----------------------------------------------------------
1247
1248 return t
1249
1250 end
1251 fake_module_scripts[script] = module_script
1252end
1253
1254
1255-- Scripts:
1256
1257local function NVVLL_fake_script() -- asdasdasdadadadsdddwdadda.gamerboiiii
1258 local script = Instance.new('LocalScript')
1259 local req = require
1260 local require = function(obj)
1261 local fake = fake_module_scripts[obj]
1262 if fake then
1263 return fake()
1264 end
1265 return req(obj)
1266 end
1267
1268 local b = game:GetService("TweenService")
1269 local a = require(game:GetService("ReplicatedStorage").RbxUtility)
1270 local z = a.Create
1271 local k = game:GetService("Players").LocalPlayer
1272 if k.Character == nil then
1273 while k.Character == nil do
1274 wait()
1275 end
1276 end
1277 PNAME = k.Name
1278 ZTfade = false
1279 ZT = false
1280 FatText = false
1281 MHIT = CFrame.new(0, 0, 0)
1282 MTARGET = nil
1283 Character = workspace["CloneCharacter"]
1284 Torso = Character.Torso
1285 Head = Character.Head
1286 Humanoid = workspace[PNAME]:FindFirstChildOfClass("Humanoid")
1287 LeftArm = Character["Left Arm"]
1288 LeftLeg = Character["Left Leg"]
1289 RightArm = Character["Right Arm"]
1290 RightLeg = Character["Right Leg"]
1291 RootPart = Character["HumanoidRootPart"]
1292 local j = "Idle"
1293 local g = 0
1294 local a = 0
1295 local A = 0
1296 local m = 1
1297 Animstep = 0
1298 WalkAnimMove = 0.1
1299 Combo = 0
1300 local w = false
1301 local e = Character.HumanoidRootPart:FindFirstChild("RootJoint")
1302 local d = Character.Torso:FindFirstChild("Neck")
1303 local p = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
1304 local o = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
1305 local v = 0
1306 local h = 0
1307 Effects = Instance.new("Folder", Character)
1308 Effects.Name = "Effects"
1309 it = Instance.new
1310 vt = Vector3.new
1311 cf = CFrame.new
1312 euler = CFrame.fromEulerAnglesXYZ
1313 angles = CFrame.Angles
1314 local x = CFrame.new
1315 mr = math.rad
1316 mememode = false
1317 IT = Instance.new
1318 CF = CFrame.new
1319 VT = Vector3.new
1320 RAD = math.rad
1321 C3 = Color3.new
1322 UD2 = UDim2.new
1323 BRICKC = BrickColor.new
1324 ANGLES = CFrame.Angles
1325 EULER = CFrame.fromEulerAnglesXYZ
1326 COS = math.cos
1327 ACOS = math.acos
1328 SIN = math.sin
1329 ASIN = math.asin
1330 ABS = math.abs
1331 MRANDOM = math.random
1332 FLOOR = math.floor
1333 local l = "http://www.roblox.com/asset/?id=1386866434"
1334 local y = it("Sound", Torso)
1335 local n = 1
1336 y.EmitterSize = 30
1337 local c = y:Clone()
1338 playsong = true
1339 y.SoundId = l
1340 if playsong == true then
1341 y:play()
1342 elseif playsong == false then
1343 y:stop()
1344 end
1345 lastsongpos = 0
1346 crosshair = Instance.new("BillboardGui", Character)
1347 crosshair.Size = UDim2.new(10, 0, 10, 0)
1348 crosshair.Enabled = false
1349 imgl = Instance.new("ImageLabel", crosshair)
1350 imgl.Position = UDim2.new(0, 0, 0, 0)
1351 imgl.Size = UDim2.new(1, 0, 1, 0)
1352 imgl.Image = "rbxassetid://578065407"
1353 imgl.BackgroundTransparency = 1
1354 imgl.ImageTransparency = .7
1355 imgl.ImageColor3 = Color3.new(1, 1, 1)
1356 crosshair.StudsOffset = Vector3.new(0, 0, -1)
1357 local a = 1544355717
1358 local a = 528589382
1359 local a = 376976397
1360 local a = 459523898
1361 local a = 424195979
1362 local a = 698824317
1363 local a = 874376217
1364 local a = 231917744
1365 local a = 168513088
1366 local a = 299058146
1367 if Character:FindFirstChild("Animate") then
1368 Character.Animate:Destroy()
1369 end
1370 function RemoveOutlines(a)
1371 a.TopSurface, a.BottomSurface, a.LeftSurface, a.RightSurface, a.FrontSurface, a.BackSurface = 10, 10, 10, 10, 10, 10
1372 end
1373 CFuncs = {
1374 Part = {
1375 Create = function(g, c, d, f, e, b, a)
1376 local a = z("Part")({
1377 Parent = g,
1378 Reflectance = d,
1379 Transparency = f,
1380 CanCollide = false,
1381 Locked = true,
1382 BrickColor = BrickColor.new(tostring(e)),
1383 Name = b,
1384 Size = a,
1385 Material = c
1386 })
1387 RemoveOutlines(a)
1388 return a
1389 end
1390 },
1391 Mesh = {
1392 Create = function(f, a, b, e, d, c)
1393 local a = z(f)({
1394 Parent = a,
1395 Offset = d,
1396 Scale = c
1397 })
1398 if f == "SpecialMesh" then
1399 a.MeshType = b
1400 a.MeshId = e
1401 end
1402 return a
1403 end
1404 },
1405 Mesh = {
1406 Create = function(f, a, b, d, c, e)
1407 local a = z(f)({
1408 Parent = a,
1409 Offset = c,
1410 Scale = e
1411 })
1412 if f == "SpecialMesh" then
1413 a.MeshType = b
1414 a.MeshId = d
1415 end
1416 return a
1417 end
1418 },
1419 Weld = {
1420 Create = function(b, e, d, a, c)
1421 local a = z("Weld")({
1422 Parent = b,
1423 Part0 = e,
1424 Part1 = d,
1425 C0 = a,
1426 C1 = c
1427 })
1428 return a
1429 end
1430 },
1431 Sound = {
1432 Create = function(a, b, d, c)
1433 coroutine.resume(coroutine.create(function()
1434 local a = z("Sound")({
1435 Volume = d,
1436 Pitch = c or 1,
1437 SoundId = "http://www.roblox.com/asset/?id="..a,
1438 Parent = b or workspace
1439 })
1440 wait()
1441 a:play()
1442 game:GetService("Debris"):AddItem(a, 6)
1443 end))
1444 end
1445 },
1446 ParticleEmitter = {
1447 Create = function(f, n, g, p, o, r, t, s, q, j, i, h, k, m, l, e, d, c, b, a)
1448 local a = z("ParticleEmitter")({
1449 Parent = f,
1450 Color = ColorSequence.new(n, g),
1451 LightEmission = p,
1452 Size = o,
1453 Texture = r,
1454 Transparency = t,
1455 ZOffset = s,
1456 Acceleration = q,
1457 Drag = j,
1458 LockedToPart = i,
1459 VelocityInheritance = h,
1460 EmissionDirection = k,
1461 Enabled = m,
1462 Lifetime = l,
1463 Rate = e,
1464 Rotation = d,
1465 RotSpeed = c,
1466 Speed = b,
1467 VelocitySpread = a
1468 })
1469 return a
1470 end
1471 }
1472 }
1473 coroutine.resume(coroutine.create(function()
1474 if Head:FindFirstChildOfClass("Decal") then
1475 local a = Head:FindFirstChildOfClass("Decal")
1476 a:Destroy()
1477 end
1478 end))
1479 Frame_Speed = 1 / 30
1480 ArtificialHB = Instance.new("BindableEvent", script)
1481 ArtificialHB.Name = "ArtificialHB"
1482 script:WaitForChild("ArtificialHB")
1483 frame = Frame_Speed
1484 tf = 0
1485 allowframeloss = false
1486 tossremainder = false
1487 lastframe = tick()
1488 script.ArtificialHB:Fire()
1489 game:GetService("RunService").Heartbeat:connect(function(b, a)
1490 tf = tf + b
1491 if tf >= frame then
1492 if allowframeloss then
1493 script.ArtificialHB:Fire()
1494 lastframe = tick()
1495 else
1496 for a = 1, math.floor(tf / frame) do
1497 script.ArtificialHB:Fire()
1498 end
1499 lastframe = tick()
1500 end
1501 if tossremainder then
1502 tf = 0
1503 else
1504 tf = tf - frame * math.floor(tf / frame)
1505 end
1506 end
1507 end)
1508 function Swait(a)
1509 if a == 0 or a == nil then
1510 ArtificialHB.Event:wait()
1511 else
1512 for a = 1, a do
1513 ArtificialHB.Event:wait()
1514 end
1515 end
1516 end
1517 so = function(c, d, b, a)
1518 CFuncs.Sound.Create(c, d, b, a)
1519 end
1520 function weld(a, b, d, c)
1521 local e = it("Weld")
1522 e.Parent = a
1523 e.Part0 = b
1524 e.Part1 = d
1525 e.C0 = c
1526 return e
1527 end
1528 rayCast = function(a, b, d, c)
1529 return game:service("Workspace"):FindPartOnRay(Ray.new(a, b.unit * (d or 999.999)), c)
1530 end
1531 function SetTween(f, d, e, a, c)
1532 local e = Enum.EasingStyle[e]
1533 local a = Enum.EasingDirection[a]
1534 local g = 1
1535 if w == true and mememode == true then
1536 g = 5
1537 end
1538 if f.Name == "Bullet" then
1539 g = 1
1540 end
1541 local a = TweenInfo.new(c / g, e, a, 0, false, 0)
1542 local c = d
1543 local a = b:Create(f, a, c)
1544 a:Play()
1545 end
1546 function GatherAllInstances(a, b)
1547 local d = {}
1548 local c = nil
1549 if b ~= nil then
1550 c = b
1551 end
1552 local function b(a, c)
1553 for a, a in pairs(a:GetChildren()) do
1554 if a ~= c then
1555 b(a, c)
1556 table.insert(d, a)
1557 end
1558 end
1559 end
1560 b(a, c)
1561 return d
1562 end
1563 ArmorParts = {}
1564 function Chat(b)
1565 if Head.Parent then
1566 pcall(function()
1567 if Head:FindFirstChild("Chat Gui") then
1568 Head['Chat Gui']:destroy()
1569 end
1570 local c = Instance.new('BillboardGui', Head)
1571 c.Name = "Chat Gui"
1572 c.ExtentsOffset = Vector3.new(0, 4, 0)
1573 c.Size = UDim2.new(0, 200, 0, 300)
1574 local a = Instance.new('Frame', c)
1575 a.BackgroundTransparency = 1
1576 a.Size = UDim2.new(1, 0, 1, 0)
1577 local d = Instance.new('TextLabel', a)
1578 d.BackgroundTransparency = 1
1579 d.Size = UDim2.new(1, 0, 1, 0)
1580 d.Font = 'ArialBold'
1581 d.Name = "ChatGui"
1582 d.FontSize = 'Size24'
1583 d.Text = ''
1584 d.TextColor3 = BrickColor.new("Really black").Color
1585 d.TextStrokeColor3 = Color3.new(1, 1, 1)
1586 d.TextStrokeTransparency = .5
1587 d.TextWrapped = true
1588 d.TextScaled = false
1589 delay(wait(), function()
1590 for a = 1, #b do
1591 d.Text = string.sub(b, 1, a)
1592 Swait()
1593 c.ExtentsOffset = Vector3.new(0, 4, 0)
1594 end
1595 Swait()
1596 SetTween(c, {
1597 ExtentsOffset = Vector3.new(0, 2, 0)
1598 }, "Back", "In", 1)
1599 SetTween(d, {
1600 TextTransparency = 1,
1601 TextStrokeTransparency = 1
1602 }, "Quad", "InOut", 1)
1603 wait(1)
1604 c:remove()
1605 end)
1606 end)
1607 else
1608 end
1609 end
1610 k.Chatted:connect(function(a)
1611 if FatText == true then
1612 Chat(a)
1613 end
1614 end)
1615 local a = z("Texture")({
1616 Texture = "http://www.roblox.com/asset/?id=1693385655",
1617 Color3 = Color3.new(163 / 255, 162 / 255, 165 / 255)
1618 })
1619 function AddStoneTexture(c)
1620 coroutine.resume(coroutine.create(function()
1621 for b = 0, 6, 1 do
1622 local a = a:Clone()
1623 a.Face = b
1624 a.Parent = c
1625 end
1626 end))
1627 end
1628 New = function(a, b, c, d)
1629 local e = Instance.new(a)
1630 for b, a in pairs(d or {}) do
1631 e[b] = a
1632 end
1633 e.Parent = b
1634 e.Name = c
1635 return e
1636 end
1637 function Tran(a)
1638 local b = ""
1639 if a == "1" then
1640 b = "a"
1641 elseif a == "2" then
1642 b = "b"
1643 elseif a == "3" then
1644 b = "c"
1645 elseif a == "4" then
1646 b = "d"
1647 elseif a == "5" then
1648 b = "e"
1649 elseif a == "6" then
1650 b = "f"
1651 elseif a == "7" then
1652 b = "g"
1653 elseif a == "8" then
1654 b = "h"
1655 elseif a == "9" then
1656 b = "i"
1657 elseif a == "10" then
1658 b = "j"
1659 elseif a == "11" then
1660 b = "k"
1661 elseif a == "12" then
1662 b = "l"
1663 elseif a == "13" then
1664 b = "m"
1665 elseif a == "14" then
1666 b = "n"
1667 elseif a == "15" then
1668 b = "o"
1669 elseif a == "16" then
1670 b = "p"
1671 elseif a == "17" then
1672 b = "q"
1673 elseif a == "18" then
1674 b = "r"
1675 elseif a == "19" then
1676 b = "s"
1677 elseif a == "20" then
1678 b = "t"
1679 elseif a == "21" then
1680 b = "u"
1681 elseif a == "22" then
1682 b = "v"
1683 elseif a == "23" then
1684 b = "w"
1685 elseif a == "24" then
1686 b = "x"
1687 elseif a == "25" then
1688 b = "y"
1689 elseif a == "26" then
1690 b = "z"
1691 elseif a == "27" then
1692 b = "_"
1693 elseif a == "28" then
1694 b = "0"
1695 elseif a == "29" then
1696 b = "1"
1697 elseif a == "30" then
1698 b = "2"
1699 elseif a == "31" then
1700 b = "3"
1701 elseif a == "32" then
1702 b = "4"
1703 elseif a == "33" then
1704 b = "5"
1705 elseif a == "34" then
1706 b = "6"
1707 elseif a == "35" then
1708 b = "7"
1709 elseif a == "36" then
1710 b = "8"
1711 elseif a == "37" then
1712 b = "9"
1713 end
1714 return b
1715 end
1716 function MaybeOk(b, a)
1717 local d = ""
1718 if b == 1 then
1719 local e = ""
1720 local g = a
1721 local f = ""
1722 local b = 0
1723 local c = 0
1724 delay(wait(0), function()
1725 for d = 1, #g do
1726 if string.sub(g, 0 + d, d) == "," then
1727 local a = string.sub(g, c, d - 1)
1728 local a = Tran(string.sub(g, c, d - 1))
1729 b = b + 1
1730 e = e..a
1731 c = d + 1
1732 f = ""
1733 end
1734 f = string.sub(g, 1, d)
1735 wait()
1736 end
1737 d = e
1738 for a = 1, #f do
1739 f = string.sub(g, -1, a)
1740 end
1741 end)
1742 elseif b == 2 then
1743 print("fat")
1744 end
1745 while d == "" do
1746 wait()
1747 end
1748 return d
1749 end
1750 function CreateMesh2(e, c, d, f, g, a, b)
1751 local h = IT(e)
1752 if e == "SpecialMesh" then
1753 h.MeshType = d
1754 if f ~= "nil" and f ~= "" then
1755 h.MeshId = "http://www.roblox.com/asset/?id="..f
1756 end
1757 if g ~= "nil" and g ~= "" then
1758 h.TextureId = "http://www.roblox.com/asset/?id="..g
1759 end
1760 end
1761 h.Offset = b or VT(0, 0, 0)
1762 h.Scale = a
1763 h.Parent = c
1764 return h
1765 end
1766 function CreatePart2(i, g, h, f, e, c, b, d, a)
1767 local j = IT("Part")
1768 j.formFactor = i
1769 j.Reflectance = f
1770 j.Transparency = e
1771 j.CanCollide = false
1772 j.Locked = true
1773 j.Anchored = true
1774 if a == false then
1775 j.Anchored = false
1776 end
1777 j.BrickColor = BRICKC(tostring(c))
1778 j.Name = b
1779 j.Size = d
1780 j.Position = Torso.Position
1781 j.Material = h
1782 j:BreakJoints()
1783 j.Parent = g
1784 return j
1785 end
1786 local f = IT("Sound")
1787 function CreateSound2(a, b, c, d, e)
1788 local g = nil
1789 coroutine.resume(coroutine.create(function()
1790 g = f:Clone()
1791 g.Parent = b
1792 g.Volume = c
1793 g.Pitch = d
1794 g.SoundId = "http://www.roblox.com/asset/?id="..a
1795 g:play()
1796 if e == true then
1797 g.Looped = true
1798 else
1799 repeat
1800 wait(1)
1801 until g.Playing == false
1802 g:remove()
1803 end
1804 end))
1805 return g
1806 end
1807 function WACKYEFFECT(i)
1808 local q = (i.EffectType or "Sphere")
1809 local r = (i.Size or VT(1, 1, 1))
1810 local k = (i.Size2 or VT(0, 0, 0))
1811 local j = (i.Transparency or 0)
1812 local f = (i.Transparency2 or 1)
1813 local n = (i.CFrame or Torso.CFrame)
1814 local o = (i.MoveToPos or nil)
1815 local e = (i.RotationX or 0)
1816 local d = (i.RotationY or 0)
1817 local c = (i.RotationZ or 0)
1818 local b = (i.Material or "Neon")
1819 local a = (i.Color or C3(1, 1, 1))
1820 local p = (i.Time or 45)
1821 local g = (i.SoundID or nil)
1822 local h = (i.SoundPitch or nil)
1823 local i = (i.SoundVolume or nil)
1824 coroutine.resume(coroutine.create(function()
1825 local l = false
1826 local m = nil
1827 local s = CreatePart2(3, Effects, b, 0, j, BRICKC("Pearl"), "Effect", VT(1, 1, 1), true)
1828 if g ~= nil and h ~= nil and i ~= nil then
1829 l = true
1830 m = CreateSound2(g, s, i, h, false)
1831 end
1832 s.Color = a
1833 local g = nil
1834 if q == "Sphere" then
1835 g = CreateMesh2("SpecialMesh", s, "Sphere", "", "", r, VT(0, 0, 0))
1836 elseif q == "Cylinder" then
1837 g = CreateMesh2("SpecialMesh", s, "Cylinder", "", "", r, VT(0, 0, 0))
1838 elseif q == "Block" then
1839 g = IT("BlockMesh", s)
1840 g.Scale = VT(r.X, r.X, r.X)
1841 elseif q == "Cube" then
1842 g = IT("BlockMesh", s)
1843 g.Scale = VT(r.X, r.X, r.X)
1844 elseif q == "Wave" then
1845 g = CreateMesh2("SpecialMesh", s, "FileMesh", "20329976", "", r, VT(0, 0, -r.X / 8))
1846 elseif q == "Ring" then
1847 g = CreateMesh2("SpecialMesh", s, "FileMesh", "559831844", "", VT(r.X, r.X, 0.1), VT(0, 0, 0))
1848 elseif q == "Slash" then
1849 g = CreateMesh2("SpecialMesh", s, "FileMesh", "662586858", "", VT(r.X / 10, 0, r.X / 10), VT(0, 0, 0))
1850 elseif q == "Round Slash" then
1851 g = CreateMesh2("SpecialMesh", s, "FileMesh", "662585058", "", VT(r.X / 10, 0, r.X / 10), VT(0, 0, 0))
1852 elseif q == "Swirl" then
1853 g = CreateMesh2("SpecialMesh", s, "FileMesh", "1051557", "", r, VT(0, 0, 0))
1854 elseif q == "Skull" then
1855 g = CreateMesh2("SpecialMesh", s, "FileMesh", "4770583", "", r, VT(0, 0, 0))
1856 elseif q == "Crystal" then
1857 g = CreateMesh2("SpecialMesh", s, "FileMesh", "9756362", "", r, VT(0, 0, 0))
1858 elseif q == "Crown" then
1859 g = CreateMesh2("SpecialMesh", s, "FileMesh", "173770780", "", r, VT(0, 0, 0))
1860 end
1861 if g ~= nil then
1862 local a = nil
1863 if o ~= nil then
1864 a = (n.p - o).Magnitude / p
1865 end
1866 local a = r - k
1867 local b = j - f
1868 if q == "Block" then
1869 SetTween(s, {
1870 CFrame = n * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)))
1871 }, "Linear", "InOut", p / 60)
1872 else
1873 SetTween(s, {
1874 CFrame = n
1875 }, "Linear", "InOut", 0)
1876 end
1877 wait()
1878 SetTween(s, {
1879 Transparency = s.Transparency - b
1880 }, "Linear", "InOut", p / 60)
1881 if q == "Block" then
1882 SetTween(s, {
1883 CFrame = n * ANGLES(RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(0, 360)))
1884 }, "Linear", "InOut", 0)
1885 else
1886 SetTween(s, {
1887 CFrame = s.CFrame * ANGLES(RAD(e), RAD(d), RAD(c))
1888 }, "Linear", "InOut", 0)
1889 end
1890 if o ~= nil then
1891 local a = s.Orientation
1892 SetTween(s, {
1893 CFrame = CF(o)
1894 }, "Linear", "InOut", p / 60)
1895 SetTween(s, {
1896 Orientation = a
1897 }, "Linear", "InOut", p / 60)
1898 end
1899 g.Scale = g.Scale - a / p
1900 SetTween(g, {
1901 Scale = k
1902 }, "Linear", "InOut", p / 60)
1903 if q == "Wave" then
1904 SetTween(g, {
1905 Offset = VT(0, 0, -g.Scale.X / 8)
1906 }, "Linear", "InOut", p / 60)
1907 end
1908 for a = 1, p + 1 do
1909 wait(.05)
1910 if q == "Block" then
1911 else
1912 end
1913 if o ~= nil then
1914 local a = s.Orientation
1915 end
1916 end
1917 game:GetService("Debris"):AddItem(s, 15)
1918 if l == false then
1919 s:remove()
1920 else
1921 m.Stopped:Connect(function()
1922 s:remove()
1923 end)
1924 end
1925 else
1926 if l == false then
1927 s:remove()
1928 else
1929 repeat
1930 wait()
1931 until m.Playing == false
1932 s:remove()
1933 end
1934 end
1935 end))
1936 end
1937 function CreatePart(f, g, c, b, d, e, a)
1938 local a = z("Part"){
1939 Parent = f,
1940 Reflectance = c,
1941 Transparency = b,
1942 CanCollide = false,
1943 Locked = true,
1944 BrickColor = BrickColor.new(tostring(d)),
1945 Name = e,
1946 Size = a,
1947 Material = g
1948 }
1949 RemoveOutlines(a)
1950 return a
1951 end
1952 local i = z("ParticleEmitter"){
1953 Color = ColorSequence.new(Color3.new(1, 1, 1), Color3.new(170 / 255, 255 / 255, 255 / 255)),
1954 Transparency = NumberSequence.new({
1955 NumberSequenceKeypoint.new(0, 1),
1956 NumberSequenceKeypoint.new(.75, .4),
1957 NumberSequenceKeypoint.new(1, 1)
1958 }),
1959 Size = NumberSequence.new({
1960 NumberSequenceKeypoint.new(0, .5),
1961 NumberSequenceKeypoint.new(1, .0)
1962 }),
1963 Texture = "rbxassetid://241922778",
1964 Lifetime = NumberRange.new(0.55, 0.95),
1965 Rate = 100,
1966 VelocitySpread = 180,
1967 Rotation = NumberRange.new(0),
1968 RotSpeed = NumberRange.new(-200, 200),
1969 Speed = NumberRange.new(8.0),
1970 LightEmission = 1,
1971 LockedToPart = false,
1972 Acceleration = Vector3.new(0, 0, 0),
1973 EmissionDirection = "Top",
1974 Drag = 4,
1975 Enabled = false
1976 }
1977 local a = z("ParticleEmitter"){
1978 Color = ColorSequence.new(Color3.new(1, 1, 1), Color3.new(1, 1, 1)),
1979 Transparency = NumberSequence.new({
1980 NumberSequenceKeypoint.new(0, 1),
1981 NumberSequenceKeypoint.new(0.1, 0),
1982 NumberSequenceKeypoint.new(0.3, 0),
1983 NumberSequenceKeypoint.new(0.5, .2),
1984 NumberSequenceKeypoint.new(1, 1)
1985 }),
1986 Size = NumberSequence.new({
1987 NumberSequenceKeypoint.new(0, 0),
1988 NumberSequenceKeypoint.new(.15, 1.5),
1989 NumberSequenceKeypoint.new(.75, 1.5),
1990 NumberSequenceKeypoint.new(1, 0)
1991 }),
1992 Texture = "rbxassetid://936193661",
1993 Lifetime = NumberRange.new(1.5),
1994 Rate = 100,
1995 VelocitySpread = 0,
1996 Rotation = NumberRange.new(0),
1997 RotSpeed = NumberRange.new(-10, 10),
1998 Speed = NumberRange.new(0),
1999 LightEmission = .25,
2000 LockedToPart = true,
2001 Acceleration = Vector3.new(0, -0, 0),
2002 EmissionDirection = "Top",
2003 Drag = 4,
2004 ZOffset = 1,
2005 Enabled = false
2006 }
2007 Damagefunc = function(j, m, e, b, f, l, g, a, d, c)
2008 if m.Parent == nil then
2009 return
2010 end
2011 local n = m.Parent:FindFirstChildOfClass("Humanoid")
2012 for a, a in pairs(m.Parent:children()) do
2013 if a:IsA("Humanoid") then
2014 if n.Health > 0.0001 then
2015 n = a
2016 else
2017 end
2018 end
2019 end
2020 if n == nil then
2021 return
2022 elseif n ~= nil and n.Health < 0.001 then
2023 return
2024 elseif n ~= nil and n.Parent:FindFirstChild("Fly away") then
2025 return
2026 end
2027 coroutine.resume(coroutine.create(function()
2028 if n.Health > 9999999 and e < 9999 and l ~= "IgnoreType" and (n.Parent:FindFirstChild("Torso") or n.Parent:FindFirstChild("UpperTorso")) and not n.Parent:FindFirstChild("Fly away") then
2029 local a = Instance.new("Model", n.Parent)
2030 a.Name = "Fly away"
2031 game:GetService("Debris"):AddItem(a, 2.5)
2032 for a, a in pairs(n.Parent:children()) do
2033 if a:IsA("BasePart") and a.Parent:FindFirstChildOfClass("Humanoid") then
2034 a.Anchored = true
2035 end
2036 end
2037 wait(.25)
2038 if n.Parent:FindFirstChildOfClass("Body Colors") then
2039 n.Parent:FindFirstChildOfClass("Body Colors"):Destroy()
2040 end
2041 local b = n.Parent:FindFirstChild("Torso") or n.Parent:FindFirstChild("UpperTorso")
2042 coroutine.resume(coroutine.create(function()
2043 local d = Instance.new("Part")
2044 d.Reflectance = 0
2045 d.Transparency = 1
2046 d.CanCollide = false
2047 d.Locked = true
2048 d.Anchored = true
2049 d.BrickColor = BrickColor.new("Really blue")
2050 d.Name = "YourGone"
2051 d.Size = Vector3.new()
2052 d.Material = "SmoothPlastic"
2053 d:BreakJoints()
2054 d.Parent = b
2055 d.CFrame = b.CFrame
2056 local c = Instance.new("ParticleEmitter")
2057 c.Parent = d
2058 c.Acceleration = Vector3.new(0, 0, 0)
2059 c.Size = NumberSequence.new({
2060 NumberSequenceKeypoint.new(0, 10),
2061 NumberSequenceKeypoint.new(1, .0)
2062 })
2063 c.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(1, 0, 0))
2064 c.Lifetime = NumberRange.new(0.55, 0.95)
2065 c.Transparency = NumberSequence.new({
2066 NumberSequenceKeypoint.new(0, 1),
2067 NumberSequenceKeypoint.new(.25, .0),
2068 NumberSequenceKeypoint.new(1, 1)
2069 })
2070 c.Speed = NumberRange.new(0, 0.0)
2071 c.ZOffset = 2
2072 c.Texture = "rbxassetid://243660364"
2073 c.RotSpeed = NumberRange.new(-0, 0)
2074 c.Rotation = NumberRange.new(-180, 180)
2075 c.Enabled = false
2076 game:GetService("Debris"):AddItem(d, 3)
2077 for a = 0, 2, 1 do
2078 c:Emit(1)
2079 so("1448044156", b, 2, 1)
2080 n.Parent:BreakJoints()
2081 d.CFrame = b.CFrame
2082 for a, b in pairs(n.Parent:children()) do
2083 if b:IsA("BasePart") and b.Parent:FindFirstChildOfClass("Humanoid") then
2084 b.Anchored = false
2085 if b:FindFirstChildOfClass("SpecialMesh") then
2086 end
2087 if b:FindFirstChildOfClass("Decal") and b.Name == "face" then
2088 end
2089 local a = z("BodyVelocity")({
2090 P = 500,
2091 maxForce = Vector3.new(1000, 1000, 1000),
2092 velocity = Vector3.new(math.random(-10, 10), 4, math.random(-10, 10))
2093 })
2094 a.Parent = b
2095 game:GetService("Debris"):AddItem(a, math.random(50, 100) / 1000)
2096 end
2097 end
2098 wait(.2)
2099 end
2100 wait(.1)
2101 c:Emit(3)
2102 so("1448044156", b, 2, .8)
2103 n.Parent:BreakJoints()
2104 d.CFrame = b.CFrame
2105 for a, b in pairs(n.Parent:children()) do
2106 if b:IsA("BasePart") and b.Parent:FindFirstChildOfClass("Humanoid") then
2107 b.Anchored = false
2108 if b:FindFirstChildOfClass("SpecialMesh") then
2109 end
2110 if b:FindFirstChildOfClass("Decal") and b.Name == "face" then
2111 end
2112 local a = z("BodyVelocity")({
2113 P = 500,
2114 maxForce = Vector3.new(1000, 1000, 1000),
2115 velocity = Vector3.new(math.random(-10, 10), 4, math.random(-10, 10))
2116 })
2117 a.Parent = b
2118 game:GetService("Debris"):AddItem(a, math.random(100, 200) / 1000)
2119 end
2120 end
2121 end))
2122 wait(.1)
2123 end
2124 end))
2125 if n ~= nil and m.Parent ~= Character and m.Parent:FindFirstChild("Torso") or m.Parent:FindFirstChild("UpperTorso") ~= nil then
2126 if m.Parent:findFirstChild("DebounceHit") ~= nil and m.Parent.DebounceHit.Value == true then
2127 return
2128 end
2129 local h = z("ObjectValue")({
2130 Name = "creator",
2131 Value = game:service("Players").LocalPlayer,
2132 Parent = n
2133 })
2134 game:GetService("Debris"):AddItem(h, 0.5)
2135 if d ~= nil and c ~= nil then
2136 so(d, m, 1, c)
2137 end
2138 local c = math.random(e, b)
2139 local b = false
2140 local d = m.Parent:findFirstChild("Block")
2141 if d ~= nil and d.className == "IntValue" and d.Value > 0 then
2142 b = true
2143 d.Value = d.Value - 1
2144 print(d.Value)
2145 end
2146 if b == false then
2147 n.Health = n.Health - c
2148 ShowDamage(j.CFrame * CFrame.new(0, 0, j.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -c, 2.5, Color3.new(0, 0, 0))
2149 else
2150 n.Health = n.Health - c / 2
2151 ShowDamage(j.CFrame * CFrame.new(0, 0, j.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -c, 2.5, Color3.new(0, 0, 0))
2152 end
2153 if l == "Knockdown" then
2154 local a = n
2155 a.PlatformStand = true
2156 coroutine.resume(coroutine.create(function(a)
2157 wait(.2)
2158 a.PlatformStand = false
2159 end), a)
2160 local b = n.Parent:FindFirstChild("Torso") or n.Parent:FindFirstChild("UpperTorso")
2161 local a = m.Position - (g.Position + Vector3.new(0, 0, 0)).unit
2162 local b = z("BodyVelocity")({
2163 P = 500,
2164 maxForce = Vector3.new(math.huge, 0, math.huge),
2165 velocity = CFrame.new(j.Position, b.Position).lookVector * f,
2166 Parent = m
2167 })
2168 local a = z("BodyAngularVelocity")({
2169 P = 3000,
2170 maxTorque = Vector3.new(5000, 5000, 5000) * 50,
2171 angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
2172 Parent = m
2173 })
2174 game:GetService("Debris"):AddItem(b, .2)
2175 game:GetService("Debris"):AddItem(a, 0.2)
2176 elseif l == "Knockdown2" then
2177 local a = n
2178 a.PlatformStand = true
2179 coroutine.resume(coroutine.create(function(a)
2180 Combo = 1
2181 wait(.2)
2182 a.PlatformStand = false
2183 end), a)
2184 local a = m.Position - (g.Position + Vector3.new(0, 0, 0)).unit
2185 local b = z("BodyVelocity")({
2186 P = 500,
2187 maxForce = Vector3.new(math.huge, 0, math.huge),
2188 velocity = CFrame.new(j.Position, g.Position).lookVector * f
2189 })
2190 local a = z("BodyAngularVelocity")({
2191 P = 3000,
2192 maxTorque = Vector3.new(5000, 5000, 5000) * 50,
2193 angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
2194 Parent = m
2195 })
2196 game:GetService("Debris"):AddItem(b, 0.2)
2197 game:GetService("Debris"):AddItem(a, 0.2)
2198 local a = z("BodyVelocity")({
2199 velocity = Vector3.new(0, 60, 0),
2200 P = 5000,
2201 maxForce = Vector3.new(8000, 12000, 8000),
2202 Parent = RootPart
2203 })
2204 game:GetService("Debris"):AddItem(a, 0.1)
2205 elseif l == "Normal" then
2206 local b = z("BodyVelocity")({
2207 P = 500,
2208 maxForce = Vector3.new(math.huge, 0, math.huge),
2209 velocity = CFrame.new(j.Position, g.Position).lookVector * f
2210 })
2211 if f > 0 then
2212 local a = m.Parent:FindFirstChild("Torso") or m.Parent:FindFirstChild("UpperTorso")
2213 b.Parent = a
2214 end
2215 game:GetService("Debris"):AddItem(b, 0.25)
2216 elseif l == "Instakill" then
2217 coroutine.resume(coroutine.create(function()
2218 if (n.Parent:FindFirstChild("Torso") or n.Parent:FindFirstChild("UpperTorso")) and not n.Parent:FindFirstChild("Fly away") then
2219 local a = Instance.new("Model", n.Parent)
2220 a.Name = "Fly away"
2221 game:GetService("Debris"):AddItem(a, 2.5)
2222 for a, a in pairs(n.Parent:children()) do
2223 if a:IsA("BasePart") and a.Parent:FindFirstChildOfClass("Humanoid") then
2224 a.Anchored = true
2225 end
2226 end
2227 wait(.25)
2228 if n.Parent:FindFirstChildOfClass("Body Colors") then
2229 n.Parent:FindFirstChildOfClass("Body Colors"):Destroy()
2230 end
2231 local b = n.Parent:FindFirstChild("Torso") or n.Parent:FindFirstChild("UpperTorso")
2232 coroutine.resume(coroutine.create(function()
2233 local d = Instance.new("Part")
2234 d.Reflectance = 0
2235 d.Transparency = 1
2236 d.CanCollide = false
2237 d.Locked = true
2238 d.Anchored = true
2239 d.BrickColor = BrickColor.new("Really blue")
2240 d.Name = "YourGone"
2241 d.Size = Vector3.new()
2242 d.Material = "SmoothPlastic"
2243 d:BreakJoints()
2244 d.Parent = b
2245 d.CFrame = b.CFrame
2246 local c = Instance.new("ParticleEmitter")
2247 c.Parent = d
2248 c.Acceleration = Vector3.new(0, 0, 0)
2249 c.Size = NumberSequence.new({
2250 NumberSequenceKeypoint.new(0, 10),
2251 NumberSequenceKeypoint.new(1, .0)
2252 })
2253 c.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(1, 0, 0))
2254 c.Lifetime = NumberRange.new(0.55, 0.95)
2255 c.Transparency = NumberSequence.new({
2256 NumberSequenceKeypoint.new(0, 1),
2257 NumberSequenceKeypoint.new(.25, .0),
2258 NumberSequenceKeypoint.new(1, 1)
2259 })
2260 c.Speed = NumberRange.new(0, 0.0)
2261 c.ZOffset = 2
2262 c.Texture = "rbxassetid://243660364"
2263 c.RotSpeed = NumberRange.new(-0, 0)
2264 c.Rotation = NumberRange.new(-180, 180)
2265 c.Enabled = false
2266 game:GetService("Debris"):AddItem(d, 3)
2267 for a = 0, 2, 1 do
2268 c:Emit(1)
2269 so("1448044156", b, 2, 1)
2270 n.Parent:BreakJoints()
2271 d.CFrame = b.CFrame
2272 for a, b in pairs(n.Parent:children()) do
2273 if b:IsA("BasePart") and b.Parent:FindFirstChildOfClass("Humanoid") then
2274 b.Anchored = false
2275 if b:FindFirstChildOfClass("SpecialMesh") then
2276 end
2277 if b:FindFirstChildOfClass("Decal") and b.Name == "face" then
2278 end
2279 local a = z("BodyVelocity")({
2280 P = 500,
2281 maxForce = Vector3.new(1000, 1000, 1000),
2282 velocity = Vector3.new(math.random(-10, 10), 4, math.random(-10, 10))
2283 })
2284 a.Parent = b
2285 game:GetService("Debris"):AddItem(a, math.random(50, 100) / 1000)
2286 end
2287 end
2288 wait(.2)
2289 end
2290 wait(.1)
2291 c:Emit(3)
2292 so("1448044156", b, 2, .8)
2293 n.Parent:BreakJoints()
2294 d.CFrame = b.CFrame
2295 for a, b in pairs(n.Parent:children()) do
2296 if b:IsA("BasePart") and b.Parent:FindFirstChildOfClass("Humanoid") then
2297 b.Anchored = false
2298 if b:FindFirstChildOfClass("SpecialMesh") then
2299 end
2300 if b:FindFirstChildOfClass("Decal") and b.Name == "face" then
2301 end
2302 local a = z("BodyVelocity")({
2303 P = 500,
2304 maxForce = Vector3.new(1000, 1000, 1000),
2305 velocity = Vector3.new(math.random(-10, 10), 4, math.random(-10, 10))
2306 })
2307 a.Parent = b
2308 game:GetService("Debris"):AddItem(a, math.random(100, 200) / 1000)
2309 end
2310 end
2311 end))
2312 wait(.1)
2313 end
2314 end))
2315 elseif l == "HPSteal" then
2316 Humanoid.Health = Humanoid.Health + c
2317 local a = n
2318 a.PlatformStand = true
2319 coroutine.resume(coroutine.create(function(a)
2320 Combo = 1
2321 wait(.2)
2322 a.PlatformStand = false
2323 end), a)
2324 local a = m.Position - (g.Position + Vector3.new(0, 0, 0)).unit
2325 local b = z("BodyVelocity")({
2326 P = 500,
2327 maxForce = Vector3.new(math.huge, 0, math.huge),
2328 velocity = CFrame.new(j.Position, g.Position).lookVector * f
2329 })
2330 local a = z("BodyAngularVelocity")({
2331 P = 3000,
2332 maxTorque = Vector3.new(5000, 5000, 5000) * 50,
2333 angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
2334 Parent = m
2335 })
2336 game:GetService("Debris"):AddItem(b, 0.2)
2337 game:GetService("Debris"):AddItem(a, 0.2)
2338 local a = z("BodyVelocity")({
2339 velocity = Vector3.new(0, 60, 0),
2340 P = 5000,
2341 maxForce = Vector3.new(8000, 12000, 8000),
2342 Parent = RootPart
2343 })
2344 game:GetService("Debris"):AddItem(a, 0.1)
2345 elseif l == "Impale" then
2346 CFuncs.Sound.Create("http://www.roblox.com/asset/?id=268249319", Spike, .8, 2)
2347 m.Parent.Humanoid.PlatformStand = true
2348 wait(1)
2349 m.Parent.Humanoid.PlatformStand = false
2350 elseif l == "IgnoreType" then
2351 elseif l == "Up" then
2352 local a = z("BodyVelocity")({
2353 velocity = Vector3.new(0, 20, 0),
2354 P = 5000,
2355 maxForce = Vector3.new(8000, 8000, 8000),
2356 Parent = m
2357 })
2358 game:GetService("Debris"):AddItem(a, 0.1)
2359 local a = z("BodyVelocity")({
2360 velocity = Vector3.new(0, 20, 0),
2361 P = 5000,
2362 maxForce = Vector3.new(8000, 8000, 8000),
2363 Parent = m
2364 })
2365 game:GetService("Debris"):AddItem(a, .1)
2366 elseif l == "Stone" then
2367 local a = false
2368 local d = nil
2369 d = m.Parent
2370 coroutine.resume(coroutine.create(function()
2371 if d:FindFirstChildOfClass("Humanoid") then
2372 a = true
2373 local a = d:FindFirstChild("Torso") or d:FindFirstChild("UpperTorso")
2374 local c = Instance.new("Part")
2375 c.Reflectance = 0
2376 c.Transparency = 1
2377 c.CanCollide = false
2378 c.Locked = true
2379 c.Anchored = true
2380 c.BrickColor = BrickColor.new("Really blue")
2381 c.Name = "YourGone"
2382 c.Size = Vector3.new()
2383 c.Material = "SmoothPlastic"
2384 c:BreakJoints()
2385 c.Parent = workspace
2386 c.CFrame = a.CFrame
2387 local b = i:Clone()
2388 b.Parent = c
2389 b.Acceleration = Vector3.new(0, 0, 0)
2390 b:Emit(20)
2391 b.Size = NumberSequence.new({
2392 NumberSequenceKeypoint.new(0, (a.Size.Y * 3)),
2393 NumberSequenceKeypoint.new(1, 0)
2394 })
2395 b.Color = ColorSequence.new(Color3.new(.5, .5, 1), Color3.new(170 / 255, 255 / 255, 255 / 255))
2396 b.Lifetime = NumberRange.new(.2, .5)
2397 b.Transparency = NumberSequence.new({
2398 NumberSequenceKeypoint.new(0, 1),
2399 NumberSequenceKeypoint.new(.1, .5),
2400 NumberSequenceKeypoint.new(1, 1)
2401 })
2402 b.Speed = NumberRange.new(0)
2403 b.ZOffset = 10
2404 b.RotSpeed = NumberRange.new(-100, 100)
2405 b.Rotation = NumberRange.new(-0, 0)
2406 b.Texture = "rbxassetid://288978836"
2407 game:GetService("Debris"):AddItem(c, 3)
2408 so("331666014 ", Torso, .5, 1.2)
2409 so("588706798 ", Torso, 1, 0.8)
2410 local c = z("Model"){
2411 Parent = workspace,
2412 Name = "Statue of "..d.Name
2413 }
2414 for a, a in pairs(GatherAllInstances(d)) do
2415 coroutine.resume(coroutine.create(function()
2416 if a:IsA("CharacterMesh") then
2417 local b = z("SpecialMesh"){
2418 Parent = nil,
2419 MeshType = "FileMesh",
2420 Scale = vt(1, 1, 1),
2421 Offset = vt(0, 0, 0)
2422 }
2423 b.MeshId = "http://www.roblox.com/asset/?id="..a.MeshId
2424 coroutine.resume(coroutine.create(function()
2425 if a.BodyPart == Enum.BodyPart.Torso then
2426 b.Parent = d:FindFirstChild("Torso")
2427 b.Scale = Vector3.new(d:FindFirstChild("Torso").Size.Z, d:FindFirstChild("Torso").Size.Z, d:FindFirstChild("Torso").Size.Z)
2428 end
2429 if a.BodyPart == Enum.BodyPart.RightArm then
2430 b.Parent = d["Right Arm"]
2431 b.Scale = Vector3.new(d["Right Arm"].Size.Z, d["Right Arm"].Size.Z, d["Right Arm"].Size.Z)
2432 end
2433 if a.BodyPart == Enum.BodyPart.LeftArm then
2434 b.Parent = d["Left Arm"]
2435 b.Scale = Vector3.new(d["Left Arm"].Size.Z, d["Left Arm"].Size.Z, d["Left Arm"].Size.Z)
2436 end
2437 if a.BodyPart == Enum.BodyPart.RightLeg then
2438 b.Parent = d["Right Leg"]
2439 b.Scale = Vector3.new(d["Right Leg"].Size.Z, d["Right Leg"].Size.Z, d["Right Leg"].Size.Z)
2440 end
2441 if a.BodyPart == Enum.BodyPart.LeftLeg then
2442 b.Parent = d["Left Leg"]
2443 b.Scale = Vector3.new(d["Left Leg"].Size.Z, d["Left Leg"].Size.Z, d["Left Leg"].Size.Z)
2444 end
2445 end))
2446 end
2447 end))
2448 end
2449 for a, d in pairs(GatherAllInstances(d)) do
2450 coroutine.resume(coroutine.create(function()
2451 if d:isA("BasePart") and d.Name == "HumanoidRootPart" then
2452 end
2453 if d:isA("BasePart") and d.Transparency < 0.1 then
2454 local b = nil
2455 coroutine.resume(coroutine.create(function()
2456 if d.ClassName == "Part" then
2457 b = z("Part"){
2458 Parent = c,
2459 Material = "Concrete",
2460 Reflectance = 0,
2461 Transparency = 0,
2462 Name = d.Name,
2463 Size = d.Size,
2464 Locked = true,
2465 CanCollide = true,
2466 CFrame = d.CFrame,
2467 Anchored = true
2468 }
2469 b.Shape = d.Shape
2470 end
2471 if d.ClassName == "WedgePart" then
2472 b = z("WedgePart"){
2473 Parent = c,
2474 Material = "Concrete",
2475 Reflectance = 0,
2476 Transparency = 0,
2477 Name = d.Name,
2478 Size = d.Size,
2479 Locked = true,
2480 CanCollide = true,
2481 CFrame = d.CFrame,
2482 Anchored = true
2483 }
2484 end
2485 if d.ClassName == "CornerWedgePart" then
2486 b = z("CornerWedgePart"){
2487 Parent = c,
2488 Material = "Concrete",
2489 Reflectance = 0,
2490 Transparency = 0,
2491 Name = d.Name,
2492 Size = d.Size,
2493 Locked = true,
2494 CanCollide = true,
2495 CFrame = d.CFrame,
2496 Anchored = true
2497 }
2498 end
2499 if d.ClassName == "TrussPart" then
2500 b = z("TrussPart"){
2501 Parent = c,
2502 Material = "Concrete",
2503 Reflectance = 0,
2504 Transparency = 0,
2505 Name = d.Name,
2506 Size = d.Size,
2507 Locked = true,
2508 CanCollide = true,
2509 CFrame = d.CFrame,
2510 Anchored = true
2511 }
2512 end
2513 if d.ClassName == "UnionOperation" then
2514 b = d:Clone()
2515 for a, a in pairs(GatherAllInstances(d)) do
2516 a:Destroy()
2517 end
2518 b.Anchored = true
2519 b.Material = "Concrete"
2520 b.Locked = true
2521 b.Parent = c
2522 b.Name = d.Name
2523 b.CanCollide = true
2524 b.Reflectance = 0
2525 b.Transparency = 0
2526 AddStoneTexture(b)
2527 end
2528 if d.ClassName == "MeshPart" then
2529 b = d:Clone()
2530 for a, a in pairs(GatherAllInstances(d)) do
2531 a:Destroy()
2532 end
2533 b.Anchored = true
2534 b.Material = "Concrete"
2535 b.Locked = true
2536 b.Parent = c
2537 b.Name = d.Name
2538 b.CanCollide = true
2539 b.Reflectance = 0
2540 b.Transparency = 0
2541 AddStoneTexture(b)
2542 end
2543 end))
2544 for a, a in pairs(d:GetChildren()) do
2545 if a:isA("SpecialMesh") then
2546 coroutine.resume(coroutine.create(function()
2547 if a.MeshId == "" then
2548 if a.MeshType == Enum.MeshType.Head then
2549 a.MeshType = "FileMesh"
2550 a.MeshId = "rbxassetid://742753853"
2551 a.Scale = Vector3.new((a.Scale.Z / 50) * d.Size.Z, (a.Scale.Y / 50) * d.Size.Y, (a.Scale.Z / 50) * d.Size.Z)
2552 a.TextureId = "http://www.roblox.com/asset/?id=1693385655"
2553 a.VertexColor = Vector3.new(163 / 255, 162 / 255, 165 / 255)
2554 end
2555 elseif a.MeshType == Enum.MeshType.Cylinder then
2556 a.MeshType = "Cylinder"
2557 elseif a.MeshType == Enum.MeshType.Sphere then
2558 a.MeshType = "Sphere"
2559 elseif a.MeshType == Enum.MeshType.Torso then
2560 a.MeshType = "Torso"
2561 elseif a.MeshType == Enum.MeshType.Wedge then
2562 a.MeshType = "Wedge"
2563 else
2564 a.TextureId = "http://www.roblox.com/asset/?id=1693385655"
2565 a.VertexColor = Vector3.new(163 / 255, 162 / 255, 165 / 255)
2566 end
2567 end))
2568 a:Clone().Parent = b
2569 end
2570 if a:isA("BlockMesh") then
2571 a:Clone().Parent = b
2572 end
2573 end
2574 end
2575 end))
2576 end
2577 local b = c:FindFirstChild("Torso") or c:FindFirstChild("UpperTorso")
2578 for a, c in pairs(c:GetChildren()) do
2579 local a = weld(c, c, b, b.CFrame:toObjectSpace(c.CFrame):inverse())
2580 c.Anchored = false
2581 end
2582 d:BreakJoints()
2583 d.Parent = nil
2584 n:Destroy()
2585 d:Destroy()
2586 for a, a in pairs(game:GetService("Players"):GetChildren()) do
2587 if a:isA("Player") then
2588 if a.Character == d then
2589 end
2590 end
2591 end
2592 wait(1)
2593 end
2594 end))
2595 elseif l == "Snare" then
2596 local a = z("BodyPosition")({
2597 P = 900,
2598 D = 1000,
2599 maxForce = Vector3.new(math.huge, math.huge, math.huge),
2600 position = m.Parent.Torso.Position,
2601 Parent = (n.Parent:FindFirstChild("Torso") or n.Parent:FindFirstChild("UpperTorso"))
2602 })
2603 game:GetService("Debris"):AddItem(a, 1)
2604 elseif l == "Freeze2" then
2605 local a = z("BodyPosition")({
2606 P = 50000,
2607 D = 1000,
2608 maxForce = Vector3.new(math.huge, math.huge, math.huge),
2609 position = m.Parent.Torso.Position,
2610 Parent = m.Parent.Torso
2611 })
2612 local b = z("BodyGyro")({
2613 maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
2614 P = 20000,
2615 Parent = m.Parent.Torso,
2616 cframe = m.Parent.Torso.CFrame
2617 })
2618 m.Parent.Torso.Anchored = true
2619 coroutine.resume(coroutine.create(function(a)
2620 wait(1.5)
2621 a.Anchored = false
2622 end), m.Parent.Torso)
2623 game:GetService("Debris"):AddItem(a, 3)
2624 game:GetService("Debris"):AddItem(b, 3)
2625 end
2626 local b = z("BoolValue")({
2627 Name = "DebounceHit",
2628 Parent = m.Parent,
2629 Value = true
2630 })
2631 game:GetService("Debris"):AddItem(b, a)
2632 h = Instance.new("ObjectValue")
2633 h.Name = "creator"
2634 h.Value = k
2635 h.Parent = n
2636 game:GetService("Debris"):AddItem(h, 0.5)
2637 end
2638 end
2639 ShowDamage = function(f, a, c, e)
2640 local b = 0.033333333333333
2641 if not f then
2642 local a = Vector3.new(0, 0, 0)
2643 end
2644 local a = a or ""
2645 local d = c or 2
2646 if not e then
2647 local a = Color3.new(1, 0, 1)
2648 end
2649 local g = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(e), "Effect", Vector3.new(0, 0, 0))
2650 g.Anchored = true
2651 local c = z("BillboardGui")({
2652 Size = UDim2.new(2, 0, 2, 0),
2653 Adornee = g,
2654 Parent = g
2655 })
2656 local a = z("TextLabel")({
2657 BackgroundTransparency = 1,
2658 Size = UDim2.new(1, 0, 1, 0),
2659 Text = "DMG: "..a.."",
2660 TextColor3 = e,
2661 TextScaled = true,
2662 Font = Enum.Font.ArialBold,
2663 Parent = c
2664 })
2665 game.Debris:AddItem(g, d + 0.1)
2666 g.Parent = game:GetService("Workspace")
2667 delay(0, function()
2668 local b = d / b
2669 print(b)
2670 a.TextTransparency = 0
2671 g.CFrame = CFrame.new(f)
2672 wait()
2673 SetTween(a, {
2674 TextTransparency = 1
2675 }, "Quad", "In", b / 60)
2676 SetTween(a, {
2677 Rotation = math.random(-25, 25)
2678 }, "Elastic", "InOut", b / 60)
2679 SetTween(a, {
2680 TextColor3 = Color3.new(1, 0, 0)
2681 }, "Elastic", "InOut", b / 60)
2682 SetTween(g, {
2683 CFrame = CFrame.new(f) + Vector3.new(math.random(-5, 5), math.random(1, 5), math.random(-5, 5))
2684 }, "Linear", "InOut", b / 60)
2685 wait(b / 60)
2686 if g and g.Parent then
2687 g:Destroy()
2688 end
2689 end)
2690 end
2691 MagniDamage = function(g, b, e, d, c, a)
2692 local h = ""
2693 if mememode == true then
2694 h = "Instakill"
2695 else
2696 h = a
2697 end
2698 if a == "NormalKnockdown" then
2699 h = "Knockdown"
2700 end
2701 for a, i in pairs(workspace:children()) do
2702 local f = i:FindFirstChild("Humanoid")
2703 for a, a in pairs(i:children()) do
2704 if a:IsA("Humanoid") then
2705 f = a
2706 end
2707 end
2708 if f ~= nil then
2709 local f = i:findFirstChild("Head")
2710 if f ~= nil then
2711 local a = f.Position - g.Position
2712 local a = a.magnitude
2713 if a <= b and i.Name ~= k.Name then
2714 Damagefunc(g, f, e, d, c, h, RootPart, 0.1, "851453784", 1.2)
2715 end
2716 end
2717 end
2718 end
2719 end
2720 function CFMagniDamage(f, d, e, c, b, a)
2721 local g = Instance.new("Part")
2722 g.Parent = Character
2723 g.Size = Vector3.new(0.05, 0.05, 0.05)
2724 g.Transparency = 1
2725 g.CanCollide = false
2726 g.Anchored = true
2727 RemoveOutlines(g)
2728 g.Position = g.Position + Vector3.new(0, -.1, 0)
2729 g.CFrame = f
2730 coroutine.resume(coroutine.create(function()
2731 MagniDamage(g, d, e, c, b, a)
2732 end))
2733 game:GetService("Debris"):AddItem(g, .05)
2734 g.Archivable = false
2735 end
2736 local t = weld(e.Parent, e.Part0, e.Part1, e.C0)
2737 t.C1 = e.C1
2738 t.Name = e.Name
2739 local u = weld(d.Parent, d.Part0, d.Part1, d.C0)
2740 u.C1 = d.C1
2741 u.Name = d.Name
2742 local q = weld(Torso, Torso, RightArm, cf(0, 0, 0))
2743 local s = weld(Torso, Torso, LeftArm, cf(0, 0, 0))
2744 local r = weld(Torso, Torso, RightLeg, cf(0, 0, 0))
2745 local f = weld(Torso, Torso, LeftLeg, cf(0, 0, 0))
2746 q.C1 = x(0, 0.5, 0)
2747 s.C1 = x(0, 0.5, 0)
2748 r.C1 = x(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
2749 f.C1 = x(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
2750 SetTween(t, {
2751 C0 = p * CFrame.new(0, 0, 0)
2752 }, "Quad", "InOut", 0.1)
2753 SetTween(u, {
2754 C0 = o * CFrame.new(0, 0, 0)
2755 }, "Quad", "InOut", 0.1)
2756 SetTween(q, {
2757 C0 = CFrame.new(1.5, 0.5, -.0)
2758 }, "Quad", "InOut", 0.1)
2759 SetTween(s, {
2760 C0 = CFrame.new(-1.5, 0.5, -.0)
2761 }, "Quad", "InOut", 0.1)
2762 SetTween(r, {
2763 C0 = CFrame.new(.5, -0.90, 0)
2764 }, "Quad", "InOut", 0.1)
2765 SetTween(f, {
2766 C0 = CFrame.new(-.5, -0.90, 0)
2767 }, "Quad", "InOut", 0.1)
2768 Freeze_Attack = function()
2769 w = true
2770 local a = .2
2771 so("1713270560", Torso, 2, .9)
2772 local b = 1
2773 if w == true and mememode == true then
2774 b = 5
2775 end
2776 coroutine.resume(coroutine.create(function()
2777 local c = Instance.new("Part")
2778 c.Reflectance = 0
2779 c.Transparency = 1
2780 c.CanCollide = false
2781 c.Locked = true
2782 c.Anchored = true
2783 c.BrickColor = BrickColor.new("Really blue")
2784 c.Name = "YourGone"
2785 c.Size = Vector3.new()
2786 c.Material = "SmoothPlastic"
2787 c:BreakJoints()
2788 c.Parent = workspace
2789 c.CFrame = RootPart.CFrame * ANGLES(mr(90), 0, 0)
2790 local a = i:Clone()
2791 a.Parent = c
2792 a.Acceleration = Vector3.new(0, 5, 0)
2793 a.SpreadAngle = Vector2.new(0, 180)
2794 a:Emit(100)
2795 a.Size = NumberSequence.new({
2796 NumberSequenceKeypoint.new(0, 0),
2797 NumberSequenceKeypoint.new(.5, 2),
2798 NumberSequenceKeypoint.new(1, 50)
2799 })
2800 a.Color = ColorSequence.new(Color3.new(1, 1, 0), Color3.new(255 / 255, 255 / 255, 0))
2801 a.Lifetime = NumberRange.new(2)
2802 a.Transparency = NumberSequence.new({
2803 NumberSequenceKeypoint.new(0, 1),
2804 NumberSequenceKeypoint.new(.15, 1),
2805 NumberSequenceKeypoint.new(.5, .1),
2806 NumberSequenceKeypoint.new(1, 1)
2807 })
2808 a.Speed = NumberRange.new(50, 60)
2809 a.ZOffset = 1
2810 a.RotSpeed = NumberRange.new(-100, 100)
2811 a.Rotation = NumberRange.new(-180, 180)
2812 a.Texture = "rbxassetid://1084997326"
2813 game:GetService("Debris"):AddItem(c, 2.5)
2814 local b = i:Clone()
2815 b.Parent = c
2816 b.Acceleration = Vector3.new(0, 5, 0)
2817 b.SpreadAngle = Vector2.new(0, 0)
2818 b:Emit(10)
2819 b.Size = NumberSequence.new({
2820 NumberSequenceKeypoint.new(0, 6),
2821 NumberSequenceKeypoint.new(.5, 6),
2822 NumberSequenceKeypoint.new(1, 50)
2823 })
2824 b.Color = ColorSequence.new(Color3.new(1, 1, 0), Color3.new(255 / 255, 255 / 255, 0))
2825 b.Lifetime = NumberRange.new(2)
2826 b.Transparency = NumberSequence.new({
2827 NumberSequenceKeypoint.new(0, 1),
2828 NumberSequenceKeypoint.new(.35, 1),
2829 NumberSequenceKeypoint.new(.6, .9),
2830 NumberSequenceKeypoint.new(1, 1)
2831 })
2832 b.Speed = NumberRange.new(5, 6)
2833 b.ZOffset = 10
2834 b.RotSpeed = NumberRange.new(-100, 100)
2835 b.Rotation = NumberRange.new(-180, 180)
2836 b.Texture = "rbxassetid://68942583"
2837 b.EmissionDirection = "Front"
2838 b.LockedToPart = false
2839 wait(1)
2840 while a.Parent ~= nil do
2841 Swait()
2842 CFMagniDamage(c.CFrame, 25, math.huge, math.huge, 0, "Stone")
2843 end
2844 end))
2845 for a = 0, 5, a do
2846 Swait()
2847 local a = 0
2848 m = (0.60 * 2) * b
2849 Humanoid.JumpPower = 0
2850 Humanoid.WalkSpeed = 0
2851 local a = 0
2852 SetTween(t, {
2853 C0 = p * x(0, 0 + .25 * math.cos(A / 8), 3.5 + .4 * math.sin(A / 8 + a * math.cos(A / 8 * 2))) * angles(math.rad(30 - 2.5 * math.cos(A / 8)), math.rad((0 + 0 * math.cos(A / 8) / 20)), math.rad(0))
2854 }, "Quad", "InOut", 0.12)
2855 SetTween(u, {
2856 C0 = o * angles(math.rad(23.5 - 1.5 * math.cos(A / 8 + a * math.cos(A / 8 * 2))), math.rad(2.5 - 5.5 * math.cos(A / 16)), math.rad(0 - 16.5 * math.cos(A / 15 + .4 * math.cos(A / 10))))
2857 }, "Quad", "InOut", 0.1)
2858 SetTween(q, {
2859 C0 = cf(1.45 + .0 * math.cos(A / 8), 0.5 + .05 * math.sin(A / 8), .0) * angles(math.rad(40 + 5 * math.cos(A / 8)), math.rad(-5), math.rad(28 + 4 * math.sin(A / 8)))
2860 }, "Quad", "Out", 0.2)
2861 SetTween(s, {
2862 C0 = cf(-1.45 + .0 * math.cos(A / 8), 0.5 + .05 * math.sin(A / 8), .0) * angles(math.rad(40 + 5 * math.cos(A / 8)), math.rad(5), math.rad(-28 - 4 * math.sin(A / 8)))
2863 }, "Quad", "Out", 0.2)
2864 SetTween(r, {
2865 C0 = CFrame.new(.5, -0.45 + .1 * math.sin(A / 8 + a * math.sin(A / 8 * 2)), -0.4) * CFrame.Angles(math.rad(-21.5 + 10 * math.sin(A / 8)), math.rad(-25), math.rad(2.5 - 0.0 * math.sin(A / 8)))
2866 }, "Quad", "InOut", 0.1)
2867 SetTween(f, {
2868 C0 = CFrame.new(-.5, -0.85 + .1 * math.sin(A / 8 + a * math.sin(A / 8 * 2)), -.1) * CFrame.Angles(math.rad(-11.5 + 5 * math.sin(A / 8)), math.rad(25), math.rad(-2.5 - 0.0 * math.sin(A / 8)))
2869 }, "Quad", "InOut", 0.1)
2870 end
2871 so("2275292355", Torso, 5, .8)
2872 for c = 0, 5, a * 1.5 do
2873 Swait()
2874 local a = 0
2875 m = (0.60 * 2) * b
2876 Humanoid.JumpPower = 0
2877 Humanoid.WalkSpeed = 0
2878 local a = 0
2879 SetTween(t, {
2880 C0 = p * x(0, 0 + .25 * math.cos(A / 8), 3 + .4 * math.sin(A / 8 + a * math.cos(A / 8 * 2))) * angles(math.rad(10 - (c * 10) - 2.5 * math.cos(A / 8)), math.rad((0 + 0 * math.cos(A / 8) / 20)), math.rad(0))
2881 }, "Quad", "InOut", 0.12)
2882 SetTween(u, {
2883 C0 = o * angles(math.rad(23.5 - (c * 10) - 1.5 * math.cos(A / 8 + a * math.cos(A / 8 * 2))), math.rad(2.5 - 5.5 * math.cos(A / 16)), math.rad(0 - 16.5 * math.cos(A / 15 + .4 * math.cos(A / 10))))
2884 }, "Quad", "InOut", 0.3)
2885 SetTween(q, {
2886 C0 = cf(1.45 + .0 * math.cos(A / 8), 0.5 + .05 * math.sin(A / 8), .0) * angles(math.rad(40 + (c * 25) + 5 * math.cos(A / 8)), math.rad(-5), math.rad(28 + (c * 10) + 4 * math.sin(A / 8)))
2887 }, "Quad", "Out", 0.4)
2888 SetTween(s, {
2889 C0 = cf(-1.45 + .0 * math.cos(A / 8), 0.5 + .05 * math.sin(A / 8), .0) * angles(math.rad(40 + (c * 25) + 5 * math.cos(A / 8)), math.rad(5), math.rad(-28 - (c * 10) - 4 * math.sin(A / 8)))
2890 }, "Quad", "Out", 0.4)
2891 SetTween(r, {
2892 C0 = CFrame.new(.5, -0.45 + .1 * math.sin(A / 8 + a * math.sin(A / 8 * 2)), -0.3) * CFrame.Angles(math.rad(-21.5 - (c * 10) + 10 * math.sin(A / 8)), math.rad(-25), math.rad(2.5 - 0.0 * math.sin(A / 8)))
2893 }, "Quad", "InOut", 0.1)
2894 SetTween(f, {
2895 C0 = CFrame.new(-.5, -0.85 + .1 * math.sin(A / 8 + a * math.sin(A / 8 * 2)), -.1) * CFrame.Angles(math.rad(-11.5 - (c * 10) + 5 * math.sin(A / 8)), math.rad(25), math.rad(-2.5 - 0.0 * math.sin(A / 8)))
2896 }, "Quad", "InOut", 0.1)
2897 end
2898 for a = 0, 5, a * 2 do
2899 Swait()
2900 local a = 0
2901 local c = 5
2902 m = (0.60 * 2) * b
2903 Humanoid.JumpPower = 0
2904 Humanoid.WalkSpeed = 0
2905 local a = 0
2906 SetTween(t, {
2907 C0 = p * x(0, 0 + .25 * math.cos(A / 8), 3 + .4 * math.sin(A / 8 + a * math.cos(A / 8 * 2))) * angles(math.rad(10 - (c * 10) - 2.5 * math.cos(A / 8)), math.rad((0 + 0 * math.cos(A / 8) / 20)), math.rad(0))
2908 }, "Quad", "InOut", 0.12)
2909 SetTween(u, {
2910 C0 = o * angles(math.rad(23.5 - (c * 10) - 1.5 * math.cos(A / 8 + a * math.cos(A / 8 * 2))), math.rad(2.5 - 5.5 * math.cos(A / 16)), math.rad(0 - 16.5 * math.cos(A / 15 + .4 * math.cos(A / 10))))
2911 }, "Quad", "InOut", 0.3)
2912 SetTween(q, {
2913 C0 = cf(1.45 + .0 * math.cos(A / 8), 0.5 + .05 * math.sin(A / 8), .0) * angles(math.rad(40 + (c * 25) + 5 * math.cos(A / 8)), math.rad(-5), math.rad(28 + (c * 10) + 4 * math.sin(A / 8)))
2914 }, "Quad", "Out", 0.4)
2915 SetTween(s, {
2916 C0 = cf(-1.45 + .0 * math.cos(A / 8), 0.5 + .05 * math.sin(A / 8), .0) * angles(math.rad(40 + (c * 25) + 5 * math.cos(A / 8)), math.rad(5), math.rad(-28 - (c * 10) - 4 * math.sin(A / 8)))
2917 }, "Quad", "Out", 0.4)
2918 SetTween(r, {
2919 C0 = CFrame.new(.5, -0.45 + .1 * math.sin(A / 8 + a * math.sin(A / 8 * 2)), -0.3) * CFrame.Angles(math.rad(-21.5 - (c * 10) + 10 * math.sin(A / 8)), math.rad(-25), math.rad(2.5 - 0.0 * math.sin(A / 8)))
2920 }, "Quad", "InOut", 0.1)
2921 SetTween(f, {
2922 C0 = CFrame.new(-.5, -0.85 + .1 * math.sin(A / 8 + a * math.sin(A / 8 * 2)), -.1) * CFrame.Angles(math.rad(-11.5 - (c * 10) + 5 * math.sin(A / 8)), math.rad(25), math.rad(-2.5 - 0.0 * math.sin(A / 8)))
2923 }, "Quad", "InOut", 0.1)
2924 end
2925 Humanoid.WalkSpeed = 18
2926 Humanoid.JumpPower = 60
2927 w = false
2928 end
2929 eyehold = false
2930 function Falling_Light()
2931 local a = 0.015
2932 eyehold = true
2933 local e = false
2934 w = true
2935 local b = 0.1
2936 local c = 1
2937 local d = nil
2938 coroutine.resume(coroutine.create(function()
2939 wait(.2)
2940 so("240517975", RightArm, 3, 1.0, 0)
2941 end))
2942 coroutine.resume(coroutine.create(function()
2943 local c = Instance.new("Part")
2944 c.Reflectance = 0
2945 c.Transparency = 1
2946 c.CanCollide = false
2947 c.Locked = true
2948 c.Anchored = true
2949 c.BrickColor = BrickColor.new("Really black")
2950 c.Name = "Third Eye Part1"
2951 c.Size = Vector3.new()
2952 c.Material = "SmoothPlastic"
2953 c:BreakJoints()
2954 c.CFrame = CF(MHIT.p + VT(0, 200, 0)) * ANGLES(mr(-90), 0, 0)
2955 d = c
2956 local b = z("SpecialMesh"){
2957 Parent = c,
2958 MeshType = "Sphere",
2959 Scale = vt(1.5, 0, 1.5),
2960 Offset = vt(0, 0, 0)
2961 }
2962 c.Parent = Effects
2963 local a = b.Scale.X
2964 local a = b.Scale.Z
2965 local a = i:Clone()
2966 a.Parent = c
2967 a.Acceleration = Vector3.new(0, 0, 0)
2968 a.Size = NumberSequence.new({
2969 NumberSequenceKeypoint.new(0, 40),
2970 NumberSequenceKeypoint.new(1, 0)
2971 })
2972 a.Color = ColorSequence.new(Color3.new(1, 1, 0), Color3.new(255 / 255, 255 / 255, 0))
2973 a.Lifetime = NumberRange.new(.6, 1)
2974 a.Transparency = NumberSequence.new({
2975 NumberSequenceKeypoint.new(0, 1),
2976 NumberSequenceKeypoint.new(0.5, 0),
2977 NumberSequenceKeypoint.new(1, 1)
2978 })
2979 a.Speed = NumberRange.new(0)
2980 a.ZOffset = 6
2981 a.RotSpeed = NumberRange.new(-300)
2982 a.Rotation = NumberRange.new(-360, 360)
2983 a.Texture = "rbxassetid://321556991"
2984 a.Rate = 20
2985 a.Enabled = true
2986 local b = i:Clone()
2987 b.Parent = c
2988 b.Acceleration = Vector3.new(0, -20, 0)
2989 b.Size = NumberSequence.new({
2990 NumberSequenceKeypoint.new(0, 0),
2991 NumberSequenceKeypoint.new(.3, 180),
2992 NumberSequenceKeypoint.new(1, 5)
2993 })
2994 b.Color = ColorSequence.new(Color3.new(1, 1, 0), Color3.new(255 / 255, 255 / 255, 0))
2995 b.Lifetime = NumberRange.new(1)
2996 b.Transparency = NumberSequence.new({
2997 NumberSequenceKeypoint.new(0, 1),
2998 NumberSequenceKeypoint.new(0.45, 1),
2999 NumberSequenceKeypoint.new(0.65, .1),
3000 NumberSequenceKeypoint.new(1, 1)
3001 })
3002 b.Speed = NumberRange.new(151)
3003 b.ZOffset = 2
3004 b.RotSpeed = NumberRange.new(-300, 300)
3005 b.Rotation = NumberRange.new(-360, 360)
3006 b.Texture = "rbxassetid://398285173"
3007 b.Rate = 60
3008 b.Enabled = true
3009 b.SpreadAngle = Vector2.new(0, 180)
3010 b.EmissionDirection = "Top"
3011 b.Drag = 4
3012 so("231917975", c, 6, .8, 0)
3013 while e == false do
3014 wait()
3015 end
3016 a.Enabled = false
3017 b.Enabled = false
3018 wait(3)
3019 c:Destroy()
3020 end))
3021 for b = 0, 70, 2.4 do
3022 Swait()
3023 local a = 0
3024 local a = 1
3025 m = (0.60 * 2) * a
3026 Humanoid.JumpPower = 0
3027 Humanoid.WalkSpeed = 0
3028 local a = 0
3029 SetTween(t, {
3030 C0 = p * x(0, 0 + .25 * math.cos(A / 8), 3.5 + .4 * math.sin(A / 8 + a * math.cos(A / 8 * 2))) * angles(math.rad(-30 - 2.5 * math.cos(A / 8)), math.rad((0 + 0 * math.cos(A / 8) / 20)), math.rad(0))
3031 }, "Quad", "InOut", 0.12)
3032 SetTween(u, {
3033 C0 = o * angles(math.rad(23.5 - 1.5 * math.cos(A / 8 + a * math.cos(A / 8 * 2))), math.rad(2.5 - 5.5 * math.cos(A / 16)), math.rad(0 - 16.5 * math.cos(A / 15 + .4 * math.cos(A / 10))))
3034 }, "Quad", "InOut", 0.1)
3035 SetTween(q, {
3036 C0 = cf(1.45 + .0 * math.cos(A / 8), 0.5 + .05 * math.sin(A / 8), .0) * angles(math.rad(120 + 20 * math.cos(b / 8)), math.rad(-5), math.rad(28 + 20 * math.sin(b / 8)))
3037 }, "Quad", "Out", 0.2)
3038 SetTween(s, {
3039 C0 = cf(-1.45 + .0 * math.cos(A / 8), 0.5 + .05 * math.sin(A / 8), .0) * angles(math.rad(-20 + 5 * math.cos(A / 8)), math.rad(5), math.rad(-28 - 4 * math.sin(A / 8)))
3040 }, "Quad", "Out", 0.2)
3041 SetTween(r, {
3042 C0 = CFrame.new(.5, -0.45 + .1 * math.sin(A / 8 + a * math.sin(A / 8 * 2)), -0.3) * CFrame.Angles(math.rad(-51.5 + 10 * math.sin(A / 8)), math.rad(-25), math.rad(2.5 - 0.0 * math.sin(A / 8)))
3043 }, "Quad", "InOut", 0.1)
3044 SetTween(f, {
3045 C0 = CFrame.new(-.5, -0.85 + .1 * math.sin(A / 8 + a * math.sin(A / 8 * 2)), -.1) * CFrame.Angles(math.rad(-41.5 + 5 * math.sin(A / 8)), math.rad(25), math.rad(-2.5 - 0.0 * math.sin(A / 8)))
3046 }, "Quad", "InOut", 0.1)
3047 end
3048 coroutine.resume(coroutine.create(function()
3049 wait(.2)
3050 so("588738949", Head, 2, 1.0, 4)
3051 end))
3052 local a = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
3053 coroutine.resume(coroutine.create(function()
3054 for a = 1, 20 do
3055 Swait(5)
3056 coroutine.resume(coroutine.create(function()
3057 local c = d
3058 so("219338923", c, 6.5, 1.2, 4)
3059 for a = 1, 2 do
3060 coroutine.resume(coroutine.create(function()
3061 local a = Color3.new(151 / 255, 0 / 255, 0 / 255)
3062 local a = Color3.new(151 / 255, 0 / 255, 0 / 255)
3063 local b, e = rayCast(c.Position, (CF(c.CFrame.p, c.CFrame.p - VT(0, 10, 0)) * ANGLES(mr(math.random(-20, 20)), mr(math.random(-20, 20)), mr(math.random(-20, 20)))).lookVector, 500, Character)
3064 local g = Instance.new("Part", Effects)
3065 g.Transparency = 1
3066 g.CanCollide = false
3067 g.Anchored = true
3068 g.CFrame = CFrame.new(0, 0, 0)
3069 g.Size = Vector3.new(.1, .1, .1)
3070 local f = Instance.new("Part", Effects)
3071 f.Transparency = 1
3072 f.CanCollide = false
3073 f.Anchored = true
3074 f.CFrame = c.CFrame
3075 f.Size = Vector3.new(.1, .1, .1)
3076 local a = (f.Position - e).magnitude
3077 local d = Instance.new("Attachment", f)
3078 local c = Instance.new("Attachment", g)
3079 local h = Instance.new("Beam", g)
3080 c.Position = e
3081 d.Position = Vector3.new(0, 0, 0)
3082 h.Texture = "rbxassetid://446111271"
3083 h.Width0 = 100
3084 h.Width1 = .0
3085 h.FaceCamera = true
3086 h.Color = ColorSequence.new(Color3.new(1, 1, 0), Color3.new(255 / 255, 255 / 255, 0))
3087 h.Transparency = NumberSequence.new(0, 0)
3088 h.TextureLength = a / 100
3089 h.Attachment0 = d
3090 h.Attachment1 = c
3091 h.TextureSpeed = math.random(40, 70) / 1
3092 h.LightEmission = 1
3093 CFMagniDamage(CFrame.new(e), 30, 25, 30, 0, "KockDown")
3094 coroutine.resume(coroutine.create(function()
3095 SetTween(h, {
3096 Width0 = 0,
3097 Width1 = 50
3098 }, "Quad", "In", 1 / 3)
3099 SetTween(h, {
3100 TextureSpeed = 0
3101 }, "Back", "Out", 1 / 1.5)
3102 for a = 0, 4, 0.2 do
3103 Swait()
3104 h.Transparency = NumberSequence.new(a, (a) / 2)
3105 end
3106 game:GetService("Debris"):AddItem(f, .4)
3107 game:GetService("Debris"):AddItem(g, .4)
3108 game:GetService("Debris"):AddItem(d, .4)
3109 game:GetService("Debris"):AddItem(c, .4)
3110 end))
3111 coroutine.resume(coroutine.create(function()
3112 if b ~= nil then
3113 local a = Instance.new("Part", Effects)
3114 a.Transparency = 1
3115 a.CanCollide = false
3116 a.Anchored = true
3117 a.CFrame = CFrame.new(0, 0, 0) + e
3118 a.Size = Vector3.new(.05, .05, .05)
3119 so("231917970", a, 2, 2)
3120 game:GetService("Debris"):AddItem(a, 1.5)
3121 local b = i:Clone()
3122 b.Parent = a
3123 b.Acceleration = Vector3.new(0, 0, 0)
3124 b.Size = NumberSequence.new({
3125 NumberSequenceKeypoint.new(0, 0),
3126 NumberSequenceKeypoint.new(.25, 50),
3127 NumberSequenceKeypoint.new(1, 0)
3128 })
3129 b.Color = ColorSequence.new(Color3.new(1, 1, 0), Color3.new(255 / 255, 255 / 255, 0))
3130 b.Lifetime = NumberRange.new(.3 / 2, .4)
3131 b.Transparency = NumberSequence.new({
3132 NumberSequenceKeypoint.new(0, 1),
3133 NumberSequenceKeypoint.new(1, 0)
3134 })
3135 b.Speed = NumberRange.new(0)
3136 b.ZOffset = 6
3137 b.RotSpeed = NumberRange.new(-30, 30)
3138 b.Rotation = NumberRange.new(-360, 360)
3139 b.Texture = "rbxassetid://217245118"
3140 b:Emit(3)
3141 game:GetService("Debris"):AddItem(b, 0.5)
3142 else
3143 end
3144 end))
3145 end))
3146 Swait()
3147 end
3148 end))
3149 end
3150 eyehold = false
3151 end))
3152 for a = 0, 10, b do
3153 Swait()
3154 local a = 0
3155 m = (0.60 * 2) * c
3156 Humanoid.JumpPower = 0
3157 Humanoid.WalkSpeed = 0
3158 local a = 0
3159 SetTween(t, {
3160 C0 = p * x(0, 0 + .25 * math.cos(A / 8), 3.5 + .4 * math.sin(A / 8 + a * math.cos(A / 8 * 2))) * angles(math.rad(20 - 2.5 * math.cos(A / 8)), math.rad((0 + 0 * math.cos(A / 8) / 20)), math.rad(20))
3161 }, "Quad", "InOut", 0.12)
3162 SetTween(u, {
3163 C0 = o * angles(math.rad(23.5 - 1.5 * math.cos(A / 8 + a * math.cos(A / 8 * 2))), math.rad(2.5 - 5.5 * math.cos(A / 16)), math.rad(-20 - 0.5 * math.cos(A / 15 + .4 * math.cos(A / 10))))
3164 }, "Quad", "InOut", 0.2)
3165 SetTween(q, {
3166 C0 = cf(1.45 + .0 * math.cos(A / 8), 0.5 + .05 * math.sin(A / 8), .0) * angles(math.rad(90 + 5 * math.cos(A / 8)), math.rad(-5), math.rad(0 + 4 * math.sin(A / 8)))
3167 }, "Quad", "Out", 0.2)
3168 SetTween(s, {
3169 C0 = cf(-1.45 + .0 * math.cos(A / 8), 0.5 + .05 * math.sin(A / 8), .0) * angles(math.rad(-20 + 5 * math.cos(A / 8)), math.rad(5), math.rad(-28 - 4 * math.sin(A / 8)))
3170 }, "Quad", "Out", 0.2)
3171 SetTween(r, {
3172 C0 = CFrame.new(.5, -0.45 + .1 * math.sin(A / 8 + a * math.sin(A / 8 * 2)), -0.3) * CFrame.Angles(math.rad(21.5 + 10 * math.sin(A / 8)), math.rad(-25), math.rad(2.5 - 0.0 * math.sin(A / 8)))
3173 }, "Quad", "InOut", 0.1)
3174 SetTween(f, {
3175 C0 = CFrame.new(-.5, -0.85 + .1 * math.sin(A / 8 + a * math.sin(A / 8 * 2)), -.1) * CFrame.Angles(math.rad(11.5 + 5 * math.sin(A / 8)), math.rad(25), math.rad(-2.5 - 0.0 * math.sin(A / 8)))
3176 }, "Quad", "InOut", 0.1)
3177 end
3178 coroutine.resume(coroutine.create(function()
3179 wait(.2)
3180 so("240429289", Head, 2, 1.5, 4)
3181 end))
3182 e = true
3183 w = false
3184 end
3185 flying = false
3186 function FlyMove()
3187 w = true
3188 local a = 0.1
3189 local c = 1
3190 flying = true
3191 local d = Instance.new("BodyGyro", RootPart)
3192 for a = 0, 2, a do
3193 Swait()
3194 local a = 0
3195 Humanoid.PlatformStand = false
3196 m = (0.60 * 2) * c
3197 Humanoid.JumpPower = 0
3198 Humanoid.WalkSpeed = 0
3199 coroutine.resume(coroutine.create(function()
3200 d.D = 300
3201 d.P = 9999
3202 d.maxTorque = Vector3.new(1e5, 1e0, 1e5) * math.huge
3203 d.CFrame = CFrame.new(RootPart.Position, Vector3.new(MHIT.p.x, RootPart.Position.y, MHIT.p.z))
3204 end))
3205 local a = 0
3206 SetTween(t, {
3207 C0 = p * x(0, 0 + .25 * math.cos(A / 8), 1.5 + .4 * math.sin(A / 8 + a * math.cos(A / 8 * 2))) * angles(math.rad(45 - 2.5 * math.cos(A / 8)), math.rad((0 + 0 * math.cos(A / 8) / 20)), math.rad(20))
3208 }, "Quad", "InOut", 0.12)
3209 SetTween(u, {
3210 C0 = o * angles(math.rad(23.5 - 1.5 * math.cos(A / 8 + a * math.cos(A / 8 * 2))), math.rad(2.5 - 5.5 * math.cos(A / 16)), math.rad(-20 - 0.5 * math.cos(A / 15 + .4 * math.cos(A / 10))))
3211 }, "Quad", "InOut", 0.2)
3212 SetTween(q, {
3213 C0 = cf(1.45 + .0 * math.cos(A / 8), 0.5 + .05 * math.sin(A / 8), .0) * angles(math.rad(-20 + 5 * math.cos(A / 8)), math.rad(-5), math.rad(10 + 4 * math.sin(A / 8)))
3214 }, "Quad", "Out", 0.2)
3215 SetTween(s, {
3216 C0 = cf(-1.45 + .0 * math.cos(A / 8), 0.5 + .05 * math.sin(A / 8), .0) * angles(math.rad(-20 + 5 * math.cos(A / 8)), math.rad(5), math.rad(-18 - 4 * math.sin(A / 8)))
3217 }, "Quad", "Out", 0.2)
3218 SetTween(r, {
3219 C0 = CFrame.new(.5, -0.45 + .1 * math.sin(A / 8 + a * math.sin(A / 8 * 2)), -0.3) * CFrame.Angles(math.rad(45.5 + 10 * math.sin(A / 8)), math.rad(-25), math.rad(2.5 - 0.0 * math.sin(A / 8)))
3220 }, "Quad", "InOut", 0.1)
3221 SetTween(f, {
3222 C0 = CFrame.new(-.5, -0.85 + .1 * math.sin(A / 8 + a * math.sin(A / 8 * 2)), -.1) * CFrame.Angles(math.rad(11.5 + 5 * math.sin(A / 8)), math.rad(25), math.rad(-2.5 - 0.0 * math.sin(A / 8)))
3223 }, "Quad", "InOut", 0.1)
3224 end
3225 if flying == true then
3226 local b = z("BodyVelocity")({
3227 velocity = Vector3.new(0, .1, 0) + RootPart.CFrame.lookVector * 60,
3228 P = 5000,
3229 maxForce = Vector3.new(80000, 80000, 80000),
3230 Parent = RootPart
3231 })
3232 while flying == true do
3233 Swait()
3234 local a = 0
3235 Humanoid.PlatformStand = true
3236 m = (0.60 * 3) * c
3237 Humanoid.JumpPower = 0
3238 Humanoid.WalkSpeed = 0
3239 coroutine.resume(coroutine.create(function()
3240 d.D = 300
3241 d.P = 9999
3242 d.maxTorque = Vector3.new(1e5, 1e0, 1e5) * math.huge
3243 d.CFrame = CFrame.new(RootPart.Position, MHIT.p)
3244 end))
3245 b.velocity = Vector3.new(0, .1, 0) + RootPart.CFrame.lookVector * 60
3246 local a = 0
3247 SetTween(t, {
3248 C0 = p * x(0, 0 + 1 * math.cos(A / 8), 0 + 1 * math.sin(A / 8 + a * math.cos(A / 8 * 2))) * angles(math.rad(60 - 6.5 * math.cos(A / 8)), math.rad(0), math.rad(0))
3249 }, "Quad", "InOut", 0.08)
3250 SetTween(u, {
3251 C0 = o * angles(math.rad(-13.5 - 5.5 * math.cos(A / 8 + a * math.cos(A / 8 * 2))), math.rad(2.5 - 5.5 * math.cos(A / 16)), math.rad(0 - 0.5 * math.cos(A / 15 + .4 * math.cos(A / 10))))
3252 }, "Quad", "InOut", 0.1)
3253 SetTween(q, {
3254 C0 = cf(1.45 + .0 * math.cos(A / 8), 0.5 + .05 * math.sin(A / 8), .0) * angles(math.rad(-20 + 4 * math.cos(A / 8)), math.rad(-5), math.rad(28 + 4 * math.sin(A / 8)))
3255 }, "Quad", "Out", 0.2)
3256 SetTween(s, {
3257 C0 = cf(-1.45 + .0 * math.cos(A / 8), 0.5 + .05 * math.sin(A / 8), .0) * angles(math.rad(-20 + 4 * math.cos(A / 8)), math.rad(5), math.rad(-28 - 4 * math.sin(A / 8)))
3258 }, "Quad", "Out", 0.2)
3259 SetTween(r, {
3260 C0 = CFrame.new(.5, -0.45 + .1 * math.sin(A / 8 + a * math.sin(A / 8 * 2)), -0.4) * CFrame.Angles(math.rad(-21.5 + 10 * math.sin(A / 8)), math.rad(-25), math.rad(2.5 - 0.0 * math.sin(A / 8)))
3261 }, "Quad", "InOut", 0.1)
3262 SetTween(f, {
3263 C0 = CFrame.new(-.5, -0.85 + .1 * math.sin(A / 8 + a * math.sin(A / 8 * 2)), -.1) * CFrame.Angles(math.rad(-11.5 + 5 * math.sin(A / 8)), math.rad(25), math.rad(-2.5 - 0.0 * math.sin(A / 8)))
3264 }, "Quad", "InOut", 0.1)
3265 end
3266 coroutine.resume(coroutine.create(function()
3267 game:GetService("Debris"):AddItem(b, 0.1)
3268 end))
3269 end
3270 for a = 0, 1.5, .15 do
3271 Swait()
3272 Humanoid.PlatformStand = false
3273 local a = 0
3274 m = (0.60 * 2) * c
3275 Humanoid.JumpPower = 0
3276 Humanoid.WalkSpeed = 0
3277 local a = 0
3278 SetTween(t, {
3279 C0 = p * x(0, 0 + .25 * math.cos(A / 8), 3.5 + .4 * math.sin(A / 8 + a * math.cos(A / 8 * 2))) * angles(math.rad(-20 - 2.5 * math.cos(A / 8)), math.rad((0 + 0 * math.cos(A / 8) / 20)), math.rad(20))
3280 }, "Quad", "InOut", 0.12)
3281 SetTween(u, {
3282 C0 = o * angles(math.rad(43.5 - 1.5 * math.cos(A / 8 + a * math.cos(A / 8 * 2))), math.rad(2.5 - 5.5 * math.cos(A / 16)), math.rad(-20 - 0.5 * math.cos(A / 15 + .4 * math.cos(A / 10))))
3283 }, "Quad", "InOut", 0.2)
3284 SetTween(q, {
3285 C0 = cf(1.45 + .0 * math.cos(A / 8), 0.5 + .05 * math.sin(A / 8), .0) * angles(math.rad(-20 + 5 * math.cos(A / 8)), math.rad(-5), math.rad(0 + 4 * math.sin(A / 8)))
3286 }, "Quad", "Out", 0.2)
3287 SetTween(s, {
3288 C0 = cf(-1.45 + .0 * math.cos(A / 8), 0.5 + .05 * math.sin(A / 8), .0) * angles(math.rad(-20 + 5 * math.cos(A / 8)), math.rad(5), math.rad(-28 - 4 * math.sin(A / 8)))
3289 }, "Quad", "Out", 0.2)
3290 SetTween(r, {
3291 C0 = CFrame.new(.5, -0.45 + .1 * math.sin(A / 8 + a * math.sin(A / 8 * 2)), -0.3) * CFrame.Angles(math.rad(21.5 + 10 * math.sin(A / 8)), math.rad(-25), math.rad(2.5 - 0.0 * math.sin(A / 8)))
3292 }, "Quad", "InOut", 0.1)
3293 SetTween(f, {
3294 C0 = CFrame.new(-.5, -0.85 + .1 * math.sin(A / 8 + a * math.sin(A / 8 * 2)), -.1) * CFrame.Angles(math.rad(11.5 + 5 * math.sin(A / 8)), math.rad(25), math.rad(-2.5 - 0.0 * math.sin(A / 8)))
3295 }, "Quad", "InOut", 0.1)
3296 coroutine.resume(coroutine.create(function()
3297 d.D = 300
3298 d.P = 9999
3299 d.maxTorque = Vector3.new(1e5, 1e0, 1e5) * math.huge
3300 d.CFrame = CFrame.new(RootPart.Position, Vector3.new(MHIT.p.x, RootPart.Position.y, MHIT.p.z))
3301 end))
3302 end
3303 wait(.1)
3304 coroutine.resume(coroutine.create(function()
3305 d:Destroy()
3306 end))
3307 Humanoid.JumpPower = 20
3308 Humanoid.WalkSpeed = 10
3309 w = false
3310 end
3311 function Attack1()
3312 w = true
3313 local b = 1
3314 if w == true and mememode == true then
3315 b = 5
3316 end
3317 for a = 0, 1.5, .15 do
3318 Swait()
3319 local a = 0
3320 m = (0.60 * 2) * b
3321 Humanoid.JumpPower = 0
3322 Humanoid.WalkSpeed = 0
3323 local a = 0
3324 SetTween(t, {
3325 C0 = p * x(0, 0 + .25 * math.cos(A / 8), 3.5 + .4 * math.sin(A / 8 + a * math.cos(A / 8 * 2))) * angles(math.rad(-20 - 2.5 * math.cos(A / 8)), math.rad((0 + 0 * math.cos(A / 8) / 20)), math.rad(20))
3326 }, "Quad", "InOut", 0.12)
3327 SetTween(u, {
3328 C0 = o * angles(math.rad(43.5 - 1.5 * math.cos(A / 8 + a * math.cos(A / 8 * 2))), math.rad(2.5 - 5.5 * math.cos(A / 16)), math.rad(-20 - 0.5 * math.cos(A / 15 + .4 * math.cos(A / 10))))
3329 }, "Quad", "InOut", 0.2)
3330 SetTween(q, {
3331 C0 = cf(1.45 + .0 * math.cos(A / 8), 0.5 + .05 * math.sin(A / 8), .0) * angles(math.rad(110 + 5 * math.cos(A / 8)), math.rad(-5), math.rad(20 + 4 * math.sin(A / 8)))
3332 }, "Quad", "Out", 0.2)
3333 SetTween(s, {
3334 C0 = cf(-1.45 + .0 * math.cos(A / 8), 0.5 + .05 * math.sin(A / 8), .0) * angles(math.rad(-20 + 5 * math.cos(A / 8)), math.rad(5), math.rad(-28 - 4 * math.sin(A / 8)))
3335 }, "Quad", "Out", 0.2)
3336 SetTween(r, {
3337 C0 = CFrame.new(.5, -0.45 + .1 * math.sin(A / 8 + a * math.sin(A / 8 * 2)), -0.4) * CFrame.Angles(math.rad(-21.5 + 10 * math.sin(A / 8)), math.rad(-25), math.rad(2.5 - 0.0 * math.sin(A / 8)))
3338 }, "Quad", "InOut", 0.1)
3339 SetTween(f, {
3340 C0 = CFrame.new(-.5, -0.85 + .1 * math.sin(A / 8 + a * math.sin(A / 8 * 2)), -.1) * CFrame.Angles(math.rad(11.5 + 5 * math.sin(A / 8)), math.rad(25), math.rad(-2.5 - 0.0 * math.sin(A / 8)))
3341 }, "Quad", "InOut", 0.1)
3342 end
3343 local e = 2.5
3344 if mememode == true then
3345 e = 5
3346 end
3347 coroutine.resume(coroutine.create(function()
3348 wait(.25 / b)
3349 so("231917970", RightArm, 2, 1)
3350 end))
3351 for a = 0, 3 do
3352 coroutine.resume(coroutine.create(function()
3353 coroutine.resume(coroutine.create(function()
3354 wait((.25 / b) / 2)
3355 end))
3356 wait(.25 / b)
3357 coroutine.resume(coroutine.create(function()
3358 wait(.1)
3359 local b = RootPart.Position + Vector3.new(0, 10, 0)
3360 local d = (RootPart.CFrame * ANGLES(0, mr(90 * a), 0)).lookVector
3361 coroutine.resume(coroutine.create(function()
3362 for c = 0, 8, 0.5 do
3363 local a = 4
3364 local b = b + d * c * 5 * e
3365 local a = CF(b, b + d * 1)
3366 local a, b, a = rayCast(b, CFrame.new(b, b - Vector3.new(0, 1, 0)).lookVector, 80, Character)
3367 local b = CF(b, b + a) * ANGLES(RAD(-90 + math.random(-0, 0)), RAD(math.random(-360, 360)), RAD(math.random(-0, 0)))
3368 if b ~= nil then
3369 coroutine.resume(coroutine.create(function()
3370 coroutine.resume(coroutine.create(function()
3371 local a = Color3.new(151 / 255, 0 / 255, 0 / 255)
3372 local a = Color3.new(151 / 255, 0 / 255, 0 / 255)
3373 local a, e = rayCast((b * CF(0, 40, 0)).p, (CF(b.p, b.p - VT(0, 10, 0)) * ANGLES(mr(math.random(-0, 0)), mr(math.random(-0, 0)), mr(math.random(-0, 0)))).lookVector, 500, Character)
3374 local f = Instance.new("Part", Effects)
3375 f.Transparency = 1
3376 f.CanCollide = false
3377 f.Anchored = true
3378 f.CFrame = CFrame.new(0, 0, 0)
3379 f.Size = Vector3.new(.1, .1, .1)
3380 local g = Instance.new("Part", Effects)
3381 g.Transparency = 1
3382 g.CanCollide = false
3383 g.Anchored = true
3384 g.CFrame = b * CF(0, 40, 0)
3385 g.Size = Vector3.new(.1, .1, .1)
3386 local b = (g.Position - e).magnitude
3387 local c = Instance.new("Attachment", g)
3388 local d = Instance.new("Attachment", f)
3389 local h = Instance.new("Beam", f)
3390 d.Position = e
3391 c.Position = Vector3.new(0, 0, 0)
3392 h.Texture = "rbxassetid://446111271"
3393 h.Width0 = 0
3394 h.Width1 = 0
3395 h.FaceCamera = true
3396 h.Color = ColorSequence.new(Color3.new(1, 1, 0), Color3.new(255 / 255, 255 / 255, 0))
3397 h.Transparency = NumberSequence.new(0, 0)
3398 h.TextureLength = b / 100
3399 h.Attachment0 = c
3400 h.Attachment1 = d
3401 h.TextureSpeed = math.random(40, 70) / 1
3402 h.LightEmission = 1
3403 CFMagniDamage(CFrame.new(e), 30 / 2, 25, 30, 0, "KockDown")
3404 coroutine.resume(coroutine.create(function()
3405 SetTween(h, {
3406 Width0 = 0,
3407 Width1 = 50
3408 }, "Quad", "In", 1 / 3)
3409 SetTween(h, {
3410 TextureSpeed = 0
3411 }, "Back", "Out", 1 / 1.5)
3412 for a = 0, 4, 0.2 do
3413 Swait()
3414 h.Transparency = NumberSequence.new(a, (a) / 2)
3415 end
3416 game:GetService("Debris"):AddItem(g, .4)
3417 game:GetService("Debris"):AddItem(f, .4)
3418 game:GetService("Debris"):AddItem(c, .4)
3419 game:GetService("Debris"):AddItem(d, .4)
3420 end))
3421 coroutine.resume(coroutine.create(function()
3422 if a ~= nil then
3423 local a = Instance.new("Part", Effects)
3424 a.Transparency = 1
3425 a.CanCollide = false
3426 a.Anchored = true
3427 a.CFrame = CFrame.new(0, 0, 0) + e
3428 a.Size = Vector3.new(.05, .05, .05)
3429 game:GetService("Debris"):AddItem(a, 1.5)
3430 local b = i:Clone()
3431 b.Parent = a
3432 b.Acceleration = Vector3.new(0, 0, 0)
3433 b.Size = NumberSequence.new({
3434 NumberSequenceKeypoint.new(0, 0),
3435 NumberSequenceKeypoint.new(.25, 50 / 2),
3436 NumberSequenceKeypoint.new(1, 0)
3437 })
3438 b.Color = ColorSequence.new(Color3.new(1, 1, 0), Color3.new(255 / 255, 255 / 255, 0))
3439 b.Lifetime = NumberRange.new(.3 / 2, .4)
3440 b.Transparency = NumberSequence.new({
3441 NumberSequenceKeypoint.new(0, 1),
3442 NumberSequenceKeypoint.new(1, 0)
3443 })
3444 b.Speed = NumberRange.new(0)
3445 b.ZOffset = 6
3446 b.RotSpeed = NumberRange.new(-30, 30)
3447 b.Rotation = NumberRange.new(-360, 360)
3448 b.Texture = "rbxassetid://217245118"
3449 b:Emit(3)
3450 game:GetService("Debris"):AddItem(b, 0.5)
3451 else
3452 end
3453 end))
3454 end))
3455 end))
3456 else
3457 end
3458 Swait()
3459 end
3460 end))
3461 end))
3462 end))
3463 end
3464 wait(.1 / b)
3465 SetTween(t, {
3466 C0 = p * CFrame.new(0, 0, -.5) * angles(math.rad(50), math.rad(-45), math.rad(20))
3467 }, "Back", "In", .2)
3468 SetTween(u, {
3469 C0 = o * CFrame.new(0, 0, 0) * angles(math.rad(-10), math.rad(0), math.rad(-20))
3470 }, "Back", "In", .2)
3471 SetTween(q, {
3472 C0 = CFrame.new(1.5, 0.5, -.0) * angles(math.rad(45), math.rad(40), math.rad(45))
3473 }, "Back", "In", .2)
3474 SetTween(s, {
3475 C0 = CFrame.new(-1.5, 0.5, -.0) * angles(math.rad(20), math.rad(0), math.rad(-20))
3476 }, "Back", "In", .2)
3477 SetTween(r, {
3478 C0 = CFrame.new(.5, -1, 0) * angles(math.rad(-20), math.rad(0), math.rad(40))
3479 }, "Back", "In", .2)
3480 SetTween(f, {
3481 C0 = CFrame.new(-.5, -1, 0) * angles(math.rad(-20), math.rad(0), math.rad(20))
3482 }, "Back", "In", .2)
3483 wait(.25 / b)
3484 w = false
3485 end
3486 armormode = 0
3487 for a, a in pairs(ArmorParts) do
3488 if armormode == 0 then
3489 if a.Part.Name == "Armor2" then
3490 a.Part.Parent = nil
3491 end
3492 end
3493 end
3494 function Attack2()
3495 w = true
3496 local b = 1
3497 if w == true and mememode == true then
3498 b = 5
3499 end
3500 for a = 0, 1.5, .15 do
3501 Swait()
3502 local a = 0
3503 m = (0.60 * 2) * b
3504 Humanoid.JumpPower = 0
3505 Humanoid.WalkSpeed = 1
3506 local a = 0
3507 SetTween(t, {
3508 C0 = p * x(0, 0 + .25 * math.cos(A / 8), 3.5 + .4 * math.sin(A / 8 + a * math.cos(A / 8 * 2))) * angles(math.rad(20 - 2.5 * math.cos(A / 8)), math.rad((0 + 0 * math.cos(A / 8) / 20)), math.rad(20))
3509 }, "Quad", "InOut", 0.12)
3510 SetTween(u, {
3511 C0 = o * angles(math.rad(43.5 - 1.5 * math.cos(A / 8 + a * math.cos(A / 8 * 2))), math.rad(2.5 - 5.5 * math.cos(A / 16)), math.rad(-20 - 0.5 * math.cos(A / 15 + .4 * math.cos(A / 10))))
3512 }, "Quad", "InOut", 0.2)
3513 SetTween(q, {
3514 C0 = cf(1.45 + .0 * math.cos(A / 8), 0.5 + .05 * math.sin(A / 8), .0) * angles(math.rad(110 + 5 * math.cos(A / 8)), math.rad(-5), math.rad(20 + 4 * math.sin(A / 8)))
3515 }, "Quad", "Out", 0.2)
3516 SetTween(s, {
3517 C0 = cf(-1.45 + .0 * math.cos(A / 8), 0.5 + .05 * math.sin(A / 8), .0) * angles(math.rad(-20 + 5 * math.cos(A / 8)), math.rad(5), math.rad(-28 - 4 * math.sin(A / 8)))
3518 }, "Quad", "Out", 0.2)
3519 SetTween(r, {
3520 C0 = CFrame.new(.5, -0.45 + .1 * math.sin(A / 8 + a * math.sin(A / 8 * 2)), -0.4) * CFrame.Angles(math.rad(-21.5 + 10 * math.sin(A / 8)), math.rad(-25), math.rad(2.5 - 0.0 * math.sin(A / 8)))
3521 }, "Quad", "InOut", 0.1)
3522 SetTween(f, {
3523 C0 = CFrame.new(-.5, -0.85 + .1 * math.sin(A / 8 + a * math.sin(A / 8 * 2)), -.1) * CFrame.Angles(math.rad(11.5 + 5 * math.sin(A / 8)), math.rad(25), math.rad(-2.5 - 0.0 * math.sin(A / 8)))
3524 }, "Quad", "InOut", 0.1)
3525 end
3526 local d = 2.5
3527 if mememode == true then
3528 d = 5
3529 end
3530 coroutine.resume(coroutine.create(function()
3531 wait(.25 / b)
3532 so("231917970", RightArm, 2, 1)
3533 end))
3534 for a = 1, 4.9, .2 do
3535 coroutine.resume(coroutine.create(function()
3536 coroutine.resume(coroutine.create(function()
3537 coroutine.resume(coroutine.create(function()
3538 wait((.25 / b) / 2)
3539 end))
3540 coroutine.resume(coroutine.create(function()
3541 local b = RootPart.Position + Vector3.new(0, 10, 0)
3542 local e = (RootPart.CFrame * ANGLES(0, mr(90 * a), 0)).lookVector
3543 coroutine.resume(coroutine.create(function()
3544 for c = 1, 8, 1 do
3545 Swait(6)
3546 local a = 4
3547 local b = b + e * c * 5 * d
3548 local a = CF(b, b + e * 1)
3549 local a, b, a = rayCast(b, CFrame.new(b, b - Vector3.new(0, 1, 0)).lookVector, 80, Character)
3550 local b = CF(b, b + a) * ANGLES(RAD(-90 + math.random(-0, 0)), RAD(math.random(-360, 360)), RAD(math.random(-0, 0)))
3551 if b ~= nil then
3552 coroutine.resume(coroutine.create(function()
3553 coroutine.resume(coroutine.create(function()
3554 local a = Color3.new(151 / 255, 0 / 255, 0 / 255)
3555 local a = Color3.new(151 / 255, 0 / 255, 0 / 255)
3556 local b, e = rayCast(RightArm.CFrame.p, (CF(RightArm.CFrame.p, b.p - VT(0, 1, 0)) * ANGLES(mr(math.random(-0, 0)), mr(math.random(-0, 0)), mr(math.random(-0, 0)))).lookVector, 100, Character)
3557 local f = Instance.new("Part", Effects)
3558 f.Transparency = 1
3559 f.CanCollide = false
3560 f.Anchored = true
3561 f.CFrame = CFrame.new(0, 0, 0)
3562 f.Size = Vector3.new(.1, .1, .1)
3563 local g = Instance.new("Part", Effects)
3564 g.Transparency = 1
3565 g.CanCollide = false
3566 g.Anchored = true
3567 g.CFrame = RightArm.CFrame * CF(0, -1.5, 0)
3568 g.Size = Vector3.new(.1, .1, .1)
3569 local a = (g.Position - e).magnitude
3570 local c = Instance.new("Attachment", g)
3571 local d = Instance.new("Attachment", f)
3572 local h = Instance.new("Beam", f)
3573 d.Position = e
3574 c.Position = Vector3.new(0, 0, 0)
3575 h.Texture = "rbxassetid://457102813"
3576 h.Width0 = 0
3577 h.Width1 = 0
3578 h.FaceCamera = true
3579 h.Color = ColorSequence.new(Color3.new(1, 1, 0), Color3.new(255 / 255, 255 / 255, 0))
3580 h.Transparency = NumberSequence.new(0, 0)
3581 h.TextureLength = a / 100
3582 h.Attachment0 = c
3583 h.Attachment1 = d
3584 h.TextureSpeed = math.random(40, 70) / 1
3585 h.LightEmission = 1
3586 CFMagniDamage(CFrame.new(e), 30 / 5, 25, 30, 0, "KockDown")
3587 coroutine.resume(coroutine.create(function()
3588 SetTween(h, {
3589 Width0 = 0,
3590 Width1 = 5
3591 }, "Quad", "In", 1 / 3)
3592 SetTween(h, {
3593 TextureSpeed = 0
3594 }, "Back", "Out", 1 / 1.5)
3595 for a = 0, 4, 0.2 do
3596 Swait()
3597 h.Transparency = NumberSequence.new(a, (a) / 2)
3598 end
3599 game:GetService("Debris"):AddItem(g, .4)
3600 game:GetService("Debris"):AddItem(f, .4)
3601 game:GetService("Debris"):AddItem(c, .4)
3602 game:GetService("Debris"):AddItem(d, .4)
3603 end))
3604 coroutine.resume(coroutine.create(function()
3605 if b ~= nil then
3606 local a = Instance.new("Part", Effects)
3607 a.Transparency = 1
3608 a.CanCollide = false
3609 a.Anchored = true
3610 a.CFrame = CFrame.new(0, 0, 0) + e
3611 a.Size = Vector3.new(.05, .05, .05)
3612 game:GetService("Debris"):AddItem(a, 1.5)
3613 local b = i:Clone()
3614 b.Parent = a
3615 b.Acceleration = Vector3.new(0, 0, 0)
3616 b.Size = NumberSequence.new({
3617 NumberSequenceKeypoint.new(0, 0),
3618 NumberSequenceKeypoint.new(.25, 30),
3619 NumberSequenceKeypoint.new(1, 0)
3620 })
3621 b.Color = ColorSequence.new(Color3.new(1, 1, 0), Color3.new(255 / 255, 255 / 255, 0))
3622 b.Lifetime = NumberRange.new(.3 / 2, .4)
3623 b.Transparency = NumberSequence.new({
3624 NumberSequenceKeypoint.new(0, 1),
3625 NumberSequenceKeypoint.new(1, 0)
3626 })
3627 b.Speed = NumberRange.new(0)
3628 b.ZOffset = 6
3629 b.RotSpeed = NumberRange.new(-30, 30)
3630 b.Rotation = NumberRange.new(-360, 360)
3631 b.Texture = "rbxassetid://217245118"
3632 b:Emit(3)
3633 game:GetService("Debris"):AddItem(b, 0.5)
3634 else
3635 end
3636 end))
3637 end))
3638 end))
3639 else
3640 end
3641 end
3642 end))
3643 end))
3644 end))
3645 end))
3646 end
3647 wait(.1 / b)
3648 for a = 0, 2.5, .05 do
3649 Swait()
3650 local a = 0
3651 m = (0.60 * 2) * b
3652 Humanoid.JumpPower = 0
3653 Humanoid.WalkSpeed = 0
3654 local a = 0
3655 SetTween(t, {
3656 C0 = p * x(0, 0 + .25 * math.cos(A / 8), 3.5 + .4 * math.sin(A / 8 + a * math.cos(A / 8 * 2))) * angles(math.rad(-40 - 2.5 * math.cos(A / 8)), math.rad((0 + 0 * math.cos(A / 8) / 20)), math.rad(-20))
3657 }, "Quad", "InOut", 0.12)
3658 SetTween(u, {
3659 C0 = o * angles(math.rad(-13.5 - 1.5 * math.cos(A / 8 + a * math.cos(A / 8 * 2))), math.rad(2.5 - 5.5 * math.cos(A / 16)), math.rad(20 - 0.5 * math.cos(A / 15 + .4 * math.cos(A / 10))))
3660 }, "Quad", "InOut", 0.2)
3661 SetTween(q, {
3662 C0 = cf(1.45 + .0 * math.cos(A / 8), 0.5 + .05 * math.sin(A / 8), .0) * angles(math.rad(160 + 5 * math.cos(A / 8)), math.rad(-5), math.rad(20 + 4 * math.sin(A / 8)))
3663 }, "Quad", "Out", 0.2)
3664 SetTween(s, {
3665 C0 = cf(-1.45 + .0 * math.cos(A / 8), 0.5 + .05 * math.sin(A / 8), .0) * angles(math.rad(-20 + 5 * math.cos(A / 8)), math.rad(5), math.rad(-28 - 4 * math.sin(A / 8)))
3666 }, "Quad", "Out", 0.2)
3667 SetTween(r, {
3668 C0 = CFrame.new(.5, -0.45 + .1 * math.sin(A / 8 + a * math.sin(A / 8 * 2)), -0.4) * CFrame.Angles(math.rad(-21.5 + 10 * math.sin(A / 8)), math.rad(-25), math.rad(2.5 - 0.0 * math.sin(A / 8)))
3669 }, "Quad", "InOut", 0.1)
3670 SetTween(f, {
3671 C0 = CFrame.new(-.5, -0.85 + .1 * math.sin(A / 8 + a * math.sin(A / 8 * 2)), -.1) * CFrame.Angles(math.rad(11.5 + 5 * math.sin(A / 8)), math.rad(25), math.rad(-2.5 - 0.0 * math.sin(A / 8)))
3672 }, "Quad", "InOut", 0.1)
3673 end
3674 w = false
3675 end
3676 function Attack6()
3677 for a, a in pairs(GatherAllInstances(Effects)) do
3678 if a.Name == "Zombie" then
3679 a.Parent:Destroy()
3680 end
3681 end
3682 end
3683 function ClickCombo()
3684 if j == "Fall" or j == "Jump" then
3685 if Combo == 0 then
3686 end
3687 else
3688 if Combo == 0 then
3689 AT1()
3690 Combo = 1
3691 elseif Combo == 1 then
3692 AT2()
3693 Combo = 2
3694 elseif Combo == 2 then
3695 AT3()
3696 Combo = 0
3697 end
3698 end
3699 end
3700 local a = false
3701 Button1DownF = function()
3702 end
3703 Button1UpF = function()
3704 if a == true then
3705 a = false
3706 end
3707 end
3708 KeyUpF = function(a)
3709 if a == "f" then
3710 if flying == true then
3711 flying = false
3712 end
3713 end
3714 end
3715 KeyDownF = function(a)
3716 if a == "z" and w == false then
3717 Freeze_Attack()
3718 end
3719 if a == "x" and w == false then
3720 Falling_Light()
3721 end
3722 if a == "c" and w == false then
3723 Attack1()
3724 end
3725 if a == "v" and w == false then
3726 Attack2()
3727 end
3728 if a == "f" and w == false then
3729 FlyMove()
3730 end
3731 if a == "g" and w == false then
3732 end
3733 if a == "p" and w == false and k.Name == "123jl123" then
3734 if mememode == false then
3735 mememode = true
3736 l = "http://www.roblox.com/asset/?id=876542935"
3737 lastsongpos = 0
3738 y.TimePosition = lastsongpos
3739 else
3740 mememode = false
3741 n = n - 1
3742 KeyDownF("n")
3743 end
3744 end
3745 if a == "0" then
3746 if isruning == false then
3747 isruning = true
3748 end
3749 end
3750 if a == "m" then
3751 if playsong == true then
3752 playsong = false
3753 y:stop()
3754 elseif playsong == false then
3755 playsong = true
3756 y:play()
3757 end
3758 end
3759 if a == "n" and mememode == false then
3760 n = n + 1
3761 if n > 10 then
3762 n = 1
3763 end
3764 warn("now playing song Nr"..n)
3765 if n == 1 then
3766 l = "http://www.roblox.com/asset/?id=1386866434"
3767 elseif n == 2 then
3768 l = "http://www.roblox.com/asset/?id=580297034"
3769 elseif n == 3 then
3770 l = "http://www.roblox.com/asset/?id=2808524036"
3771 elseif n == 4 then
3772 l = "http://www.roblox.com/asset/?id=2736272477"
3773 elseif n == 5 then
3774 l = "http://www.roblox.com/asset/?id=849264979"
3775 elseif n == 6 then
3776 l = "http://www.roblox.com/asset/?id=2296638737"
3777 elseif n == 7 then
3778 l = "http://www.roblox.com/asset/?id=2937140184"
3779 elseif n == 8 then
3780 l = "http://www.roblox.com/asset/?id=2038437321"
3781 elseif n == 9 then
3782 l = "http://www.roblox.com/asset/?id=1590380675"
3783 elseif n == 10 then
3784 l = "http://www.roblox.com/asset/?id=1841275939"
3785 end
3786 lastsongpos = 0
3787 y.TimePosition = lastsongpos
3788 end
3789 end
3790 Humanoid.MaxHealth = 99999
3791 Humanoid.Health = 99999
3792 GainCharge = function()
3793 Humanoid.MaxHealth = 99999
3794 Humanoid.Health = 99999
3795 end
3796 Humanoid.HealthChanged:connect(function()
3797 GainCharge(Humanoid)
3798 end)
3799 ff = Instance.new("ForceField", Character)
3800 ff.Visible = false
3801 coroutine.resume(coroutine.create(function()
3802 while Humanoid.Health > 0.001 do
3803 A = A + m
3804 hitfloor = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character)
3805 local d = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
3806 local a = RootPart.Velocity.y
3807 if RootPart.Velocity.y > 1 and hitfloor == nil then
3808 j = "Jump"
3809 elseif RootPart.Velocity.y < -1 and hitfloor == nil then
3810 j = "Fall"
3811 elseif Humanoid.Sit == true then
3812 j = "Sit"
3813 elseif d < 1 and hitfloor ~= nil then
3814 j = "Idle"
3815 elseif d > 2 and hitfloor ~= nil then
3816 j = "Walk"
3817 else
3818 j = ""
3819 end
3820 local a = RootPart.CFrame
3821 local b = Humanoid.MoveDirection * a.LookVector
3822 local a = Humanoid.MoveDirection * a.RightVector
3823 v = b.X + b.Z
3824 h = a.X + a.Z
3825 coroutine.resume(coroutine.create(function()
3826 if y.Parent == nil or y == nil then
3827 y = c:Clone()
3828 y.Parent = Torso
3829 y.Name = "BGMusic"
3830 y.Pitch = 1
3831 y.Volume = 1.5
3832 y.Looped = true
3833 y.archivable = false
3834 y.TimePosition = lastsongpos
3835 if playsong == true then
3836 y:play()
3837 elseif playsong == false then
3838 y:stop()
3839 end
3840 else
3841 lastsongpos = y.TimePosition
3842 y.Pitch = 1
3843 y.Volume = 1.5
3844 y.Looped = true
3845 y.SoundId = l
3846 y.EmitterSize = 30
3847 end
3848 end))
3849 g = d * 1
3850 if g > 30 then
3851 g = 30
3852 end
3853 g = g / 50 * 2
3854 if w == false then
3855 if j == "Jump" then
3856 m = 0.60 * 2
3857 SetTween(t, {
3858 C0 = p * x(0, 0 + (0.0395 / 2) * math.cos(A / 8), 4 + 0.0395 * math.cos(A / 8)) * angles(math.rad(-6.5 - 1.5 * math.cos(A / 8)) + (g * v) / 2, math.rad(0) - (g * h) / 2, math.rad(0))
3859 }, "Quad", "Out", 0.4)
3860 SetTween(u, {
3861 C0 = o * CFrame.new(0, 0, 0) * angles(math.rad(-26.5 + 2.5 * math.cos(A / 8)), math.rad(0), math.rad(-0))
3862 }, "Quad", "Out", 0.25)
3863 SetTween(q, {
3864 C0 = cf(1.4 + .05 * math.cos(A / 8), 0.5 + .05 * math.cos(A / 8), .0) * angles(math.rad(140 - 2 * math.cos(A / 8)), math.rad(-5), math.rad(8 + 4 * math.cos(A / 8)))
3865 }, "Quad", "Out", 0.2)
3866 SetTween(s, {
3867 C0 = cf(-1.4 + .05 * math.cos(A / 8), 0.5 + .05 * math.cos(A / 8), .0) * angles(math.rad(140 - 2 * math.cos(A / 8)), math.rad(5), math.rad(-8 - 4 * math.cos(A / 8)))
3868 }, "Quad", "Out", 0.2)
3869 SetTween(r, {
3870 C0 = CFrame.new(.5, -0.85 + .05 * math.cos(A / 15), -.2) * CFrame.Angles(math.rad(-15 - 1 * math.cos(A / 10)), math.rad(0), math.rad(0))
3871 }, "Quad", "InOut", 0.075)
3872 SetTween(f, {
3873 C0 = CFrame.new(-.5, -0.35 + .05 * math.cos(A / 15), -.4) * CFrame.Angles(math.rad(-25 + 1 * math.cos(A / 10)), math.rad(0), math.rad(0))
3874 }, "Quad", "InOut", 0.075)
3875 elseif j == "Fall" then
3876 m = 0.60 * 2
3877 SetTween(t, {
3878 C0 = p * x(0, 0 + (0.0395 / 2) * math.cos(A / 8), -0.5 + 0.0395 * math.cos(A / 8)) * angles(math.rad(5.5 - 1.5 * math.cos(A / 8)) - (g * v) / 2, math.rad(0) + (g * h) / 2, math.rad(0))
3879 }, "Quad", "Out", .4)
3880 SetTween(u, {
3881 C0 = o * CFrame.new(0, 0, 0) * angles(math.rad(26.5 + 2.5 * math.cos(A / 8)), math.rad(0), math.rad(-0))
3882 }, "Quad", "Out", 0.25)
3883 SetTween(q, {
3884 C0 = cf(1.4 + .05 * math.cos(A / 8), 0.5 + .05 * math.cos(A / 8), .0) * angles(math.rad(105 - 2 * math.cos(A / 8)), math.rad(-15), math.rad(80 + 4 * math.cos(A / 8)))
3885 }, "Quad", "Out", 0.2)
3886 SetTween(s, {
3887 C0 = cf(-1.4 + .05 * math.cos(A / 8), 0.5 + .05 * math.cos(A / 8), .0) * angles(math.rad(105 - 2 * math.cos(A / 8)), math.rad(15), math.rad(-80 - 4 * math.cos(A / 8)))
3888 }, "Quad", "Out", 0.2)
3889 SetTween(r, {
3890 C0 = CFrame.new(.5, -0.15 + .05 * math.cos(A / 15), -.4) * CFrame.Angles(math.rad(-15 - 1 * math.cos(A / 10)), math.rad(0), math.rad(0))
3891 }, "Quad", "InOut", 0.1)
3892 SetTween(f, {
3893 C0 = CFrame.new(-.5, -0.55 + .05 * math.cos(A / 15), -.4) * CFrame.Angles(math.rad(-0 + 1 * math.cos(A / 10)), math.rad(0), math.rad(0))
3894 }, "Quad", "InOut", 0.1)
3895 elseif j == "Idle" then
3896 local a = 1
3897 if w == true and mememode == true then
3898 a = 5
3899 end
3900 m = (0.60 * 2) * a
3901 Humanoid.JumpPower = 60
3902 Humanoid.WalkSpeed = 16
3903 local a = 0
3904 SetTween(t, {
3905 C0 = p * x(0, 0 + .25 * math.cos(A / 8), 3 + .4 * math.sin(A / 8 + a * math.cos(A / 8 * 2))) * angles(math.rad(10 - 2.5 * math.cos(A / 8)), math.rad((0 + 0 * math.cos(A / 8) / 20)), math.rad(0))
3906 }, "Quad", "InOut", 0.12)
3907 SetTween(u, {
3908 C0 = o * angles(math.rad(16.5 - 1.5 * math.cos(A / 8 + a * math.cos(A / 8 * 2))), math.rad(2.5 - 5.5 * math.cos(A / 16)), math.rad(0 - 16.5 * math.cos(A / 15 + .4 * math.cos(A / 10))))
3909 }, "Quad", "InOut", 0.1)
3910 SetTween(q, {
3911 C0 = cf(1.45 + .0 * math.cos(A / 8), 0.6 + .05 * math.sin(A / 8), .0) * angles(math.rad(5 + 5 * math.cos(A / 8)), math.rad(-5), math.rad(28 + 4 * math.sin(A / 8)))
3912 }, "Quad", "Out", 0.25)
3913 SetTween(s, {
3914 C0 = cf(-1.45 + .0 * math.cos(A / 8), 0.6 + .05 * math.sin(A / 8), .0) * angles(math.rad(5 + 5 * math.cos(A / 8)), math.rad(5), math.rad(-28 - 4 * math.sin(A / 8)))
3915 }, "Quad", "Out", 0.25)
3916 SetTween(r, {
3917 C0 = CFrame.new(.5, -0.45 + .1 * math.sin(A / 8 + a * math.sin(A / 8 * 2)), -0.4) * CFrame.Angles(math.rad(-21.5 + 10 * math.sin(A / 8)), math.rad(-25), math.rad(2.5 - 0.0 * math.sin(A / 8)))
3918 }, "Quad", "InOut", 0.1)
3919 SetTween(f, {
3920 C0 = CFrame.new(-.5, -0.85 + .1 * math.sin(A / 8 + a * math.sin(A / 8 * 2)), -.1) * CFrame.Angles(math.rad(-11.5 + 5 * math.sin(A / 8)), math.rad(25), math.rad(-2.5 - 0.0 * math.sin(A / 8)))
3921 }, "Quad", "InOut", 0.1)
3922 elseif j == "Walk" then
3923 local a = 1.2
3924 if mememode == true then
3925 a = 4
3926 end
3927 m = 1.6 * a
3928 Humanoid.JumpPower = 60 * a
3929 Humanoid.WalkSpeed = 16 * a
3930 SetTween(t, {
3931 C0 = p * x(0, 0, 3 + 0.6 * math.sin(A / 8)) * x(h + (1.5 * h) * math.sin(A / 8), v - (1 * v) * math.cos(A / 8), -0.185 + 0.045 * math.cos(A / 28)) * angles(math.rad((-15 * v * math.sin(A / 8)) + ((v * 2) * 10)), math.rad((-h * 2) * 25), math.rad(1 * math.cos(A / 8)))
3932 }, "Linear", "InOut", WalkAnimMove / a * 3)
3933 SetTween(u, {
3934 C0 = o * x(0, 0, 0) * angles(math.rad((25 + 20 * v * math.sin(A / 8)) + (-v) * 18), math.rad((h) * 5), math.rad(-h * 45 + -1))
3935 }, "Linear", "InOut", WalkAnimMove / a * 3)
3936 SetTween(q, {
3937 C0 = x(1.45 + .0 * math.cos(A / 8), 0.5, 0) * angles(math.rad((10 * v * math.cos(A / 8)) - v * 25), math.rad(0 + v * 5), math.rad(18 - (h * 28) + v * -10 * math.sin(A / 8)))
3938 }, "Quad", "Out", WalkAnimMove / a * 3)
3939 SetTween(s, {
3940 C0 = x(-1.45 + .0 * math.cos(A / 8), 0.5, 0) * angles(math.rad((10 * v * math.cos(A / 8)) - v * 25), math.rad(0 - v * 5), math.rad(-18 - (h * 28) + v * 10 * math.sin(A / 8)))
3941 }, "Quad", "Out", WalkAnimMove / a * 3)
3942 SetTween(r, {
3943 C0 = x(.5, -.8, -.15) * CFrame.Angles(math.rad(-20 + (-20 * math.cos(A / 8)) * v * 1), math.rad(-5), math.rad((5 * v) - h * 15))
3944 }, "Quad", "InOut", WalkAnimMove / a * 3)
3945 SetTween(f, {
3946 C0 = x(-.5, -.6, -.3) * CFrame.Angles(math.rad(-20 + (-20 * math.cos(A / 8)) * v * 1), math.rad(5), math.rad((-5 * v) - h * 15))
3947 }, "Quad", "InOut", WalkAnimMove / a * 3)
3948 elseif j == "Sit" then
3949 SetTween(t, {
3950 C0 = p * CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0))
3951 }, "Quad", "InOut", 0.1)
3952 SetTween(u, {
3953 C0 = o * CFrame.new(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0))
3954 }, "Quad", "InOut", 0.1)
3955 SetTween(q, {
3956 C0 = CFrame.new(1.5, 0.5, -.0) * angles(math.rad(0), math.rad(0), math.rad(0))
3957 }, "Quad", "Out", 0.1)
3958 SetTween(s, {
3959 C0 = CFrame.new(-1.5, 0.5, -.0) * angles(math.rad(0), math.rad(0), math.rad(0))
3960 }, "Quad", "Out", 0.1)
3961 SetTween(r, {
3962 C0 = CFrame.new(.5, -1, 0) * angles(math.rad(90), math.rad(0), math.rad(0))
3963 }, "Quad", "InOut", 0.1)
3964 SetTween(f, {
3965 C0 = CFrame.new(-.5, -1, 0) * angles(math.rad(90), math.rad(0), math.rad(0))
3966 }, "Quad", "InOut", 0.1)
3967 end
3968 end
3969 Swait(Animstep)
3970 end
3971 end))
3972 coroutine.resume(coroutine.create(function()
3973 local a = Instance.new'RemoteFunction'
3974 a.Parent = Character
3975 a.OnServerInvoke = function(a, b, ...)
3976 if (a ~= k) then
3977 return error('You cannot invoke this remote', 0)
3978 end
3979 if (b == 1) then
3980 local a = ...
3981 KeyDownF(a)
3982 end
3983 if (b == 2) then
3984 local a = ...
3985 KeyUpF(a)
3986 end
3987 if (b == 3) then
3988 local a = ...
3989 if a == "Down" then
3990 Button1DownF(a)
3991 elseif a == "Up" then
3992 Button1UpF(a)
3993 end
3994 end
3995 if (b == 4) then
3996 local a = ...
3997 MTARGET = a
3998 end
3999 if (b == 5) then
4000 local a = ...
4001 MHIT = a
4002 end
4003 end
4004 a.Name = 'ServerRemote'
4005 local a = script.Keys
4006 a.Name = k.Name
4007 a.Parent = Character
4008 end))
4009end
4010coroutine.wrap(NVVLL_fake_script)()
4011wait(.1)
4012for i,v in pairs(workspace.CloneCharacter.Torso:GetDescendants()) do
4013 if v.ClassName == "Sound" then
4014 v.Playing = false
4015 end
4016end