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