SHOW:
|
|
- or go back to the newest paste.
1 | -- This script has been converted to FE by iPxter | |
2 | ||
3 | ||
4 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end | |
5 | local Player,Mouse,mouse,UserInputService,ContextActionService = owner | |
6 | do | |
7 | print("FE Compatibility code by Mokiros | Translated to FE by iPxter") | |
8 | script.Parent = Player.Character | |
9 | ||
10 | --RemoteEvent for communicating | |
11 | - | owner=game.Players.LocalPlayer |
11 | + | local Event = Instance.new("RemoteEvent") |
12 | - | Player = game.Players.LocalPlayer |
12 | + | Event.Name = "UserInput_Event" |
13 | ||
14 | --Fake event to make stuff like Mouse.KeyDown work | |
15 | local function fakeEvent() | |
16 | local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end} | |
17 | t.connect = t.Connect | |
18 | return t | |
19 | end | |
20 | ||
21 | --Creating fake input objects with fake variables | |
22 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()} | |
23 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} | |
24 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...) | |
25 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil | |
26 | end} | |
27 | --Merged 2 functions into one by checking amount of arguments | |
28 | CAS.UnbindAction = CAS.BindAction | |
29 | ||
30 | --This function will trigger the events that have been :Connect()'ed | |
31 | local function te(self,ev,...) | |
32 | local t = m[ev] | |
33 | if t and t._fakeEvent and t.Function then | |
34 | t.Function(...) | |
35 | end | |
36 | end | |
37 | m.TrigEvent = te | |
38 | UIS.TrigEvent = te | |
39 | ||
40 | Event.OnServerEvent:Connect(function(plr,io) | |
41 | if plr~=Player then return end | |
42 | if io.isMouse then | |
43 | m.Target = io.Target | |
44 | m.Hit = io.Hit | |
45 | else | |
46 | local b = io.UserInputState == Enum.UserInputState.Begin | |
47 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
48 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
49 | end | |
50 | for _,t in pairs(CAS.Actions) do | |
51 | for _,k in pairs(t.Keys) do | |
52 | if k==io.KeyCode then | |
53 | t.Function(t.Name,io.UserInputState,io) | |
54 | end | |
55 | end | |
56 | end | |
57 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
58 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
59 | end | |
60 | end) | |
61 | Event.Parent = NLS([==[ | |
62 | local Player = game:GetService("Players").LocalPlayer | |
63 | local Event = script:WaitForChild("UserInput_Event") | |
64 | ||
65 | local UIS = game:GetService("UserInputService") | |
66 | local input = function(io,a) | |
67 | if a then return end | |
68 | --Since InputObject is a client-side instance, we create and pass table instead | |
69 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState}) | |
70 | end | |
71 | UIS.InputBegan:Connect(input) | |
72 | UIS.InputEnded:Connect(input) | |
73 | ||
74 | local h,t | |
75 | --Give the server mouse data 30 times every second, but only if the values changed | |
76 | --If player is not moving their mouse, client won't fire events | |
77 | while wait(1/30) do | |
78 | if h~=Mouse.Hit or t~=Mouse.Target then | |
79 | h,t=Mouse.Hit,Mouse.Target | |
80 | Event:FireServer({isMouse=true,Target=t,Hit=h}) | |
81 | end | |
82 | end]==],Player.Character) | |
83 | Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS | |
84 | end | |
85 | Event.Parent = NLS([==[ | |
86 | local Player = owner | |
87 | local Event = script:WaitForChild("UserInput_Event") | |
88 | ||
89 | local UIS = game:GetService("UserInputService") | |
90 | local input = function(io,a) | |
91 | if a then return end | |
92 | --Since InputObject is a client-side instance, we create and pass table instead | |
93 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState}) | |
94 | end | |
95 | UIS.InputBegan:Connect(input) | |
96 | UIS.InputEnded:Connect(input) | |
97 | ||
98 | local h,t | |
99 | --Give the server mouse data 30 times every second, but only if the values changed | |
100 | --If player is not moving their mouse, client won't fire events | |
101 | while wait(1/30) do | |
102 | if h~=Mouse.Hit or t~=Mouse.Target then | |
103 | h,t=Mouse.Hit,Mouse.Target | |
104 | Event:FireServer({isMouse=true,Target=t,Hit=h}) | |
105 | end | |
106 | end]==],Player.Character) | |
107 | Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS | |
108 | end | |
109 | ||
110 | local TweenService = game:GetService("TweenService") | |
111 | local RbxUtility = LoadLibrary("RbxUtility") | |
112 | local Create = RbxUtility.Create | |
113 | ||
114 | MaskTextureId = 124337542 --124337542 2340547251 | |
115 | ||
116 | ||
117 | owner=owner | |
118 | Player = owner | |
119 | script.Parent = Player.PlayerGui | |
120 | ZTfade=false | |
121 | ZT=false | |
122 | ||
123 | while Player.Character == nil do wait() | |
124 | ||
125 | end | |
126 | ||
127 | ||
128 | Character= owner.Character | |
129 | Torso = Character.Torso | |
130 | Head = Character.Head | |
131 | Mouse = owner:GetMouse() | |
132 | Humanoid = Character.Humanoid | |
133 | LeftArm = Character["Left Arm"] | |
134 | LeftLeg = Character["Left Leg"] | |
135 | RightArm = Character["Right Arm"] | |
136 | RightLeg = Character["Right Leg"] | |
137 | RootPart = Character["HumanoidRootPart"] | |
138 | local Anim="Idle" | |
139 | local inairvel=0 | |
140 | local WalkAnimStep = 0 | |
141 | local sine = 0 | |
142 | local change = 1 | |
143 | Animstep = 0 | |
144 | WalkAnimMove=0.1 | |
145 | Combo = 0 | |
146 | local attack=false | |
147 | local RJ = Character.HumanoidRootPart:FindFirstChild("RootJoint") | |
148 | local Neck = Character.Torso:FindFirstChild("Neck") | |
149 | local Tim = "" | |
150 | local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14) | |
151 | local NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
152 | local ONeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
153 | Effects=Instance.new("Folder",Character) | |
154 | Effects.Name="Effects" | |
155 | it=Instance.new | |
156 | vt=Vector3.new | |
157 | cf=CFrame.new | |
158 | euler=CFrame.fromEulerAnglesXYZ | |
159 | angles=CFrame.Angles | |
160 | local cn = CFrame.new | |
161 | mr=math.rad | |
162 | mememode=false | |
163 | IT = Instance.new | |
164 | CF = CFrame.new | |
165 | VT = Vector3.new | |
166 | RAD = math.rad | |
167 | C3 = Color3.new | |
168 | UD2 = UDim2.new | |
169 | BRICKC = BrickColor.new | |
170 | ANGLES = CFrame.Angles | |
171 | EULER = CFrame.fromEulerAnglesXYZ | |
172 | COS = math.cos | |
173 | ACOS = math.acos | |
174 | SIN = math.sin | |
175 | ASIN = math.asin | |
176 | ABS = math.abs | |
177 | MRANDOM = math.random | |
178 | FLOOR = math.floor | |
179 | local lastid= "http://www.roblox.com/asset/?id=468582223" | |
180 | local s2=it("Sound",Torso) | |
181 | local CurId = 1 | |
182 | s2.EmitterSize = 30 | |
183 | local s2c=s2:Clone() | |
184 | ||
185 | ||
186 | ||
187 | ||
188 | ||
189 | local crying = "http://www.roblox.com/asset/?id=1452402780" | |
190 | local s3=it("Sound",Head) | |
191 | ||
192 | s3.EmitterSize = 40 | |
193 | local s3c=s3:Clone() | |
194 | ||
195 | ||
196 | ||
197 | Humanoid.MaxHealth = 99999999999 | |
198 | wait() | |
199 | ||
200 | Humanoid.Health = 99999999999 | |
201 | Humanoid.Name = "VoidBoss" | |
202 | ff = Instance.new("ForceField",Character) | |
203 | ff.Visible = false | |
204 | playsong = true | |
205 | ||
206 | s2.SoundId = lastid | |
207 | if playsong == true then | |
208 | s2:play() | |
209 | elseif playsong == false then | |
210 | s2:stop() | |
211 | end | |
212 | lastsongpos= 0 | |
213 | ||
214 | crosshair = Instance.new("BillboardGui",Character) | |
215 | crosshair.Size = UDim2.new(10,0,10,0) | |
216 | crosshair.Enabled = false | |
217 | imgl = Instance.new("ImageLabel",crosshair) | |
218 | imgl.Position = UDim2.new(0,0,0,0) | |
219 | imgl.Size = UDim2.new(1,0,1,0) | |
220 | imgl.Image = "rbxassetid://578065407" | |
221 | imgl.BackgroundTransparency = 1 | |
222 | imgl.ImageTransparency = .7 | |
223 | imgl.ImageColor3 = Color3.new(1,1,1) | |
224 | crosshair.StudsOffset = Vector3.new(0,0,-1) | |
225 | ||
226 | ||
227 | if Character:FindFirstChild("Animate")then | |
228 | Character.Animate:Destroy() | |
229 | end | |
230 | ||
231 | function RemoveOutlines(part) | |
232 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
233 | end | |
234 | ||
235 | ||
236 | ||
237 | ||
238 | CFuncs = { | |
239 | Part = {Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
240 | ||
241 | local Part = Create("Part")({Parent = Parent, Reflectance = Reflectance, Transparency = Transparency, CanCollide = false, Locked = true, BrickColor = BrickColor.new(tostring(BColor)), Name = Name, Size = Size, Material = Material}) | |
242 | RemoveOutlines(Part) | |
243 | return Part | |
244 | end | |
245 | } | |
246 | , | |
247 | Mesh = {Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
248 | ||
249 | local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale}) | |
250 | if Mesh == "SpecialMesh" then | |
251 | Msh.MeshType = MeshType | |
252 | Msh.MeshId = MeshId | |
253 | end | |
254 | return Msh | |
255 | end | |
256 | } | |
257 | , | |
258 | Mesh = {Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
259 | ||
260 | local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale}) | |
261 | if Mesh == "SpecialMesh" then | |
262 | Msh.MeshType = MeshType | |
263 | Msh.MeshId = MeshId | |
264 | end | |
265 | return Msh | |
266 | end | |
267 | } | |
268 | , | |
269 | Weld = {Create = function(Parent, Part0, Part1, C0, C1) | |
270 | ||
271 | local Weld = Create("Weld")({Parent = Parent, Part0 = Part0, Part1 = Part1, C0 = C0, C1 = C1}) | |
272 | return Weld | |
273 | end | |
274 | } | |
275 | , | |
276 | Sound = {Create = function(id, par, vol, pit) | |
277 | ||
278 | coroutine.resume(coroutine.create(function() | |
279 | ||
280 | local S = Create("Sound")({Volume = vol, Pitch = pit or 1, SoundId = "http://www.roblox.com/asset/?id="..id, Parent = par or workspace}) | |
281 | wait() | |
282 | S:play() | |
283 | game:GetService("Debris"):AddItem(S, 12) | |
284 | end | |
285 | )) | |
286 | end | |
287 | } | |
288 | , | |
289 | ParticleEmitter = {Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread) | |
290 | ||
291 | local fp = Create("ParticleEmitter")({Parent = Parent, Color = ColorSequence.new(Color1, Color2), LightEmission = LightEmission, Size = Size, Texture = Texture, Transparency = Transparency, ZOffset = ZOffset, Acceleration = Accel, Drag = Drag, LockedToPart = LockedToPart, VelocityInheritance = VelocityInheritance, EmissionDirection = EmissionDirection, Enabled = Enabled, Lifetime = LifeTime, Rate = Rate, Rotation = Rotation, RotSpeed = RotSpeed, Speed = Speed, VelocitySpread = VelocitySpread}) | |
292 | return fp | |
293 | end | |
294 | } | |
295 | } | |
296 | ||
297 | ||
298 | ||
299 | ||
300 | ||
301 | coroutine.resume(coroutine.create(function() | |
302 | if Head:FindFirstChildOfClass("Decal") then | |
303 | local face = Head:FindFirstChildOfClass("Decal") | |
304 | face:Destroy() | |
305 | end | |
306 | ||
307 | end)) | |
308 | ||
309 | ||
310 | ||
311 | ||
312 | ||
313 | ||
314 | ||
315 | for i, v in pairs(Character:GetChildren()) do | |
316 | if v:IsA("Accessory") then | |
317 | v:Destroy() | |
318 | end | |
319 | end | |
320 | ||
321 | ||
322 | --------------- | |
323 | --[Functions]-- | |
324 | --------------- | |
325 | so = function(id, par, vol, pit) | |
326 | ||
327 | CFuncs.Sound.Create(id, par, vol, pit) | |
328 | ||
329 | ||
330 | end | |
331 | ||
332 | function weld(parent,part0,part1,c0) | |
333 | local weld=it("Weld") | |
334 | weld.Parent=parent | |
335 | weld.Part0=part0 | |
336 | weld.Part1=part1 | |
337 | weld.C0=c0 | |
338 | return weld | |
339 | end | |
340 | ||
341 | ||
342 | function MakeJoint(parent,part0,part1,c0) | |
343 | local weld=it("Motor6D") | |
344 | weld.Parent=parent | |
345 | weld.Part0=part0 | |
346 | weld.Part1=part1 | |
347 | weld.C0=c0 | |
348 | return weld | |
349 | end | |
350 | ||
351 | rayCast = function(Pos, Dir, Max, Ignore) | |
352 | ||
353 | return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) | |
354 | end | |
355 | function CastProperRay(StartPos, EndPos, Distance, Ignore) | |
356 | local DIRECTION = CF(StartPos,EndPos).lookVector | |
357 | return rayCast(StartPos, DIRECTION, Distance, Ignore) | |
358 | end | |
359 | ||
360 | function SetTween(SPart,CFr,MoveStyle2,outorin2,AnimTime) | |
361 | local MoveStyle = Enum.EasingStyle[MoveStyle2] | |
362 | local outorin = Enum.EasingDirection[outorin2] | |
363 | ||
364 | ||
365 | local dahspeed=1 | |
366 | ||
367 | local tweeningInformation = TweenInfo.new( | |
368 | AnimTime/dahspeed, | |
369 | MoveStyle, | |
370 | outorin, | |
371 | 0, | |
372 | false, | |
373 | 0 | |
374 | ) | |
375 | local MoveCF = CFr | |
376 | local tweenanim = TweenService:Create(SPart,tweeningInformation,MoveCF) | |
377 | tweenanim:Play() | |
378 | end | |
379 | ||
380 | function GatherAllInstances(Parent,ig) | |
381 | local Instances = {} | |
382 | local Ignore=nil | |
383 | if ig ~= nil then | |
384 | Ignore = ig | |
385 | end | |
386 | ||
387 | local function GatherInstances(Parent,Ignore) | |
388 | for i, v in pairs(Parent:GetChildren()) do | |
389 | ||
390 | if v ~= Ignore then | |
391 | GatherInstances(v,Ignore) | |
392 | table.insert(Instances, v) end | |
393 | end | |
394 | end | |
395 | GatherInstances(Parent,Ignore) | |
396 | return Instances | |
397 | end | |
398 | ||
399 | ||
400 | ||
401 | ||
402 | ||
403 | ||
404 | ||
405 | ||
406 | ||
407 | function WeldAllTo(Part1,Part2,Extra) | |
408 | ||
409 | local EXCF = Part2.CFrame * Extra | |
410 | ||
411 | for i, v3 in pairs(GatherAllInstances(Part2)) do | |
412 | if v3:isA("BasePart") then | |
413 | ||
414 | ||
415 | local STW=weld(v3,v3,Part1,EXCF:toObjectSpace(v3.CFrame):inverse() ) | |
416 | ||
417 | ||
418 | v3.Anchored=false | |
419 | --v3.Transparency=0 | |
420 | v3.CanCollide=false | |
421 | ||
422 | v3.Parent = Part1 | |
423 | ||
424 | end | |
425 | end | |
426 | ||
427 | ||
428 | Part2:Destroy() | |
429 | ||
430 | end | |
431 | local SToneTexture = Create("Texture")({ | |
432 | ||
433 | ||
434 | Texture = "http://www.roblox.com/asset/?id=1693385655", | |
435 | Color3 = Color3.new(163/255, 162/255, 165/255), | |
436 | ||
437 | }) | |
438 | ||
439 | function AddStoneTexture(part) | |
440 | coroutine.resume(coroutine.create(function() | |
441 | for i = 0,6,1 do | |
442 | local Tx = SToneTexture:Clone() | |
443 | Tx.Face = i | |
444 | Tx.Parent=part | |
445 | end | |
446 | end)) | |
447 | end | |
448 | ||
449 | New = function(Object, Parent, Name, Data) | |
450 | local Object = Instance.new(Object) | |
451 | for Index, Value in pairs(Data or {}) do | |
452 | Object[Index] = Value | |
453 | end | |
454 | Object.Parent = Parent | |
455 | Object.Name = Name | |
456 | return Object | |
457 | end | |
458 | function recurse(root,callback,i) | |
459 | coroutine.resume(coroutine.create(function() | |
460 | i= i or 0 | |
461 | for _,v in pairs(root:GetChildren()) do | |
462 | i = i + 1 | |
463 | callback(i,v) | |
464 | ||
465 | if #v:GetChildren() > 0 then | |
466 | i = recurse(v,callback,i) | |
467 | end | |
468 | end | |
469 | end)) | |
470 | return i | |
471 | end | |
472 | ||
473 | function ragdollJoint(part0, part1, attachmentName, className, properties) | |
474 | ||
475 | attachmentName = attachmentName--.."RigAttachment" | |
476 | ||
477 | ||
478 | local constraint = Instance.new(className.."Constraint") | |
479 | constraint.Attachment0 = part0:FindFirstChild(attachmentName) | |
480 | constraint.Attachment1 = part1:FindFirstChild(attachmentName) | |
481 | constraint.Name = "RagdollConstraint"..part1.Name | |
482 | ||
483 | for _,propertyData in next,properties or {} do | |
484 | constraint[propertyData[1]] = propertyData[2] | |
485 | end | |
486 | ||
487 | local Rcharacter = part0.Parent | |
488 | constraint.Parent = Rcharacter | |
489 | end | |
490 | ||
491 | function MakeAth(AthParent,AthName,AthPosX,AthPosY,AthPosZ,AthRot,AthAX,SecondaryAxis) | |
492 | ||
493 | coroutine.resume(coroutine.create(function() | |
494 | local ATH = Instance.new("Attachment",AthParent) | |
495 | ATH.Position = Vector3.new(AthPosX,AthPosY,AthPosZ) | |
496 | ATH.Name = AthName | |
497 | if AthRot ~= nil then | |
498 | ATH.Rotation = AthRot end | |
499 | if AthAX ~= nil then | |
500 | ATH.Axis = AthAX end | |
501 | if SecondaryAxis ~= nil then | |
502 | ATH.SecondaryAxis = SecondaryAxis end | |
503 | end)) | |
504 | end | |
505 | function getAttachment0(attachmentName,Rcharacter) | |
506 | for i, child in pairs(GatherAllInstances(Rcharacter)) do | |
507 | local attachment = child:FindFirstChild(attachmentName) | |
508 | if attachment then | |
509 | return attachment | |
510 | ||
511 | end | |
512 | ||
513 | end | |
514 | ||
515 | ||
516 | ||
517 | ||
518 | ||
519 | end | |
520 | ||
521 | function makrag(Rcharacter) | |
522 | ||
523 | ||
524 | --HitModel | |
525 | ||
526 | ||
527 | local camera = workspace.CurrentCamera | |
528 | ||
529 | --Make it so ragdoll can't collide with invisible HRP, but don't let HRP fall through map and be destroyed in process | |
530 | coroutine.resume(coroutine.create(function() | |
531 | if Rcharacter:FindFirstChild("HumanoidRootPart")then | |
532 | Rcharacter.HumanoidRootPart.Anchored = true | |
533 | Rcharacter.HumanoidRootPart.CanCollide = false | |
534 | --- Rcharacter.HumanoidRootPart.Position = Vector3.new(0,-10,0) | |
535 | Rcharacter.HumanoidRootPart.Parent = nil | |
536 | end | |
537 | end)) | |
538 | --Helps to fix constraint spasms | |
539 | recurse(Rcharacter, function(_,v) | |
540 | if v:IsA("Attachment") then | |
541 | v.Axis = Vector3.new(0, 1, 0) | |
542 | v.SecondaryAxis = Vector3.new(0, 0, 1) | |
543 | v.Rotation = Vector3.new(0, 0, 0) | |
544 | end | |
545 | end) | |
546 | ||
547 | --Re-attach hats | |
548 | ||
549 | ||
550 | coroutine.resume(coroutine.create(function() | |
551 | if Rcharacter:FindFirstChild("Torso")then | |
552 | ||
553 | local RMT = Rcharacter:FindFirstChild("Torso") | |
554 | ||
555 | local RMH = Rcharacter:FindFirstChild("Head") | |
556 | ||
557 | local RLA = Rcharacter:FindFirstChild("Left Arm") | |
558 | ||
559 | local RRA = Rcharacter:FindFirstChild("Right Arm") | |
560 | ||
561 | local RLL = Rcharacter:FindFirstChild("Left Leg") | |
562 | ||
563 | local RRL = Rcharacter:FindFirstChild("Right Leg") | |
564 | ||
565 | --MakeAth(RMH,"",0,0,0) | |
566 | MakeAth(RMH,"NeckRigAttachment",0,-.5,0) | |
567 | MakeAth(RRA,"RightShoulderRigAttachment",-0.4, 0.8, 0,Vector3.new(-180, 0, 90),Vector3.new(0, -1, -0),Vector3.new(0, 1, 0)) | |
568 | MakeAth(RLA,"LeftShoulderRigAttachment",0.4, 0.8, 0,Vector3.new(-180, 0, 90),Vector3.new(0, -1, -0),Vector3.new(-1, 0, 0)) | |
569 | MakeAth(RRL,"RightHipRigAttachment",0, 1, 0,Vector3.new(90, -90, 0),Vector3.new(0, -1, -0),Vector3.new(0, -0, 1)) | |
570 | MakeAth(RLL,"LeftHipRigAttachment",0, 1, 0,Vector3.new(90, -90, 0),Vector3.new(0, -1, -0),Vector3.new(0, -0, 1)) | |
571 | ------------------------------------------------------ | |
572 | MakeAth(RMT,"NeckRigAttachment",0, 1, 0) | |
573 | MakeAth(RMT,"RightShoulderRigAttachment",1, 0.8, 0,Vector3.new(-180, 0, 0),Vector3.new(1, -0, 0),Vector3.new(0, -1, 0)) | |
574 | MakeAth(RMT,"LeftShoulderRigAttachment",-1, 0.8, 0,Vector3.new(0, 0, -180),Vector3.new(-1, -0, 0),Vector3.new(0, -1, 0)) | |
575 | MakeAth(RMT,"RightHipRigAttachment",0.5, -1.1, 0,Vector3.new(90, -90, 0),Vector3.new(0, -1, -0),Vector3.new(0, -0, 1)) | |
576 | MakeAth(RMT,"LeftHipRigAttachment",-0.5, -1.1, 0,Vector3.new(90, -90, 0),Vector3.new(0, -1, -0),Vector3.new(0, -0, 1)) | |
577 | ||
578 | ||
579 | ||
580 | ||
581 | ||
582 | ||
583 | ||
584 | ||
585 | coroutine.resume(coroutine.create(function() | |
586 | local LAT = Instance.new("BallSocketConstraint") | |
587 | LAT.Parent = RMT | |
588 | LAT.Attachment0 = RLA.LeftShoulderRigAttachment | |
589 | LAT.Attachment1 = RMT.LeftShoulderRigAttachment | |
590 | LAT.Enabled = true | |
591 | LAT.LimitsEnabled=true | |
592 | LAT.UpperAngle=70 | |
593 | end)) | |
594 | coroutine.resume(coroutine.create(function() | |
595 | local RAT = Instance.new("BallSocketConstraint") | |
596 | RAT.Parent = RMT | |
597 | RAT.Attachment0 = RRA.RightShoulderRigAttachment | |
598 | RAT.Attachment1 = RMT.RightShoulderRigAttachment | |
599 | RAT.Enabled = true | |
600 | RAT.LimitsEnabled=true | |
601 | RAT.UpperAngle=70 | |
602 | end)) | |
603 | coroutine.resume(coroutine.create(function() | |
604 | local TLL = Instance.new("BallSocketConstraint") | |
605 | TLL.Parent = RMT | |
606 | TLL.Attachment0 = RLL.LeftHipRigAttachment | |
607 | TLL.Attachment1 = RMT.LeftHipRigAttachment | |
608 | TLL.Enabled = true | |
609 | TLL.LimitsEnabled=true | |
610 | TLL.UpperAngle=70 | |
611 | end)) | |
612 | coroutine.resume(coroutine.create(function() | |
613 | local TRL = Instance.new("BallSocketConstraint") | |
614 | TRL.Parent = RMT | |
615 | TRL.Attachment0 = RRL.RightHipRigAttachment | |
616 | TRL.Attachment1 = RMT.RightHipRigAttachment | |
617 | TRL.Enabled = true | |
618 | TRL.LimitsEnabled=true | |
619 | TRL.UpperAngle=70 | |
620 | end)) | |
621 | ||
622 | end | |
623 | end)) | |
624 | coroutine.resume(coroutine.create(function() | |
625 | ragdollJoint(Rcharacter.LowerTorso, Rcharacter.UpperTorso, "WaistRigAttachment", "BallSocket", { | |
626 | {"LimitsEnabled",true}; | |
627 | {"UpperAngle",5}; | |
628 | }) end)) coroutine.resume(coroutine.create(function() | |
629 | local NeckProperties = { | |
630 | {"LimitsEnabled", true}; | |
631 | {"UpperAngle",5}; | |
632 | ||
633 | } | |
634 | local Rtorso = Rcharacter:FindFirstChild("Torso") or Rcharacter:FindFirstChild("UpperTorso") | |
635 | ragdollJoint(Rtorso, Rcharacter.Head, "NeckRigAttachment", "Hinge", NeckProperties) | |
636 | end)) coroutine.resume(coroutine.create(function() | |
637 | ||
638 | local handProperties = { | |
639 | {"LimitsEnabled", true}; | |
640 | {"UpperAngle",0}; | |
641 | {"LowerAngle",0}; | |
642 | } | |
643 | ragdollJoint(Rcharacter.LeftLowerArm, Rcharacter.LeftHand, "LeftWristRigAttachment", "Hinge", handProperties) | |
644 | ragdollJoint(Rcharacter.RightLowerArm, Rcharacter.RightHand, "RightWristRigAttachment", "Hinge", handProperties) | |
645 | end)) coroutine.resume(coroutine.create(function() | |
646 | local shinProperties = { | |
647 | {"LimitsEnabled", true}; | |
648 | {"UpperAngle", 0}; | |
649 | {"LowerAngle", -75}; | |
650 | } | |
651 | ragdollJoint(Rcharacter.LeftUpperLeg, Rcharacter.LeftLowerLeg, "LeftKneeRigAttachment", "Hinge", shinProperties) | |
652 | ragdollJoint(Rcharacter.RightUpperLeg, Rcharacter.RightLowerLeg, "RightKneeRigAttachment", "Hinge", shinProperties) | |
653 | end)) coroutine.resume(coroutine.create(function() | |
654 | local footProperties = { | |
655 | {"LimitsEnabled", true}; | |
656 | {"UpperAngle", 15}; | |
657 | {"LowerAngle", -45}; | |
658 | } | |
659 | ragdollJoint(Rcharacter.LeftLowerLeg, Rcharacter.LeftFoot, "LeftAnkleRigAttachment", "Hinge", footProperties) | |
660 | ragdollJoint(Rcharacter.RightLowerLeg, Rcharacter.RightFoot, "RightAnkleRigAttachment", "Hinge", footProperties) | |
661 | end)) | |
662 | --TODO fix ability for socket to turn backwards whenn ConeConstraints are shipped | |
663 | coroutine.resume(coroutine.create(function() | |
664 | ragdollJoint(Rcharacter.UpperTorso, Rcharacter.LeftUpperArm, "LeftShoulderRigAttachment", "BallSocket") end)) coroutine.resume(coroutine.create(function() | |
665 | ragdollJoint(Rcharacter.LeftUpperArm, Rcharacter.LeftLowerArm, "LeftElbowRigAttachment", "BallSocket") end)) coroutine.resume(coroutine.create(function() | |
666 | ragdollJoint(Rcharacter.UpperTorso, Rcharacter.RightUpperArm, "RightShoulderRigAttachment", "BallSocket") end)) coroutine.resume(coroutine.create(function() | |
667 | ragdollJoint(Rcharacter.RightUpperArm, Rcharacter.RightLowerArm, "RightElbowRigAttachment", "BallSocket") end)) coroutine.resume(coroutine.create(function() | |
668 | ragdollJoint(Rcharacter.LowerTorso, Rcharacter.LeftUpperLeg, "LeftHipRigAttachment", "BallSocket") end)) coroutine.resume(coroutine.create(function() | |
669 | ragdollJoint(Rcharacter.LowerTorso, Rcharacter.RightUpperLeg, "RightHipRigAttachment", "BallSocket") end)) | |
670 | ||
671 | ||
672 | for i = 0,2 do | |
673 | coroutine.resume(coroutine.create(function() | |
674 | for _,child in next,Rcharacter:GetChildren() do | |
675 | if child:IsA("Accoutrement") then | |
676 | --Loop through all parts instead of only checking for one to be forwards-compatible in the event | |
677 | --ROBLOX implements multi-part accessories | |
678 | for _,part in next,child:GetChildren() do | |
679 | if part:IsA("BasePart") then part.CanCollide = false | |
680 | ||
681 | ||
682 | local attachment1 = part:FindFirstChildOfClass("Attachment") | |
683 | local attachment0 = getAttachment0(attachment1.Name,Rcharacter) | |
684 | if attachment0 and attachment1 then | |
685 | --Shouldn't use constraints for this, but have to because of a ROBLOX idiosyncrasy where | |
686 | --joints connecting a character are perpetually deleted while the character is dead | |
687 | ||
688 | ||
689 | local HatProperties = { | |
690 | {"LimitsEnabled", true}; | |
691 | {"UpperAngle", 0}; | |
692 | {"LowerAngle", -0}; | |
693 | } | |
694 | ||
695 | coroutine.resume(coroutine.create(function() | |
696 | wait() | |
697 | local rg = ragdollJoint(attachment0.Parent, part, ""..attachment1.Name, "Hinge", HatProperties) | |
698 | end)) | |
699 | ||
700 | end | |
701 | end | |
702 | end | |
703 | end | |
704 | end | |
705 | ||
706 | end)) | |
707 | wait(0.5) | |
708 | end | |
709 | for _,v in pairs(Rcharacter:GetChildren()) do | |
710 | if v:isA("Script") or v:isA("LocalScript") then | |
711 | v:Destroy() | |
712 | end | |
713 | end | |
714 | ||
715 | ||
716 | coroutine.resume(coroutine.create(function() | |
717 | wait(1) | |
718 | for _,v3 in pairs(game:GetService("Players"):GetChildren()) do | |
719 | coroutine.resume(coroutine.create(function() | |
720 | if v3:isA("Player") and v3.Character == Rcharacter then | |
721 | Rcharacter.Archivable=true | |
722 | local ORcharacter = Rcharacter:Clone() | |
723 | --Rcharacter2.Archivable=false | |
724 | --Rcharacter3.Archivable=false | |
725 | ORcharacter.Parent = Rcharacter.Parent | |
726 | local Rhum = ORcharacter:FindFirstChildOfClass("Humanoid") | |
727 | Rhum.PlatformStand = true | |
728 | Rhum.Health = Rhum.MaxHealth | |
729 | Rcharacter:Destroy() | |
730 | wait() | |
731 | Rhum.Health = 0 | |
732 | game:GetService("Debris"):AddItem(ORcharacter, 380) | |
733 | ||
734 | end | |
735 | end)) | |
736 | end | |
737 | ||
738 | ||
739 | end)) | |
740 | ||
741 | ||
742 | end | |
743 | ||
744 | ||
745 | function Tran(Num) | |
746 | local GivenLeter = "" | |
747 | if Num == "1" then | |
748 | GivenLeter = "a" | |
749 | elseif Num == "2" then | |
750 | GivenLeter = "b" | |
751 | elseif Num == "3" then | |
752 | GivenLeter = "c" | |
753 | elseif Num == "4" then | |
754 | GivenLeter = "d" | |
755 | elseif Num == "5" then | |
756 | GivenLeter = "e" | |
757 | elseif Num == "6" then | |
758 | GivenLeter = "f" | |
759 | elseif Num == "7" then | |
760 | GivenLeter = "g" | |
761 | elseif Num == "8" then | |
762 | GivenLeter = "h" | |
763 | elseif Num == "9" then | |
764 | GivenLeter = "i" | |
765 | elseif Num == "10" then | |
766 | GivenLeter = "j" | |
767 | elseif Num == "11" then | |
768 | GivenLeter = "k" | |
769 | elseif Num == "12" then | |
770 | GivenLeter = "l" | |
771 | elseif Num == "13" then | |
772 | GivenLeter = "m" | |
773 | elseif Num == "14" then | |
774 | GivenLeter = "n" | |
775 | elseif Num == "15" then | |
776 | GivenLeter = "o" | |
777 | elseif Num == "16" then | |
778 | GivenLeter = "p" | |
779 | elseif Num == "17" then | |
780 | GivenLeter = "q" | |
781 | elseif Num == "18" then | |
782 | GivenLeter = "r" | |
783 | elseif Num == "19" then | |
784 | GivenLeter = "s" | |
785 | elseif Num == "20" then | |
786 | GivenLeter = "t" | |
787 | elseif Num == "21" then | |
788 | GivenLeter = "u" | |
789 | elseif Num == "22" then | |
790 | GivenLeter = "v" | |
791 | elseif Num == "23" then | |
792 | GivenLeter = "w" | |
793 | elseif Num == "24" then | |
794 | GivenLeter = "x" | |
795 | elseif Num == "25" then | |
796 | GivenLeter = "y" | |
797 | elseif Num == "26" then | |
798 | GivenLeter = "z" | |
799 | elseif Num == "27" then | |
800 | GivenLeter = "_" | |
801 | elseif Num == "28" then | |
802 | GivenLeter = "0" | |
803 | elseif Num == "29" then | |
804 | GivenLeter = "1" | |
805 | elseif Num == "30" then | |
806 | GivenLeter = "2" | |
807 | elseif Num == "31" then | |
808 | GivenLeter = "3" | |
809 | elseif Num == "32" then | |
810 | GivenLeter = "4" | |
811 | elseif Num == "33" then | |
812 | GivenLeter = "5" | |
813 | elseif Num == "34" then | |
814 | GivenLeter = "6" | |
815 | elseif Num == "35" then | |
816 | GivenLeter = "7" | |
817 | elseif Num == "36" then | |
818 | GivenLeter = "8" | |
819 | elseif Num == "37" then | |
820 | GivenLeter = "9" | |
821 | end | |
822 | return GivenLeter | |
823 | ||
824 | end | |
825 | ||
826 | function MaybeOk(Mode,Extra) | |
827 | local ReturningValue = "" | |
828 | if Mode == 1 then | |
829 | ||
830 | ||
831 | ||
832 | -- v.C0 = CFrame.new(1,1,1)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)) | |
833 | ||
834 | --print(v.C0) | |
835 | local GivenText = "" | |
836 | local msg = Extra | |
837 | local Txt = "" | |
838 | local FoundTime=0 | |
839 | local LastFound = 0 | |
840 | delay(wait(0),function() | |
841 | for v3 = 1, #msg do | |
842 | ||
843 | if string.sub(msg,0+v3,v3) == "," then | |
844 | ||
845 | local TheN = string.sub(msg,LastFound,v3-1) | |
846 | ||
847 | ||
848 | local NumTranslate = Tran(string.sub(msg,LastFound,v3-1)) | |
849 | ||
850 | ||
851 | ||
852 | FoundTime = FoundTime + 1 | |
853 | ||
854 | ||
855 | GivenText = GivenText..NumTranslate | |
856 | ||
857 | LastFound=v3+1 | |
858 | Txt="" | |
859 | end | |
860 | Txt=string.sub(msg,1,v3) | |
861 | ||
862 | ||
863 | -- Gui.ExtentsOffset = Vector3.new(0,3,0) | |
864 | ||
865 | ||
866 | -- Gui.ExtentsOffset = Vector3.new(0,3,0) | |
867 | wait() | |
868 | -- Gui.ExtentsOffset = Vector3.new(0,3,0) | |
869 | end; | |
870 | ||
871 | ReturningValue=GivenText | |
872 | for v3 = 1, #Txt do | |
873 | Txt=string.sub(msg,-1,v3) | |
874 | ||
875 | ||
876 | ||
877 | ||
878 | ||
879 | ||
880 | ||
881 | end; | |
882 | -- Gui:remove() | |
883 | end) | |
884 | ||
885 | ||
886 | elseif Mode == 2 then | |
887 | ||
888 | print("fat") | |
889 | end | |
890 | ||
891 | ||
892 | ||
893 | while ReturningValue == "" do wait() end | |
894 | return ReturningValue | |
895 | ||
896 | end | |
897 | ||
898 | ||
899 | ||
900 | ---------------------- | |
901 | --[End Of Functions]-- | |
902 | ---------------------- | |
903 | ||
904 | ||
905 | ||
906 | ||
907 | ||
908 | ||
909 | ------------------ | |
910 | --[Sword]-- | |
911 | ------------------ | |
912 | ||
913 | ||
914 | ||
915 | ||
916 | function sandbox(var,func) | |
917 | local env = getfenv(func) | |
918 | local newenv = setmetatable({},{ | |
919 | __index = function(self,k) | |
920 | if k=="script" then | |
921 | return var | |
922 | else | |
923 | return env[k] | |
924 | end | |
925 | end, | |
926 | }) | |
927 | setfenv(func,newenv) | |
928 | return func | |
929 | end | |
930 | cors = {} | |
931 | mas = Instance.new("Model",game:GetService("Lighting")) | |
932 | Model0 = Instance.new("Model") | |
933 | Part1 = Instance.new("Part") | |
934 | ParticleEmitter2 = Instance.new("ParticleEmitter") | |
935 | Model3 = Instance.new("Model") | |
936 | Beam4 = Instance.new("Beam") ------------------------------------------------------------------------------ | |
937 | Beam5 = Instance.new("Beam") | |
938 | Beam6 = Instance.new("Beam") | |
939 | ||
940 | ||
941 | ||
942 | ||
943 | ||
944 | ||
945 | Model7 = Instance.new("Model") | |
946 | Part8 = Instance.new("Part") | |
947 | ParticleEmitter9 = Instance.new("ParticleEmitter") | |
948 | Part10 = Instance.new("Part") | |
949 | SpecialMesh11 = Instance.new("SpecialMesh") | |
950 | Part12 = Instance.new("Part") | |
951 | SpecialMesh13 = Instance.new("SpecialMesh") | |
952 | Model14 = Instance.new("Model") | |
953 | Part15 = Instance.new("Part") | |
954 | SpecialMesh16 = Instance.new("SpecialMesh") | |
955 | Part17 = Instance.new("Part") | |
956 | SpecialMesh18 = Instance.new("SpecialMesh") | |
957 | Part19 = Instance.new("Part") | |
958 | ParticleEmitter20 = Instance.new("ParticleEmitter") | |
959 | Model21 = Instance.new("Model") | |
960 | Part22 = Instance.new("Part") | |
961 | SpecialMesh23 = Instance.new("SpecialMesh") | |
962 | Part24 = Instance.new("Part") | |
963 | SpecialMesh25 = Instance.new("SpecialMesh") | |
964 | Part26 = Instance.new("Part") | |
965 | SpecialMesh27 = Instance.new("SpecialMesh") | |
966 | Part28 = Instance.new("Part") | |
967 | SpecialMesh29 = Instance.new("SpecialMesh") | |
968 | Part30 = Instance.new("Part") | |
969 | SpecialMesh31 = Instance.new("SpecialMesh") | |
970 | Part32 = Instance.new("Part") | |
971 | SpecialMesh33 = Instance.new("SpecialMesh") | |
972 | Decal34 = Instance.new("Decal") | |
973 | Part35 = Instance.new("Part") | |
974 | ParticleEmitter36 = Instance.new("ParticleEmitter") | |
975 | Part37 = Instance.new("Part") | |
976 | ||
977 | TAttachment = Instance.new("Attachment",Part1) | |
978 | HAttachment2 = Instance.new("Attachment",Part35) | |
979 | RAttachment3 = Instance.new("Attachment",Part8) | |
980 | LAttachment4 = Instance.new("Attachment",Part19) | |
981 | ||
982 | --TAttachment | |
983 | --HAttachment2 | |
984 | --RAttachment3 | |
985 | --LAttachment4 | |
986 | ||
987 | ||
988 | --Part35,Part19,Part8 | |
989 | --Head,LeftArm,RightArm | |
990 | ||
991 | ||
992 | SpecialMesh38 = Instance.new("SpecialMesh") | |
993 | Model0.Name = "VoidBoss" | |
994 | Model0.Parent = mas | |
995 | Part1.Name = "Torso" | |
996 | Part1.Parent = Model0 | |
997 | Part1.CFrame = CFrame.new(3.5, 0.0108870268, -65.510788, 2.08616257e-07, 0, -1, 0.999999881, 0, 2.08616257e-07, 0, -0.999999881, 0) | |
998 | Part1.Orientation = Vector3.new(0, -90, 90) | |
999 | Part1.Position = Vector3.new(3.5, 0.0108870268, -65.510788) | |
1000 | Part1.Rotation = Vector3.new(-90, -90, 0) | |
1001 | Part1.Color = Color3.new(0.972549, 0.972549, 0.972549) | |
1002 | Part1.Transparency = 1 | |
1003 | Part1.Size = Vector3.new(1, 1, 1) | |
1004 | Part1.Anchored = true | |
1005 | Part1.BottomSurface = Enum.SurfaceType.Smooth | |
1006 | Part1.BrickColor = BrickColor.new("Institutional white") | |
1007 | Part1.CanCollide = false | |
1008 | Part1.TopSurface = Enum.SurfaceType.Smooth | |
1009 | Part1.brickColor = BrickColor.new("Institutional white") | |
1010 | Part1.FormFactor = Enum.FormFactor.Symmetric | |
1011 | Part1.formFactor = Enum.FormFactor.Symmetric | |
1012 | ParticleEmitter2.Parent = Part1 | |
1013 | ParticleEmitter2.Speed = NumberRange.new(6, 6) | |
1014 | ParticleEmitter2.Color = ColorSequence.new({ ColorSequenceKeypoint.new(0, Color3.new(0, 0, 0)),ColorSequenceKeypoint.new(0.299,Color3.new(0.00998336, 0.00998336, 0.00998336)),ColorSequenceKeypoint.new(0.499,Color3.new(0,0,0)),ColorSequenceKeypoint.new(1,Color3.new(0.45098, 0, 1))}) | |
1015 | ParticleEmitter2.LightInfluence = 1 | |
1016 | ParticleEmitter2.Texture = "rbxassetid://258128463" | |
1017 | ParticleEmitter2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(.2,0.86913582086563),NumberSequenceKeypoint.new(1,1)}) | |
1018 | ParticleEmitter2.ZOffset = 1 | |
1019 | ParticleEmitter2.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,1.3749998807907),NumberSequenceKeypoint.new(1,0.68749964237213)}) | |
1020 | ParticleEmitter2.Acceleration = Vector3.new(1, 0, 0) | |
1021 | ParticleEmitter2.Drag = 3 | |
1022 | ParticleEmitter2.Lifetime = NumberRange.new(2, 4) | |
1023 | ParticleEmitter2.LockedToPart = true | |
1024 | ParticleEmitter2.Rate = 50 | |
1025 | ParticleEmitter2.RotSpeed = NumberRange.new(-100, 100) | |
1026 | ParticleEmitter2.SpreadAngle = Vector2.new(360, 0) | |
1027 | ParticleEmitter2.VelocitySpread = 360 | |
1028 | Model3.Parent = Part1 | |
1029 | ||
1030 | --TAttachment | |
1031 | --HAttachment2 | |
1032 | --RAttachment3 | |
1033 | --LAttachment4 | |
1034 | ||
1035 | ||
1036 | Beam4.Name = "RightArm" | |
1037 | Beam4.Parent = Model3 | |
1038 | Beam4.Attachment0 = TAttachment | |
1039 | Beam4.Attachment1 = RAttachment3 | |
1040 | Beam4.CurveSize0 = 10 | |
1041 | Beam4.FaceCamera = true | |
1042 | Beam4.LightInfluence = 1 | |
1043 | Beam4.Texture = "rbxassetid://130207880" | |
1044 | Beam4.TextureLength = 0.875 | |
1045 | Beam4.TextureSpeed = 1 | |
1046 | Beam4.Transparency = NumberSequence.new(.5,0) | |
1047 | Beam4.Width0 = 3 | |
1048 | Beam4.Width1 = 3 | |
1049 | Beam5.Name = "LeftArm" | |
1050 | Beam5.Parent = Model3 | |
1051 | Beam5.Attachment0 = TAttachment | |
1052 | Beam5.Attachment1 = LAttachment4 | |
1053 | Beam5.CurveSize0 = 10 | |
1054 | Beam5.FaceCamera = true | |
1055 | Beam5.LightInfluence = 1 | |
1056 | Beam5.Texture = "rbxassetid://130207880" | |
1057 | Beam5.TextureLength = 0.875 | |
1058 | Beam5.TextureSpeed = 1 | |
1059 | Beam5.Transparency = NumberSequence.new(.5,0) | |
1060 | Beam5.Width0 = 3 | |
1061 | Beam5.Width1 = 3 | |
1062 | Beam6.Name = "Head" | |
1063 | Beam6.Parent = Model3 | |
1064 | Beam6.Attachment0 = TAttachment | |
1065 | Beam6.Attachment1 = HAttachment2 | |
1066 | Beam6.FaceCamera = true | |
1067 | Beam6.LightInfluence = 1 | |
1068 | Beam6.Segments = 1 | |
1069 | Beam6.Texture = "rbxassetid://130207880" | |
1070 | Beam6.TextureSpeed = 1 | |
1071 | Beam6.Transparency = NumberSequence.new(.5,0) | |
1072 | Beam6.Width0 = 3 | |
1073 | Beam6.Width1 = 1.5 | |
1074 | Model7.Name = "RightArm" | |
1075 | Model7.Parent = Model0 | |
1076 | Part8.Name = "Particles" | |
1077 | Part8.Parent = Model7 | |
1078 | Part8.CFrame = CFrame.new(-3, 3.62246037, -66.4395981, -1, 0, 0, 0, 0.999390841, 0.0348994173, 0, 0.0348994173, -0.999390841) | |
1079 | Part8.Orientation = Vector3.new(-2, 180, 0) | |
1080 | Part8.Position = Vector3.new(-3, 3.62246037, -66.4395981) | |
1081 | Part8.Rotation = Vector3.new(-178, 0, -180) | |
1082 | Part8.Color = Color3.new(0, 0, 0) | |
1083 | Part8.Transparency = 1 | |
1084 | Part8.Size = Vector3.new(0.5, 0.5, 0.5) | |
1085 | Part8.Anchored = true | |
1086 | Part8.BottomSurface = Enum.SurfaceType.Smooth | |
1087 | ||
1088 | Part8.CanCollide = false | |
1089 | Part8.Material = Enum.Material.Neon | |
1090 | Part8.TopSurface = Enum.SurfaceType.Smooth | |
1091 | ||
1092 | Part8.FormFactor = Enum.FormFactor.Symmetric | |
1093 | Part8.formFactor = Enum.FormFactor.Symmetric | |
1094 | ParticleEmitter9.Parent = Part8 | |
1095 | ParticleEmitter9.Speed = NumberRange.new(1.2000000476837, 1.2000000476837) | |
1096 | ParticleEmitter9.Color = ColorSequence.new({ ColorSequenceKeypoint.new(0, Color3.new(0, 0, 0)),ColorSequenceKeypoint.new(0.699,Color3.new(0.00998336, 0.00998336, 0.00998336)),ColorSequenceKeypoint.new(1,Color3.new(0.45098, 0, 1))}) | |
1097 | ParticleEmitter9.LightInfluence = 1 | |
1098 | ParticleEmitter9.Texture = "rbxassetid://258128463" | |
1099 | ParticleEmitter9.Transparency= NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(0.5,0.7),NumberSequenceKeypoint.new(1,1)}) | |
1100 | ParticleEmitter9.ZOffset = 2 | |
1101 | ParticleEmitter9.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,1.9999998807907),NumberSequenceKeypoint.new(0.43749988079071,0.37499964237213),NumberSequenceKeypoint.new(1,0.68749964237213)}) | |
1102 | ParticleEmitter9.Acceleration = Vector3.new(0, 0, -0.400000006) | |
1103 | ParticleEmitter9.Drag = 1 | |
1104 | ParticleEmitter9.Lifetime = NumberRange.new(3, 3) | |
1105 | ParticleEmitter9.LockedToPart = true | |
1106 | ParticleEmitter9.Rate = 100 | |
1107 | ParticleEmitter9.RotSpeed = NumberRange.new(-100, 100) | |
1108 | ParticleEmitter9.SpreadAngle = Vector2.new(360, 360) | |
1109 | ParticleEmitter9.VelocitySpread = 360 | |
1110 | Part10.Parent = Model7 | |
1111 | Part10.CFrame = CFrame.new(-2, 4.33036613, -62.6395836, -0.965925813, 0.0669872463, -0.25, 0, 0.965925872, 0.258818835, 0.258819044, 0.249999791, -0.933012724) | |
1112 | Part10.Orientation = Vector3.new(-15, -165, 0) | |
1113 | Part10.Position = Vector3.new(-2, 4.33036613, -62.6395836) | |
1114 | Part10.Rotation = Vector3.new(-164.5, -14.4799995, -176.029999) | |
1115 | Part10.Color = Color3.new(0, 0, 0) | |
1116 | Part10.Size = Vector3.new(1, 1, 0.5) | |
1117 | Part10.Anchored = true | |
1118 | Part10.BottomSurface = Enum.SurfaceType.Smooth | |
1119 | ||
1120 | Part10.CanCollide = false | |
1121 | Part10.Material = Enum.Material.Neon | |
1122 | Part10.TopSurface = Enum.SurfaceType.Smooth | |
1123 | ||
1124 | Part10.FormFactor = Enum.FormFactor.Symmetric | |
1125 | Part10.formFactor = Enum.FormFactor.Symmetric | |
1126 | SpecialMesh11.Parent = Part10 | |
1127 | SpecialMesh11.MeshType = Enum.MeshType.Sphere | |
1128 | Part12.Parent = Model7 | |
1129 | Part12.CFrame = CFrame.new(-1.5, 4.83036566, -63.1395836, 1, 0, 8.74227766e-08, 0, 1, 0, -8.74227766e-08, 0, 1) | |
1130 | Part12.Position = Vector3.new(-1.5, 4.83036566, -63.1395836) | |
1131 | Part12.Color = Color3.new(0.792157, 0.796079, 0.819608) | |
1132 | Part12.Size = Vector3.new(1, 1, 1) | |
1133 | Part12.Anchored = true | |
1134 | Part12.BottomSurface = Enum.SurfaceType.Smooth | |
1135 | Part12.BrickColor = BrickColor.new("Ghost grey") | |
1136 | Part12.CanCollide = false | |
1137 | Part12.Material = Enum.Material.Fabric | |
1138 | Part12.TopSurface = Enum.SurfaceType.Smooth | |
1139 | Part12.brickColor = BrickColor.new("Ghost grey") | |
1140 | Part12.FormFactor = Enum.FormFactor.Symmetric | |
1141 | Part12.formFactor = Enum.FormFactor.Symmetric | |
1142 | SpecialMesh13.Parent = Part12 | |
1143 | SpecialMesh13.MeshId = "rbxassetid://1282322452" | |
1144 | SpecialMesh13.Scale = Vector3.new(0.600000024, 0.600000024, 0.600000024) | |
1145 | SpecialMesh13.MeshType = Enum.MeshType.FileMesh | |
1146 | Model14.Name = "LeftArm" | |
1147 | Model14.Parent = Model0 | |
1148 | Part15.Parent = Model14 | |
1149 | Part15.CFrame = CFrame.new(8.5, 4.83036566, -63.1395836, 1, 0, 8.74227766e-08, 0, 1, 0, -8.74227766e-08, 0, 1) | |
1150 | Part15.Position = Vector3.new(8.5, 4.83036566, -63.1395836) | |
1151 | Part15.Color = Color3.new(0.792157, 0.796079, 0.819608) | |
1152 | Part15.Size = Vector3.new(1, 1, 1) | |
1153 | Part15.Anchored = true | |
1154 | Part15.BottomSurface = Enum.SurfaceType.Smooth | |
1155 | Part15.BrickColor = BrickColor.new("Ghost grey") | |
1156 | Part15.CanCollide = false | |
1157 | Part15.Material = Enum.Material.Fabric | |
1158 | Part15.TopSurface = Enum.SurfaceType.Smooth | |
1159 | Part15.brickColor = BrickColor.new("Ghost grey") | |
1160 | Part15.FormFactor = Enum.FormFactor.Symmetric | |
1161 | Part15.formFactor = Enum.FormFactor.Symmetric | |
1162 | SpecialMesh16.Parent = Part15 | |
1163 | SpecialMesh16.MeshId = "rbxassetid://1279765257" | |
1164 | SpecialMesh16.Scale = Vector3.new(0.600000024, 0.600000024, 0.600000024) | |
1165 | SpecialMesh16.MeshType = Enum.MeshType.FileMesh | |
1166 | Part17.Parent = Model14 | |
1167 | Part17.CFrame = CFrame.new(9, 4.33036613, -62.6395836, -0.965925872, -0.0669871867, 0.249999806, 0, 0.965925872, 0.258818835, -0.258818835, 0.249999806, -0.933012784) | |
1168 | Part17.Orientation = Vector3.new(-15, 165, 0) | |
1169 | Part17.Position = Vector3.new(9, 4.33036613, -62.6395836) | |
1170 | Part17.Rotation = Vector3.new(-164.5, 14.4799995, 176.029999) | |
1171 | Part17.Color = Color3.new(0, 0, 0) | |
1172 | Part17.Size = Vector3.new(1, 1, 0.5) | |
1173 | Part17.Anchored = true | |
1174 | Part17.BottomSurface = Enum.SurfaceType.Smooth | |
1175 | ||
1176 | Part17.CanCollide = false | |
1177 | Part17.Material = Enum.Material.Neon | |
1178 | Part17.TopSurface = Enum.SurfaceType.Smooth | |
1179 | ||
1180 | Part17.FormFactor = Enum.FormFactor.Symmetric | |
1181 | Part17.formFactor = Enum.FormFactor.Symmetric | |
1182 | SpecialMesh18.Parent = Part17 | |
1183 | SpecialMesh18.MeshType = Enum.MeshType.Sphere | |
1184 | Part19.Name = "Particles" | |
1185 | Part19.Parent = Model14 | |
1186 | Part19.CFrame = CFrame.new(10, 3.62246037, -66.4395981, -1, 0, 0, 0, 0.999390841, 0.0348994173, 0, 0.0348994173, -0.999390841) | |
1187 | Part19.Orientation = Vector3.new(-2, 180, 0) | |
1188 | Part19.Position = Vector3.new(10, 3.62246037, -66.4395981) | |
1189 | Part19.Rotation = Vector3.new(-178, 0, -180) | |
1190 | Part19.Color = Color3.new(0, 0, 0) | |
1191 | Part19.Transparency = 1 | |
1192 | Part19.Size = Vector3.new(0.5, 0.5, 0.5) | |
1193 | Part19.Anchored = true | |
1194 | Part19.BottomSurface = Enum.SurfaceType.Smooth | |
1195 | ||
1196 | Part19.CanCollide = false | |
1197 | Part19.Material = Enum.Material.Neon | |
1198 | Part19.TopSurface = Enum.SurfaceType.Smooth | |
1199 | ||
1200 | Part19.FormFactor = Enum.FormFactor.Symmetric | |
1201 | Part19.formFactor = Enum.FormFactor.Symmetric | |
1202 | ParticleEmitter20.Parent = Part19 | |
1203 | ParticleEmitter20.Speed = NumberRange.new(1.2000000476837, 1.2000000476837) | |
1204 | ParticleEmitter20.Color = ColorSequence.new({ ColorSequenceKeypoint.new(0, Color3.new(0, 0, 0)),ColorSequenceKeypoint.new(0.699,Color3.new(0.00998336, 0.00998336, 0.00998336)),ColorSequenceKeypoint.new(1,Color3.new(0.45098, 0, 1))}) | |
1205 | ParticleEmitter20.LightInfluence = 1 | |
1206 | ParticleEmitter20.Texture = "rbxassetid://258128463" | |
1207 | ParticleEmitter20.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(0.5,0.7),NumberSequenceKeypoint.new(1,1)}) | |
1208 | ParticleEmitter20.ZOffset = 2 | |
1209 | ParticleEmitter20.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,1.9999998807907),NumberSequenceKeypoint.new(0.43749988079071,0.37499964237213),NumberSequenceKeypoint.new(1,0.68749964237213)}) | |
1210 | ParticleEmitter20.Acceleration = Vector3.new(0, 0, -0.400000006) | |
1211 | ParticleEmitter20.Drag = 1 | |
1212 | ParticleEmitter20.Lifetime = NumberRange.new(3, 3) | |
1213 | ParticleEmitter20.LockedToPart = true | |
1214 | ParticleEmitter20.Rate = 100 | |
1215 | ParticleEmitter20.RotSpeed = NumberRange.new(-100, 100) | |
1216 | ParticleEmitter20.SpreadAngle = Vector2.new(360, 360) | |
1217 | ParticleEmitter20.VelocitySpread = 360 | |
1218 | Model21.Name = "Head" | |
1219 | Model21.Parent = Model0 | |
1220 | Part22.Parent = Model21 | |
1221 | Part22.CFrame = CFrame.new(4, 8.9408741, -63.4595413, -1, 0, 0, 0, 0.965925872, 0.258818984, 0, 0.258818984, -0.965925872) | |
1222 | Part22.Orientation = Vector3.new(-15, 180, 0) | |
1223 | Part22.Position = Vector3.new(4, 8.9408741, -63.4595413) | |
1224 | Part22.Rotation = Vector3.new(-165, 0, -180) | |
1225 | Part22.Color = Color3.new(0.972549, 0.972549, 0.972549) | |
1226 | Part22.Size = Vector3.new(0.400000036, 0.400000036, 1.20000005) | |
1227 | Part22.Anchored = true | |
1228 | Part22.BottomSurface = Enum.SurfaceType.Smooth | |
1229 | Part22.BrickColor = BrickColor.new("Institutional white") | |
1230 | Part22.CanCollide = false | |
1231 | Part22.Locked = true | |
1232 | Part22.Material = Enum.Material.Neon | |
1233 | Part22.TopSurface = Enum.SurfaceType.Smooth | |
1234 | Part22.brickColor = BrickColor.new("Institutional white") | |
1235 | Part22.FormFactor = Enum.FormFactor.Symmetric | |
1236 | Part22.formFactor = Enum.FormFactor.Symmetric | |
1237 | Part22.Name = "Eye1" | |
1238 | SpecialMesh23.Parent = Part22 | |
1239 | SpecialMesh23.MeshType = Enum.MeshType.Sphere | |
1240 | Part24.Parent = Model21 | |
1241 | Part24.CFrame = CFrame.new(3.5, 8.93740559, -63.2534142, -1, 0, 0, 0, 0.965925872, 0.258818984, 0, 0.258818984, -0.965925872) | |
1242 | Part24.Orientation = Vector3.new(-15, 180, 0) | |
1243 | Part24.Position = Vector3.new(3.5, 8.93740559, -63.2534142) | |
1244 | Part24.Rotation = Vector3.new(-165, 0, -180) | |
1245 | Part24.Color = Color3.new(0, 0, 0) | |
1246 | Part24.Size = Vector3.new(2, 1, 0.800000012) | |
1247 | Part24.Anchored = true | |
1248 | Part24.BottomSurface = Enum.SurfaceType.Smooth | |
1249 | ||
1250 | Part24.CanCollide = false | |
1251 | Part24.Locked = true | |
1252 | Part24.Material = Enum.Material.Neon | |
1253 | Part24.TopSurface = Enum.SurfaceType.Smooth | |
1254 | ||
1255 | Part24.FormFactor = Enum.FormFactor.Symmetric | |
1256 | Part24.formFactor = Enum.FormFactor.Symmetric | |
1257 | SpecialMesh25.Parent = Part24 | |
1258 | SpecialMesh25.MeshType = Enum.MeshType.Sphere | |
1259 | Part26.Parent = Model21 | |
1260 | Part26.CFrame = CFrame.new(3.5, 7.62994099, -63.3966942, -1, 0, 0, 0, 0.965925872, 0.258818984, 0, 0.258818984, -0.965925872) | |
1261 | Part26.Orientation = Vector3.new(-15, 180, 0) | |
1262 | Part26.Position = Vector3.new(3.5, 7.62994099, -63.3966942) | |
1263 | Part26.Rotation = Vector3.new(-165, 0, -180) | |
1264 | Part26.Color = Color3.new(0, 0, 0) | |
1265 | Part26.Size = Vector3.new(1.80000007, 1.5999999, 0.600000024) | |
1266 | Part26.Anchored = true | |
1267 | Part26.BottomSurface = Enum.SurfaceType.Smooth | |
1268 | ||
1269 | Part26.CanCollide = false | |
1270 | Part26.Locked = true | |
1271 | Part26.Material = Enum.Material.Neon | |
1272 | Part26.TopSurface = Enum.SurfaceType.Smooth | |
1273 | ||
1274 | Part26.FormFactor = Enum.FormFactor.Symmetric | |
1275 | Part26.formFactor = Enum.FormFactor.Symmetric | |
1276 | SpecialMesh27.Parent = Part26 | |
1277 | SpecialMesh27.MeshType = Enum.MeshType.Sphere | |
1278 | Part28.Parent = Model21 | |
1279 | Part28.CFrame = CFrame.new(3, 8.9408741, -63.4595413, -1, 0, 0, 0, 0.965925872, 0.258818984, 0, 0.258818984, -0.965925872) | |
1280 | Part28.Orientation = Vector3.new(-15, 180, 0) | |
1281 | Part28.Position = Vector3.new(3, 8.9408741, -63.4595413) | |
1282 | Part28.Rotation = Vector3.new(-165, 0, -180) | |
1283 | Part28.Color = Color3.new(0.972549, 0.972549, 0.972549) | |
1284 | Part28.Size = Vector3.new(0.400000036, 0.400000036, 1.20000005) | |
1285 | Part28.Anchored = true | |
1286 | Part28.BottomSurface = Enum.SurfaceType.Smooth | |
1287 | Part28.BrickColor = BrickColor.new("Institutional white") | |
1288 | Part28.CanCollide = false | |
1289 | Part28.Locked = true | |
1290 | Part28.Material = Enum.Material.Neon | |
1291 | Part28.TopSurface = Enum.SurfaceType.Smooth | |
1292 | Part28.brickColor = BrickColor.new("Institutional white") | |
1293 | Part28.FormFactor = Enum.FormFactor.Symmetric | |
1294 | Part28.formFactor = Enum.FormFactor.Symmetric | |
1295 | Part28.Name = "Eye2" | |
1296 | SpecialMesh29.Parent = Part28 | |
1297 | SpecialMesh29.MeshType = Enum.MeshType.Sphere | |
1298 | Part30.Parent = Model21 | |
1299 | Part30.CFrame = CFrame.new(3.5, 8.98917007, -63.4466019, -1, 0, 0, 0, 0.965925872, 0.258818984, 0, 0.258818984, -0.965925872) | |
1300 | Part30.Orientation = Vector3.new(-15, 180, 0) | |
1301 | Part30.Position = Vector3.new(3.5, 8.98917007, -63.4466019) | |
1302 | Part30.Rotation = Vector3.new(-165, 0, -180) | |
1303 | Part30.Color = Color3.new(0, 0, 0) | |
1304 | Part30.Size = Vector3.new(1, 1, 1) | |
1305 | Part30.Anchored = true | |
1306 | Part30.BottomSurface = Enum.SurfaceType.Smooth | |
1307 | ||
1308 | Part30.CanCollide = false | |
1309 | Part30.Locked = true | |
1310 | Part30.Material = Enum.Material.Neon | |
1311 | Part30.TopSurface = Enum.SurfaceType.Smooth | |
1312 | ||
1313 | Part30.FormFactor = Enum.FormFactor.Symmetric | |
1314 | Part30.formFactor = Enum.FormFactor.Symmetric | |
1315 | SpecialMesh31.Parent = Part30 | |
1316 | SpecialMesh31.MeshType = Enum.MeshType.Sphere | |
1317 | Part32.Name = "Handle" | |
1318 | Part32.Parent = Model21 | |
1319 | Part32.CFrame = CFrame.new(3.5, 8.19017696, -63.2465782, -1, 0, 0, 0, 0.965925872, 0.258818984, 0, 0.258818984, -0.965925872) | |
1320 | Part32.Orientation = Vector3.new(-15, 180, 0) | |
1321 | Part32.Position = Vector3.new(3.5, 8.19017696, -63.2465782) | |
1322 | Part32.Rotation = Vector3.new(-165, 0, -180) | |
1323 | Part32.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
1324 | Part32.Size = Vector3.new(0.100000001, 0.100000001, 0.100000001) | |
1325 | Part32.Anchored = true | |
1326 | Part32.BottomSurface = Enum.SurfaceType.Smooth | |
1327 | Part32.BrickColor = BrickColor.new("Really black") | |
1328 | Part32.CanCollide = false | |
1329 | Part32.Locked = true | |
1330 | Part32.Material = Enum.Material.Fabric | |
1331 | Part32.TopSurface = Enum.SurfaceType.Smooth | |
1332 | Part32.brickColor = BrickColor.new("Really black") | |
1333 | Part32.FormFactor = Enum.FormFactor.Symmetric | |
1334 | Part32.formFactor = Enum.FormFactor.Symmetric | |
1335 | SpecialMesh33.Parent = Part32 | |
1336 | SpecialMesh33.MeshId = "http://www.roblox.com/asset/?id=13520257" | |
1337 | SpecialMesh33.Scale = Vector3.new(3, 3.0999999, 3) | |
1338 | SpecialMesh33.MeshType = Enum.MeshType.FileMesh | |
1339 | SpecialMesh33.TextureId = "http://www.roblox.com/asset/?id=2349706532" | |
1340 | Decal34.Parent = Part32 | |
1341 | --Decal34.Texture = "http://www.roblox.com/asset/?id="..MaskTextureId--124337542 2340547251 | |
1342 | Part35.Name = "Particles" | |
1343 | Part35.Parent = Model21 | |
1344 | Part35.CFrame = CFrame.new(3.5, 8.64255619, -64.4712448, -1, 0, 0, 0, 0.956304669, 0.292371869, 0, 0.292371869, -0.956304669) | |
1345 | Part35.Orientation = Vector3.new(-17, 180, 0) | |
1346 | Part35.Position = Vector3.new(3.5, 8.64255619, -64.4712448) | |
1347 | Part35.Rotation = Vector3.new(-163, 0, -180) | |
1348 | Part35.Color = Color3.new(0, 0, 0) | |
1349 | Part35.Transparency = 1 | |
1350 | Part35.Size = Vector3.new(0.0500000007, 0.0500000007, 0.0500000007) | |
1351 | Part35.Anchored = true | |
1352 | Part35.BottomSurface = Enum.SurfaceType.Smooth | |
1353 | ||
1354 | Part35.CanCollide = false | |
1355 | Part35.Locked = true | |
1356 | Part35.Material = Enum.Material.Neon | |
1357 | Part35.TopSurface = Enum.SurfaceType.Smooth | |
1358 | ||
1359 | Part35.FormFactor = Enum.FormFactor.Symmetric | |
1360 | Part35.formFactor = Enum.FormFactor.Symmetric | |
1361 | ParticleEmitter36.Parent = Part35 | |
1362 | ParticleEmitter36.Speed = NumberRange.new(2, 2) | |
1363 | ParticleEmitter36.Color = ColorSequence.new({ ColorSequenceKeypoint.new(0, Color3.new(0, 0, 0)),ColorSequenceKeypoint.new(0.699,Color3.new(0.00998336, 0.00998336, 0.00998336)),ColorSequenceKeypoint.new(1,Color3.new(0.45098, 0, 1))}) | |
1364 | ParticleEmitter36.LightInfluence = 1 | |
1365 | ParticleEmitter36.Texture = "rbxassetid://258128463" | |
1366 | ParticleEmitter36.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(0.5,0.5),NumberSequenceKeypoint.new(1,1)}) | |
1367 | ParticleEmitter36.ZOffset = -2 | |
1368 | ParticleEmitter36.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,1.7500001192093),NumberSequenceKeypoint.new(0.7500001192093,0.74999988079071),NumberSequenceKeypoint.new(1,0.68749964237213)}) | |
1369 | ParticleEmitter36.Acceleration = Vector3.new(0, 0.25, 0) | |
1370 | ParticleEmitter36.Drag = 2 | |
1371 | ParticleEmitter36.Lifetime = NumberRange.new(1, 3) | |
1372 | ParticleEmitter36.LockedToPart = true | |
1373 | ParticleEmitter36.Rate = 100.01999664307 | |
1374 | ParticleEmitter36.RotSpeed = NumberRange.new(-100, 100) | |
1375 | ParticleEmitter36.SpreadAngle = Vector2.new(360, 360) | |
1376 | ParticleEmitter36.VelocitySpread = 360 | |
1377 | Part37.Name = "Head" | |
1378 | Part37.Parent = Model21 | |
1379 | Part37.CFrame = CFrame.new(3.5, 8.64255619, -64.4712448, -1, 0, 0, 0, 0.956304669, 0.292371869, 0, 0.292371869, -0.956304669) | |
1380 | Part37.Orientation = Vector3.new(-17, 180, 0) | |
1381 | Part37.Position = Vector3.new(3.5, 8.64255619, -64.4712448) | |
1382 | Part37.Rotation = Vector3.new(-163, 0, -180) | |
1383 | Part37.Color = Color3.new(0.00784314, 0.00784314, 0.00784314) | |
1384 | Part37.Size = Vector3.new(3, 3, 3) | |
1385 | Part37.Anchored = true | |
1386 | Part37.BottomSurface = Enum.SurfaceType.Smooth | |
1387 | ||
1388 | Part37.CanCollide = false | |
1389 | Part37.Locked = true | |
1390 | Part37.Material = Enum.Material.Fabric | |
1391 | Part37.TopSurface = Enum.SurfaceType.Smooth | |
1392 | ||
1393 | Part37.FormFactor = Enum.FormFactor.Symmetric | |
1394 | Part37.formFactor = Enum.FormFactor.Symmetric | |
1395 | SpecialMesh38.Parent = Part37 | |
1396 | for i,v in pairs(mas:GetChildren()) do | |
1397 | v.Parent = script | |
1398 | pcall(function() v:MakeJoints() end) | |
1399 | end | |
1400 | mas:Destroy() | |
1401 | for i,v in pairs(cors) do | |
1402 | spawn(function() | |
1403 | pcall(v) | |
1404 | end) | |
1405 | end | |
1406 | ||
1407 | script:WaitForChild("VoidBoss") | |
1408 | script.VoidBoss:WaitForChild("LeftArm") | |
1409 | script.VoidBoss:WaitForChild("RightArm") | |
1410 | script.VoidBoss:WaitForChild("Head") | |
1411 | local LAP=Instance.new("Part") | |
1412 | LAP.Reflectance = 0 | |
1413 | LAP.Transparency = 1 | |
1414 | LAP.CanCollide = false | |
1415 | LAP.Locked = true | |
1416 | LAP.Anchored=true | |
1417 | LAP.BrickColor = BrickColor.new("Really blue") | |
1418 | LAP.Name = "Left Leg" | |
1419 | LAP.Size = Vector3.new() | |
1420 | LAP.Material = "SmoothPlastic" | |
1421 | LAP:BreakJoints() | |
1422 | -- LAP.Parent = Character | |
1423 | LAP.CFrame = CFrame.new(8.5, 4.83036566, -63.1395836, 1, 0, 8.74227766e-08, 0, 1, 0, -8.74227766e-08, 0, 1)*angles(math.rad(90),0,math.rad(180)) | |
1424 | for i,v in pairs(script.VoidBoss.LeftArm:GetChildren()) do | |
1425 | v.Parent = LAP | |
1426 | end | |
1427 | script.VoidBoss.LeftArm:Destroy() | |
1428 | LAP.Parent = script.VoidBoss | |
1429 | ||
1430 | local RAP=Instance.new("Part") | |
1431 | RAP.Reflectance = 0 | |
1432 | RAP.Transparency = 1 | |
1433 | RAP.CanCollide = false | |
1434 | RAP.Locked = true | |
1435 | RAP.Anchored=true | |
1436 | RAP.BrickColor = BrickColor.new("Really blue") | |
1437 | RAP.Name = "Right Leg" | |
1438 | RAP.Size = Vector3.new() | |
1439 | RAP.Material = "SmoothPlastic" | |
1440 | RAP:BreakJoints() | |
1441 | -- RAP.Parent = Character | |
1442 | RAP.CFrame = CFrame.new(-1.5, 4.83036566, -63.1395836, 1, 0, 8.74227766e-08, 0, 1, 0, -8.74227766e-08, 0, 1)*angles(math.rad(90),0,math.rad(180)) | |
1443 | for i,v in pairs(script.VoidBoss.RightArm:GetChildren()) do | |
1444 | v.Parent = RAP | |
1445 | end | |
1446 | script.VoidBoss.RightArm:Destroy() | |
1447 | RAP.Parent = script.VoidBoss | |
1448 | ||
1449 | local HHP=Instance.new("Part") | |
1450 | HHP.Reflectance = 0 | |
1451 | HHP.Transparency = 1 | |
1452 | HHP.CanCollide = false | |
1453 | HHP.Locked = true | |
1454 | HHP.Anchored=true | |
1455 | HHP.BrickColor = BrickColor.new("Really blue") | |
1456 | HHP.Name = "Head" | |
1457 | HHP.Size = Vector3.new() | |
1458 | HHP.Material = "SmoothPlastic" | |
1459 | HHP:BreakJoints() | |
1460 | ||
1461 | HHP.CFrame = CFrame.new(3.5, 8.64255619, -64.4712448, -1, 0, 0, 0, 0.956304669, 0.292371869, 0, 0.292371869, -0.956304669) | |
1462 | for i,v in pairs(script.VoidBoss.Head:GetChildren()) do | |
1463 | v.Parent = HHP | |
1464 | end | |
1465 | script.VoidBoss.Head:Destroy() | |
1466 | HHP.Parent = script.VoidBoss | |
1467 | ||
1468 | ||
1469 | --[ ACTIVATE MODEL BY GETING RID OF THIS LINE | |
1470 | for i, v in pairs(GatherAllInstances(script.VoidBoss)) do | |
1471 | if v:isA("BasePart") then | |
1472 | RemoveOutlines(v) | |
1473 | if v:FindFirstChildOfClass("SpecialMesh") and v:FindFirstChildOfClass("SpecialMesh").MeshId~=nil then | |
1474 | --local mesh = v:FindChildOfClass("SpecialMesh") | |
1475 | --v.Size = v.Size/2 | |
1476 | ||
1477 | ||
1478 | end | |
1479 | end | |
1480 | end | |
1481 | ||
1482 | for _,v in pairs(script.VoidBoss:children()) do | |
1483 | if v:IsA("BasePart") then | |
1484 | ||
1485 | if Character:FindFirstChild(""..v.Name) then | |
1486 | local Part1=Character:FindFirstChild(""..v.Name) | |
1487 | local Part2=v | |
1488 | ||
1489 | WeldAllTo(Part1,Part2,CFrame.new(0,0,0)) | |
1490 | ||
1491 | end | |
1492 | ||
1493 | ||
1494 | end | |
1495 | end | |
1496 | ||
1497 | --]] | |
1498 | ||
1499 | ||
1500 | ||
1501 | ||
1502 | for _,v in pairs(Character:children()) do | |
1503 | if v:IsA("Accessory") then | |
1504 | v:Destroy() | |
1505 | elseif v:IsA("BasePart") then | |
1506 | v.Transparency =1 | |
1507 | end | |
1508 | end | |
1509 | ||
1510 | ||
1511 | ||
1512 | DGT= function() | |
1513 | local Tlifetime = 0.17 | |
1514 | local DaggerTrail=Instance.new("Trail",Sword) | |
1515 | local Attach1 = Instance.new("Attachment",Sword.HitBox) | |
1516 | local Attach2 = Instance.new("Attachment",Sword.HitBox) | |
1517 | Attach2.Position = Vector3.new(0,0,3) | |
1518 | Attach1.Position = Vector3.new(0,0,-3) | |
1519 | DaggerTrail.Attachment0 = Attach1 | |
1520 | DaggerTrail.Attachment1 = Attach2 | |
1521 | DaggerTrail.Texture = "rbxassetid://1251856844" | |
1522 | DaggerTrail.Lifetime = .1 | |
1523 | DaggerTrail.MaxLength = 10 | |
1524 | DaggerTrail.MinLength = 0 | |
1525 | DaggerTrail.TextureMode= "Static" | |
1526 | DaggerTrail.Transparency=NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(1,1)}) | |
1527 | DaggerTrail.WidthScale=NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(1,0)}) | |
1528 | DaggerTrail.LightEmission=0 | |
1529 | DaggerTrail.Color = ColorSequence.new(Color3.new(0,1,0),Color3.new(0,1,0)) | |
1530 | DaggerTrail.LightEmission = 1 | |
1531 | game:GetService("Debris"):AddItem(DaggerTrail, Tlifetime) | |
1532 | game:GetService("Debris"):AddItem(Attach1, Tlifetime) | |
1533 | game:GetService("Debris"):AddItem(Attach2, Tlifetime) | |
1534 | end | |
1535 | ||
1536 | function CreatePart( Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
1537 | local Part = Create("Part"){ | |
1538 | ||
1539 | Parent = Parent, | |
1540 | Reflectance = Reflectance, | |
1541 | Transparency = Transparency, | |
1542 | CanCollide = false, | |
1543 | Locked = true, | |
1544 | BrickColor = BrickColor.new(tostring(BColor)), | |
1545 | Name = Name, | |
1546 | Size = Size, | |
1547 | Material = Material, | |
1548 | } | |
1549 | RemoveOutlines(Part) | |
1550 | return Part | |
1551 | end | |
1552 | ||
1553 | function CreateMesh2(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
1554 | local NEWMESH = IT(MESH) | |
1555 | if MESH == "SpecialMesh" then | |
1556 | NEWMESH.MeshType = MESHTYPE | |
1557 | if MESHID ~= "nil" and MESHID ~= "" then | |
1558 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
1559 | end | |
1560 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
1561 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
1562 | end | |
1563 | end | |
1564 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
1565 | NEWMESH.Scale = SCALE | |
1566 | NEWMESH.Parent = PARENT | |
1567 | return NEWMESH | |
1568 | end | |
1569 | ||
1570 | function CreatePart2(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
1571 | local NEWPART = IT("Part") | |
1572 | NEWPART.formFactor = FORMFACTOR | |
1573 | NEWPART.Reflectance = REFLECTANCE | |
1574 | NEWPART.Transparency = TRANSPARENCY | |
1575 | NEWPART.CanCollide = false | |
1576 | NEWPART.Locked = true | |
1577 | NEWPART.Anchored = true | |
1578 | if ANCHOR == false then | |
1579 | NEWPART.Anchored = false | |
1580 | end | |
1581 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
1582 | NEWPART.Name = NAME | |
1583 | NEWPART.Size = SIZE | |
1584 | NEWPART.Position = Torso.Position | |
1585 | NEWPART.Material = MATERIAL | |
1586 | NEWPART:BreakJoints() | |
1587 | NEWPART.Parent = PARENT | |
1588 | return NEWPART | |
1589 | end | |
1590 | ||
1591 | local S = IT("Sound") | |
1592 | function CreateSound2(ID, PARENT, VOLUME, PITCH, DOESLOOP) | |
1593 | local NEWSOUND = nil | |
1594 | coroutine.resume(coroutine.create(function() | |
1595 | NEWSOUND = S:Clone() | |
1596 | NEWSOUND.Parent = PARENT | |
1597 | NEWSOUND.Volume = VOLUME | |
1598 | NEWSOUND.Pitch = PITCH | |
1599 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
1600 | NEWSOUND:play() | |
1601 | if DOESLOOP == true then | |
1602 | NEWSOUND.Looped = true | |
1603 | else | |
1604 | repeat wait(1) until NEWSOUND.Playing == false | |
1605 | NEWSOUND:remove() | |
1606 | end | |
1607 | end)) | |
1608 | return NEWSOUND | |
1609 | end | |
1610 | ||
1611 | ||
1612 | function WACKYEFFECT(Table) | |
1613 | local TYPE = (Table.EffectType or "Sphere") | |
1614 | local SIZE = (Table.Size or VT(1,1,1)) | |
1615 | local ENDSIZE = (Table.Size2 or VT(0,0,0)) | |
1616 | local TRANSPARENCY = (Table.Transparency or 0) | |
1617 | local ENDTRANSPARENCY = (Table.Transparency2 or 1) | |
1618 | local CFRAME = (Table.CFrame or Torso.CFrame) | |
1619 | local MOVEDIRECTION = (Table.MoveToPos or nil) | |
1620 | local ROTATION1 = (Table.RotationX or 0) | |
1621 | local ROTATION2 = (Table.RotationY or 0) | |
1622 | local ROTATION3 = (Table.RotationZ or 0) | |
1623 | local MATERIAL = (Table.Material or "Neon") | |
1624 | local COLOR = (Table.Color or C3(1,1,1)) | |
1625 | local TIME = (Table.Time or 45) | |
1626 | local SOUNDID = (Table.SoundID or nil) | |
1627 | local SOUNDPITCH = (Table.SoundPitch or nil) | |
1628 | local SOUNDVOLUME = (Table.SoundVolume or nil) | |
1629 | local TweenNameType = (Table.TweenNType or "Linear" ) | |
1630 | local TweenInOutType = (Table.TweenOType or "InOut" ) | |
1631 | coroutine.resume(coroutine.create(function() | |
1632 | local PLAYSSOUND = false | |
1633 | local SOUND = nil | |
1634 | local EFFECT = CreatePart2(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true) | |
1635 | if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then | |
1636 | PLAYSSOUND = true | |
1637 | SOUND = CreateSound2(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false) | |
1638 | end | |
1639 | EFFECT.Color = COLOR | |
1640 | local MSH = nil | |
1641 | if TYPE == "Sphere" then | |
1642 | MSH = CreateMesh2("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0)) | |
1643 | elseif TYPE == "Block" then | |
1644 | MSH = IT("BlockMesh",EFFECT) | |
1645 | MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X) | |
1646 | elseif TYPE == "Wave" then | |
1647 | MSH = CreateMesh2("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8)) | |
1648 | elseif TYPE == "Ring" then | |
1649 | MSH = CreateMesh2("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0)) | |
1650 | elseif TYPE == "Slash" then | |
1651 | MSH = CreateMesh2("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
1652 | elseif TYPE == "Round Slash" then | |
1653 | MSH = CreateMesh2("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
1654 | elseif TYPE == "Swirl" then | |
1655 | MSH = CreateMesh2("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0)) | |
1656 | elseif TYPE == "Skull" then | |
1657 | MSH = CreateMesh2("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0)) | |
1658 | elseif TYPE == "Crystal" then | |
1659 | MSH = CreateMesh2("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0)) | |
1660 | elseif TYPE == "Crown" then | |
1661 | MSH = CreateMesh2("SpecialMesh", EFFECT, "FileMesh", "173770780", "", SIZE, VT(0,0,0)) | |
1662 | end | |
1663 | if MSH ~= nil then | |
1664 | local MOVESPEED = nil | |
1665 | if MOVEDIRECTION ~= nil then | |
1666 | MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME | |
1667 | end | |
1668 | local GROWTH = SIZE - ENDSIZE | |
1669 | local TRANS = TRANSPARENCY - ENDTRANSPARENCY | |
1670 | if TYPE == "Block" then | |
1671 | ||
1672 | SetTween(EFFECT,{CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))},"Linear","InOut",TIME/60) | |
1673 | else | |
1674 | ||
1675 | SetTween(EFFECT,{CFrame = CFRAME},"Linear","InOut",0) | |
1676 | ||
1677 | end | |
1678 | ||
1679 | ||
1680 | ||
1681 | wait() | |
1682 | ||
1683 | SetTween(EFFECT,{Transparency = EFFECT.Transparency - TRANS},"Linear","InOut",TIME/60) | |
1684 | ||
1685 | if TYPE == "Block" then | |
1686 | ||
1687 | SetTween(EFFECT,{CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))},"Linear","InOut",0) | |
1688 | else | |
1689 | ||
1690 | SetTween(EFFECT,{CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))},"Linear","InOut",0) | |
1691 | ||
1692 | end | |
1693 | if MOVEDIRECTION ~= nil then | |
1694 | local ORI = EFFECT.Orientation | |
1695 | ||
1696 | SetTween(EFFECT,{CFrame=CF(MOVEDIRECTION)},"Linear","InOut",TIME/60) | |
1697 | SetTween(EFFECT,{Orientation=ORI},"Linear","InOut",TIME/60) | |
1698 | ||
1699 | ||
1700 | end | |
1701 | MSH.Scale = MSH.Scale - GROWTH/TIME | |
1702 | SetTween(MSH,{Scale=ENDSIZE},TweenNameType,TweenInOutType,TIME/60) | |
1703 | if TYPE == "Wave" then | |
1704 | ||
1705 | SetTween(MSH,{Offset=VT(0,0,-MSH.Scale.X/8)},TweenNameType,TweenInOutType,TIME/60) | |
1706 | end | |
1707 | for LOOP = 1, TIME+1 do | |
1708 | wait(.05) | |
1709 | ||
1710 | --SetTween(EFFECT,{Transparency = EFFECT.Transparency - TRANS/TIME},"Linear","InOut",0) | |
1711 | ||
1712 | ||
1713 | if TYPE == "Block" then | |
1714 | ||
1715 | -- SetTween(EFFECT,{CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))},"Linear","InOut",0) | |
1716 | else | |
1717 | ||
1718 | -- SetTween(EFFECT,{CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))},"Linear","InOut",0) | |
1719 | ||
1720 | end | |
1721 | if MOVEDIRECTION ~= nil then | |
1722 | local ORI = EFFECT.Orientation | |
1723 | ||
1724 | -- SetTween(EFFECT,{CFrame=CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)},"Linear","InOut",0) | |
1725 | -- SetTween(EFFECT,{Orientation=ORI},"Linear","InOut",0) | |
1726 | ||
1727 | ||
1728 | end | |
1729 | end | |
1730 | game:GetService("Debris"):AddItem(EFFECT, 15) | |
1731 | coroutine.resume(coroutine.create(function() | |
1732 | if PLAYSSOUND == false then | |
1733 | EFFECT:remove() | |
1734 | else | |
1735 | SOUND.Stopped:Connect(function() | |
1736 | EFFECT:remove() | |
1737 | end) | |
1738 | end | |
1739 | end)) | |
1740 | else | |
1741 | coroutine.resume(coroutine.create(function() | |
1742 | if PLAYSSOUND == false then | |
1743 | EFFECT:remove() | |
1744 | else | |
1745 | repeat wait() until SOUND.Playing == false | |
1746 | EFFECT:remove() | |
1747 | end | |
1748 | end)) | |
1749 | end | |
1750 | end)) | |
1751 | end | |
1752 | ||
1753 | ||
1754 | ||
1755 | ||
1756 | ||
1757 | ||
1758 | Damagefunc = function(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch) | |
1759 | ||
1760 | if hit.Parent == nil then | |
1761 | return | |
1762 | end | |
1763 | local h = hit.Parent:FindFirstChild("Humanoid") | |
1764 | for _,v in pairs(hit.Parent:children()) do | |
1765 | if v:IsA("Humanoid") then | |
1766 | ||
1767 | h = v | |
1768 | ||
1769 | end | |
1770 | ||
1771 | end | |
1772 | ||
1773 | --gg | |
1774 | ||
1775 | --local FoundTorso = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso") | |
1776 | coroutine.resume(coroutine.create(function() | |
1777 | if h.Health >9999999 and minim <9999 and Type~= "IgnoreType" and(h.Parent:FindFirstChild("Torso") or h.Parent:FindFirstChild("UpperTorso")) and not h.Parent:FindFirstChild("Fly away")then | |
1778 | ||
1779 | ||
1780 | local FATag = Instance.new("Model",h.Parent) | |
1781 | ||
1782 | FATag.Name = "Fly away" | |
1783 | game:GetService("Debris"):AddItem(FATag, 2.5) | |
1784 | ||
1785 | ||
1786 | for _,v in pairs(h.Parent:children()) do | |
1787 | if v:IsA("BasePart")and v.Parent:FindFirstChildOfClass("Humanoid") then | |
1788 | v.Anchored=true | |
1789 | end | |
1790 | end | |
1791 | ||
1792 | wait(.25) | |
1793 | ||
1794 | if h.Parent:FindFirstChildOfClass("Body Colors")then | |
1795 | h.Parent:FindFirstChildOfClass("Body Colors"):Destroy() | |
1796 | end | |
1797 | ||
1798 | ||
1799 | local FoundTorso = h.Parent:FindFirstChild("Torso") or h.Parent:FindFirstChild("UpperTorso") | |
1800 | ||
1801 | coroutine.resume(coroutine.create(function() | |
1802 | ||
1803 | ||
1804 | local YourGone = Instance.new("Part") | |
1805 | YourGone.Reflectance = 0 | |
1806 | YourGone.Transparency = 1 | |
1807 | YourGone.CanCollide = false | |
1808 | YourGone.Locked = true | |
1809 | YourGone.Anchored=true | |
1810 | YourGone.BrickColor = BrickColor.new("Really blue") | |
1811 | YourGone.Name = "YourGone" | |
1812 | YourGone.Size = Vector3.new() | |
1813 | YourGone.Material = "SmoothPlastic" | |
1814 | YourGone:BreakJoints() | |
1815 | YourGone.Parent = FoundTorso | |
1816 | YourGone.CFrame = FoundTorso.CFrame | |
1817 | ||
1818 | local NewParticle = Instance.new("ParticleEmitter") | |
1819 | NewParticle.Parent = YourGone | |
1820 | NewParticle.Acceleration = Vector3.new(0,0,0) | |
1821 | NewParticle.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,10),NumberSequenceKeypoint.new(1,.0)}) | |
1822 | NewParticle.Color = ColorSequence.new(Color3.new (1,0,0), Color3.new (1, 0, 0)) | |
1823 | NewParticle.Lifetime = NumberRange.new(0.55,0.95) | |
1824 | NewParticle.Transparency=NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(.25,.0),NumberSequenceKeypoint.new(1,1)}) | |
1825 | NewParticle.Speed = NumberRange.new(0,0.0) | |
1826 | NewParticle.ZOffset = 2 | |
1827 | NewParticle.Texture = "rbxassetid://243660364" | |
1828 | NewParticle.RotSpeed = NumberRange.new(-0,0) | |
1829 | NewParticle.Rotation = NumberRange.new(-180,180) | |
1830 | NewParticle.Enabled = false | |
1831 | game:GetService("Debris"):AddItem(YourGone, 3) | |
1832 | for i = 0,2,1 do | |
1833 | NewParticle:Emit(1) | |
1834 | so("1448044156", FoundTorso,2, 1) | |
1835 | h.Parent:BreakJoints() | |
1836 | YourGone.CFrame = FoundTorso.CFrame | |
1837 | for _,v in pairs(h.Parent:children()) do | |
1838 | if v:IsA("BasePart")and v.Parent:FindFirstChildOfClass("Humanoid") then | |
1839 | v.Anchored=false | |
1840 | -- v.Material = "Neon" | |
1841 | --v.BrickColor = BrickColor.new("Really red") | |
1842 | if v:FindFirstChildOfClass("SpecialMesh")then | |
1843 | --v:Destroy() | |
1844 | end | |
1845 | if v:FindFirstChildOfClass("Decal") and v.Name == "face" then | |
1846 | -- v:Destroy() | |
1847 | end | |
1848 | local vp = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(1000, 1000, 1000), velocity = Vector3.new(math.random(-10,10),4,math.random(-10,10)) }) | |
1849 | ||
1850 | vp.Parent = v | |
1851 | game:GetService("Debris"):AddItem(vp, math.random(50,100)/1000) | |
1852 | ||
1853 | ||
1854 | end | |
1855 | ||
1856 | ||
1857 | ||
1858 | end | |
1859 | ||
1860 | ||
1861 | ||
1862 | wait(.2) | |
1863 | end | |
1864 | wait(.1) | |
1865 | NewParticle:Emit(3) | |
1866 | so("1448044156", FoundTorso,2, .8) | |
1867 | h.Parent:BreakJoints() | |
1868 | YourGone.CFrame = FoundTorso.CFrame | |
1869 | for _,v in pairs(h.Parent:children()) do | |
1870 | if v:IsA("BasePart")and v.Parent:FindFirstChildOfClass("Humanoid") then | |
1871 | v.Anchored=false | |
1872 | -- v.Material = "Neon" | |
1873 | --v.BrickColor = BrickColor.new("Really red") | |
1874 | if v:FindFirstChildOfClass("SpecialMesh")then | |
1875 | --v:Destroy() | |
1876 | end | |
1877 | if v:FindFirstChildOfClass("Decal") and v.Name == "face" then | |
1878 | -- v:Destroy() | |
1879 | end | |
1880 | local vp = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(1000, 1000, 1000), velocity = Vector3.new(math.random(-10,10),4,math.random(-10,10)) }) | |
1881 | ||
1882 | vp.Parent = v | |
1883 | game:GetService("Debris"):AddItem(vp, math.random(100,200)/1000) | |
1884 | ||
1885 | ||
1886 | end | |
1887 | ||
1888 | ||
1889 | ||
1890 | end | |
1891 | ||
1892 | ||
1893 | ||
1894 | ||
1895 | end)) | |
1896 | ||
1897 | ||
1898 | ||
1899 | ||
1900 | wait(.1) | |
1901 | ||
1902 | ||
1903 | ||
1904 | ||
1905 | ||
1906 | ||
1907 | ||
1908 | end | |
1909 | ||
1910 | ||
1911 | end)) | |
1912 | if h ~= nil and hit.Parent ~= Character and hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso") ~= nil then | |
1913 | if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then | |
1914 | return | |
1915 | end | |
1916 | local c = Create("ObjectValue")({Name = "creator", Value = game:service("Players").basstracker1970, Parent = h}) | |
1917 | game:GetService("Debris"):AddItem(c, 0.5) | |
1918 | if HitSound ~= nil and HitPitch ~= nil then | |
1919 | so(HitSound, hit, 1, HitPitch) | |
1920 | end | |
1921 | local Damage = math.random(minim, maxim) | |
1922 | local blocked = false | |
1923 | local block = hit.Parent:findFirstChild("Block") | |
1924 | if block ~= nil and block.className == "IntValue" and block.Value > 0 then | |
1925 | blocked = true | |
1926 | block.Value = block.Value - 1 | |
1927 | print(block.Value) | |
1928 | end | |
1929 | lockon(h.Parent) | |
1930 | if blocked == false then | |
1931 | h.Health = h.Health - Damage | |
1932 | ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 2.5, Color3.new(0,0,0)) | |
1933 | else | |
1934 | h.Health = h.Health - Damage / 2 | |
1935 | ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 2.5, Color3.new(0,0,0)) | |
1936 | ||
1937 | end | |
1938 | ||
1939 | if Type == "Knockdown" then | |
1940 | local hum = h | |
1941 | ||
1942 | hum.PlatformStand = true | |
1943 | coroutine.resume(coroutine.create(function(HHumanoid) | |
1944 | ||
1945 | wait(.2) | |
1946 | HHumanoid.PlatformStand = false | |
1947 | end | |
1948 | ), hum) | |
1949 | ||
1950 | ||
1951 | ||
1952 | local FoundTorso = h.Parent:FindFirstChild("Torso") or h.Parent:FindFirstChild("UpperTorso") | |
1953 | local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit | |
1954 | local bodvol = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(math.huge, 0, math.huge), velocity = CFrame.new(Part.Position,FoundTorso.Position).lookVector * knockback, Parent = hit}) | |
1955 | local rl = Create("BodyAngularVelocity")({P = 3000, maxTorque = Vector3.new(5000, 5000, 5000) * 50, angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), Parent = hit}) | |
1956 | game:GetService("Debris"):AddItem(bodvol, .2) | |
1957 | game:GetService("Debris"):AddItem(rl, 0.2) | |
1958 | ||
1959 | ||
1960 | ||
1961 | elseif Type == "Knockdown2" then | |
1962 | local hum = h | |
1963 | ||
1964 | hum.PlatformStand = true | |
1965 | coroutine.resume(coroutine.create(function(HHumanoid) | |
1966 | ||
1967 | ||
1968 | Combo = 1 wait(.2) | |
1969 | HHumanoid.PlatformStand = false | |
1970 | end | |
1971 | ), hum) | |
1972 | local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit | |
1973 | local bodvol = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(math.huge, 0, math.huge), velocity = CFrame.new(Part.Position,Property.Position).lookVector * knockback}) | |
1974 | local rl = Create("BodyAngularVelocity")({P = 3000, maxTorque = Vector3.new(5000, 5000, 5000) * 50, angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), Parent = hit}) | |
1975 | game:GetService("Debris"):AddItem(bodvol, 0.2) | |
1976 | game:GetService("Debris"):AddItem(rl, 0.2) | |
1977 | ||
1978 | ||
1979 | ||
1980 | ||
1981 | ||
1982 | ||
1983 | local bodyVelocity2 = Create("BodyVelocity")({velocity = Vector3.new(0, 60, 0), P = 5000, maxForce = Vector3.new(8000, 12000, 8000), Parent = RootPart}) | |
1984 | game:GetService("Debris"):AddItem(bodyVelocity2, 0.1) | |
1985 | ||
1986 | elseif Type == "Normal" then | |
1987 | local vp = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(math.huge, 0, math.huge), velocity = CFrame.new(Part.Position,Property.Position).lookVector * knockback}) | |
1988 | if knockback > 0 then | |
1989 | ||
1990 | local HTorso = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso") | |
1991 | vp.Parent = HTorso | |
1992 | end | |
1993 | game:GetService("Debris"):AddItem(vp, 0.25) | |
1994 | ||
1995 | ||
1996 | ||
1997 | ||
1998 | ||
1999 | ||
2000 | ||
2001 | ||
2002 | ||
2003 | ||
2004 | ||
2005 | ||
2006 | ||
2007 | elseif Type== "Instakill" then | |
2008 | coroutine.resume(coroutine.create(function() | |
2009 | if (h.Parent:FindFirstChild("Torso") or h.Parent:FindFirstChild("UpperTorso")) and not h.Parent:FindFirstChild("Fly away")then | |
2010 | ||
2011 | ||
2012 | local FATag = Instance.new("Model",h.Parent) | |
2013 | ||
2014 | FATag.Name = "Fly away" | |
2015 | game:GetService("Debris"):AddItem(FATag, 2.5) | |
2016 | ||
2017 | ||
2018 | for _,v in pairs(h.Parent:children()) do | |
2019 | if v:IsA("BasePart")and v.Parent:FindFirstChildOfClass("Humanoid") then | |
2020 | v.Anchored=true | |
2021 | end | |
2022 | end | |
2023 | ||
2024 | wait(.25) | |
2025 | ||
2026 | if h.Parent:FindFirstChildOfClass("Body Colors")then | |
2027 | h.Parent:FindFirstChildOfClass("Body Colors"):Destroy() | |
2028 | end | |
2029 | ||
2030 | ||
2031 | local FoundTorso = h.Parent:FindFirstChild("Torso") or h.Parent:FindFirstChild("UpperTorso") | |
2032 | ||
2033 | coroutine.resume(coroutine.create(function() | |
2034 | ||
2035 | ||
2036 | local YourGone = Instance.new("Part") | |
2037 | YourGone.Reflectance = 0 | |
2038 | YourGone.Transparency = 1 | |
2039 | YourGone.CanCollide = false | |
2040 | YourGone.Locked = true | |
2041 | YourGone.Anchored=true | |
2042 | YourGone.BrickColor = BrickColor.new("Really blue") | |
2043 | YourGone.Name = "YourGone" | |
2044 | YourGone.Size = Vector3.new() | |
2045 | YourGone.Material = "SmoothPlastic" | |
2046 | YourGone:BreakJoints() | |
2047 | YourGone.Parent = FoundTorso | |
2048 | YourGone.CFrame = FoundTorso.CFrame | |
2049 | ||
2050 | local NewParticle = Instance.new("ParticleEmitter") | |
2051 | NewParticle.Parent = YourGone | |
2052 | NewParticle.Acceleration = Vector3.new(0,0,0) | |
2053 | NewParticle.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,10),NumberSequenceKeypoint.new(1,.0)}) | |
2054 | NewParticle.Color = ColorSequence.new(Color3.new (1,0,0), Color3.new (1, 0, 0)) | |
2055 | NewParticle.Lifetime = NumberRange.new(0.55,0.95) | |
2056 | NewParticle.Transparency=NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(.25,.0),NumberSequenceKeypoint.new(1,1)}) | |
2057 | NewParticle.Speed = NumberRange.new(0,0.0) | |
2058 | NewParticle.ZOffset = 2 | |
2059 | NewParticle.Texture = "rbxassetid://243660364" | |
2060 | NewParticle.RotSpeed = NumberRange.new(-0,0) | |
2061 | NewParticle.Rotation = NumberRange.new(-180,180) | |
2062 | NewParticle.Enabled = false | |
2063 | game:GetService("Debris"):AddItem(YourGone, 3) | |
2064 | for i = 0,2,1 do | |
2065 | NewParticle:Emit(1) | |
2066 | so("1448044156", FoundTorso,2, 1) | |
2067 | h.Parent:BreakJoints() | |
2068 | YourGone.CFrame = FoundTorso.CFrame | |
2069 | for _,v in pairs(h.Parent:children()) do | |
2070 | if v:IsA("BasePart")and v.Parent:FindFirstChildOfClass("Humanoid") then | |
2071 | v.Anchored=false | |
2072 | -- v.Material = "Neon" | |
2073 | --v.BrickColor = BrickColor.new("Really red") | |
2074 | if v:FindFirstChildOfClass("SpecialMesh")then | |
2075 | --v:Destroy() | |
2076 | end | |
2077 | if v:FindFirstChildOfClass("Decal") and v.Name == "face" then | |
2078 | -- v:Destroy() | |
2079 | end | |
2080 | local vp = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(1000, 1000, 1000), velocity = Vector3.new(math.random(-10,10),4,math.random(-10,10)) }) | |
2081 | ||
2082 | vp.Parent = v | |
2083 | game:GetService("Debris"):AddItem(vp, math.random(50,100)/1000) | |
2084 | ||
2085 | ||
2086 | end | |
2087 | ||
2088 | ||
2089 | ||
2090 | end | |
2091 | ||
2092 | ||
2093 | ||
2094 | wait(.2) | |
2095 | end | |
2096 | wait(.1) | |
2097 | NewParticle:Emit(3) | |
2098 | so("1448044156", FoundTorso,2, .8) | |
2099 | h.Parent:BreakJoints() | |
2100 | YourGone.CFrame = FoundTorso.CFrame | |
2101 | for _,v in pairs(h.Parent:children()) do | |
2102 | if v:IsA("BasePart")and v.Parent:FindFirstChildOfClass("Humanoid") then | |
2103 | v.Anchored=false | |
2104 | -- v.Material = "Neon" | |
2105 | --v.BrickColor = BrickColor.new("Really red") | |
2106 | if v:FindFirstChildOfClass("SpecialMesh")then | |
2107 | --v:Destroy() | |
2108 | end | |
2109 | if v:FindFirstChildOfClass("Decal") and v.Name == "face" then | |
2110 | -- v:Destroy() | |
2111 | end | |
2112 | local vp = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(1000, 1000, 1000), velocity = Vector3.new(math.random(-10,10),4,math.random(-10,10)) }) | |
2113 | ||
2114 | vp.Parent = v | |
2115 | game:GetService("Debris"):AddItem(vp, math.random(100,200)/1000) | |
2116 | ||
2117 | ||
2118 | end | |
2119 | ||
2120 | ||
2121 | ||
2122 | end | |
2123 | ||
2124 | ||
2125 | ||
2126 | ||
2127 | end)) | |
2128 | ||
2129 | ||
2130 | ||
2131 | ||
2132 | wait(.1) | |
2133 | ||
2134 | ||
2135 | ||
2136 | ||
2137 | ||
2138 | ||
2139 | ||
2140 | end | |
2141 | ||
2142 | ||
2143 | end)) | |
2144 | ||
2145 | ||
2146 | ||
2147 | ||
2148 | elseif Type == "HPSteal" then | |
2149 | Humanoid.Health = Humanoid.Health + Damage | |
2150 | local hum = h | |
2151 | ||
2152 | hum.PlatformStand = true | |
2153 | coroutine.resume(coroutine.create(function(HHumanoid) | |
2154 | ||
2155 | ||
2156 | Combo = 1 wait(.2) | |
2157 | HHumanoid.PlatformStand = false | |
2158 | end | |
2159 | ), hum) | |
2160 | local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit | |
2161 | local bodvol = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(math.huge, 0, math.huge), velocity = CFrame.new(Part.Position,Property.Position).lookVector * knockback}) | |
2162 | local rl = Create("BodyAngularVelocity")({P = 3000, maxTorque = Vector3.new(5000, 5000, 5000) * 50, angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), Parent = hit}) | |
2163 | game:GetService("Debris"):AddItem(bodvol, 0.2) | |
2164 | game:GetService("Debris"):AddItem(rl, 0.2) | |
2165 | ||
2166 | ||
2167 | ||
2168 | ||
2169 | ||
2170 | ||
2171 | local bodyVelocity2 = Create("BodyVelocity")({velocity = Vector3.new(0, 60, 0), P = 5000, maxForce = Vector3.new(8000, 12000, 8000), Parent = RootPart}) | |
2172 | game:GetService("Debris"):AddItem(bodyVelocity2, 0.1) | |
2173 | ||
2174 | ||
2175 | elseif Type == "Impale" then | |
2176 | ||
2177 | ||
2178 | ||
2179 | ||
2180 | ||
2181 | ||
2182 | ||
2183 | ||
2184 | CFuncs.Sound.Create("http://www.roblox.com/asset/?id=268249319", Spike, .8, 2) | |
2185 | hit.Parent.Humanoid.PlatformStand = true | |
2186 | ||
2187 | ||
2188 | wait(1) | |
2189 | hit.Parent.Humanoid.PlatformStand = false | |
2190 | elseif Type == "IgnoreType" then | |
2191 | ||
2192 | ||
2193 | ||
2194 | ||
2195 | ||
2196 | elseif Type == "Up" then | |
2197 | local bodyVelocity = Create("BodyVelocity")({velocity = Vector3.new(0, 20, 0), P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit}) | |
2198 | game:GetService("Debris"):AddItem(bodyVelocity, 0.1) | |
2199 | local bodyVelocity = Create("BodyVelocity")({velocity = Vector3.new(0, 20, 0), P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit}) | |
2200 | game:GetService("Debris"):AddItem(bodyVelocity, .1) | |
2201 | ||
2202 | ||
2203 | ||
2204 | ||
2205 | ||
2206 | ||
2207 | ||
2208 | elseif Type == "Snare" then | |
2209 | local bp = Create("BodyPosition")({P = 900, D = 1000, maxForce = Vector3.new(math.huge, math.huge, math.huge), position = hit.Parent.Torso.Position, Parent = hit.Parent.Torso}) | |
2210 | game:GetService("Debris"):AddItem(bp, 1) | |
2211 | ||
2212 | ||
2213 | ||
2214 | elseif Type == "Freeze2" then | |
2215 | local BodPos = Create("BodyPosition")({P = 50000, D = 1000, maxForce = Vector3.new(math.huge, math.huge, math.huge), position = hit.Parent.Torso.Position, Parent = hit.Parent.Torso}) | |
2216 | local BodGy = Create("BodyGyro")({maxTorque = Vector3.new(400000, 400000, 400000) * math.huge, P = 20000, Parent = hit.Parent.Torso, cframe = hit.Parent.Torso.CFrame}) | |
2217 | hit.Parent.Torso.Anchored = true | |
2218 | coroutine.resume(coroutine.create(function(Part) | |
2219 | ||
2220 | wait(1.5) | |
2221 | Part.Anchored = false | |
2222 | end | |
2223 | ), hit.Parent.Torso) | |
2224 | game:GetService("Debris"):AddItem(BodPos, 3) | |
2225 | game:GetService("Debris"):AddItem(BodGy, 3) | |
2226 | end | |
2227 | local debounce = Create("BoolValue")({Name = "DebounceHit", Parent = hit.Parent, Value = true}) | |
2228 | game:GetService("Debris"):AddItem(debounce, Delay) | |
2229 | c = Instance.new("ObjectValue") | |
2230 | c.Name = "creator" | |
2231 | c.Value = Player | |
2232 | c.Parent = h | |
2233 | game:GetService("Debris"):AddItem(c, 0.5) | |
2234 | end | |
2235 | end | |
2236 | ||
2237 | ||
2238 | ||
2239 | ShowDamage = function(Pos, Text, Time, Color) | |
2240 | ||
2241 | local Rate = 0.033333333333333 | |
2242 | if not Pos then | |
2243 | local Pos = Vector3.new(0, 0, 0) | |
2244 | end | |
2245 | local Text = Text or "" | |
2246 | local Time = Time or 2 | |
2247 | if not Color then | |
2248 | local Color = Color3.new(1, 0, 1) | |
2249 | end | |
2250 | local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0)) | |
2251 | EffectPart.Anchored = true | |
2252 | local BillboardGui = Create("BillboardGui")({Size = UDim2.new(2, 0, 2, 0), Adornee = EffectPart, Parent = EffectPart}) | |
2253 | local TextLabel = Create("TextLabel")({BackgroundTransparency = 1, Size = UDim2.new(1, 0, 1, 0), Text = "DMG: "..Text.."", TextColor3 = Color, TextScaled = true, Font = Enum.Font.ArialBold, Parent = BillboardGui}) | |
2254 | game.Debris:AddItem(EffectPart, Time + 0.1) | |
2255 | EffectPart.Parent = game:GetService("Workspace") | |
2256 | delay(0, function() | |
2257 | ||
2258 | local Frames = Time / Rate | |
2259 | ||
2260 | ||
2261 | ||
2262 | print(Frames) | |
2263 | TextLabel.TextTransparency=0 | |
2264 | EffectPart.CFrame=CFrame.new(Pos) | |
2265 | wait() | |
2266 | SetTween(TextLabel,{TextTransparency=1},"Quad","In",Frames/60) | |
2267 | SetTween(TextLabel,{Rotation=math.random(-25,25)},"Elastic","InOut",Frames/60) | |
2268 | SetTween(TextLabel,{TextColor3=Color3.new(.15,0,.5)},"Elastic","InOut",Frames/60) | |
2269 | ||
2270 | SetTween(EffectPart,{CFrame = CFrame.new(Pos) + Vector3.new(math.random(-5,5), math.random(1,5), math.random(-5,5))},"Linear","InOut",Frames/60) | |
2271 | ||
2272 | ||
2273 | wait(Frames/60) | |
2274 | ||
2275 | if EffectPart and EffectPart.Parent then | |
2276 | EffectPart:Destroy() | |
2277 | end | |
2278 | end | |
2279 | ) | |
2280 | end | |
2281 | ||
2282 | MagniDamage = function(Part, magni, mindam, maxdam, knock, Type2) | |
2283 | ||
2284 | ||
2285 | ||
2286 | ||
2287 | local Type="" | |
2288 | ||
2289 | ||
2290 | ||
2291 | ||
2292 | if mememode == true then | |
2293 | ||
2294 | Type= "Instakill" | |
2295 | ||
2296 | else | |
2297 | Type=Type2 | |
2298 | end | |
2299 | if Type2 == "NormalKnockdown" then | |
2300 | Type= "Knockdown" | |
2301 | end | |
2302 | ||
2303 | for _,c in pairs(workspace:children()) do | |
2304 | ||
2305 | ||
2306 | ||
2307 | ||
2308 | ||
2309 | local hum = c:FindFirstChild("Humanoid") | |
2310 | for _,v in pairs(c:children()) do | |
2311 | if v:IsA("Humanoid") then | |
2312 | hum = v | |
2313 | end | |
2314 | end | |
2315 | ||
2316 | ||
2317 | ||
2318 | ||
2319 | if hum ~= nil then | |
2320 | local head = c:findFirstChild("Head") | |
2321 | if head ~= nil then | |
2322 | local targ = head.Position - Part.Position | |
2323 | local mag = targ.magnitude | |
2324 | if mag <= magni and c.Name ~= Player.Name then | |
2325 | Damagefunc(Part, head, mindam, maxdam, knock, Type, RootPart, 0.1, "851453784", 1.2) | |
2326 | end | |
2327 | end | |
2328 | end | |
2329 | end | |
2330 | end | |
2331 | ||
2332 | ||
2333 | function CFMagniDamage(HTCF,magni, mindam, maxdam, knock, Type) | |
2334 | local DGP = Instance.new("Part") | |
2335 | ||
2336 | DGP.Parent = Character | |
2337 | DGP.Size = Vector3.new(0.05, 0.05, 0.05) | |
2338 | DGP.Transparency = 1 | |
2339 | DGP.CanCollide = false | |
2340 | DGP.Anchored = true | |
2341 | RemoveOutlines(DGP) | |
2342 | DGP.Position=DGP.Position + Vector3.new(0,-.1,0) | |
2343 | DGP.CFrame = HTCF | |
2344 | ||
2345 | coroutine.resume(coroutine.create(function() | |
2346 | MagniDamage(DGP, magni, mindam, maxdam, knock, Type) | |
2347 | end)) | |
2348 | game:GetService("Debris"):AddItem(DGP, .05) | |
2349 | ||
2350 | ||
2351 | DGP.Archivable = false | |
2352 | end | |
2353 | ||
2354 | ||
2355 | ||
2356 | ||
2357 | ------------------ | |
2358 | --[End of Sword]-- | |
2359 | ------------------ | |
2360 | ||
2361 | --------------- | |
2362 | --[Particles]-- | |
2363 | --------------- | |
2364 | ||
2365 | ||
2366 | local Particle2_1 = Create("ParticleEmitter"){ | |
2367 | Color = ColorSequence.new(Color3.new (1,1,1), Color3.new (170/255, 255/255, 255/255)), | |
2368 | Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(.75,.4),NumberSequenceKeypoint.new(1,1)}), | |
2369 | Size = NumberSequence.new({NumberSequenceKeypoint.new(0,.5),NumberSequenceKeypoint.new(1,.0)}), | |
2370 | Texture = "rbxassetid://241922778", | |
2371 | Lifetime = NumberRange.new(0.55,0.95), | |
2372 | Rate = 100, | |
2373 | VelocitySpread = 180, | |
2374 | Rotation = NumberRange.new(0), | |
2375 | RotSpeed = NumberRange.new(-200,200), | |
2376 | Speed = NumberRange.new(8.0), | |
2377 | LightEmission = 1, | |
2378 | LockedToPart = false, | |
2379 | Acceleration = Vector3.new(0, 0, 0), | |
2380 | EmissionDirection = "Top", | |
2381 | Drag = 4, | |
2382 | Enabled = false | |
2383 | } | |
2384 | ||
2385 | ||
2386 | local BEGONE_Particle = Create("ParticleEmitter"){ | |
2387 | Color = ColorSequence.new(Color3.new (1,1,1), Color3.new (1, 1, 1)), | |
2388 | Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(0.1,0),NumberSequenceKeypoint.new(0.3,0),NumberSequenceKeypoint.new(0.5,.2),NumberSequenceKeypoint.new(1,1)}), | |
2389 | Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(.15,1.5),NumberSequenceKeypoint.new(.75,1.5),NumberSequenceKeypoint.new(1,0)}), | |
2390 | Texture = "rbxassetid://936193661", | |
2391 | Lifetime = NumberRange.new(1.5), | |
2392 | Rate = 100, | |
2393 | VelocitySpread = 0, | |
2394 | Rotation = NumberRange.new(0), | |
2395 | RotSpeed = NumberRange.new(-10,10), | |
2396 | Speed = NumberRange.new(0), | |
2397 | LightEmission = .25, | |
2398 | LockedToPart = true, | |
2399 | Acceleration = Vector3.new(0, -0, 0), | |
2400 | EmissionDirection = "Top", | |
2401 | Drag = 4, | |
2402 | ZOffset = 1, | |
2403 | Enabled = false | |
2404 | } | |
2405 | ||
2406 | ||
2407 | ||
2408 | ||
2409 | ||
2410 | ||
2411 | ||
2412 | ||
2413 | ||
2414 | ||
2415 | local VoidEmitter = Create("ParticleEmitter"){ | |
2416 | Speed = NumberRange.new(1, 1), | |
2417 | Color = ColorSequence.new({ ColorSequenceKeypoint.new(0, Color3.new(0, 0, 0)),ColorSequenceKeypoint.new(0.699,Color3.new(0.00998336, 0.00998336, 0.00998336)),ColorSequenceKeypoint.new(1,Color3.new(0.45098, 0, 1))}), | |
2418 | LightInfluence = 1, | |
2419 | Texture = "rbxassetid://258128463", | |
2420 | Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(0.5,0.5),NumberSequenceKeypoint.new(1,1)}), | |
2421 | ZOffset = 2, | |
2422 | Size = NumberSequence.new({NumberSequenceKeypoint.new(0,1.7500001192093),NumberSequenceKeypoint.new(0.7500001192093,0.74999988079071),NumberSequenceKeypoint.new(1,0.68749964237213)}), | |
2423 | Acceleration = Vector3.new(0, 0.25, 0), | |
2424 | Drag = 2, | |
2425 | Lifetime = NumberRange.new(1, 2), | |
2426 | LockedToPart = false, | |
2427 | Rate = 50.01999664307, | |
2428 | RotSpeed = NumberRange.new(-100, 100), | |
2429 | SpreadAngle = Vector2.new(360, 360), | |
2430 | VelocitySpread = 360, | |
2431 | Enabled = false | |
2432 | } | |
2433 | ||
2434 | ||
2435 | ||
2436 | ||
2437 | ||
2438 | ||
2439 | ---------------------- | |
2440 | --[End Of Particles]-- | |
2441 | ---------------------- | |
2442 | ||
2443 | ||
2444 | ||
2445 | ||
2446 | ----------------- | |
2447 | ||
2448 | function lockon_OnOff () | |
2449 | coroutine.resume(coroutine.create(function() | |
2450 | ||
2451 | local NewParticleH = Instance.new("Attachment",eye) | |
2452 | NewParticleH.Position = Vector3.new(0,0,.25) | |
2453 | coroutine.resume(coroutine.create(function() | |
2454 | local CrystalMainColor = Color3.new(0,1,0) | |
2455 | ||
2456 | ||
2457 | local NewParticle = Particle2_1:Clone() | |
2458 | NewParticle.Parent = NewParticleH | |
2459 | NewParticle.Enabled = true | |
2460 | NewParticle.Texture = "rbxassetid://68942583" | |
2461 | NewParticle.Acceleration = Vector3.new(0,0,0) | |
2462 | NewParticle.Speed = NumberRange.new(0) | |
2463 | NewParticle.LockedToPart = true | |
2464 | NewParticle.ZOffset = .25 | |
2465 | NewParticle.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2.5),NumberSequenceKeypoint.new(1,0)}) | |
2466 | NewParticle.Rate = 50 | |
2467 | NewParticle.Color = ColorSequence.new(CrystalMainColor, CrystalMainColor) | |
2468 | NewParticle.Transparency=NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(1,.9)}) | |
2469 | NewParticle.Name = "XEF" | |
2470 | ||
2471 | ||
2472 | end)) | |
2473 | ||
2474 | ||
2475 | while ZT == true do | |
2476 | ||
2477 | ||
2478 | ||
2479 | SetTween(imgl,{Rotation=imgl.Rotation+25.5},"Elastic","Out",3) | |
2480 | if ZTfade==true then | |
2481 | SetTween(imgl,{ImageTransparency=.7},"Elastic","Out",3) | |
2482 | SetTween(crosshair,{Size = UDim2.new(10,0,10,0)},"Elastic","Out",1.5) | |
2483 | end | |
2484 | ||
2485 | ||
2486 | wait(1.5) | |
2487 | if ZTfade==true then | |
2488 | SetTween(imgl,{ImageTransparency=0},"Linear","InOut",0) | |
2489 | SetTween(crosshair,{Size = UDim2.new(11,0,11,0)},"Elastic","InOut",0) | |
2490 | end | |
2491 | wait() | |
2492 | end | |
2493 | ||
2494 | crosshair.Adornee = nil | |
2495 | crosshair.Enabled = false | |
2496 | NewParticleH:Destroy() | |
2497 | ||
2498 | end)) | |
2499 | end | |
2500 | ||
2501 | function lockon (targetted) | |
2502 | if ZT == true then | |
2503 | ||
2504 | coroutine.resume(coroutine.create(function() | |
2505 | crosshair.Adornee = targetted:FindFirstChild("Torso") or targetted:FindFirstChild("UpperTorso") | |
2506 | crosshair.Enabled = true | |
2507 | ||
2508 | ZTfade = false | |
2509 | SetTween(imgl,{ImageTransparency=1},"Linear","InOut",0) | |
2510 | ||
2511 | SetTween(crosshair,{Size = UDim2.new(40,0,40,0)},"Linear","InOut",0) | |
2512 | ||
2513 | wait() | |
2514 | ||
2515 | SetTween(imgl,{ImageTransparency=.7},"Bounce","Out",2) | |
2516 | ||
2517 | SetTween(crosshair,{Size = UDim2.new(10,0,10,0)},"Elastic","InOut",1) | |
2518 | wait(1) | |
2519 | ZTfade = true | |
2520 | end)) | |
2521 | end | |
2522 | end | |
2523 | ||
2524 | ||
2525 | ||
2526 | ||
2527 | ||
2528 | ||
2529 | ----------------- | |
2530 | ||
2531 | ||
2532 | ||
2533 | ||
2534 | ||
2535 | --[[ | |
2536 | for i, v in pairs(C:GetChildren()) do | |
2537 | if v:IsA("Accessory")then | |
2538 | v:Destroy() | |
2539 | end | |
2540 | if v:IsA("BasePart")then | |
2541 | v.Transparency =1 | |
2542 | if v.Name == "Head" then | |
2543 | v:FindFirstChildOfClass("Decal"):Destroy() | |
2544 | end | |
2545 | end | |
2546 | end--]] | |
2547 | --[[ | |
2548 | ||
2549 | ||
2550 | ||
2551 | ||
2552 | ||
2553 | ||
2554 | ||
2555 | ||
2556 | ||
2557 | ||
2558 | ||
2559 | ||
2560 | ||
2561 | local tweeningInformation = TweenInfo.new( | |
2562 | 0.5, | |
2563 | Enum.EasingStyle.Back, | |
2564 | Enum.EasingDirection.Out, | |
2565 | 0, | |
2566 | false, | |
2567 | 0 | |
2568 | ) | |
2569 | --]] | |
2570 | ||
2571 | ||
2572 | local RJW=weld(RJ.Parent,RJ.Part0,RJ.Part1,RJ.C0) | |
2573 | RJW.C1 = RJ.C1 | |
2574 | RJW.Name = RJ.Name | |
2575 | ||
2576 | local NeckW=weld(Neck.Parent,Neck.Part0,Neck.Part1,Neck.C0) | |
2577 | NeckW.C1 = Neck.C1 | |
2578 | NeckW.Name = Neck.Name | |
2579 | ||
2580 | ||
2581 | --print(WRJ.Parent.Name) | |
2582 | ||
2583 | local RW=weld(Torso,Torso,RightArm,cf(0,0,0)) | |
2584 | ||
2585 | local LW=weld(Torso,Torso,LeftArm,cf(0,0,0)) | |
2586 | ||
2587 | local RH=weld(Torso,RightArm,RightLeg,cf(0,0,0)) | |
2588 | ||
2589 | local LH=weld(Torso,LeftArm,LeftLeg,cf(0,0,0)) | |
2590 | ||
2591 | ||
2592 | ||
2593 | RW.C1 = cn(0, 0.5, 0) | |
2594 | LW.C1 = cn(0, 0.5, 0) | |
2595 | RH.C1 = cn(0, 1, 0) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)) | |
2596 | LH.C1 = cn(0, 1, 0) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)) | |
2597 | ||
2598 | ||
2599 | ||
2600 | ||
2601 | ||
2602 | ||
2603 | -------- | |
2604 | --(#Torso) | |
2605 | SetTween(RJW,{C0=RootCF*CFrame.new(0,0,0)},"Quad","InOut",0.1) | |
2606 | -------- | |
2607 | --(#Head) | |
2608 | SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)},"Quad","InOut",0.1) | |
2609 | -------- | |
2610 | --(#Right Arm) | |
2611 | SetTween(RW,{C0=CFrame.new(1.5 , 0.5, -.0)},"Quad","InOut",0.1) | |
2612 | -------- | |
2613 | --(#Left Arm) | |
2614 | SetTween(LW,{C0=CFrame.new(-1.5, 0.5, -.0)},"Quad","InOut",0.1) | |
2615 | -------- | |
2616 | --(#Right Leg) | |
2617 | SetTween(RH,{C0=CFrame.new(0, -0.90, 0)},"Quad","InOut",0.1) | |
2618 | -------- | |
2619 | --(#Left Leg) | |
2620 | SetTween(LH,{C0=CFrame.new(0, -0.90, 0)},"Quad","InOut",0.1) | |
2621 | ||
2622 | ||
2623 | ||
2624 | --[[ | |
2625 | SetTween(RJW,{C0=RootCF*CFrame.new(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",0.1) | |
2626 | SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,2)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",0.1) | |
2627 | SetTween(RW,{C0=CFrame.new(3.5 , 0.5, -.0)*angles(math.rad(0),math.rad(0),math.rad(30))},"Quad","Out",0.1) | |
2628 | SetTween(LW,{C0=CFrame.new(-3.5, 0.5, -.0)*angles(math.rad(0),math.rad(0),math.rad(-30))},"Quad","Out",0.1) | |
2629 | SetTween(RH,{C0=CFrame.new(0, -3, 0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",0.1) | |
2630 | SetTween(LH,{C0=CFrame.new(-0, -3, 0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",0.1) | |
2631 | --]] | |
2632 | ||
2633 | function Attack1() | |
2634 | attack = true | |
2635 | SetTween(RJW,{C0=RootCF*CFrame.new(0,-2,2)*angles(math.rad(30),math.rad(0),math.rad(0))},"Quad","InOut",1) | |
2636 | SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,-2)*angles(math.rad(20),math.rad(0),math.rad(0))},"Quad","InOut",1) | |
2637 | SetTween(RW,{C0=CFrame.new(2.5 , 3.5, 1.5)*angles(math.rad(30),math.rad(0),math.rad(30))},"Quad","InOut",1) | |
2638 | SetTween(LW,{C0=CFrame.new(-2.5, 3.5, 1.5)*angles(math.rad(30),math.rad(0),math.rad(-30))},"Quad","InOut",1) | |
2639 | SetTween(RH,{C0=CFrame.new(0, -3, 0)*angles(math.rad(50),math.rad(0),math.rad(-90))},"Quad","InOut",1) | |
2640 | SetTween(LH,{C0=CFrame.new(-0, -3, 0)*angles(math.rad(50),math.rad(0),math.rad(90))},"Quad","InOut",1) | |
2641 | ||
2642 | ||
2643 | wait(1) | |
2644 | ||
2645 | WACKYEFFECT({Time = 10, EffectType = "Slash", Size = (VT(60,0,60)), Size2 = (VT(0,0,0)), Transparency = 1, Transparency2 = .5, CFrame = RootPart.CFrame * ANGLES(RAD(MRANDOM(0,15)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,15))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 454850461, SoundPitch = 1, SoundVolume = 8}) | |
2646 | ||
2647 | for i = 10, 60,10 do | |
2648 | WACKYEFFECT({Time = 10+i, EffectType = "Slash", Size = (VT(60,0,60)), Size2 = (VT(0,0,0)), Transparency = 1, Transparency2 = .5, CFrame = RootPart.CFrame * ANGLES(RAD(MRANDOM(0,15)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,15))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 5}) | |
2649 | end | |
2650 | for i = 0,10 do wait() wait() wait() | |
2651 | local AREA = RootPart.CFrame * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0))*CF(0,0,MRANDOM(2,20)) | |
2652 | local TIMER = MRANDOM(30,50)/4 | |
2653 | WACKYEFFECT({Time = TIMER, EffectType = "Sphere", Size = VT(5,0,5)/1.1, Size2 = VT(0,15,0)/1.1, Transparency = .9, Transparency2 = 0, CFrame = AREA, MoveToPos = AREA.p+VT(0,MRANDOM(35,60),0), RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(.5,0,1), SoundID = nil, SoundPitch = 0.8, SoundVolume = 5}) | |
2654 | WACKYEFFECT({Time = TIMER, EffectType = "Sphere", Size = VT(5,0,5), Size2 = VT(0,15,0), Transparency = 0.9, Transparency2 = 0.5, CFrame = AREA, MoveToPos = AREA.p+VT(0,MRANDOM(35,60),0), RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 0.8, SoundVolume = 5}) | |
2655 | ||
2656 | end | |
2657 | if mememode == false then | |
2658 | SetTween(RJW,{C0=RootCF*CFrame.new(0,0,3)*angles(math.rad(-40),math.rad(0),math.rad(0))},"Quad","InOut",.4) | |
2659 | SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,2)*angles(math.rad(-20),math.rad(0),math.rad(0))},"Quad","InOut",.4) | |
2660 | SetTween(RW,{C0=CFrame.new(3.5 , 0.5, -3.5)*angles(math.rad(-70),math.rad(0),math.rad(30))},"Quad","InOut",.4) | |
2661 | SetTween(LW,{C0=CFrame.new(-3.5, 0.5, -3.5)*angles(math.rad(-70),math.rad(0),math.rad(-30))},"Quad","InOut",.4) | |
2662 | SetTween(RH,{C0=CFrame.new(0, -3, -3)*angles(math.rad(50),math.rad(0),math.rad(0))},"Quad","InOut",.4) | |
2663 | SetTween(LH,{C0=CFrame.new(-0, -3, -3)*angles(math.rad(50),math.rad(0),math.rad(-0))},"Quad","InOut",.4) | |
2664 | ||
2665 | for i = 10, 30,10 do | |
2666 | WACKYEFFECT({Time = 20+i, EffectType = "Wave", Size = VT(5,0,5), Size2 = (VT(31,0,31)*7)/4.1, Transparency = 0.4, Transparency2 = 1, CFrame = RootPart.CFrame*cn(0,5,0) * ANGLES(RAD(MRANDOM(0,15)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,15))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = 1, SoundVolume = 5}) | |
2667 | end | |
2668 | WACKYEFFECT({Time = 120, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(600,600,600), Transparency = 0.4, Transparency2 = 1, CFrame = RootPart.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(.5,0,1), SoundID = 376976397, SoundPitch = .5, SoundVolume = 7}) | |
2669 | WACKYEFFECT({Time = 100, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(600,600,600), Transparency = 0, Transparency2 = 1, CFrame=RootPart.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 528589382, SoundPitch = 1.5, SoundVolume = 10}) | |
2670 | WACKYEFFECT({Time = 120, EffectType = "Crown", Size = VT(0,0,0), Size2 = (VT(600,600,600)), Transparency = 0.5, Transparency2 = 1, CFrame = RootPart.CFrame , MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 5,TweenNType="Quad",TweenOType="Out"}) | |
2671 | ||
2672 | CFMagniDamage(Head.CFrame,600,80,90,100,"Knockdown") | |
2673 | ||
2674 | ||
2675 | ||
2676 | else | |
2677 | ||
2678 | ||
2679 | ||
2680 | ||
2681 | ||
2682 | ||
2683 | SetTween(RJW,{C0=RootCF*CFrame.new(0,0,3)*angles(math.rad(-40),math.rad(0),math.rad(0))},"Quad","InOut",.4) | |
2684 | SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,2)*angles(math.rad(-20),math.rad(0),math.rad(0))},"Quad","InOut",.4) | |
2685 | SetTween(RW,{C0=CFrame.new(3.5 , 0.5, -3.5)*angles(math.rad(-70),math.rad(0),math.rad(30))},"Quad","InOut",.4) | |
2686 | SetTween(LW,{C0=CFrame.new(-3.5, 0.5, -3.5)*angles(math.rad(-70),math.rad(0),math.rad(-30))},"Quad","InOut",.4) | |
2687 | SetTween(RH,{C0=CFrame.new(0, -3, -3)*angles(math.rad(50),math.rad(0),math.rad(0))},"Quad","InOut",.4) | |
2688 | SetTween(LH,{C0=CFrame.new(-0, -3, -3)*angles(math.rad(50),math.rad(0),math.rad(-0))},"Quad","InOut",.4) | |
2689 | ||
2690 | ||
2691 | WACKYEFFECT({Time = 120*2, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(1600,1600,1600), Transparency = 0.4, Transparency2 = 1, CFrame = RootPart.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(.5,0,1), SoundID = 376976397, SoundPitch = .5, SoundVolume = 5}) | |
2692 | WACKYEFFECT({Time = 100*2, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(1600,1600,1600), Transparency = 0, Transparency2 = 1, CFrame=RootPart.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 132164034, SoundPitch = 1.2, SoundVolume = 10}) | |
2693 | for i = 10, 60,10 do | |
2694 | WACKYEFFECT({Time = 20+i*2, EffectType = "Wave", Size = VT(5,0,5), Size2 = (VT(31,0,31)*7)/4.1, Transparency = 0.4, Transparency2 = 1, CFrame = RootPart.CFrame*cn(0,5,0) * ANGLES(RAD(MRANDOM(0,15)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,15))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = 1, SoundVolume = 5}) | |
2695 | WACKYEFFECT({Time = 12*i, EffectType = "Crown", Size = VT(0,0,0), Size2 = (VT(1600,1600,1600)), Transparency = 0.5, Transparency2 = 1, CFrame = RootPart.CFrame , MoveToPos = nil, RotationX = 0, RotationY = math.random(-180,180), RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 5,TweenNType="Quad",TweenOType="Out"}) | |
2696 | ||
2697 | CFMagniDamage(Head.CFrame,1600,80,90,100,"Knockdown") | |
2698 | wait(.05) | |
2699 | end | |
2700 | ||
2701 | ||
2702 | ||
2703 | ||
2704 | ||
2705 | ||
2706 | ||
2707 | ||
2708 | ||
2709 | ||
2710 | end | |
2711 | ||
2712 | wait(1) | |
2713 | ||
2714 | ||
2715 | ||
2716 | ||
2717 | ||
2718 | attack=false | |
2719 | end | |
2720 | ||
2721 | ||
2722 | function Attack2() | |
2723 | attack = true | |
2724 | ||
2725 | SetTween(RJW,{C0=RootCF*CFrame.new(0,0,2)*angles(math.rad(-0),math.rad(0),math.rad(0))},"Quad","InOut",.4) | |
2726 | SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,2)*angles(math.rad(-0),math.rad(0),math.rad(0))},"Quad","InOut",.4) | |
2727 | SetTween(RW,{C0=CFrame.new(3.5 , 2.5, -0)*angles(math.rad(90),math.rad(0),math.rad(0))},"Back","Out",.4) | |
2728 | SetTween(LW,{C0=CFrame.new(-3.5, 2.5, -0)*angles(math.rad(-0),math.rad(0),math.rad(-30))},"Quad","InOut",.4) | |
2729 | SetTween(RH,{C0=CFrame.new(0, -3, -3)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",.4) | |
2730 | SetTween(LH,{C0=CFrame.new(-0, -3, -3)*angles(math.rad(0),math.rad(0),math.rad(-0))},"Quad","InOut",.4) | |
2731 | ||
2732 | ||
2733 | ||
2734 | ||
2735 | ||
2736 | wait(.3) | |
2737 | ||
2738 | ||
2739 | SetTween(RJW,{C0=RootCF*CFrame.new(0,-5,2)*angles(math.rad(-0),math.rad(0),math.rad(0))},"Quad","InOut",.2) | |
2740 | SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,2)*angles(math.rad(20),math.rad(40),math.rad(0))},"Quad","InOut",.2) | |
2741 | SetTween(RW,{C0=CFrame.new(3.5 , -4.5, -10)*angles(math.rad(90),math.rad(0),math.rad(0))},"Quad","InOut",.2) | |
2742 | SetTween(LW,{C0=CFrame.new(-3.5, 2.5, 2)*angles(math.rad(-30),math.rad(0),math.rad(-30))},"Quad","InOut",.2) | |
2743 | SetTween(RH,{C0=CFrame.new(0, -3, -3)*angles(math.rad(-90),math.rad(-40),math.rad(20))},"Quad","InOut",.2) | |
2744 | SetTween(LH,{C0=CFrame.new(-0, -3, -3)*angles(math.rad(0),math.rad(0),math.rad(-0))},"Quad","InOut",.2) | |
2745 | ||
2746 | ||
2747 | ||
2748 | ||
2749 | -- LAP.Parent = Character | |
2750 | wait(.1) | |
2751 | local portal =Instance.new("Part") | |
2752 | portal.Reflectance = 0 | |
2753 | portal.Transparency = 1 | |
2754 | portal.CanCollide = false | |
2755 | portal.Locked = true | |
2756 | portal.Anchored=true | |
2757 | portal.BrickColor = BrickColor.new("Really blue") | |
2758 | portal.Name = "portal" | |
2759 | portal.Size = Vector3.new() | |
2760 | portal.Material = "SmoothPlastic" | |
2761 | portal:BreakJoints() | |
2762 | portal.CFrame = RootPart.CFrame*cn(4,0,-17) | |
2763 | local Portalfloor,PortalPos = rayCast(portal.Position, CFrame.new(portal.Position, portal.Position - Vector3.new(0, 1, 0)).lookVector, 80, Character) | |
2764 | portal.CFrame = cn(PortalPos) | |
2765 | ||
2766 | local max = 50 | |
2767 | local min = 6.5 | |
2768 | local light = min | |
2769 | if mememode == true then | |
2770 | min = 0 | |
2771 | max = 100 | |
2772 | light = 3 | |
2773 | end | |
2774 | ||
2775 | coroutine.resume(coroutine.create(function() | |
2776 | WACKYEFFECT({Time = 120, EffectType = "Crown", Size = VT(0,0,0), Size2 = (VT(max+15,1,max+15)), Transparency = 0.9, Transparency2 = 1, CFrame = portal.CFrame , MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 5,TweenNType="Quad",TweenOType="Out"}) | |
2777 | WACKYEFFECT({Time = 240, EffectType = "Sphere", Size = VT(0,.1,0), Size2 = VT(light-.5,0.1,light-.5)*1.5, Transparency = 0, Transparency2 = 1, CFrame=portal.CFrame*cn(0,-0,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 376976397, SoundPitch = 1, SoundVolume = 3,TweenNType="Back",TweenOType="Out"}) | |
2778 | wait(120/60) | |
2779 | ||
2780 | coroutine.resume(coroutine.create(function() | |
2781 | wait(.1) | |
2782 | for _,c in pairs(workspace:children()) do | |
2783 | ||
2784 | ||
2785 | ||
2786 | ||
2787 | ||
2788 | ||
2789 | ||
2790 | ||
2791 | local h = c:FindFirstChild("Humanoid") | |
2792 | for _,v in pairs(c:children()) do | |
2793 | if v:IsA("Humanoid") then | |
2794 | if v.Health > 0.0001 then | |
2795 | h = v else h = nil end | |
2796 | end | |
2797 | end | |
2798 | ||
2799 | local head = c:FindFirstChild("Torso") or c:FindFirstChild("UpperTorso") | |
2800 | ||
2801 | if h ~= nil and head ~= nil then | |
2802 | local targ = head.Position - portal.Position | |
2803 | local mag = targ.magnitude | |
2804 | ||
2805 | ||
2806 | if mag < max and mag > min and c ~= Character then | |
2807 | ||
2808 | print("Kill") | |
2809 | coroutine.resume(coroutine.create(function() | |
2810 | local Shade =Instance.new("Model",Effects) | |
2811 | local hed =Instance.new("Part") | |
2812 | hed.Reflectance = 0 | |
2813 | hed.Transparency = 1 | |
2814 | hed.CanCollide = false | |
2815 | hed.Locked = true | |
2816 | hed.Anchored=false | |
2817 | hed.Color = Color3.new(0,0,0) | |
2818 | head.Material = "SmoothPlastic" | |
2819 | local sTor=hed:Clone() | |
2820 | sTor.Name = "Torso2" | |
2821 | sTor.Size = Vector3.new(2,2,1) | |
2822 | sTor.Material = "SmoothPlastic" | |
2823 | sTor:BreakJoints() | |
2824 | sTor.CFrame = portal.CFrame*cn(0,-10,0) | |
2825 | local sraor=hed:Clone() | |
2826 | sraor.Name = "RightArm" | |
2827 | sraor.Size = Vector3.new(1,2,1) | |
2828 | sraor.Material = "SmoothPlastic" | |
2829 | sraor:BreakJoints() | |
2830 | sraor.CFrame = portal.CFrame*cn(0,-10,0) | |
2831 | local slaor=sraor:Clone() | |
2832 | slaor.Name = "LeftArm" | |
2833 | local srlor=sraor:Clone() | |
2834 | srlor.Name = "RightLeg" | |
2835 | local sllor=sraor:Clone() | |
2836 | sllor.Name = "LeftLeg" | |
2837 | hed.Name = "Head2" | |
2838 | hed.Size = Vector3.new(1,1,1) | |
2839 | hed.Material = "SmoothPlastic" | |
2840 | hed:BreakJoints() | |
2841 | hed.CFrame = portal.CFrame*cn(0,-10,0) | |
2842 | ||
2843 | local Mesh =Instance.new("SpecialMesh",hed) | |
2844 | ||
2845 | Mesh.Scale=Vector3.new(1.25,1.25,1.25) | |
2846 | coroutine.resume(coroutine.create(function() | |
2847 | local Eye = Instance.new("Part") | |
2848 | Eye.Reflectance = 0 | |
2849 | Eye.Transparency = 0 | |
2850 | Eye.CanCollide = false | |
2851 | Eye.Locked = true | |
2852 | Eye.Anchored=false | |
2853 | Eye.BrickColor = BrickColor.new("White") | |
2854 | Eye.Name = "BEGONE" | |
2855 | Eye.Size = Vector3.new(0.05,0.3,0.05) | |
2856 | Eye.Material = "Neon" | |
2857 | Eye:BreakJoints() | |
2858 | Eye.Parent = Shade | |
2859 | local EMesh =Instance.new("SpecialMesh",Eye) | |
2860 | ||
2861 | EMesh.MeshType = "Sphere" | |
2862 | ||
2863 | ||
2864 | ||
2865 | ||
2866 | local Eye=weld(Eye,hed,Eye,cf(.18,.18,-.55)) | |
2867 | ||
2868 | end)) | |
2869 | coroutine.resume(coroutine.create(function() | |
2870 | local Eye = Instance.new("Part") | |
2871 | Eye.Reflectance = 0 | |
2872 | Eye.Transparency = 0 | |
2873 | Eye.CanCollide = false | |
2874 | Eye.Locked = true | |
2875 | Eye.Anchored=false | |
2876 | Eye.BrickColor = BrickColor.new("White") | |
2877 | Eye.Name = "BEGONE" | |
2878 | Eye.Size = Vector3.new(.05,.3,.05) | |
2879 | Eye.Material = "Neon" | |
2880 | Eye:BreakJoints() | |
2881 | Eye.Parent = Shade | |
2882 | ||
2883 | ||
2884 | local EMesh =Instance.new("SpecialMesh",Eye) | |
2885 | ||
2886 | EMesh.MeshType = "Sphere" | |
2887 | ||
2888 | ||
2889 | local Eye=weld(Eye,hed,Eye,cf(-.18,.18,-.55)) | |
2890 | ||
2891 | end)) | |
2892 | ||
2893 | sTor.Anchored = true | |
2894 | hed.Parent = Shade | |
2895 | sTor.Parent = Shade | |
2896 | sraor.Parent = Shade | |
2897 | slaor.Parent = Shade | |
2898 | srlor.Parent = Shade | |
2899 | sllor.Parent = Shade | |
2900 | ||
2901 | ||
2902 | SetTween(sTor,{Transparency=0},"Quad","InOut",1) | |
2903 | SetTween(hed,{Transparency=0},"Quad","InOut",1) | |
2904 | SetTween(sraor,{Transparency=0},"Quad","InOut",1) | |
2905 | SetTween(slaor,{Transparency=0},"Quad","InOut",1) | |
2906 | SetTween(srlor,{Transparency=0},"Quad","InOut",1) | |
2907 | SetTween(sllor,{Transparency=0},"Quad","InOut",1) | |
2908 | ||
2909 | ||
2910 | ||
2911 | ||
2912 | ||
2913 | local NeckW2=MakeJoint(sTor,sTor,hed,CFrame.new(0,0,0)) | |
2914 | NeckW2.C1 = NeckW.C1 | |
2915 | ||
2916 | --print(WRJ.Parent.Name) | |
2917 | ||
2918 | local RW2=MakeJoint(sTor,sTor,sraor,cf(0,0,0)) | |
2919 | ||
2920 | local LW2=MakeJoint(sTor,sTor,slaor,cf(0,0,0)) | |
2921 | ||
2922 | local RH2=MakeJoint(sTor,sTor,srlor,cf(0,0,0)) | |
2923 | ||
2924 | local LH2=MakeJoint(sTor,sTor,sllor,cf(0,0,0)) | |
2925 | ||
2926 | ||
2927 | ||
2928 | RW2.C1 = cn(0, 0.5, 0) | |
2929 | LW2.C1 = cn(0, 0.5, 0) | |
2930 | RH2.C1 = cn(0, 1, 0) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)) | |
2931 | LH2.C1 = cn(0, 1, 0) *CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)) | |
2932 | ||
2933 | ||
2934 | ||
2935 | ||
2936 | head.Anchored = true | |
2937 | ||
2938 | -------- | |
2939 | --(#Torso) | |
2940 | SetTween(sTor,{CFrame=cn(head.Position.x,portal.Position.y-5,head.Position.z)},"Quad","InOut", .1) | |
2941 | -------- | |
2942 | --(#Head) | |
2943 | SetTween(NeckW2,{C0=NeckCF*CFrame.new(0,0,0)},"Quad","InOut",0.1) | |
2944 | -------- | |
2945 | --(#Right Arm) | |
2946 | SetTween(RW2,{C0=CFrame.new(1.5 , 0.5, -.0)},"Quad","InOut",0.1) | |
2947 | -------- | |
2948 | --(#Left Arm) | |
2949 | SetTween(LW2,{C0=CFrame.new(-1.5, 0.5, -.0)},"Quad","InOut",0.1) | |
2950 | -------- | |
2951 | --(#Right Leg) | |
2952 | SetTween(RH2,{C0=CFrame.new(.5, -0.90, 0)},"Quad","InOut",0.1) | |
2953 | -------- | |
2954 | --(#Left Leg) | |
2955 | SetTween(LH2,{C0=CFrame.new(-.5, -0.90, 0)},"Quad","InOut",0.1) | |
2956 | ||
2957 | ||
2958 | wait(.1) | |
2959 | ||
2960 | ||
2961 | -------- | |
2962 | --(#Torso) | |
2963 | SetTween(sTor,{CFrame=head.CFrame*CFrame.new(0,0,2)},"Quad","InOut",1/2) | |
2964 | -------- | |
2965 | --(#Head) | |
2966 | SetTween(NeckW2,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(-40),math.rad(0),math.rad(0))},"Quad","InOut",1/2) | |
2967 | -------- | |
2968 | --(#Right Arm) | |
2969 | SetTween(RW2,{C0=CFrame.new(1.5 , 0.5, -.0)},"Quad","InOut",1/2) | |
2970 | -------- | |
2971 | --(#Left Arm) | |
2972 | SetTween(LW2,{C0=CFrame.new(-1.5, 0.5, -.0)},"Quad","InOut",1/2) | |
2973 | ||
2974 | wait(1/2) | |
2975 | -------- | |
2976 | --(#Torso) | |
2977 | SetTween(sTor,{CFrame=head.CFrame*CFrame.new(0,0,1)},"Quad","InOut",1/3) | |
2978 | -------- | |
2979 | --(#Head) | |
2980 | SetTween(NeckW2,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(0),math.rad(30),math.rad(0))},"Quad","InOut",1/3) | |
2981 | -------- | |
2982 | --(#Right Arm) | |
2983 | SetTween(RW2,{C0=CFrame.new(1.5 , 0.5, -.0)*angles(math.rad(90),math.rad(0),math.rad(0))},"Quad","InOut",1/3) | |
2984 | -------- | |
2985 | --(#Left Arm) | |
2986 | SetTween(LW2,{C0=CFrame.new(-1.5, 0.5, -.0)*angles(math.rad(90),math.rad(0),math.rad(0))},"Quad","InOut",1/3) | |
2987 | ||
2988 | wait(1/3) | |
2989 | -------- | |
2990 | local Grab=MakeJoint(sTor,sTor,head,cf(0,0,-1)) | |
2991 | head.Anchored = false | |
2992 | --(#Torso) | |
2993 | ||
2994 | -------- | |
2995 | --(#Head) | |
2996 | SetTween(NeckW2,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(0),math.rad(30),math.rad(0))},"Quad","InOut",1/3) | |
2997 | -------- | |
2998 | --(#Right Arm) | |
2999 | SetTween(RW2,{C0=CFrame.new(1.3 , 0.5, -.3)*angles(math.rad(90),math.rad(0),math.rad(-50))},"Quad","InOut",1/3) | |
3000 | -------- | |
3001 | --(#Left Arm) | |
3002 | SetTween(LW2,{C0=CFrame.new(-1.3, 0.5, -.3)*angles(math.rad(90),math.rad(0),math.rad(50))},"Quad","InOut",1/3) | |
3003 | ||
3004 | wait(1/3) | |
3005 | WACKYEFFECT({Time = 40, EffectType = "Crown", Size = VT(1,16,1), Size2 = (VT(10,0,10)), Transparency = 0.2, Transparency2 = 1, CFrame = cn(head.Position.x,portal.Position.y,head.Position.z) , MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 5}) | |
3006 | ||
3007 | SetTween(sTor,{CFrame=cn(head.Position.x,portal.Position.y-5,head.Position.z)},"Quad","InOut", .2) | |
3008 | ||
3009 | wait(.2) | |
3010 | ||
3011 | Shade:Destroy() | |
3012 | coroutine.resume(coroutine.create(function() | |
3013 | c:BreakJoints() | |
3014 | end)) | |
3015 | c.Parent = nil | |
3016 | h:Destroy() | |
3017 | c:Destroy() | |
3018 | ||
3019 | ||
3020 | end)) | |
3021 | ||
3022 | end | |
3023 | end | |
3024 | end | |
3025 | end)) | |
3026 | --CFMagniDamage(portal.CFrame,60,10,20,0,"Normal") | |
3027 | ||
3028 | WACKYEFFECT({Time = 160, EffectType = "Sphere", Size = VT(max+15,1,max+15)*1.5, Size2 = VT(0,.05,0), Transparency = 1, Transparency2 = 0, CFrame=portal.CFrame*cn(0,-0.025,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 424195979, SoundPitch = .5, SoundVolume = 4,TweenNType="Quad",TweenOType="InOut"}) | |
3029 | portal:Destroy() | |
3030 | end)) | |
3031 | ||
3032 | ||
3033 | ||
3034 | ||
3035 | wait(.3) | |
3036 | ||
3037 | ||
3038 | ||
3039 | attack=false | |
3040 | end | |
3041 | ||
3042 | ||
3043 | ||
3044 | ||
3045 | --[[ | |
3046 | SetTween(RJW,{C0=RootCF*CFrame.new(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",0.1) | |
3047 | SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,2)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",0.1) | |
3048 | SetTween(RW,{C0=CFrame.new(3.5 , 0.5, -.0)*angles(math.rad(0),math.rad(0),math.rad(30))},"Quad","Out",0.1) | |
3049 | SetTween(LW,{C0=CFrame.new(-3.5, 0.5, -.0)*angles(math.rad(0),math.rad(0),math.rad(-30))},"Quad","Out",0.1) | |
3050 | SetTween(RH,{C0=CFrame.new(0, -3, 0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",0.1) | |
3051 | SetTween(LH,{C0=CFrame.new(-0, -3, 0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",0.1) | |
3052 | --]] | |
3053 | ||
3054 | ||
3055 | ||
3056 | function AT1() | |
3057 | attack = true | |
3058 | ||
3059 | ||
3060 | SetTween(RJW,{C0=RootCF*CFrame.new(0,0,2)*angles(math.rad(-50),math.rad(40),math.rad(80))},"Quad","InOut",.3) | |
3061 | SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,2)*angles(math.rad(50),math.rad(-40),math.rad(-40))},"Quad","InOut",.3) | |
3062 | SetTween(RW,{C0=CFrame.new(3.5 , 0.5, -.0)*angles(math.rad(40),math.rad(-30),math.rad(-25))},"Quad","Out",.3) | |
3063 | SetTween(LW,{C0=CFrame.new(-3.5, 5.5, -.0)*angles(math.rad(-78),math.rad(0),math.rad(-120))},"Quad","Out",.3) | |
3064 | SetTween(RH,{C0=CFrame.new(0, -3, 0)*angles(math.rad(50),math.rad(45),math.rad(0))},"Quad","InOut",.3) | |
3065 | SetTween(LH,{C0=CFrame.new(-0, -3, 0)*angles(math.rad(90),math.rad(0),math.rad(0))},"Quad","InOut",.3) | |
3066 | wait(.3) | |
3067 | so("160773067", RootPart, 1.5, math.random(120,150)/100) | |
3068 | SetTween(RJW,{C0=RootCF*CFrame.new(0,0,2)*angles(math.rad(0),math.rad(0),math.rad(-40))},"Quad","InOut",.15) | |
3069 | SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,2)*angles(math.rad(0),math.rad(0),math.rad(40))},"Quad","InOut",.15) | |
3070 | SetTween(RW,{C0=CFrame.new(3.5 , 0.5, -.0)*angles(math.rad(-0),math.rad(-50),math.rad(90))},"Quad","Out",.15) | |
3071 | SetTween(LW,{C0=CFrame.new(-3.5, 2.5, -.0)*angles(math.rad(0),math.rad(0),math.rad(-30))},"Quad","Out",.15) | |
3072 | SetTween(RH,{C0=CFrame.new(0, -3, 0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",.15) | |
3073 | SetTween(LH,{C0=CFrame.new(-0, -3, 0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",.15) | |
3074 | wait(.15/2) | |
3075 | ||
3076 | CFMagniDamage(RootPart.CFrame*cn(4,0,-4),12.5,10,20,20,"HPSteal") | |
3077 | ||
3078 | wait(.15/2) | |
3079 | ||
3080 | ||
3081 | ||
3082 | ||
3083 | attack = false | |
3084 | end | |
3085 | ||
3086 | ||
3087 | function AT2() | |
3088 | attack = true | |
3089 | ||
3090 | SetTween(RJW,{C0=RootCF*CFrame.new(0,0,2)*angles(math.rad(-50),math.rad(-40),math.rad(-80))},"Quad","InOut",.3) | |
3091 | SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,2)*angles(math.rad(50),math.rad(40),math.rad(40))},"Quad","InOut",.3) | |
3092 | SetTween(RW,{C0=CFrame.new(3.5 , 5.5, -.0)*angles(math.rad(-78),math.rad(0),math.rad(120))},"Quad","Out",.3) | |
3093 | SetTween(LW,{C0=CFrame.new(-3.5, 0.5, -.0)*angles(math.rad(40),math.rad(30),math.rad(25))},"Quad","Out",.3) | |
3094 | SetTween(RH,{C0=CFrame.new(0, -3, 0)*angles(math.rad(90),math.rad(0),math.rad(0))},"Quad","InOut",.3) | |
3095 | SetTween(LH,{C0=CFrame.new(-0, -3, 0)*angles(math.rad(50),math.rad(-45),math.rad(0))},"Quad","InOut",.3) | |
3096 | wait(.3) | |
3097 | so("160773067", RootPart, 1.5, math.random(120,150)/100) | |
3098 | SetTween(RJW,{C0=RootCF*CFrame.new(0,0,2)*angles(math.rad(0),math.rad(0),math.rad(40))},"Quad","InOut",.15) | |
3099 | SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,2)*angles(math.rad(0),math.rad(0),math.rad(-40))},"Quad","InOut",.15) | |
3100 | SetTween(RW,{C0=CFrame.new(3.5 , 2.5, -.0)*angles(math.rad(-0),math.rad(0),math.rad(30))},"Quad","Out",.15) | |
3101 | SetTween(LW,{C0=CFrame.new(-3.5, 0.5, -.0)*angles(math.rad(0),math.rad(50),math.rad(-90))},"Quad","Out",.15) | |
3102 | SetTween(RH,{C0=CFrame.new(0, -3, 0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",.15) | |
3103 | SetTween(LH,{C0=CFrame.new(-0, -3, 0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",.15) | |
3104 | wait(.15/2) | |
3105 | ||
3106 | CFMagniDamage(RootPart.CFrame*cn(-4,0,-4),12.5,10,20,50,"HPSteal") | |
3107 | ||
3108 | wait(.15/2) | |
3109 | ||
3110 | ||
3111 | ||
3112 | ||
3113 | attack = false | |
3114 | end | |
3115 | ||
3116 | function findNearestTorso(pos) | |
3117 | local list = game.Workspace:children() | |
3118 | local torso = nil | |
3119 | local dist = 1000 | |
3120 | local temp = nil | |
3121 | local human = nil | |
3122 | local temp2 = nil | |
3123 | for x = 1, #list do | |
3124 | temp2 = list[x] | |
3125 | if (temp2.className == "Model") and (temp2 ~= Character) then | |
3126 | temp = (temp2:FindFirstChild("Torso") or temp2:FindFirstChild("UpperTorso")) | |
3127 | human = temp2:FindFirstChildOfClass("Humanoid") | |
3128 | if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then | |
3129 | if (temp.Position - pos).magnitude < dist then | |
3130 | torso = temp | |
3131 | dist = (temp.Position - pos).magnitude | |
3132 | end | |
3133 | end | |
3134 | end | |
3135 | end | |
3136 | return torso | |
3137 | end | |
3138 | ||
3139 | function Attack3() | |
3140 | attack = true | |
3141 | ||
3142 | SetTween(RJW,{C0=RootCF*CFrame.new(0,0,2)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",.4) | |
3143 | SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,2)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",.4) | |
3144 | SetTween(RW,{C0=CFrame.new(3.5 , 0.5, -.0)*angles(math.rad(90),math.rad(0),math.rad(0))},"Quad","Out",.4) | |
3145 | SetTween(LW,{C0=CFrame.new(-3.5, 0.5, -.0)*angles(math.rad(90),math.rad(0),math.rad(-0))},"Quad","Out",.4) | |
3146 | SetTween(RH,{C0=CFrame.new(0, -3, 0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",.4) | |
3147 | SetTween(LH,{C0=CFrame.new(-0, -3, 0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",.4) | |
3148 | wait(.05) | |
3149 | ||
3150 | SetTween(RJW,{C0=RootCF*CFrame.new(0,0,2)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",.3) | |
3151 | SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,2)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",.3) | |
3152 | SetTween(RW,{C0=CFrame.new(3.5 , 3.5, -.0)*angles(math.rad(0),math.rad(0),math.rad(80))},"Quad","Out",.3) | |
3153 | SetTween(LW,{C0=CFrame.new(-3.5, 3.5, -.0)*angles(math.rad(0),math.rad(0),math.rad(-80))},"Quad","Out",.3) | |
3154 | SetTween(RH,{C0=CFrame.new(0, -3, 0)*angles(math.rad(0),math.rad(-90),math.rad(0))},"Quad","InOut",.3) | |
3155 | SetTween(LH,{C0=CFrame.new(-0, -3, 0)*angles(math.rad(0),math.rad(90),math.rad(-0))},"Quad","InOut",.3) | |
3156 | wait(.3) | |
3157 | so("260435136", RootPart, 2, .8) | |
3158 | SetTween(RJW,{C0=RootCF*CFrame.new(0,0,2)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",.3) | |
3159 | SetTween(NeckW,{C0=NeckCF*CFrame.new(0,-5,2)*angles(math.rad(30),math.rad(-40),math.rad(0))},"Quad","InOut",.3) | |
3160 | SetTween(RW,{C0=CFrame.new(6.0 , -2, -8)*angles(math.rad(85),math.rad(0),math.rad(-80))},"Quad","Out",.3) | |
3161 | SetTween(LW,{C0=CFrame.new(-6.0, -2, -8)*angles(math.rad(90),math.rad(0),math.rad(80))},"Quad","Out",.3) | |
3162 | SetTween(RH,{C0=CFrame.new(0, -3, 0)*angles(math.rad(0),math.rad(-90),math.rad(0))},"Quad","InOut",.3) | |
3163 | SetTween(LH,{C0=CFrame.new(-0, -3, 0)*angles(math.rad(0),math.rad(90),math.rad(-0))},"Quad","InOut",.3) | |
3164 | wait(.3) | |
3165 | ||
3166 | ||
3167 | local TheGunHandle = Instance.new("Part") | |
3168 | TheGunHandle.Reflectance = 0 | |
3169 | TheGunHandle.Transparency = 1 | |
3170 | TheGunHandle.CanCollide = false | |
3171 | TheGunHandle.Locked = true | |
3172 | TheGunHandle.Anchored=false | |
3173 | TheGunHandle.BrickColor = BrickColor.new("Really blue") | |
3174 | TheGunHandle.Name = "BHandle" | |
3175 | TheGunHandle.Size = Vector3.new(2.5,1,2.5) | |
3176 | TheGunHandle.Material = "SmoothPlastic" | |
3177 | TheGunHandle:BreakJoints() | |
3178 | TheGunHandle.Parent = workspace | |
3179 | TheGunHandle.CFrame = RootPart.CFrame | |
3180 | ||
3181 | ||
3182 | local SWeld=weld(TheGunHandle,RootPart,TheGunHandle,cf(0,0,-9)*angles(math.rad(0),math.rad(0),math.rad(0))) | |
3183 | local IsHit = false | |
3184 | local function onTouch(HitPa) | |
3185 | if IsHit == false then | |
3186 | local c = HitPa.Parent | |
3187 | local h = HitPa.Parent:FindFirstChild("Humanoid") | |
3188 | for _,v in pairs(HitPa.Parent:children()) do | |
3189 | if v:IsA("Humanoid") then | |
3190 | ||
3191 | h = v end | |
3192 | ||
3193 | end | |
3194 | local head = c:FindFirstChild("Torso") or c:FindFirstChild("UpperTorso") | |
3195 | local realhead = c:FindFirstChild("Head") | |
3196 | if h ~= nil and head ~= nil and realhead ~= nil then | |
3197 | ||
3198 | IsHit = true | |
3199 | RootPart.Anchored=true | |
3200 | SetTween(NeckW,{C0=NeckCF*CFrame.new(0,-5,2)*angles(math.rad(30),math.rad(40),math.rad(0))},"Quad","InOut",3) | |
3201 | local SWeld=MakeJoint(head,Torso,head,cf(0,-1,-9)*angles(math.rad(180),math.rad(0),math.rad(180))) | |
3202 | ||
3203 | coroutine.resume(coroutine.create(function() | |
3204 | local pem = VoidEmitter:Clone() | |
3205 | pem.Enabled = true | |
3206 | pem.Parent = realhead | |
3207 | so("2162238854", RootPart, 2, .5) | |
3208 | wait(2.9) | |
3209 | if mememode == false then | |
3210 | wait(.1) | |
3211 | end | |
3212 | pem.Rate = 0 | |
3213 | if mememode == true then | |
3214 | coroutine.resume(coroutine.create(function() | |
3215 | ||
3216 | local Dust = Instance.new("Model") | |
3217 | local DustTorso = Instance.new("Part",Dust) | |
3218 | local DustHead = Instance.new("Part",Dust) | |
3219 | game:GetService("Debris"):AddItem(DustHead, 120) | |
3220 | DustHead.Name = "Head" | |
3221 | DustHead.Size = Vector3.new(realhead.Size.y,realhead.Size.y,realhead.Size.y) | |
3222 | RemoveOutlines(DustHead) | |
3223 | DustHead:BreakJoints() | |
3224 | DustHead.CFrame = CFrame.new(0,1000,0) | |
3225 | DustHead.Transparency = 1 | |
3226 | DustTorso.Name = "Torso" | |
3227 | DustTorso.Size = Vector3.new(realhead.Size.y,realhead.Size.y,realhead.Size.y) | |
3228 | RemoveOutlines(DustTorso) | |
3229 | DustTorso:BreakJoints() | |
3230 | DustTorso.CFrame = CFrame.new(0,1000,0) | |
3231 | DustTorso.Transparency = 1 | |
3232 | Dust.Name = "DustMinion" | |
3233 | ||
3234 | ||
3235 | ||
3236 | ||
3237 | ||
3238 | ||
3239 | ||
3240 | ||
3241 | ||
3242 | ||
3243 | pem.Parent = DustHead | |
3244 | pem.Rate = 100 | |
3245 | ||
3246 | local DustWeld=weld(DustTorso,DustHead,DustTorso,cf(0,0,0)) | |
3247 | DustTorso.CFrame = realhead.CFrame | |
3248 | wait(.2) | |
3249 | local DustHumanoid = Instance.new("Humanoid",Dust) | |
3250 | DustHumanoid.MaxHealth = 40 | |
3251 | DustHumanoid.Health = 40 | |
3252 | DustHumanoid.WalkSpeed = 17 | |
3253 | Dust.Parent = Effects | |
3254 | ||
3255 | so("438666001", DustTorso, 2, .8) | |
3256 | ||
3257 | ||
3258 | coroutine.resume(coroutine.create(function() | |
3259 | local DustAlive = true | |
3260 | ||
3261 | while DustAlive == true do | |
3262 | ||
3263 | ||
3264 | ||
3265 | if DustHumanoid.Health > 0.001 then | |
3266 | ||
3267 | ||
3268 | ||
3269 | local FindNewTorso = findNearestTorso(DustTorso.Position) | |
3270 | ||
3271 | if FindNewTorso ~= nil then | |
3272 | ||
3273 | DustHumanoid:MoveTo(FindNewTorso.Position) | |
3274 | --print(DustHumanoid.Name) | |
3275 | local mag = (DustTorso.Position-FindNewTorso.Position).magnitude | |
3276 | if mag < 10 and FindNewTorso.Parent:FindFirstChildOfClass("Humanoid") and FindNewTorso.Parent:FindFirstChildOfClass("Humanoid").Health > 0.001 then | |
3277 | ||
3278 | ||
3279 | coroutine.resume(coroutine.create(function() | |
3280 | ||
3281 | coroutine.resume(coroutine.create(function() | |
3282 | makrag(FindNewTorso.Parent) | |
3283 | end)) | |
3284 | FindNewTorso.Parent:FindFirstChildOfClass("Humanoid").Health = 0 | |
3285 | FindNewTorso.Parent:BreakJoints() | |
3286 | if FindNewTorso.Parent:FindFirstChild("Head") then | |
3287 | pem.Parent = FindNewTorso.Parent.Head | |
3288 | pem:Emit(10) | |
3289 | so("215395388", DustTorso, 2, .8) | |
3290 | end | |
3291 | end)) | |
3292 | DustHumanoid.Health = 0 | |
3293 | end | |
3294 | ||
3295 | else | |
3296 | wait(2) | |
3297 | DustHumanoid.Health = 0 | |
3298 | end | |
3299 | ||
3300 | ||
3301 | end | |
3302 | ||
3303 | ||
3304 | ||
3305 | ||
3306 | ||
3307 | if DustHumanoid.Health < 0.001 then | |
3308 | coroutine.resume(coroutine.create(function() | |
3309 | pem.Rate = 0 | |
3310 | end)) | |
3311 | DustAlive = false | |
3312 | game:GetService("Debris"):AddItem(Dust, 2) | |
3313 | so("2162238854", DustTorso, 2, .8) | |
3314 | end | |
3315 | ||
3316 | ||
3317 | if Dust.Parent ~= Effects then | |
3318 | coroutine.resume(coroutine.create(function() | |
3319 | Dust:Destroy() | |
3320 | end)) | |
3321 | DustAlive = false | |
3322 | end | |
3323 | ||
3324 | ||
3325 | ||
3326 | ||
3327 | ||
3328 | wait(1) | |
3329 | end | |
3330 | ||
3331 | ||
3332 | ||
3333 | end)) | |
3334 | ||
3335 | ||
3336 | ||
3337 | ||
3338 | end)) | |
3339 | end | |
3340 | end)) | |
3341 | ||
3342 | ||
3343 | ||
3344 | wait(3) | |
3345 | coroutine.resume(coroutine.create(function() | |
3346 | head.Velocity = RootPart.CFrame.lookVector * 1.2 | |
3347 | coroutine.resume(coroutine.create(function() | |
3348 | makrag(c) | |
3349 | end)) | |
3350 | h.Health = 0 | |
3351 | c:BreakJoints() | |
3352 | RootPart.CFrame = Torso.CFrame*cn(0,-2,0) | |
3353 | RootPart.Anchored=false | |
3354 | end)) | |
3355 | attack = false | |
3356 | ||
3357 | end | |
3358 | ||
3359 | end | |
3360 | end | |
3361 | TheGunHandle.Touched:connect(onTouch) | |
3362 | ||
3363 | ||
3364 | wait(1) | |
3365 | coroutine.resume(coroutine.create(function() | |
3366 | TheGunHandle:Destroy() | |
3367 | end)) | |
3368 | ||
3369 | if IsHit == false then | |
3370 | attack = false | |
3371 | end | |
3372 | end | |
3373 | ||
3374 | ||
3375 | function Attack4() | |
3376 | attack=true | |
3377 | SetTween(RJW,{C0=RootCF*CFrame.new(0,0,2)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",.6) | |
3378 | SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,2)*angles(math.rad(20),math.rad(0),math.rad(0))},"Quad","InOut",.6) | |
3379 | SetTween(RW,{C0=CFrame.new(3.5 , 0.5, -.0)*angles(math.rad(90),math.rad(0),math.rad(50))},"Back","Out",.6) | |
3380 | SetTween(LW,{C0=CFrame.new(-3.5, 0.5, -.0)*angles(math.rad(90),math.rad(0),math.rad(-50))},"Back","Out",.6) | |
3381 | SetTween(RH,{C0=CFrame.new(0, -3, 0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",.6) | |
3382 | SetTween(LH,{C0=CFrame.new(-0, -3, 0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",.6) | |
3383 | wait(.6) | |
3384 | SetTween(RJW,{C0=RootCF*CFrame.new(0,0,2)*angles(math.rad(30),math.rad(0),math.rad(0))},"Quad","InOut",.4) | |
3385 | SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,2)*angles(math.rad(-20),math.rad(0),math.rad(0))},"Quad","InOut",.4) | |
3386 | SetTween(RW,{C0=CFrame.new(3.5 , 4.5, 4.0)*angles(math.rad(90),math.rad(0),math.rad(10))},"Quad","Out",.4) | |
3387 | SetTween(LW,{C0=CFrame.new(-3.5, 4.5, 4.0)*angles(math.rad(90),math.rad(0),math.rad(-10))},"Quad","Out",.4) | |
3388 | SetTween(RH,{C0=CFrame.new(0, -3, 0)*angles(math.rad(50),math.rad(0),math.rad(0))},"Quad","InOut",.4) | |
3389 | SetTween(LH,{C0=CFrame.new(-0, -3, 0)*angles(math.rad(50),math.rad(0),math.rad(0))},"Quad","InOut",.4) | |
3390 | wait(.4) | |
3391 | SetTween(RJW,{C0=RootCF*CFrame.new(0,0,2)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",.2) | |
3392 | SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,2)*angles(math.rad(60),math.rad(0),math.rad(0))},"Quad","InOut",.2) | |
3393 | SetTween(RW,{C0=CFrame.new(3.5 , 0.5, -.0)*angles(math.rad(30),math.rad(0),math.rad(-20))},"Back","Out",.2) | |
3394 | SetTween(LW,{C0=CFrame.new(-3.5, 0.5, -.0)*angles(math.rad(30),math.rad(0),math.rad(20))},"Back","Out",.2) | |
3395 | SetTween(RH,{C0=CFrame.new(0, -3, 0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",.2) | |
3396 | SetTween(LH,{C0=CFrame.new(-0, -3, 0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",.2) | |
3397 | wait(.2) | |
3398 | ||
3399 | local pilarsize= 1 | |
3400 | ||
3401 | if mememode == true then | |
3402 | pilarsize= 3 | |
3403 | end | |
3404 | ||
3405 | ||
3406 | ||
3407 | ||
3408 | ||
3409 | ||
3410 | WACKYEFFECT({Time = 30, EffectType = "Crown", Size = VT(9,0,9)*pilarsize, Size2 = (VT(10.5,110,10.5)*pilarsize), Transparency = 0.2, Transparency2 = 1, CFrame = RootPart.CFrame*cn(0,-3,-6)*angles(RAD(40),0,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 357540482, SoundPitch = 1.8/(pilarsize/2), SoundVolume = 2*pilarsize}) | |
3411 | ||
3412 | ||
3413 | ||
3414 | coroutine.resume(coroutine.create(function() | |
3415 | wait(.1) | |
3416 | local RPP = RootPart.Position + Vector3.new(0,5,0) | |
3417 | local lookv= RootPart.CFrame.lookVector | |
3418 | coroutine.resume(coroutine.create(function() | |
3419 | for i = 1,10,1 do | |
3420 | local attackP = RPP+lookv*i*(15*pilarsize) | |
3421 | local attackCF = CF(attackP,attackP+lookv*5) | |
3422 | local Portalfloor,PortalPos,test1 = rayCast(attackP, CFrame.new(attackP, attackP - Vector3.new(0, 1, 0)).lookVector, 80, Character) | |
3423 | ||
3424 | local PortalPosCF = CF(PortalPos,PortalPos+test1)*ANGLES(RAD(-90+math.random(-10,10)),RAD(math.random(-360,360)),RAD(math.random(-10,10))) | |
3425 | if PortalPosCF ~= nil then | |
3426 | local Pillar = Instance.new("Part") | |
3427 | Pillar.Reflectance = 0 | |
3428 | Pillar.Transparency = 0 | |
3429 | Pillar.CanCollide = true | |
3430 | Pillar.Locked = true | |
3431 | Pillar.Anchored=true | |
3432 | Pillar.BrickColor = BrickColor.new("White") | |
3433 | Pillar.Name = "Pillar" | |
3434 | Pillar.Size = Vector3.new(8.108, 29.681, 8.108)*pilarsize | |
3435 | Pillar.Material = "Concrete" | |
3436 | Pillar:BreakJoints() | |
3437 | Pillar.Parent = Effects | |
3438 | Pillar.CFrame = PortalPosCF*cn(0,-30*pilarsize,0) | |
3439 | local NewPillarMesh = Instance.new("SpecialMesh") | |
3440 | NewPillarMesh.Parent = Pillar | |
3441 | NewPillarMesh.MeshId = "http://www.roblox.com/asset/?id=2449719398" | |
3442 | NewPillarMesh.TextureId = "http://www.roblox.com/asset/?id=1693385655" | |
3443 | NewPillarMesh.Scale = Vector3.new(1,1,1)*pilarsize | |
3444 | NewPillarMesh.VertexColor = Vector3.new(23/255, 21/255, 29/255) | |
3445 | NewPillarMesh.MeshType = Enum.MeshType.FileMesh | |
3446 | ||
3447 | SetTween(Pillar,{CFrame=PortalPosCF*cn(0,12*pilarsize,0)},"Quad","Out",.5) | |
3448 | coroutine.resume(coroutine.create(function() | |
3449 | wait(math.random(3,6)) | |
3450 | SetTween(Pillar,{CFrame=PortalPosCF*cn(0,-30*pilarsize,0)*ANGLES(RAD(math.random(-90,90)),RAD(math.random(-360,360)),RAD(math.random(-90,90)))},"Bounce","In",2) | |
3451 | Pillar.CanCollide = false | |
3452 | wait(1.5) | |
3453 | CFMagniDamage(cn(PortalPos),18*pilarsize,20*pilarsize,30*pilarsize,50*pilarsize,"Knockdown") | |
3454 | ||
3455 | WACKYEFFECT({Time = 50, EffectType = "Crown", Size = VT(15,0,15)*pilarsize, Size2 = (VT(19,120,19)*pilarsize), Transparency = 0.6, Transparency2 = 1, CFrame = CF(PortalPos,PortalPos+test1)*ANGLES(RAD(-90),RAD(math.random(-360,360)),RAD(0)) , MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 1788899396, SoundPitch = 1/(pilarsize/2), SoundVolume = 3*pilarsize}) | |
3456 | ||
3457 | SetTween(Pillar,{Transparency=1},"Quad","Out",2) | |
3458 | wait(4) | |
3459 | Pillar:Destroy() | |
3460 | end)) | |
3461 | CFMagniDamage(cn(PortalPos),16*pilarsize,10*pilarsize,20*pilarsize,-20*pilarsize,"NormalKnockdown") | |
3462 | ||
3463 | WACKYEFFECT({Time = 40, EffectType = "Crown", Size = VT(9,0,9)*pilarsize, Size2 = (VT(4.5,160,4.5)*pilarsize), Transparency = 0.2, Transparency2 = 1, CFrame = PortalPosCF, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 2175667385, SoundPitch = 0.8/(pilarsize/2), SoundVolume = 2*pilarsize}) | |
3464 | WACKYEFFECT({Time = 40, EffectType = "Crown", Size = VT(4.5,40,4.5)*pilarsize, Size2 = (VT(30,0,30)*pilarsize), Transparency = 0.7, Transparency2 = 1, CFrame = CF(PortalPos,PortalPos+test1)*ANGLES(RAD(-90),RAD(math.random(-360,360)),RAD(0)) , MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 3}) | |
3465 | ||
3466 | end | |
3467 | ||
3468 | wait(.05) | |
3469 | end | |
3470 | end)) | |
3471 | ||
3472 | ||
3473 | ||
3474 | end)) | |
3475 | ||
3476 | SetTween(RJW,{C0=RootCF*CFrame.new(0,0,2)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",.4) | |
3477 | SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,2)*angles(math.rad(20),math.rad(0),math.rad(0))},"Quad","InOut",.4) | |
3478 | SetTween(RW,{C0=CFrame.new(3.5 , 0.5, -2.0)*angles(math.rad(90),math.rad(0),math.rad(-20))},"Back","Out",.4) | |
3479 | SetTween(LW,{C0=CFrame.new(-3.5, 0.5, -2.0)*angles(math.rad(90),math.rad(0),math.rad(20))},"Back","Out",.4) | |
3480 | SetTween(RH,{C0=CFrame.new(0, -3, 0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",.4) | |
3481 | SetTween(LH,{C0=CFrame.new(-0, -3, 0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",.4) | |
3482 | wait(.4) | |
3483 | attack=false | |
3484 | end | |
3485 | ||
3486 | ||
3487 | ||
3488 | ||
3489 | ||
3490 | ||
3491 | ||
3492 | ||
3493 | ||
3494 | ||
3495 | for i, v in pairs(Head:GetChildren()) do | |
3496 | ||
3497 | if v:IsA("BasePart") and v.BrickColor.Name == "Institutional white" then | |
3498 | --v.Name = "Eye" | |
3499 | end | |
3500 | ||
3501 | ||
3502 | end | |
3503 | ||
3504 | ||
3505 | ||
3506 | ||
3507 | function ClickCombo() | |
3508 | if Anim == "Fall" or Anim == "Jump" then | |
3509 | if Combo == 0 then | |
3510 | --DownAT() | |
3511 | end | |
3512 | else | |
3513 | if Combo == 0 then | |
3514 | AT1() | |
3515 | Combo = 1 | |
3516 | elseif Combo == 1 then | |
3517 | AT2() | |
3518 | Combo = 0 | |
3519 | elseif Combo == 2 then | |
3520 | AT3() | |
3521 | Combo = 0 | |
3522 | end | |
3523 | end | |
3524 | end | |
3525 | ||
3526 | Button1DownF=function() | |
3527 | ||
3528 | if attack==false then | |
3529 | ||
3530 | ClickCombo() | |
3531 | else | |
3532 | ||
3533 | end | |
3534 | ||
3535 | end | |
3536 | ||
3537 | ||
3538 | ||
3539 | KeyUpF=function(key) | |
3540 | ||
3541 | ||
3542 | ||
3543 | end | |
3544 | ||
3545 | Mouse.KeyDown:Connect(function(key) | |
3546 | key:lower() | |
3547 | if key == "z" and attack ==false then | |
3548 | Attack1() | |
3549 | end | |
3550 | if key == "x" and attack ==false then | |
3551 | Attack2() | |
3552 | end | |
3553 | if key == "c" and attack ==false then | |
3554 | Attack3() | |
3555 | end | |
3556 | if key == "v" and attack ==false then | |
3557 | Attack4() | |
3558 | end | |
3559 | end) | |
3560 | ||
3561 | ||
3562 | ||
3563 | ||
3564 | if mememode == false then | |
3565 | mememode=true | |
3566 | lastid= "http://www.roblox.com/asset/?id=167664731" --1847367023 | |
3567 | ||
3568 | lastsongpos = 0 | |
3569 | s2.TimePosition = lastsongpos | |
3570 | SetTween(RJW,{C0=RootCF*CFrame.new(0,-2,2)*angles(math.rad(30),math.rad(0),math.rad(0))},"Quad","InOut",1) | |
3571 | SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,-2)*angles(math.rad(20),math.rad(0),math.rad(0))},"Quad","InOut",1) | |
3572 | SetTween(RW,{C0=CFrame.new(2.5 , 3.5, 1.5)*angles(math.rad(30),math.rad(0),math.rad(60))},"Quad","InOut",1) | |
3573 | SetTween(LW,{C0=CFrame.new(-2.5, 3.5, 1.5)*angles(math.rad(30),math.rad(0),math.rad(-60))},"Quad","InOut",1) | |
3574 | SetTween(RH,{C0=CFrame.new(0, -3, 0)*angles(math.rad(50),math.rad(0),math.rad(-90))},"Quad","InOut",1) | |
3575 | SetTween(LH,{C0=CFrame.new(-0, -3, 0)*angles(math.rad(50),math.rad(0),math.rad(90))},"Quad","InOut",1) | |
3576 | so("1837106999", Character,1, 1) | |
3577 | wait(1) | |
3578 | ||
3579 | ||
3580 | lastid= "http://www.roblox.com/asset/?id=1907454616" --1847367023 194920243 | |
3581 | ||
3582 | lastsongpos = 0 | |
3583 | s2.TimePosition = lastsongpos | |
3584 | ||
3585 | ||
3586 | ||
3587 | ||
3588 | for i, v in pairs(Head:GetChildren()) do | |
3589 | if v:IsA("BasePart") and v.BrickColor.Name == "Really black" and v.Name ~= "Head" then | |
3590 | ||
3591 | if v.Name == "Handle" then | |
3592 | v.Transparency=1 | |
3593 | v.Decal.Transparency=1 | |
3594 | else | |
3595 | SetTween(v,{Transparency=1},"Quad","InOut",.1) | |
3596 | ||
3597 | end | |
3598 | ||
3599 | ||
3600 | end | |
3601 | if v:IsA("BasePart") and (v.Name == "Eye1" or v.Name == "Eye2" ) then | |
3602 | SetTween(v,{Color=Color3.new(1,0,0)},"Quad","InOut",1) | |
3603 | ||
3604 | SetTween(v.Mesh,{Scale=Vector3.new(0.8,5.8,.825)},"Quad","InOut",1) | |
3605 | ||
3606 | ||
3607 | SetTween(v.Mesh,{Offset=Vector3.new(0,-.5,0)},"Quad","InOut",1) | |
3608 | ||
3609 | ||
3610 | ||
3611 | end | |
3612 | ||
3613 | ||
3614 | end | |
3615 | ||
3616 | coroutine.resume(coroutine.create(function() | |
3617 | local MaskPart = Instance.new("Part") | |
3618 | MaskPart.Reflectance = 0 | |
3619 | MaskPart.Transparency = 0 | |
3620 | MaskPart.CanCollide = false | |
3621 | MaskPart.Locked = true | |
3622 | MaskPart.Anchored=false | |
3623 | MaskPart.BrickColor = BrickColor.new("Really blue") | |
3624 | MaskPart.Name = "LMaskPart" | |
3625 | MaskPart.Size = Vector3.new(.1,.1,.1) | |
3626 | MaskPart.Material = "SmoothPlastic" | |
3627 | MaskPart:BreakJoints() | |
3628 | MaskPart.Parent = Head | |
3629 | MaskPart.CFrame = RootPart.CFrame | |
3630 | ||
3631 | local SWeld=weld(MaskPart,Head,MaskPart,cf(-.75,-0,-1.25)*angles(math.rad(0),math.rad(0),math.rad(0))) | |
3632 | SetTween(SWeld,{C0=CFrame.new(-2.75,0,-1.0)*angles(math.rad(0),math.rad(-15),math.rad(math.random(-15,15)))},"Elastic","Out",1.5) | |
3633 | ||
3634 | local NewMaskMesh = Instance.new("SpecialMesh") | |
3635 | NewMaskMesh.Parent = MaskPart | |
3636 | NewMaskMesh.MeshId = "http://www.roblox.com/asset/?id=2349611011" | |
3637 | NewMaskMesh.TextureId = "http://www.roblox.com/asset/?id=2349706532" | |
3638 | NewMaskMesh.Scale = Vector3.new(3, 3.0999999, 3)/10 | |
3639 | NewMaskMesh.MeshType = Enum.MeshType.FileMesh | |
3640 | end)) | |
3641 | coroutine.resume(coroutine.create(function() | |
3642 | local MaskPart = Instance.new("Part") | |
3643 | MaskPart.Reflectance = 0 | |
3644 | MaskPart.Transparency = 0 | |
3645 | MaskPart.CanCollide = false | |
3646 | MaskPart.Locked = true | |
3647 | MaskPart.Anchored=false | |
3648 | MaskPart.BrickColor = BrickColor.new("Really blue") | |
3649 | MaskPart.Name = "RMaskPart" | |
3650 | MaskPart.Size = Vector3.new(.1,.1,.1) | |
3651 | MaskPart.Material = "SmoothPlastic" | |
3652 | MaskPart:BreakJoints() | |
3653 | MaskPart.Parent = Head | |
3654 | MaskPart.CFrame = RootPart.CFrame | |
3655 | ||
3656 | local SWeld=weld(MaskPart,Head,MaskPart,cf(.75,-0,-1.25)*angles(math.rad(0),math.rad(0),math.rad(0))) | |
3657 | SetTween(SWeld,{C0=CFrame.new(2.75,0,-1.0)*angles(math.rad(0),math.rad(-15),math.rad(math.random(-15,15)))},"Elastic","Out",1) | |
3658 | ||
3659 | local NewMaskMesh = Instance.new("SpecialMesh") | |
3660 | NewMaskMesh.Parent = MaskPart | |
3661 | NewMaskMesh.MeshId = "http://www.roblox.com/asset/?id=2349606351" | |
3662 | NewMaskMesh.TextureId = "http://www.roblox.com/asset/?id=2349706532" | |
3663 | NewMaskMesh.Scale = Vector3.new(3, 3.0999999, 3)/10 | |
3664 | NewMaskMesh.MeshType = Enum.MeshType.FileMesh | |
3665 | end)) | |
3666 | ||
3667 | ||
3668 | ||
3669 | ||
3670 | coroutine.resume(coroutine.create(function() | |
3671 | wait(1) | |
3672 | local MoveVal = 1 | |
3673 | while mememode == true do | |
3674 | ||
3675 | if MoveVal == 1 then | |
3676 | MoveVal =-1 | |
3677 | else | |
3678 | MoveVal=1 | |
3679 | end | |
3680 | ||
3681 | if Head:FindFirstChild("RMaskPart") then | |
3682 | ||
3683 | local HPa = Head:FindFirstChild("RMaskPart") | |
3684 | SetTween(HPa:FindFirstChildOfClass("Weld"),{C0=CFrame.new(2.75+MoveVal/(math.random(30,40)/10),MoveVal/(math.random(60,80)/10),-1.0)*angles(math.rad(-30),math.rad(-15+MoveVal*5),math.rad(math.random(-15,15)))},"Quad","InOut",1) | |
3685 | end | |
3686 | if Head:FindFirstChild("LMaskPart") then | |
3687 | local HPa = Head:FindFirstChild("LMaskPart") | |
3688 | SetTween(HPa:FindFirstChildOfClass("Weld"),{C0=CFrame.new(-2.75-MoveVal/(math.random(30,40)/10),MoveVal/(math.random(60,80)/10),-1.0)*angles(math.rad(-30),math.rad(15+MoveVal*5),math.rad(math.random(-15,15)))},"Quad","InOut",1) | |
3689 | end | |
3690 | if Head:FindFirstChild("Eye1") then | |
3691 | local HPa = Head:FindFirstChild("Eye1") | |
3692 | SetTween(HPa,{Color=Color3.new(.25+MoveVal/4,0,0)},"Quad","InOut",1) | |
3693 | ||
3694 | ||
3695 | end | |
3696 | ||
3697 | if Head:FindFirstChild("Eye2") then | |
3698 | local HPa = Head:FindFirstChild("Eye2") | |
3699 | SetTween(HPa,{Color=Color3.new(.25+MoveVal/4,0,0)},"Quad","InOut",1) | |
3700 | ||
3701 | ||
3702 | ||
3703 | ||
3704 | end | |
3705 | ||
3706 | wait(1) | |
3707 | end | |
3708 | ||
3709 | ||
3710 | if Head:FindFirstChild("RMaskPart") then | |
3711 | ||
3712 | local HPa = Head:FindFirstChild("RMaskPart") | |
3713 | SetTween(HPa:FindFirstChildOfClass("Weld"),{C0=CFrame.new(.75,-0,-1.25)*angles(math.rad(-0),math.rad(-0),math.rad(0))},"Quad","InOut",.1) | |
3714 | end | |
3715 | if Head:FindFirstChild("LMaskPart") then | |
3716 | local HPa = Head:FindFirstChild("LMaskPart") | |
3717 | SetTween(HPa:FindFirstChildOfClass("Weld"),{C0=CFrame.new(-.75,-0.1,-1.25)*angles(math.rad(-0),math.rad(0),math.rad(0))},"Quad","InOut",.1) | |
3718 | end | |
3719 | ||
3720 | ||
3721 | ||
3722 | ||
3723 | ||
3724 | for i, v in pairs(Head:GetChildren()) do | |
3725 | if v:IsA("BasePart") and v.BrickColor.Name == "Really black" and v.Name ~= "Head" then | |
3726 | ||
3727 | if v.Name == "Handle" then | |
3728 | coroutine.resume(coroutine.create(function() | |
3729 | wait(.2) | |
3730 | v.Transparency=0 | |
3731 | v.Decal.Transparency=0 | |
3732 | end)) | |
3733 | else | |
3734 | SetTween(v,{Transparency=0},"Quad","InOut",.1) | |
3735 | ||
3736 | end | |
3737 | ||
3738 | ||
3739 | end | |
3740 | if v:IsA("BasePart") and (v.Name == "Eye1" or v.Name == "Eye2" ) then | |
3741 | SetTween(v,{Color=Color3.new(1,1,1)},"Quad","InOut",1) | |
3742 | SetTween(v.Mesh,{Offset=Vector3.new(0,0,0)},"Quad","InOut",1) | |
3743 | SetTween(v.Mesh,{Scale=Vector3.new(1,1,1)},"Quad","InOut",1) | |
3744 | ||
3745 | ||
3746 | ||
3747 | ||
3748 | end | |
3749 | if v:IsA("BasePart") and (v.Name == "RMaskPart" or v.Name == "LMaskPart" ) then | |
3750 | coroutine.resume(coroutine.create(function() | |
3751 | wait(.2) | |
3752 | v:Destroy() | |
3753 | end)) | |
3754 | end | |
3755 | ||
3756 | end | |
3757 | ||
3758 | ||
3759 | ||
3760 | end)) | |
3761 | ||
3762 | ||
3763 | ||
3764 | lastsongpos = 0 | |
3765 | s2.TimePosition = lastsongpos | |
3766 | ||
3767 | SetTween(RJW,{C0=RootCF*CFrame.new(0,-2,2)*angles(math.rad(30),math.rad(0),math.rad(0))},"Quad","InOut",.5) | |
3768 | SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,-2)*angles(math.rad(20),math.rad(0),math.rad(0))},"Quad","InOut",.5) | |
3769 | SetTween(RW,{C0=CFrame.new(2.5 , 3.5, 1.5)*angles(math.rad(30),math.rad(0),math.rad(90))},"Quad","InOut",.5) | |
3770 | SetTween(LW,{C0=CFrame.new(-2.5, 3.5, 1.5)*angles(math.rad(30),math.rad(0),math.rad(-90))},"Quad","InOut",.5) | |
3771 | SetTween(RH,{C0=CFrame.new(0, -3, 0)*angles(math.rad(10),math.rad(0),math.rad(-90))},"Quad","InOut",.5) | |
3772 | SetTween(LH,{C0=CFrame.new(-0, -3, 0)*angles(math.rad(10),math.rad(0),math.rad(90))},"Quad","InOut",.5) | |
3773 | ||
3774 | wait(.5) | |
3775 | else | |
3776 | mememode=false | |
3777 | ||
3778 | ||
3779 | ||
3780 | SetTween(RJW,{C0=RootCF*CFrame.new(0,-2,2)*angles(math.rad(30),math.rad(0),math.rad(0))},"Quad","InOut",.5) | |
3781 | SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,-2)*angles(math.rad(20),math.rad(0),math.rad(0))},"Quad","InOut",.5) | |
3782 | SetTween(RW,{C0=CFrame.new(2.5 , 3.5, 1.5)*angles(math.rad(30),math.rad(0),math.rad(90))},"Quad","InOut",.5) | |
3783 | SetTween(LW,{C0=CFrame.new(-2.5, 3.5, 1.5)*angles(math.rad(30),math.rad(0),math.rad(-90))},"Quad","InOut",.5) | |
3784 | SetTween(RH,{C0=CFrame.new(0, -3, 0)*angles(math.rad(10),math.rad(0),math.rad(-90))},"Quad","InOut",.5) | |
3785 | SetTween(LH,{C0=CFrame.new(-0, -3, 0)*angles(math.rad(10),math.rad(0),math.rad(90))},"Quad","InOut",.5) | |
3786 | ||
3787 | wait(.25) | |
3788 | ||
3789 | SetTween(RJW,{C0=RootCF*CFrame.new(0,-2,2)*angles(math.rad(30),math.rad(0),math.rad(0))},"Quad","InOut",.5) | |
3790 | SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,-2)*angles(math.rad(20),math.rad(0),math.rad(0))},"Quad","InOut",.5) | |
3791 | SetTween(RW,{C0=CFrame.new(2.5 , 3.5, 1.5)*angles(math.rad(30),math.rad(0),math.rad(60))},"Quad","InOut",.5) | |
3792 | SetTween(LW,{C0=CFrame.new(-2.5, 3.5, 1.5)*angles(math.rad(30),math.rad(0),math.rad(-60))},"Quad","InOut",.5) | |
3793 | SetTween(RH,{C0=CFrame.new(0, -3, 0)*angles(math.rad(50),math.rad(0),math.rad(-90))},"Quad","InOut",.5) | |
3794 | SetTween(LH,{C0=CFrame.new(-0, -3, 0)*angles(math.rad(50),math.rad(0),math.rad(90))},"Quad","InOut",.5) | |
3795 | ||
3796 | wait(.5) | |
3797 | ||
3798 | ||
3799 | CurId=CurId-1 | |
3800 | ||
3801 | ||
3802 | end | |
3803 | ||
3804 | attack = false | |
3805 | ||
3806 | ||
3807 | ||
3808 | ||
3809 | ||
3810 | ||
3811 | ||
3812 | ||
3813 | ||
3814 | ||
3815 | ||
3816 | ||
3817 | ||
3818 | ||
3819 | --math.rad(math.random(-math.random(1,5),math.random(1,5))) | |
3820 | gout= false | |
3821 | gnum = 0 | |
3822 | gnum2 = 20 | |
3823 | crypos=0 | |
3824 | s3:play() | |
3825 | s3.Volume = 0 | |
3826 | coroutine.resume(coroutine.create(function() | |
3827 | while Humanoid.Health>0.001 do | |
3828 | sine = sine + change | |
3829 | hitfloor = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character) | |
3830 | ||
3831 | local torvel = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
3832 | local velderp = RootPart.Velocity.y | |
3833 | ||
3834 | ||
3835 | local wwalk = Anim | |
3836 | ||
3837 | if RootPart.Velocity.y > 1 and hitfloor == nil then | |
3838 | Anim = "Jump" | |
3839 | ||
3840 | elseif RootPart.Velocity.y < -1 and hitfloor == nil then | |
3841 | Anim = "Fall" | |
3842 | elseif Humanoid.Sit == true then | |
3843 | Anim = "Sit" | |
3844 | elseif torvel < 1 and hitfloor ~= nil then | |
3845 | Anim = "Idle" | |
3846 | elseif torvel > 2 and hitfloor ~= nil then | |
3847 | ||
3848 | Anim = "Walk" | |
3849 | ||
3850 | else | |
3851 | Anim = "" | |
3852 | ||
3853 | end | |
3854 | ||
3855 | if Anim=="Jump" and wwalk == "Walk" and mememode==true then | |
3856 | local Portalfloor,PortalPos = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 80, Character) | |
3857 | ||
3858 | WACKYEFFECT({Time = 40, EffectType = "Crown", Size = VT(0,60,0), Size2 = (VT(30,0,30)), Transparency = 0.2, Transparency2 = 1, CFrame = cn(PortalPos) , MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 5}) | |
3859 | ||
3860 | end | |
3861 | ||
3862 | ||
3863 | ||
3864 | coroutine.resume(coroutine.create(function() | |
3865 | if mememode == true then | |
3866 | if s3.Parent == nil or s3 == nil then | |
3867 | ||
3868 | s3 = s3c:Clone() | |
3869 | s3.Parent = Head | |
3870 | s3.Name = "Crying" | |
3871 | -- s2.SoundId = lastid | |
3872 | s3.Pitch = 0.5 | |
3873 | s3.Volume = 0 | |
3874 | s3.Looped = true | |
3875 | s3.archivable = false | |
3876 | s3.TimePosition = crypos | |
3877 | ||
3878 | s3:play() | |
3879 | ||
3880 | ||
3881 | else | |
3882 | crypos=s3.TimePosition | |
3883 | s3.Pitch = 0.5 | |
3884 | ||
3885 | --s2.Volume = 1.5 | |
3886 | ||
3887 | s3.Looped = true | |
3888 | s3.SoundId = crying | |
3889 | s3.EmitterSize = 40 | |
3890 | end | |
3891 | ||
3892 | ||
3893 | end | |
3894 | end)) | |
3895 | ||
3896 | ||
3897 | ||
3898 | coroutine.resume(coroutine.create(function() | |
3899 | ||
3900 | ||
3901 | if s2.Parent == nil or s2 == nil then | |
3902 | ||
3903 | s2 = s2c:Clone() | |
3904 | s2.Parent = Torso | |
3905 | s2.Name = "BGMusic" | |
3906 | -- s2.SoundId = lastid | |
3907 | s2.Pitch = 1.5 | |
3908 | s2.Volume = 1.5 | |
3909 | s2.Looped = true | |
3910 | s2.archivable = false | |
3911 | s2.TimePosition = lastsongpos | |
3912 | if playsong == true then | |
3913 | s2:play() | |
3914 | elseif playsong == false then | |
3915 | s2:stop() | |
3916 | end | |
3917 | ||
3918 | ||
3919 | else | |
3920 | lastsongpos=s2.TimePosition | |
3921 | ||
3922 | if mememode == false then | |
3923 | ||
3924 | s2.Pitch = .85 | |
3925 | ||
3926 | s2.Volume = 1.5 | |
3927 | ||
3928 | s2.Looped = true | |
3929 | s2.SoundId = lastid | |
3930 | s2.EmitterSize = 30 | |
3931 | else | |
3932 | ||
3933 | ||
3934 | s2.Pitch = .9 | |
3935 | ||
3936 | s2.Volume = 2 | |
3937 | ||
3938 | s2.Looped = true | |
3939 | s2.SoundId = lastid | |
3940 | s2.EmitterSize = 35 | |
3941 | end | |
3942 | ||
3943 | end | |
3944 | ||
3945 | ||
3946 | ||
3947 | end)) | |
3948 | ||
3949 | if mememode == true then | |
3950 | gnum = gnum + 1 | |
3951 | if gnum > gnum2 then | |
3952 | ||
3953 | gnum2 = math.random(10,100) | |
3954 | gnum = 0 | |
3955 | coroutine.resume(coroutine.create(function() | |
3956 | gout = true | |
3957 | s3.Volume = 3 | |
3958 | wait(math.random(2,12)/50) | |
3959 | ||
3960 | ||
3961 | s3.Volume = 0 | |
3962 | gout=false | |
3963 | end)) | |
3964 | ||
3965 | ||
3966 | end | |
3967 | end | |
3968 | ||
3969 | ||
3970 | ||
3971 | inairvel=torvel | |
3972 | ||
3973 | ||
3974 | if inairvel > 30 then | |
3975 | inairvel=30 | |
3976 | end | |
3977 | inairvel=inairvel/50*2 | |
3978 | ||
3979 | ||
3980 | ||
3981 | if attack == false then | |
3982 | if Anim == "Jump" then | |
3983 | change = 0.60*2 | |
3984 | SetTween(RJW,{C0=RootCF* cn(0, 0 + (0.0395/2) * math.cos(sine / 8), -0.1 + 0.0395 * math.cos(sine / 8)) * angles(math.rad(-6.5 - 1.5 * math.cos(sine / 8))+inairvel/2, math.rad(0), math.rad(0))},"Quad","Out",0.25) | |
3985 | SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,2)*angles(math.rad(-26.5 + 2.5 * math.cos(sine / 8)), math.rad(0), math.rad(-0))},"Quad","Out",0.25) | |
3986 | SetTween(RW,{C0=CFrame.new(3.5 , -2.60, -.0) * angles(math.rad(-20 - 2 * math.cos(sine / 8)), math.rad(0), math.rad(10 + 0 * math.cos(sine / 8)))},"Quad","InOut",0.1) | |
3987 | SetTween(LW,{C0=CFrame.new(-3.5, -2.6, -.0) * angles(math.rad(-20 - 2 * math.cos(sine / 8)), math.rad(0), math.rad(-10 - 2 * math.cos(sine / 8)))},"Quad","InOut",0.1) | |
3988 | SetTween(RH,{C0=CFrame.new(0, -2+ .05 * math.cos(sine / 15), -.2) * CFrame.Angles(math.rad(-15 -1* math.cos(sine / 10)),math.rad(0),math.rad(0))},"Quad","InOut",0.075) | |
3989 | SetTween(LH,{C0=CFrame.new(0, -2+ .05 * math.cos(sine / 15), -.4) * CFrame.Angles(math.rad(-25 +1* math.cos(sine / 10)),math.rad(0),math.rad(0))},"Quad","InOut",0.075) | |
3990 | ||
3991 | ||
3992 | elseif Anim == "Fall" then | |
3993 | change = 0.60*2 | |
3994 | SetTween(RJW,{C0=RootCF*cn(0, 0 + (0.0395/2) * math.cos(sine / 8), -0.1 + 0.0395 * math.cos(sine / 8)) * angles(math.rad(5.5 - 1.5 * math.cos(sine / 8))-inairvel, math.rad(0), math.rad(0))},"Quad","Out",0.25) | |
3995 | SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,2)*angles(math.rad(26.5 + 2.5 * math.cos(sine / 8))+inairvel, math.rad(0), math.rad(-0))},"Quad","Out",0.25) | |
3996 | SetTween(RW,{C0=CFrame.new(3.2 , -1.50, .20) * angles(math.rad(140 - 2 * math.cos(sine / 8)), math.rad(0), math.rad(45 + 0 * math.cos(sine / 8)))},"Quad","InOut",0.15) | |
3997 | SetTween(LW,{C0=CFrame.new(-3.2, -1.5, .20) * angles(math.rad(140 - 2 * math.cos(sine / 8)), math.rad(0), math.rad(-45 - 2 * math.cos(sine / 8)))},"Quad","InOut",0.15) | |
3998 | SetTween(RH,{C0=CFrame.new(0, -1+ .05 * math.cos(sine / 15), -.4) * CFrame.Angles(math.rad(-15 -1* math.cos(sine / 10)),math.rad(0),math.rad(0))},"Quad","InOut",0.1) | |
3999 | SetTween(LH,{C0=CFrame.new(0, -1+ .05 * math.cos(sine / 15), -.4) * CFrame.Angles(math.rad(-0 +1* math.cos(sine / 10)),math.rad(0),math.rad(0))},"Quad","InOut",0.1) | |
4000 | ||
4001 | ||
4002 | ||
4003 | ||
4004 | ||
4005 | ||
4006 | ||
4007 | ||
4008 | ||
4009 | ||
4010 | elseif Anim == "Idle" then | |
4011 | ||
4012 | ||
4013 | ||
4014 | if mememode == false then | |
4015 | ||
4016 | change = 0.60 | |
4017 | Humanoid.JumpPower = 90 | |
4018 | Humanoid.WalkSpeed=16 | |
4019 | local ADNum = .25 | |
4020 | SetTween(RJW,{C0=RootCF*cn(0, 0, 2.1 + 0.2395 * math.cos(sine / 8 +ADNum* math.cos(sine / 8*2))) * angles(math.rad(20 - 0 * math.cos(sine / 8)), math.rad((0 + .5* math.cos(sine / 4))), math.rad(-0))},"Quad","InOut",0.1) | |
4021 | SetTween(NeckW,{C0=NeckCF*CFrame.new(0, -1, 2) *angles(math.rad(-3.5 - 1.5 * math.cos(sine / 8 +ADNum* math.cos(sine / 8*2))), math.rad(10), math.rad(0 - 26.5 * math.cos(sine / 15 +.4* math.cos(sine / 10))))},"Quad","InOut",0.1) | |
4022 | SetTween(RW,{C0=CFrame.new(3 , 2.5 + .02 * math.cos(sine / 8), -.0) * angles(math.rad(10 - 12 * math.cos(sine / 8 +ADNum* math.cos(sine / 8*2))), math.rad(-25), math.rad(30 - 6 * math.cos(sine / 8)))},"Quad","Out",0.2) | |
4023 | SetTween(LW,{C0=CFrame.new(-3, 2.5 + .02 * math.cos(sine / 8), -.0) * angles(math.rad(10 - 12 * math.cos(sine / 8 +ADNum* math.cos(sine / 8*2))), math.rad(25), math.rad(-30 + 6 * math.cos(sine / 8 )))},"Quad","Out",0.1) | |
4024 | SetTween(RH,{C0=CFrame.new(0, -3+ .04 * math.cos(sine / 8 +ADNum* math.cos(sine / 8*2)), -2) * CFrame.Angles(math.rad(60 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(-12.5- 6.0 * math.cos(sine / 4)))},"Quad","InOut",0.1) | |
4025 | SetTween(LH,{C0=CFrame.new(-0, -3+ .04 * math.cos(sine / 8 +ADNum* math.cos(sine / 8*2)), -2) * CFrame.Angles(math.rad(60 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(-12.5+ 6.0 * math.cos(sine / 4)))},"Quad","InOut",0.1) | |
4026 | else | |
4027 | change = 0.60 | |
4028 | Humanoid.JumpPower = 90 | |
4029 | Humanoid.WalkSpeed=16 | |
4030 | local ADNum = .25 | |
4031 | SetTween(RJW,{C0=RootCF*cn(0, 0, 2.1 + 0.2395 * math.cos(sine / 8 +ADNum* math.cos(sine / 8*2))) * angles(math.rad(20 - 0 * math.cos(sine / 8)), math.rad((0 + .5* math.cos(sine / 4))), math.rad(-0))},"Quad","InOut",0.1) | |
4032 | ||
4033 | if gout == false then | |
4034 | SetTween(NeckW,{C0=NeckCF*CFrame.new(0, -1, 2) *angles(math.rad(13.5 - 1.5 * math.cos(sine / 8 +ADNum* math.cos(sine / 8*2))), math.rad(0), math.rad(0 - 26.5 * math.cos(sine / 15 +.4* math.cos(sine / 10))))},"Quad","InOut",0.1) | |
4035 | else | |
4036 | SetTween(NeckW,{C0=NeckCF*CFrame.new(0+ (math.random(-10,10)/350), -1, 2 + (math.random(-10,10)/350)) *angles(math.rad(math.random(-math.random(1,5),math.random(1,5))), math.rad(0+math.random(-math.random(1,5),math.random(1,5))), math.rad(0 - 26.5 * math.cos(sine / 15 +.4* math.cos(sine / 10))))},"Quad","InOut",0.0) | |
4037 | ||
4038 | end | |
4039 | SetTween(RW,{C0=CFrame.new(3 , 2.5 + .02 * math.cos(sine / 8), -.0) * angles(math.rad(10 - 6 * math.cos(sine / 8 +ADNum* math.cos(sine / 8*2))), math.rad(-25), math.rad(30 - 2 * math.cos(sine / 8)))},"Quad","Out",0.2) | |
4040 | SetTween(LW,{C0=CFrame.new(-3, 2.5 + .02 * math.cos(sine / 8), -.0) * angles(math.rad(10 - 6 * math.cos(sine / 8 +ADNum* math.cos(sine / 8*2))), math.rad(25), math.rad(-30 + 2 * math.cos(sine / 8 )))},"Quad","Out",0.1) | |
4041 | SetTween(RH,{C0=CFrame.new(0, -3+ .04 * math.cos(sine / 8 +ADNum* math.cos(sine / 8*2)), -2) * CFrame.Angles(math.rad(60 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(-12.5- 2.0 * math.cos(sine / 4)))},"Quad","InOut",0.1) | |
4042 | SetTween(LH,{C0=CFrame.new(-0, -3+ .04 * math.cos(sine / 8 +ADNum* math.cos(sine / 8*2)), -2) * CFrame.Angles(math.rad(60 - 0 * math.cos(sine / 8)),math.rad(0),math.rad(-12.5+ 2.0 * math.cos(sine / 4)))},"Quad","InOut",0.1) | |
4043 | ||
4044 | end | |
4045 | ||
4046 | ||
4047 | elseif Anim == "Walk" then | |
4048 | local speed=1 | |
4049 | if mememode == true then | |
4050 | speed=1.5 | |
4051 | end | |
4052 | ||
4053 | ||
4054 | ||
4055 | if mememode == false then | |
4056 | ||
4057 | ||
4058 | local ADNum = 1 | |
4059 | ||
4060 | change = 2.6*speed | |
4061 | Humanoid.JumpPower = 90*speed | |
4062 | Humanoid.WalkSpeed=56*speed | |
4063 | SetTween(RJW,{C0=RootCF*CFrame.new(0, 1 + 1.0395 * math.cos(sine / 4), 2.4+ 0.855 * math.cos(sine / 4) + -math.sin(sine / 4) / 8) * angles(math.rad(20 - 6 * math.cos(sine / 4)), math.rad(12 * math.cos(sine / 8)) + RootPart.RotVelocity.Y / 70, math.rad(18 * math.cos(sine / 8)))},"Linear","InOut",WalkAnimMove/speed) | |
4064 | SetTween(NeckW,{C0=NeckCF*CFrame.new(0, -1, 2 + 0.025 * math.cos(sine / 4)) * angles(math.rad(10 + 6.5 * math.cos(sine / 4)), math.rad(0 - 16 * math.cos(sine / 8)), math.rad(-18 * math.cos(sine / 8)) + RootPart.RotVelocity.Y / 16)},"Linear","InOut",WalkAnimMove/speed) | |
4065 | --SetTween(RW,{C0=CFrame.new(1.5, 0.6, 0) * angles(math.rad(21+8 * math.cos(sine / 8)), math.rad(-70) + RootPart.RotVelocity.Y / 80, math.rad(70) + RootPart.RotVelocity.Y / 120)},"Linear","InOut",WalkAnimMove/speed) | |
4066 | --SetTween(LW,{C0=CFrame.new(-1.5, 0.6, 0) * angles(math.rad(90-6* math.cos(sine / 4)), math.rad(0) + RootPart.RotVelocity.Y / 80, math.rad(-10) - RootPart.RotVelocity.Y / 90)},"Linear","InOut",WalkAnimMove/speed) | |
4067 | SetTween(RW,{C0=cf(3, 1.5 - 0.55 * math.cos(sine / 8) / 2,-1.1+ 0.5 * math.cos(sine / 8) / 2) * CFrame.Angles(math.rad(-10.5 + 90 * math.cos(sine / 8)) + -math.sin(sine / 8) / 2.5, math.rad(90 + 20 * math.cos(sine / 8)), math.rad(0)) * CFrame.Angles(math.rad(-10 + 22.5 * math.cos(sine / 8)), math.rad(-90) + RootPart.RotVelocity.Y / 50, math.rad(1 * math.cos(sine / 8)))},"Linear","InOut",WalkAnimMove/speed) | |
4068 | SetTween(LW,{C0=cf(-3, 1.5 + 0.55 * math.cos(sine / 8) / 2,-1.1+ -0.5 * math.cos(sine / 8) / 2) * CFrame.Angles(math.rad(-10.5 - 90 * math.cos(sine / 8)) + math.sin(sine / 8) / 2.5, math.rad(-90 + 20 * math.cos(sine / 8)), math.rad(0)) * CFrame.Angles(math.rad(-10 - 22.5 * math.cos(sine / 8)), math.rad(90) + RootPart.RotVelocity.Y / 50, math.rad(1 * math.cos(sine / 8)))},"Linear","InOut",WalkAnimMove/speed) | |
4069 | SetTween(RH,{C0=cf(0, -2.825 - 0.55 * math.cos(sine / 8) / 2,-1 + 1 * math.cos(sine / 8 +ADNum* math.cos(sine / 8*2))) * CFrame.Angles(math.rad(45 - 50 * math.cos(sine / 8 +ADNum* math.cos(sine / 8*2))) + -math.sin(sine / 8) / 2.5, math.rad(90 + 0 * math.cos(sine / 8)), math.rad(0)) * CFrame.Angles(math.rad(0 + 2.5 * math.cos(sine / 8)), math.rad(-90) - RootPart.RotVelocity.Y / 50, math.rad(1 * math.cos(sine / 8)))},"Linear","InOut",WalkAnimMove/speed/1) | |
4070 | SetTween(LH,{C0=cf(-0, -2.825 + 0.55 * math.cos(sine / 8) / 2,-1 - 1 * math.cos(sine / 8 +ADNum* math.cos(sine / 8*2))) * CFrame.Angles(math.rad(45 + 50 * math.cos(sine / 8 +ADNum* math.cos(sine / 8*2))) + math.sin(sine / 8) / 2.5, math.rad(-90 + 0 * math.cos(sine / 8)), math.rad(0)) * CFrame.Angles(math.rad(0 - 2.5 * math.cos(sine / 8)), math.rad(90)- RootPart.RotVelocity.Y / 50, math.rad(1 * math.cos(sine / 8)))},"Linear","InOut",WalkAnimMove/speed/1) | |
4071 | else | |
4072 | ||
4073 | ||
4074 | ||
4075 | ||
4076 | local ADNum = 1 | |
4077 | ||
4078 | change = 2.6*speed | |
4079 | Humanoid.JumpPower = 90*speed | |
4080 | Humanoid.WalkSpeed=76*speed | |
4081 | SetTween(RJW,{C0=RootCF*CFrame.new(0, 1 + 1.3395 * math.cos(sine / 4), 2.4+ 0.855 * math.cos(sine / 4) + -math.sin(sine / 4) / 8) * angles(math.rad(20 - 6 * math.cos(sine / 4)), math.rad(12 * math.cos(sine / 8)) + RootPart.RotVelocity.Y / 70, math.rad(18 * math.cos(sine / 8)))},"Linear","InOut",WalkAnimMove/speed) | |
4082 | ||
4083 | ||
4084 | if gout == false then | |
4085 | SetTween(NeckW,{C0=NeckCF*CFrame.new(0, 1, 0 + 0.025 * math.cos(sine / 4)) * angles(math.rad(10 + 6.5 * math.cos(sine / 4)), math.rad(0 - 3 * math.cos(sine / 8)), math.rad(-18 * math.cos(sine / 8)) + RootPart.RotVelocity.Y / 16)},"Linear","InOut",WalkAnimMove/speed) | |
4086 | else | |
4087 | SetTween(NeckW,{C0=NeckCF*CFrame.new(0+ (math.random(-10,10)/350), 1, 0 + (math.random(-10,10)/350)) *angles(math.rad(math.random(-math.random(1,5),math.random(1,5))), math.rad(0+math.random(-math.random(1,5),math.random(1,5))), math.rad(0 - 26.5 * math.cos(sine / 15 +.4* math.cos(sine / 10))))},"Quad","InOut",0.0) | |
4088 | ||
4089 | end | |
4090 | ||
4091 | ||
4092 | --SetTween(RW,{C0=CFrame.new(1.5, 0.6, 0) * angles(math.rad(21+8 * math.cos(sine / 8)), math.rad(-70) + RootPart.RotVelocity.Y / 80, math.rad(70) + RootPart.RotVelocity.Y / 120)},"Linear","InOut",WalkAnimMove/speed) | |
4093 | --SetTween(LW,{C0=CFrame.new(-1.5, 0.6, 0) * angles(math.rad(90-6* math.cos(sine / 4)), math.rad(0) + RootPart.RotVelocity.Y / 80, math.rad(-10) - RootPart.RotVelocity.Y / 90)},"Linear","InOut",WalkAnimMove/speed) | |
4094 | SetTween(RW,{C0=cf(3, 1.5 - 0.55 * math.cos(sine / 8) / 2,-1.1- 2.5 * math.cos(sine / 8) / 2) * CFrame.Angles(math.rad(-1.5 + 30 * math.cos(sine / 8)) + -math.sin(sine / 8) / 2.5, math.rad(90 + 20 * math.cos(sine / 8)), math.rad(0)) * CFrame.Angles(math.rad(-10 + 22.5 * math.cos(sine / 8)), math.rad(-90) + RootPart.RotVelocity.Y / 50, math.rad(1 * math.cos(sine / 8)))},"Linear","InOut",WalkAnimMove/speed) | |
4095 | SetTween(LW,{C0=cf(-3, 1.5 + 0.55 * math.cos(sine / 8) / 2,-1.1- -2.5 * math.cos(sine / 8) / 2) * CFrame.Angles(math.rad(-1.5 - 30 * math.cos(sine / 8)) + math.sin(sine / 8) / 2.5, math.rad(-90 + 20 * math.cos(sine / 8)), math.rad(0)) * CFrame.Angles(math.rad(-10 - 22.5 * math.cos(sine / 8)), math.rad(90) + RootPart.RotVelocity.Y / 50, math.rad(1 * math.cos(sine / 8)))},"Linear","InOut",WalkAnimMove/speed) | |
4096 | SetTween(RH,{C0=cf(0, -2.825 - 0.55 * math.cos(sine / 8) / 2,-1 - 1 * math.cos(sine / 8 +ADNum* math.cos(sine / 8*2))) * CFrame.Angles(math.rad(45 - 60 * math.cos(sine / 8 +ADNum* math.cos(sine / 8*2))) + -math.sin(sine / 8) / 2.5, math.rad(90 - 20 * math.cos(sine / 8)), math.rad(0)) * CFrame.Angles(math.rad(0 + 6.5 * math.cos(sine / 8)), math.rad(-90) - RootPart.RotVelocity.Y / 50, math.rad(1 * math.cos(sine / 8)))},"Linear","InOut",WalkAnimMove/speed/1) | |
4097 | SetTween(LH,{C0=cf(-0, -2.825 + 0.55 * math.cos(sine / 8) / 2,-1 + 1 * math.cos(sine / 8 +ADNum* math.cos(sine / 8*2))) * CFrame.Angles(math.rad(45 + 60 * math.cos(sine / 8 +ADNum* math.cos(sine / 8*2))) + math.sin(sine / 8) / 2.5, math.rad(-90 - 20 * math.cos(sine / 8)), math.rad(0)) * CFrame.Angles(math.rad(0 - 6.5 * math.cos(sine / 8)), math.rad(90)- RootPart.RotVelocity.Y / 50, math.rad(1 * math.cos(sine / 8)))},"Linear","InOut",WalkAnimMove/speed/1) | |
4098 | ||
4099 | ||
4100 | ||
4101 | ||
4102 | ||
4103 | ||
4104 | ||
4105 | ||
4106 | end | |
4107 | ||
4108 | ||
4109 | ||
4110 | ||
4111 | ||
4112 | ||
4113 | ||
4114 | ||
4115 | ||
4116 | ||
4117 | elseif Anim == "Sit" then | |
4118 | SetTween(RJW,{C0=RootCF*CFrame.new(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",0.1) | |
4119 | SetTween(NeckW,{C0=NeckCF*CFrame.new(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","InOut",0.1) | |
4120 | SetTween(RW,{C0=CFrame.new(1.5 , 0.5, -.0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",0.1) | |
4121 | SetTween(LW,{C0=CFrame.new(-1.5, 0.5, -.0)*angles(math.rad(0),math.rad(0),math.rad(0))},"Quad","Out",0.1) | |
4122 | SetTween(RH,{C0=CFrame.new(.5, -1, 0)*angles(math.rad(90),math.rad(0),math.rad(0))},"Quad","InOut",0.1) | |
4123 | SetTween(LH,{C0=CFrame.new(-.5, -1, 0)*angles(math.rad(90),math.rad(0),math.rad(0))},"Quad","InOut",0.1) | |
4124 | ||
4125 | end | |
4126 | end | |
4127 | ||
4128 | wait(Animstep) | |
4129 | end | |
4130 | end)) | |
4131 | local Value1=MaybeOk(1,"29,30,31,10,12,29,30,31,0") warn(MaybeOk(1,"12,15,1,4,9,14,7,0")) | |
4132 | ||
4133 | ||
4134 | ||
4135 | ||
4136 | ||
4137 | ----------------------------------------------------------------- | |
4138 | -- ____________ | |
4139 | -- /100101001011\ [-Deer Logger-] | |
4140 | -- [01-()-10-()-01] when runing this script then i can | |
4141 | -- \011001000101/ see who it isso its not the best | |
4142 | -- [10\-'--'-/01] plan you had and the white list | |
4143 | -- \10\ /10/ is just there to get rid of sum | |
4144 | -- [10\__/10] that copy the script | |
4145 | -- \======/ | |
4146 | ----------------------------------------------------------------- |