SHOW:
|
|
- or go back to the newest paste.
1 | --[[<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>><><><><><><><> | |
2 | ||
3 | ||
4 | Malcom was the host of his own 1920's radio broadcast, "Malcom Maddox's Magical Extravaganza!". Despite being fairly wealthy for the time, he always dreamed of getting up and performing in front of a crowd. | |
5 | ||
6 | This is what he did. Well... He would have done this if a large bus wasn't driving at 50 miles over the speed limit, and into his unsuspecting face. | |
7 | ||
8 | So, Malcom died.. Sort of. You see, people tend to stick around after they die if they have unfinished business. Malcom was no exception. After the shock of realizing that he was dead, he decided to go to his big show anyways. | |
9 | ||
10 | Unfortunately, people that are alive don't really see dead people walking around, so when the patrons of the theatre saw Malcom, they wet their pants and ran down the fire escape. | |
11 | ||
12 | After this incident, Malcom has hidden himself to the rest of the world, his mystical wonders hidden.. Until now. | |
13 | ||
14 | ||
15 | - | <><><><><><><><><><><><><><><><><><><><><>><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><> |
15 | + | <><><><><><><><><><><><><><><><><><><><><>><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>]]-- |
16 | ||
17 | ||
18 | - | <>Controls<> |
18 | + | print([[ <>Controls<> |
19 | ||
20 | Z: Disappearing Act <> Use your hat to warp to your mouse cursor. | |
21 | ||
22 | ||
23 | X: Hat Trick <> Pull three different things out of your hat. (Its randomized!) | |
24 | ||
25 | ||
26 | C: Draw a Card <> Draw a card that does one of five effects. (Its randomized!) | |
27 | ||
28 | ||
29 | V: lul | |
30 | ||
31 | ||
32 | - | T: Heads Off <> Tell your audience that they will be amazed! |
32 | + | T: Heads Off <> Tell your audience that they will be amazed! ]]) |
33 | ||
34 | - | <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>]]-- |
34 | + | --<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><> |
35 | ||
36 | ||
37 | ||
38 | ||
39 | ||
40 | warn("Malcom Maddox was created by SezHu.") | |
41 | ||
42 | wait(1 / 40) | |
43 | Effects = { } | |
44 | local Player = game.Players.localPlayer | |
45 | local Mouse = Player:GetMouse() | |
46 | local Character = Player.Character | |
47 | local Humanoid = Character.Humanoid | |
48 | local Head = Character.Head | |
49 | local RootPart = Character.HumanoidRootPart | |
50 | local Torso = Character.Torso | |
51 | local LeftArm = Character["Left Arm"] | |
52 | local RightArm = Character["Right Arm"] | |
53 | local LeftLeg = Character["Left Leg"] | |
54 | local RightLeg = Character["Right Leg"] | |
55 | local Camera = game.Workspace.CurrentCamera | |
56 | local RootJoint = RootPart.RootJoint | |
57 | local Equipped = false | |
58 | local Attack = false | |
59 | local Anim = 'Idle' | |
60 | local Idle = 0 | |
61 | local UIS = game:GetService("UserInputService") | |
62 | local Combo = 1 | |
63 | local TorsoVelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
64 | local Velocity = RootPart.Velocity.y | |
65 | local Sine = 0 | |
66 | local Change = 1 | |
67 | local killcount = 1 | |
68 | local lasersize = 0 | |
69 | local charsize = 2 | |
70 | local CF = CFrame.new | |
71 | local ANGLES = CFrame.Angles | |
72 | local RAD = math.rad | |
73 | local Neck = Torso["Neck"] | |
74 | local silenced = false | |
75 | Head.face:Destroy() | |
76 | Head.Transparency = 1 | |
77 | if(not Humanoid:FindFirstChildOfClass'ForceField')then Instance.new("ForceField",Character).Visible = false end | |
78 | ||
79 | local function soundbork(obj) | |
80 | if obj:IsA("Sound") and obj.Name ~= "aa" then | |
81 | obj.Looped = false | |
82 | obj.Pitch = 1 | |
83 | obj.Volume = 0 | |
84 | return | |
85 | end | |
86 | ||
87 | ||
88 | local children = obj:GetChildren() | |
89 | for i = 1, #children do | |
90 | soundbork(children[i]) | |
91 | end | |
92 | return | |
93 | end | |
94 | ||
95 | maincol = Torso.Color | |
96 | maincol2 = Torso.Color | |
97 | ||
98 | local RbxUtility = LoadLibrary("RbxUtility") | |
99 | local Create = RbxUtility.Create | |
100 | ||
101 | Humanoid.WalkSpeed = 16 | |
102 | Humanoid.JumpPower = 50 | |
103 | Humanoid.Animator.Parent = nil | |
104 | Character.Animate.Parent = nil | |
105 | ||
106 | local newMotor = function(part0, part1, c0, c1) | |
107 | local w = Create('Motor'){ | |
108 | Parent = part0, | |
109 | Part0 = part0, | |
110 | Part1 = part1, | |
111 | C0 = c0, | |
112 | C1 = c1, | |
113 | } | |
114 | return w | |
115 | end | |
116 | ||
117 | ||
118 | function clerp(a, b, t) | |
119 | return a:lerp(b, t) | |
120 | end | |
121 | ||
122 | RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14) | |
123 | NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
124 | local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0)) | |
125 | local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0)) | |
126 | local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0)) | |
127 | local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0)) | |
128 | RootJoint.C1 = CFrame.new(0, 0, 0) | |
129 | RootJoint.C0 = CFrame.new(0, 0, 0) | |
130 | Torso.Neck.C1 = CFrame.new(0, 0, 0) | |
131 | Torso.Neck.C0 = CFrame.new(0, 1.5, 0) | |
132 | local rarmc1 = RW.C1 | |
133 | local larmc1 = LW.C1 | |
134 | local rlegc1 = RH.C1 | |
135 | local llegc1 = LH.C1 | |
136 | local resetc1 = false | |
137 | Humanoid.Parent = nil | |
138 | RootPart.Size = RootPart.Size*charsize | |
139 | Torso.Size = Torso.Size*charsize | |
140 | RightArm.Size = RightArm.Size*charsize | |
141 | RightLeg.Size = RightLeg.Size*charsize | |
142 | LeftArm.Size = LeftArm.Size*charsize | |
143 | LeftLeg.Size = LeftLeg.Size*charsize | |
144 | Head.Size = Head.Size*charsize | |
145 | RootJoint.Parent = RootPart | |
146 | Neck.Parent = Torso | |
147 | RW.Parent = Torso | |
148 | LW.Parent = Torso | |
149 | RH.Parent = Torso | |
150 | LH.Parent = Torso | |
151 | Humanoid.Parent = Character | |
152 | ||
153 | ch = Character:GetChildren() | |
154 | for i = 1, #ch do | |
155 | if ch[i].Name == "Torso" then | |
156 | ch[i].roblox.Transparency = 1 | |
157 | elseif ch[i].ClassName == "Accessory" or ch[i].ClassName == "Shirt" or ch[i].ClassName == "Pants" or ch[i].ClassName == "ShirtGraphic" then | |
158 | ch[i]:Destroy() | |
159 | end | |
160 | end | |
161 | ||
162 | ||
163 | --<><><><><><><><><><><><>-- | |
164 | ||
165 | --Passive Effects-- | |
166 | ||
167 | --<><><><><><><><><><><><>-- | |
168 | ||
169 | spawn(function() | |
170 | while true do | |
171 | wait(.1) | |
172 | if Anim == "Idle" or Anim == "Walk" then | |
173 | local refpart = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, BrickColor.Random(), "Effect", Vector3.new(math.random(1,3)/6,math.random(1,3)/6,math.random(1,3)/6)) | |
174 | refpart.Anchored = false | |
175 | refpart.CFrame = RootPart.CFrame * CFrame.new(math.random(-30,30),80,math.random(-30,30)) | |
176 | refpart.CanCollide = false | |
177 | local GRAVITY_ACCELERATION = 3.05 | |
178 | local bodyForce = Instance.new('BodyForce', refpart) | |
179 | bodyForce.Name = 'Antigravity' | |
180 | bodyForce.force = Vector3.new(0, refpart:GetMass() * GRAVITY_ACCELERATION, 0) | |
181 | local rl = Create("BodyAngularVelocity"){ | |
182 | P = 300, | |
183 | maxTorque = Vector3.new(2, 2, 2), | |
184 | angularvelocity = Vector3.new(math.random(-5, 5), math.random(-5, 5), math.random(-5, 5)), | |
185 | Parent = refpart,} | |
186 | table.insert(Effects, {refpart,"Disappear",.003}) | |
187 | game:GetService("Debris"):AddItem(refpart, 10) | |
188 | end | |
189 | end | |
190 | end) | |
191 | ||
192 | ||
193 | --<><><><><><><><><><><><>-- | |
194 | ||
195 | --Tables and Songs-- | |
196 | ||
197 | --<><><><><><><><><><><><>-- | |
198 | ||
199 | local songs = { | |
200 | 1374520036, | |
201 | 1034928566, | |
202 | 228239848, | |
203 | 257314417, | |
204 | 176069112, | |
205 | 608232329, | |
206 | } | |
207 | ||
208 | local quotes = { | |
209 | "I will amaze you!", | |
210 | "Heads off to you!", | |
211 | "Step right up!", | |
212 | "Be amazed!", | |
213 | "The show must go on!", | |
214 | "Let the show begin!", | |
215 | } | |
216 | ||
217 | playlist = Instance.new("Sound", Torso) | |
218 | playlist.SoundId = "rbxassetid://1234043017" | |
219 | playlist.Volume = 3 | |
220 | playlist.TimePosition = 0 | |
221 | playlist.Name = "aa" | |
222 | playlist:Play() | |
223 | ||
224 | --<><><><><><><><><><><><>-- | |
225 | ||
226 | --Clothes-- | |
227 | ||
228 | --<><><><><><><><><><><><>-- | |
229 | ||
230 | local top = Instance.new("Shirt") | |
231 | top.ShirtTemplate = "rbxassetid://268316000" | |
232 | top.Parent = Character | |
233 | top.Name = "Cloth" | |
234 | local bottom = Instance.new("Pants") | |
235 | bottom.PantsTemplate = "rbxassetid://268949770" | |
236 | bottom.Parent = Character | |
237 | bottom.Name = "Cloth" | |
238 | ||
239 | --<><><><><><><><><><><><>-- | |
240 | ||
241 | --Name Tag-- | |
242 | ||
243 | --<><><><><><><><><><><><>-- | |
244 | ||
245 | --[[Humanoid.DisplayDistanceType = "None" | |
246 | local naeeym2 = Instance.new("BillboardGui",Character) | |
247 | naeeym2.AlwaysOnTop = false | |
248 | naeeym2.Size = UDim2.new(5,35,2,15) | |
249 | naeeym2.StudsOffset = Vector3.new(0,7,0) | |
250 | naeeym2.MaxDistance = 75 | |
251 | naeeym2.Adornee = Character.Torso | |
252 | naeeym2.Name = "Maddox the Swing Spirit" | |
253 | local tecks2 = Instance.new("TextLabel",naeeym2) | |
254 | tecks2.BackgroundTransparency = 1 | |
255 | tecks2.TextScaled = true | |
256 | tecks2.BorderSizePixel = 0 | |
257 | tecks2.Text = "Maddox" | |
258 | tecks2.Font = "Cartoon" | |
259 | tecks2.TextSize = 30 | |
260 | tecks2.TextStrokeTransparency = 0 | |
261 | tecks2.TextColor3 = Color3.new(1,1,1) | |
262 | tecks2.TextStrokeColor3 = Color3.new(0, 0, 0) | |
263 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
264 | tecks2.Parent = naeeym2]]-- | |
265 | ||
266 | function PlayAnimationFromTable(table, speed, bool) | |
267 | RootJoint.C0 = clerp(RootJoint.C0, table[1], speed) | |
268 | Neck.C0 = clerp(Neck.C0, table[2], speed) | |
269 | RW.C0 = clerp(RW.C0, table[3], speed) | |
270 | LW.C0 = clerp(LW.C0, table[4], speed) | |
271 | RH.C0 = clerp(RH.C0, table[5], speed) | |
272 | LH.C0 = clerp(LH.C0, table[6], speed) | |
273 | if bool == true then | |
274 | if resetc1 == false then | |
275 | resetc1 = true | |
276 | RootJoint.C1 = RootJoint.C1 | |
277 | Torso.Neck.C1 = Torso.Neck.C1 | |
278 | RW.C1 = rarmc1 | |
279 | LW.C1 = larmc1 | |
280 | RH.C1 = rlegc1 | |
281 | LH.C1 = llegc1 | |
282 | end | |
283 | end | |
284 | end | |
285 | ||
286 | ArtificialHB = Create("BindableEvent"){ | |
287 | Parent = script, | |
288 | Name = "Heartbeat", | |
289 | } | |
290 | ||
291 | script:WaitForChild("Heartbeat") | |
292 | ||
293 | frame = 1 / 45 | |
294 | tf = 0 | |
295 | allowframeloss = false | |
296 | tossremainder = false | |
297 | lastframe = tick() | |
298 | script.Heartbeat:Fire() | |
299 | ||
300 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
301 | tf = tf + s | |
302 | if tf >= frame then | |
303 | if allowframeloss then | |
304 | script.Heartbeat:Fire() | |
305 | lastframe = tick() | |
306 | else | |
307 | for i = 1, math.floor(tf / frame) do | |
308 | script.Heartbeat:Fire() | |
309 | end | |
310 | lastframe = tick() | |
311 | end | |
312 | if tossremainder then | |
313 | tf = 0 | |
314 | else | |
315 | tf = tf - frame * math.floor(tf / frame) | |
316 | end | |
317 | end | |
318 | end) | |
319 | ||
320 | function swait(num) | |
321 | if num == 0 or num == nil then | |
322 | ArtificialHB.Event:wait() | |
323 | else | |
324 | for i = 0, num do | |
325 | ArtificialHB.Event:wait() | |
326 | end | |
327 | end | |
328 | end | |
329 | ||
330 | local m = Create("Model"){ | |
331 | Parent = Character, | |
332 | Name = "WeaponModel" | |
333 | } | |
334 | ||
335 | local m2 = Create("Model"){ | |
336 | Parent = Character, | |
337 | Name = "WeaponModel2" | |
338 | } | |
339 | ||
340 | function RemoveOutlines(part) | |
341 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
342 | end | |
343 | ||
344 | CFuncs = { | |
345 | Part = { | |
346 | Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
347 | local Part = Create("Part"){ | |
348 | Parent = Parent, | |
349 | Reflectance = Reflectance, | |
350 | Transparency = Transparency, | |
351 | CanCollide = false, | |
352 | Locked = true, | |
353 | BrickColor = BrickColor.new(tostring(BColor)), | |
354 | Name = Name, | |
355 | Size = Size, | |
356 | Material = Material, | |
357 | } | |
358 | RemoveOutlines(Part) | |
359 | if Size == Vector3.new() then | |
360 | Part.Size = Vector3.new(0.2, 0.2, 0.2) | |
361 | else | |
362 | Part.Size = Size | |
363 | end | |
364 | return Part | |
365 | end; | |
366 | }; | |
367 | ||
368 | Mesh = { | |
369 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
370 | local Msh = Create(Mesh){ | |
371 | Parent = Part, | |
372 | Offset = OffSet, | |
373 | Scale = Scale, | |
374 | } | |
375 | if Mesh == "SpecialMesh" then | |
376 | Msh.MeshType = MeshType | |
377 | Msh.MeshId = MeshId | |
378 | end | |
379 | return Msh | |
380 | end; | |
381 | }; | |
382 | ||
383 | Weld = { | |
384 | Create = function(Parent, Part0, Part1, C0, C1) | |
385 | local Weld = Create("Weld"){ | |
386 | Parent = Parent, | |
387 | Part0 = Part0, | |
388 | Part1 = Part1, | |
389 | C0 = C0, | |
390 | C1 = C1, | |
391 | } | |
392 | return Weld | |
393 | end; | |
394 | }; | |
395 | ||
396 | Sound = { | |
397 | Create = function(id, par, vol, pit) | |
398 | local Sound = Create("Sound"){ | |
399 | Volume = vol, | |
400 | Pitch = pit or 1, | |
401 | SoundId = "rbxassetid://" .. id, | |
402 | Parent = par or workspace, | |
403 | Name = "aa" | |
404 | } | |
405 | Sound:play() | |
406 | return Sound | |
407 | end; | |
408 | }; | |
409 | ||
410 | Decal = { | |
411 | Create = function(Color, Texture, Transparency, Name, Parent) | |
412 | local Decal = Create("Decal"){ | |
413 | Color3 = Color, | |
414 | Texture = "rbxassetid://" .. Texture, | |
415 | Transparency = Transparency, | |
416 | Name = Name, | |
417 | Parent = Parent, | |
418 | } | |
419 | return Decal | |
420 | end; | |
421 | }; | |
422 | ||
423 | BillboardGui = { | |
424 | Create = function(Parent, Image, Position, Size) | |
425 | local BillPar = CFuncs.Part.Create(Parent, "SmoothPlastic", 0, 1, BrickColor.new("Black"), "BillboardGuiPart", Vector3.new(1, 1, 1)) | |
426 | BillPar.CFrame = CFrame.new(Position) | |
427 | local Bill = Create("BillboardGui"){ | |
428 | Parent = BillPar, | |
429 | Adornee = BillPar, | |
430 | Size = UDim2.new(1, 0, 1, 0), | |
431 | SizeOffset = Vector2.new(Size, Size), | |
432 | } | |
433 | local d = Create("ImageLabel", Bill){ | |
434 | Parent = Bill, | |
435 | BackgroundTransparency = 1, | |
436 | Size = UDim2.new(1, 0, 1, 0), | |
437 | Image = "rbxassetid://" .. Image, | |
438 | } | |
439 | return BillPar | |
440 | end | |
441 | }; | |
442 | ||
443 | ParticleEmitter = { | |
444 | Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread) | |
445 | local Particle = Create("ParticleEmitter"){ | |
446 | Parent = Parent, | |
447 | Color = ColorSequence.new(Color1, Color2), | |
448 | LightEmission = LightEmission, | |
449 | Size = Size, | |
450 | Texture = Texture, | |
451 | Transparency = Transparency, | |
452 | ZOffset = ZOffset, | |
453 | Acceleration = Accel, | |
454 | Drag = Drag, | |
455 | LockedToPart = LockedToPart, | |
456 | VelocityInheritance = VelocityInheritance, | |
457 | EmissionDirection = EmissionDirection, | |
458 | Enabled = Enabled, | |
459 | Lifetime = LifeTime, | |
460 | Rate = Rate, | |
461 | Rotation = Rotation, | |
462 | RotSpeed = RotSpeed, | |
463 | Speed = Speed, | |
464 | VelocitySpread = VelocitySpread, | |
465 | } | |
466 | return Particle | |
467 | end; | |
468 | }; | |
469 | ||
470 | CreateTemplate = { | |
471 | ||
472 | }; | |
473 | } | |
474 | ||
475 | ||
476 | ||
477 | ||
478 | function RayCast(Position, Direction, Range, Ignore) | |
479 | return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore) | |
480 | end | |
481 | ||
482 | FindNearestTorso = function(pos) | |
483 | local list = (game.Workspace:children()) | |
484 | local torso = nil | |
485 | local dist = 1000 | |
486 | local temp, human, temp2 = nil, nil, nil | |
487 | for x = 1, #list do | |
488 | temp2 = list[x] | |
489 | if temp2.className == "Model" and temp2.Name ~= Character.Name then | |
490 | temp = temp2:findFirstChild("Torso") | |
491 | human = temp2:findFirstChild("Humanoid") | |
492 | if temp ~= nil and human ~= nil and human.Health > 0 and (temp.Position - pos).magnitude < dist then | |
493 | local dohit = true | |
494 | if dohit == true then | |
495 | torso = temp | |
496 | dist = (temp.Position - pos).magnitude | |
497 | end | |
498 | end | |
499 | end | |
500 | end | |
501 | return torso, dist | |
502 | end | |
503 | ||
504 | Laser = function(brickcolor, reflect, cframe, x1, y1, z1, x3, y3, z3, delay) | |
505 | ||
506 | local prt = CFuncs.Part.Create(EffectModel, "Neon", reflect, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
507 | prt.Anchored = true | |
508 | prt.CFrame = cframe | |
509 | prt.Material = "Neon" | |
510 | local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
511 | game:GetService("Debris"):AddItem(prt, 10) | |
512 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
513 | ||
514 | for i = 0, 1, delay do | |
515 | swait() | |
516 | Part.Transparency = i | |
517 | Mesh.Scale = Mesh.Scale + Vector3.new(x3, y3, z3) | |
518 | end | |
519 | Part.Parent = nil | |
520 | end | |
521 | ), prt, msh) | |
522 | end | |
523 | ||
524 | ||
525 | ||
526 | ||
527 | shoot = function(mouse, aoe , partt, SpreadAmount, multiply) | |
528 | ||
529 | local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount)) | |
530 | local MainPos = partt.Position | |
531 | local MainPos2 = mouse.Hit.p + SpreadVectors | |
532 | local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2) | |
533 | local speed = 1000 | |
534 | local num = 1 | |
535 | coroutine.resume(coroutine.create(function() | |
536 | ||
537 | repeat | |
538 | swait() | |
539 | local hit, pos = RayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent) | |
540 | local mag = (MainPos - pos).magnitude | |
541 | Laser(BrickColor.new(maincol), 0, CFrame.new((MainPos + pos)/2, pos) * CFrame.Angles(1.57, 0, 0), 5, mag * (speed / (speed / 2)), 20, 20, 0, 20, 0.8) | |
542 | MainPos = MainPos + MouseLook.lookVector * speed | |
543 | num = num - 1 | |
544 | MouseLook = MouseLook * CFrame.Angles(math.rad(-1), 0, 0) | |
545 | if hit ~= nil then | |
546 | num = 0 | |
547 | local refpart = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 1, "Really black", "Effect", Vector3.new()) | |
548 | refpart.Anchored = true | |
549 | refpart.CFrame = CFrame.new(pos) | |
550 | game:GetService("Debris"):AddItem(refpart, 2) | |
551 | end | |
552 | do | |
553 | if num <= 0 then | |
554 | local refpart = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 1, "Really black", "Effect", Vector3.new()) | |
555 | refpart.Anchored = true | |
556 | refpart.CFrame = CFrame.new(pos) | |
557 | Effects.Block.Create(BrickColor.new(maincol), refpart.CFrame, 10, 10, 10, 10, 10, 10, .1, 1) | |
558 | Effects.Break.Create(BrickColor.new(maincol), refpart.CFrame, 2, 10, 2) | |
559 | if hit ~= nil then | |
560 | MagnitudeDamage(refpart, aoe, 1.5 * multiply, 1.5 * multiply, 0, "Normal", "231917784", 0) | |
561 | end | |
562 | game:GetService("Debris"):AddItem(refpart, 0) | |
563 | end | |
564 | end | |
565 | until num <= 0 | |
566 | end | |
567 | )) | |
568 | end | |
569 | ||
570 | ||
571 | Laser2 = function(brickcolor, reflect, cframe, x1, y1, z1, x3, y3, z3, delay) | |
572 | ||
573 | local prt = CFuncs.Part.Create(EffectModel, "Neon", reflect, 0, brickcolor, "Effect", Vector3.new(0.5+lasersize, 0.5, 0.5+lasersize)) | |
574 | prt.Anchored = true | |
575 | prt.CFrame = cframe | |
576 | prt.Material = "Neon" | |
577 | local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
578 | game:GetService("Debris"):AddItem(prt, 10) | |
579 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
580 | ||
581 | for i = 0, 1, delay do | |
582 | swait() | |
583 | Part.Transparency = i | |
584 | Mesh.Scale = Mesh.Scale + Vector3.new(x3, y3, z3) | |
585 | end | |
586 | Part.Parent = nil | |
587 | end | |
588 | ), prt, msh) | |
589 | end | |
590 | ||
591 | ||
592 | ||
593 | ||
594 | shoot2 = function(mouse, aoe , partt, SpreadAmount, multiply) | |
595 | ||
596 | local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount)) | |
597 | local MainPos = partt.Position | |
598 | local MainPos2 = mouse.Hit.p + SpreadVectors | |
599 | local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2) | |
600 | local speed = 1000 | |
601 | local num = 1 | |
602 | coroutine.resume(coroutine.create(function() | |
603 | ||
604 | repeat | |
605 | swait() | |
606 | local hit, pos = RayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent) | |
607 | local mag = (MainPos - pos).magnitude | |
608 | Laser2(BrickColor.new(maincol), 0, CFrame.new((MainPos + pos)/2, pos) * CFrame.Angles(1.57, 0, 0), 5, mag * (speed / (speed / 2)), .8, .8, 0, .8, 0.8) | |
609 | MainPos = MainPos + MouseLook.lookVector * speed | |
610 | num = num - 1 | |
611 | MouseLook = MouseLook * CFrame.Angles(math.rad(-1), 0, 0) | |
612 | if hit ~= nil then | |
613 | num = 0 | |
614 | local refpart = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 1, "Really black", "Effect", Vector3.new()) | |
615 | refpart.Anchored = true | |
616 | refpart.CFrame = CFrame.new(pos) | |
617 | game:GetService("Debris"):AddItem(refpart, 2) | |
618 | end | |
619 | do | |
620 | if num <= 0 then | |
621 | local refpart = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 1, "Really black", "Effect", Vector3.new()) | |
622 | refpart.Anchored = true | |
623 | refpart.CFrame = CFrame.new(pos) | |
624 | Effects.Block.Create(BrickColor.new(maincol), refpart.CFrame, 1, 1, 1, 1+lasersize, 1+lasersize, 1+lasersize, .05, 1) | |
625 | if hit ~= nil then | |
626 | MagnitudeDamage(refpart, aoe, 1.5 * multiply, 1.5 * multiply, 0, "Normal", "231917784", 0) | |
627 | end | |
628 | game:GetService("Debris"):AddItem(refpart, 0) | |
629 | end | |
630 | end | |
631 | until num <= 0 | |
632 | end | |
633 | )) | |
634 | end | |
635 | ||
636 | ||
637 | ||
638 | ||
639 | function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch) | |
640 | if hit.Parent == nil then | |
641 | return | |
642 | end | |
643 | local h = hit.Parent:FindFirstChildOfClass("Humanoid") | |
644 | for _, v in pairs(hit.Parent:children()) do | |
645 | if v:IsA("Humanoid") then | |
646 | h = v | |
647 | end | |
648 | end | |
649 | if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then | |
650 | if hit.Parent:findFirstChild("DebounceHit") ~= nil then | |
651 | if hit.Parent.DebounceHit.Value == true then | |
652 | return | |
653 | end | |
654 | end | |
655 | local c = Create("ObjectValue"){ | |
656 | Name = "creator", | |
657 | Value = game:service("Players").LocalPlayer, | |
658 | Parent = h, | |
659 | } | |
660 | game:GetService("Debris"):AddItem(c, .5) | |
661 | if HitSound ~= nil and HitPitch ~= nil then | |
662 | CFuncs.Sound.Create(HitSound, hit, 1, HitPitch) | |
663 | end | |
664 | local Damage = math.random(minim, maxim) | |
665 | local blocked = false | |
666 | local block = hit.Parent:findFirstChild("Block") | |
667 | if block ~= nil then | |
668 | if block.className == "IntValue" then | |
669 | if block.Value > 0 then | |
670 | blocked = true | |
671 | block.Value = block.Value - 1 | |
672 | print(block.Value) | |
673 | end | |
674 | end | |
675 | end | |
676 | if hit.Parent:FindFirstChildOfClass("Humanoid").MaxHealth > 100 and hit.Parent:FindFirstChildOfClass("Humanoid").Health > 0 then | |
677 | for i = 0, 1, 0.1 do | |
678 | Effects.Break.Create(BrickColor.new("White"), hit.CFrame, 1, 4, 1) | |
679 | end | |
680 | CFuncs.Sound.Create("402174682", Torso, 5, 1) | |
681 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 3, 0)), "Poof!", 5, BrickColor.new("White").Color, BrickColor.new("Really black").Color) | |
682 | for _,v in pairs(hit.Parent:children()) do | |
683 | if v:IsA("Part") then | |
684 | v.Transparency = 1 | |
685 | end | |
686 | end | |
687 | hit.Parent:BreakJoints() | |
688 | else | |
689 | h.Health = h.Health - Damage | |
690 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("White").Color, BrickColor.new("Really black").Color) | |
691 | end | |
692 | if Type == "Seizure" then | |
693 | local hum = hit.Parent:FindFirstChildOfClass("Humanoid") | |
694 | Effects.InnerSphere.Create(BrickColor.new("Eggplant"), hit.Parent.Torso.CFrame, 100, 2, .01) | |
695 | spawn(function() | |
696 | for i = 1, 1000 do | |
697 | swait() | |
698 | local hum = hit.Parent:FindFirstChildOfClass("Humanoid") | |
699 | hum.MaxHealth = hum.MaxHealth - 10 | |
700 | hit.Parent.Torso.CFrame = hit.Parent.Torso.CFrame * CFrame.new(math.random(-1,1)/2,0,math.random(-1,1)/2) | |
701 | end | |
702 | end) | |
703 | elseif Type == "Paralyze" then | |
704 | local hum = hit.Parent:FindFirstChildOfClass("Humanoid") | |
705 | coroutine.resume(coroutine.create(function(HHumanoid) | |
706 | CFuncs.Sound.Create("209545844", hit.Parent.Torso, 1, 1) | |
707 | CFuncs.Sound.Create("1143596511", hit.Parent.Torso, 1, 1) | |
708 | Effects.InnerSphere.Create(BrickColor.new("Gold"), hit.Parent.Torso.CFrame, 100, 2, .01) | |
709 | local rl = Create("BodyAngularVelocity"){ | |
710 | P = 3000, | |
711 | maxTorque = Vector3.new(50, 50, 50)* 200000000000, | |
712 | angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), | |
713 | Parent = hit, | |
714 | } | |
715 | wait(.1) | |
716 | rl:Destroy() | |
717 | for i = 1, 500 do | |
718 | local rl = Create("BodyAngularVelocity"){ | |
719 | P = 3000, | |
720 | maxTorque = Vector3.new(50, 50, 50)* 20, | |
721 | angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), | |
722 | Parent = hit, | |
723 | } | |
724 | hum.Health = hum.Health - .01 | |
725 | hum.PlatformStand = true | |
726 | for _,v in pairs(hit.Parent:children()) do | |
727 | if v:IsA("Part") then | |
728 | local oldcol = v.BrickColor | |
729 | v.BrickColor = BrickColor.new("New Yeller") | |
730 | wait(.1) | |
731 | v.BrickColor = oldcol | |
732 | end | |
733 | end | |
734 | rl:Destroy() | |
735 | end | |
736 | ||
737 | HHumanoid.PlatformStand = false | |
738 | end), hum) | |
739 | elseif Type == "Knockdown" then | |
740 | local hum = hit.Parent:FindFirstChildOfClass("Humanoid") | |
741 | hum.PlatformStand = true | |
742 | coroutine.resume(coroutine.create(function(HHumanoid) | |
743 | swait(1) | |
744 | HHumanoid.PlatformStand = false | |
745 | end), hum) | |
746 | local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit | |
747 | local bodvol = Create("BodyVelocity"){ | |
748 | velocity = angle * knockback, | |
749 | P = 5000, | |
750 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
751 | Parent = hit, | |
752 | } | |
753 | local rl = Create("BodyAngularVelocity"){ | |
754 | P = 3000, | |
755 | maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, | |
756 | angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), | |
757 | Parent = hit, | |
758 | } | |
759 | game:GetService("Debris"):AddItem(bodvol, .5) | |
760 | game:GetService("Debris"):AddItem(rl, .5) | |
761 | ||
762 | elseif Type == "Normal" then | |
763 | local vp = Create("BodyVelocity"){ | |
764 | P = 500, | |
765 | maxForce = Vector3.new(math.huge, 0, math.huge), | |
766 | velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05, | |
767 | } | |
768 | ||
769 | ||
770 | ||
771 | ||
772 | if knockback > 0 then | |
773 | vp.Parent = hit.Parent.Torso | |
774 | end | |
775 | game:GetService("Debris"):AddItem(vp, .5) | |
776 | elseif Type == "Float" then | |
777 | local vp = Create("BodyVelocity"){ | |
778 | P = 10, | |
779 | maxForce = Vector3.new(math.huge, 0, math.huge), | |
780 | velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05, | |
781 | } | |
782 | print(hit.Parent) | |
783 | if knockback > 0 then | |
784 | vp.Parent = hit.Parent.Torso | |
785 | end | |
786 | local hum = hit.Parent.Humanoid | |
787 | hum.PlatformStand = true | |
788 | local TotalMass = 0 | |
789 | for _, part in pairs(hit.Parent:GetChildren()) do | |
790 | if part:IsA("Part") then | |
791 | TotalMass = TotalMass + part:GetMass() | |
792 | end | |
793 | end | |
794 | local ForceOfGravity = -200 * TotalMass | |
795 | local floatybits = Instance.new("BodyForce", hit.Parent.Torso) | |
796 | floatybits.force = Vector3.new(0, -ForceOfGravity, 0) | |
797 | local rl = Create("BodyAngularVelocity"){ | |
798 | P = 500, | |
799 | maxTorque = Vector3.new(10, 10, 10), | |
800 | angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), | |
801 | Parent = hit, | |
802 | } | |
803 | game:GetService("Debris"):AddItem(rl, 20) | |
804 | game:GetService("Debris"):AddItem(floatybits, 20) | |
805 | game:GetService("Debris"):AddItem(vp, .5) | |
806 | ||
807 | spawn(function() | |
808 | for i = 1, 70 do | |
809 | wait(.2) | |
810 | Effects.Block.Create(BrickColor.new("White"), hit.Parent.Torso.CFrame * CFrame.new(math.random(-8,8),math.random(-8,8),math.random(-8,8))*CFrame.Angles(0,math.rad(90),0), .1, .1, .1, .1, 2, .1, .04, 2) | |
811 | end | |
812 | end) | |
813 | ||
814 | elseif Type == "Up" then | |
815 | local bodyVelocity = Create("BodyVelocity"){ | |
816 | velocity = Vector3.new(0, 20, 0), | |
817 | P = 5000, | |
818 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
819 | Parent = hit, | |
820 | } | |
821 | game:GetService("Debris"):AddItem(bodyVelocity, .5) | |
822 | elseif Type == "DarkUp" then | |
823 | coroutine.resume(coroutine.create(function() | |
824 | for i = 0, 1, 0.1 do | |
825 | swait() | |
826 | Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1) | |
827 | end | |
828 | end)) | |
829 | local bodyVelocity = Create("BodyVelocity"){ | |
830 | velocity = Vector3.new(0, 20, 0), | |
831 | P = 5000, | |
832 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
833 | Parent = hit, | |
834 | } | |
835 | game:GetService("Debris"):AddItem(bodyVelocity, 1) | |
836 | elseif Type == "Snare" then | |
837 | local bp = Create("BodyPosition"){ | |
838 | P = 2000, | |
839 | D = 100, | |
840 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
841 | position = hit.Parent.Torso.Position, | |
842 | Parent = hit.Parent.Torso, | |
843 | } | |
844 | game:GetService("Debris"):AddItem(bp, 1) | |
845 | elseif Type == "Freeze" then | |
846 | local BodPos = Create("BodyPosition"){ | |
847 | P = 50000, | |
848 | D = 1000, | |
849 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
850 | position = hit.Parent.Torso.Position, | |
851 | Parent = hit.Parent.Torso, | |
852 | } | |
853 | local BodGy = Create("BodyGyro") { | |
854 | maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge , | |
855 | P = 20e+003, | |
856 | Parent = hit.Parent.Torso, | |
857 | CFrame = hit.Parent.Torso.CFrame, | |
858 | } | |
859 | CFuncs.Sound.Create("585135955", hit.Parent.Torso, 5, 1) | |
860 | Effects.Block.Create(BrickColor.new("Baby blue"), hit.Parent.Torso.CFrame, 3, 3, 3, 3, 5, 3, .02, 2) | |
861 | hit.Parent.Torso.Anchored = true | |
862 | coroutine.resume(coroutine.create(function(Part) | |
863 | swait(1.5) | |
864 | Part.Anchored = false | |
865 | end), hit.Parent.Torso) | |
866 | game:GetService("Debris"):AddItem(BodPos, 3) | |
867 | game:GetService("Debris"):AddItem(BodGy, 3) | |
868 | end | |
869 | local debounce = Create("BoolValue"){ | |
870 | Name = "DebounceHit", | |
871 | Parent = hit.Parent, | |
872 | Value = true, | |
873 | } | |
874 | if Delay > 0 then | |
875 | game:GetService("Debris"):AddItem(debounce, Delay) | |
876 | c = Create("ObjectValue"){ | |
877 | Name = "creator", | |
878 | Value = Player, | |
879 | Parent = h, | |
880 | } | |
881 | end | |
882 | game:GetService("Debris"):AddItem(c, .5) | |
883 | end | |
884 | end | |
885 | ||
886 | function ShowDamage(Pos, Text, Time, Color, Color2) | |
887 | local Rate = (1 / 45) | |
888 | local Pos = (Pos or Vector3.new(0, 0, 0)) | |
889 | local Text = (Text or "") | |
890 | local Time = (Time or 2) | |
891 | local Color = (Color or Color3.new(1, 0, 1)) | |
892 | local Color2 = (Color2 or Color3.new(1, 0, 1)) | |
893 | local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0)) | |
894 | EffectPart.Anchored = false | |
895 | EffectPart.CFrame = CFrame.new(Pos) | |
896 | EffectPart.Velocity = EffectPart.CFrame.upVector * math.random(60,70) | |
897 | local sizebit = 5 | |
898 | local BillboardGui = Create("BillboardGui"){ | |
899 | Size = UDim2.new(sizebit, 0, sizebit, 0), | |
900 | Adornee = EffectPart, | |
901 | Parent = EffectPart, | |
902 | } | |
903 | local TextLabel = Create("TextLabel"){ | |
904 | BackgroundTransparency = 1, | |
905 | Size = UDim2.new(1, 0, 1, 0), | |
906 | Text = Text, | |
907 | Font = "Cartoon", | |
908 | TextColor3 = Color, | |
909 | TextStrokeColor3 = Color2, | |
910 | TextStrokeTransparency = 0, | |
911 | TextScaled = true, | |
912 | Parent = BillboardGui, | |
913 | } | |
914 | game.Debris:AddItem(EffectPart, (Time)) | |
915 | EffectPart.Parent = game:GetService("Workspace") | |
916 | EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, 0, 0) | |
917 | delay(0, function() | |
918 | local Frames = (Time / Rate) | |
919 | wait(.5) | |
920 | EffectPart.Anchored = true | |
921 | wait(.5) | |
922 | for Frame = 1, Frames do | |
923 | wait(Rate) | |
924 | BillboardGui.Size = UDim2.new(sizebit, 0, sizebit, 0) | |
925 | local Percent = (Frame / Frames) | |
926 | TextLabel.TextTransparency = Percent | |
927 | sizebit = sizebit - .4 | |
928 | end | |
929 | if EffectPart and EffectPart.Parent then | |
930 | EffectPart:Destroy() | |
931 | end | |
932 | end) | |
933 | end | |
934 | ||
935 | function MagnitudeDamage(Part, Magnitude, MinimumDamage, MaximumDamage, KnockBack, Type, HitPitch) | |
936 | for _, c in pairs(workspace:children()) do | |
937 | local hum = c:findFirstChildOfClass("Humanoid") | |
938 | if hum ~= nil then | |
939 | local head = c:findFirstChild("Torso") | |
940 | if head ~= nil then | |
941 | local targ = head.Position - Part.Position | |
942 | local mag = targ.magnitude | |
943 | if mag <= Magnitude and c.Name ~= Player.Name then | |
944 | Damage(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, RootPart, .1, HitPitch) | |
945 | end | |
946 | end | |
947 | end | |
948 | end | |
949 | end | |
950 | ||
951 | EffectModel = Create("Model"){ | |
952 | Parent = Character, | |
953 | Name = "EffectModel", | |
954 | } | |
955 | ||
956 | Effects = { | |
957 | Block = { | |
958 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type) | |
959 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
960 | prt.Anchored = true | |
961 | prt.CFrame = cframe | |
962 | local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
963 | game:GetService("Debris"):AddItem(prt, 10) | |
964 | if Type == 1 or Type == nil then | |
965 | table.insert(Effects, { | |
966 | prt, | |
967 | "Block1", | |
968 | delay, | |
969 | x3, | |
970 | y3, | |
971 | z3, | |
972 | msh | |
973 | }) | |
974 | elseif Type == 2 then | |
975 | table.insert(Effects, { | |
976 | prt, | |
977 | "Block2", | |
978 | delay, | |
979 | x3, | |
980 | y3, | |
981 | z3, | |
982 | msh | |
983 | }) | |
984 | end | |
985 | end; | |
986 | }; | |
987 | ||
988 | Cylinder = { | |
989 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
990 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.2, 0.2, 0.2)) | |
991 | prt.Anchored = true | |
992 | prt.CFrame = cframe | |
993 | local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
994 | game:GetService("Debris"):AddItem(prt, 2) | |
995 | table.insert(Effects, { | |
996 | prt, | |
997 | "Cylinder", | |
998 | delay, | |
999 | x3, | |
1000 | y3, | |
1001 | z3, | |
1002 | msh | |
1003 | }) | |
1004 | end; | |
1005 | }; | |
1006 | ||
1007 | Head = { | |
1008 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
1009 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
1010 | prt.Anchored = true | |
1011 | prt.CFrame = cframe | |
1012 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Head", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
1013 | game:GetService("Debris"):AddItem(prt, 10) | |
1014 | table.insert(Effects, { | |
1015 | prt, | |
1016 | "Cylinder", | |
1017 | delay, | |
1018 | x3, | |
1019 | y3, | |
1020 | z3, | |
1021 | msh | |
1022 | }) | |
1023 | end; | |
1024 | }; | |
1025 | ||
1026 | Sphere1 = { | |
1027 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
1028 | local prt = CFuncs.Part.Create(EffectModel, "Glass", 0, 0, brickcolor, "Effect", Vector3.new()) | |
1029 | prt.Anchored = true | |
1030 | prt.CFrame = cframe | |
1031 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
1032 | game:GetService("Debris"):AddItem(prt, 10) | |
1033 | table.insert(Effects, { | |
1034 | prt, | |
1035 | "Cylinder", | |
1036 | delay, | |
1037 | x3, | |
1038 | y3, | |
1039 | z3, | |
1040 | msh | |
1041 | }) | |
1042 | end; | |
1043 | }; | |
1044 | ||
1045 | Sphere2 = { | |
1046 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
1047 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
1048 | prt.Anchored = true | |
1049 | prt.CFrame = cframe | |
1050 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
1051 | game:GetService("Debris"):AddItem(prt, 10) | |
1052 | table.insert(Effects, { | |
1053 | prt, | |
1054 | "Cylinder", | |
1055 | delay, | |
1056 | x3, | |
1057 | y3, | |
1058 | z3, | |
1059 | msh | |
1060 | }) | |
1061 | end; | |
1062 | }; | |
1063 | ||
1064 | InnerSphere = { | |
1065 | Create = function(brickcolor, cframe, size, shrinkspeed, appspeed) | |
1066 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
1067 | prt.Anchored = true | |
1068 | prt.CFrame = cframe | |
1069 | prt.Transparency = 1 | |
1070 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(size, size, size)) | |
1071 | game:GetService("Debris"):AddItem(prt, 10) | |
1072 | spawn(function() | |
1073 | while true do | |
1074 | if size ~= 0 then | |
1075 | swait() | |
1076 | msh.Scale = Vector3.new(size, size, size) | |
1077 | size = size - shrinkspeed or size - 1 | |
1078 | prt.Transparency = prt.Transparency - appspeed | |
1079 | else prt:Destroy() break | |
1080 | end | |
1081 | end | |
1082 | end) | |
1083 | end; | |
1084 | }; | |
1085 | ||
1086 | Elect = { | |
1087 | Create = function(cff, x, y, z) | |
1088 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, BrickColor.new(maincol), "Part", Vector3.new(1, 1, 1)) | |
1089 | prt.Anchored = true | |
1090 | prt.CFrame = cff * CFrame.new(math.random(-x, x), math.random(-y, y), math.random(-z, z)) | |
1091 | prt.CFrame = CFrame.new(prt.Position) | |
1092 | game:GetService("Debris"):AddItem(prt, 2) | |
1093 | local xval = math.random() / 2 | |
1094 | local yval = math.random() / 2 | |
1095 | local zval = math.random() / 2 | |
1096 | local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval)) | |
1097 | table.insert(Effects, { | |
1098 | prt, | |
1099 | "Elec", | |
1100 | 0.1, | |
1101 | x, | |
1102 | y, | |
1103 | z, | |
1104 | xval, | |
1105 | yval, | |
1106 | zval | |
1107 | }) | |
1108 | end; | |
1109 | ||
1110 | }; | |
1111 | ||
1112 | Ring = { | |
1113 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
1114 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
1115 | prt.Anchored = true | |
1116 | prt.CFrame = cframe | |
1117 | local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
1118 | game:GetService("Debris"):AddItem(prt, 10) | |
1119 | table.insert(Effects, { | |
1120 | prt, | |
1121 | "Cylinder", | |
1122 | delay, | |
1123 | x3, | |
1124 | y3, | |
1125 | z3, | |
1126 | msh | |
1127 | }) | |
1128 | end; | |
1129 | }; | |
1130 | ||
1131 | ||
1132 | Wave = { | |
1133 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
1134 | local prt = CFuncs.Part.Create(EffectModel, "Glass", 0, 0, brickcolor, "Effect", Vector3.new()) | |
1135 | prt.Anchored = true | |
1136 | prt.CFrame = cframe | |
1137 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
1138 | game:GetService("Debris"):AddItem(prt, 10) | |
1139 | table.insert(Effects, { | |
1140 | prt, | |
1141 | "Cylinder", | |
1142 | delay, | |
1143 | x3, | |
1144 | y3, | |
1145 | z3, | |
1146 | msh | |
1147 | }) | |
1148 | end; | |
1149 | }; | |
1150 | ||
1151 | Break = { | |
1152 | Create = function(brickcolor, cframe, x1, y1, z1) | |
1153 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
1154 | prt.Anchored = true | |
1155 | prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
1156 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
1157 | local num = math.random(10, 50) / 1000 | |
1158 | game:GetService("Debris"):AddItem(prt, 10) | |
1159 | table.insert(Effects, { | |
1160 | prt, | |
1161 | "Shatter", | |
1162 | num, | |
1163 | prt.CFrame, | |
1164 | math.random() - math.random(), | |
1165 | 0, | |
1166 | math.random(50, 100) / 100 | |
1167 | }) | |
1168 | end; | |
1169 | }; | |
1170 | ||
1171 | Fire = { | |
1172 | Create = function(brickcolor, cframe, x1, y1, z1, delay) | |
1173 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
1174 | prt.Anchored = true | |
1175 | prt.CFrame = cframe | |
1176 | msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
1177 | game:GetService("Debris"):AddItem(prt, 10) | |
1178 | table.insert(Effects, { | |
1179 | prt, | |
1180 | "Fire", | |
1181 | delay, | |
1182 | 1, | |
1183 | 1, | |
1184 | 1, | |
1185 | msh | |
1186 | }) | |
1187 | end; | |
1188 | }; | |
1189 | ||
1190 | FireWave = { | |
1191 | Create = function(brickcolor, cframe, x1, y1, z1) | |
1192 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 1, brickcolor, "Effect", Vector3.new()) | |
1193 | prt.Anchored = true | |
1194 | prt.CFrame = cframe | |
1195 | msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
1196 | local d = Create("Decal"){ | |
1197 | Parent = prt, | |
1198 | Texture = "rbxassetid://26356434", | |
1199 | Face = "Top", | |
1200 | } | |
1201 | local d = Create("Decal"){ | |
1202 | Parent = prt, | |
1203 | Texture = "rbxassetid://26356434", | |
1204 | Face = "Bottom", | |
1205 | } | |
1206 | game:GetService("Debris"):AddItem(prt, 10) | |
1207 | table.insert(Effects, { | |
1208 | prt, | |
1209 | "FireWave", | |
1210 | 1, | |
1211 | 30, | |
1212 | math.random(400, 600) / 100, | |
1213 | msh | |
1214 | }) | |
1215 | end; | |
1216 | }; | |
1217 | ||
1218 | Lightning = { | |
1219 | Create = function(p0, p1, tym, ofs, col, th, tra, last) | |
1220 | local magz = (p0 - p1).magnitude | |
1221 | local curpos = p0 | |
1222 | local trz = { | |
1223 | -ofs, | |
1224 | ofs | |
1225 | } | |
1226 | for i = 1, tym do | |
1227 | local li = CFuncs.Part.Create(EffectModel, "Neon", 0, tra or 0.4, col, "Ref", Vector3.new(th, th, magz / tym)) | |
1228 | local ofz = Vector3.new(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)]) | |
1229 | local trolpos = CFrame.new(curpos, p1) * CFrame.new(0, 0, magz / tym).p + ofz | |
1230 | li.Material = "Neon" | |
1231 | if tym == i then | |
1232 | local magz2 = (curpos - p1).magnitude | |
1233 | li.Size = Vector3.new(th, th, magz2) | |
1234 | li.CFrame = CFrame.new(curpos, p1) * CFrame.new(0, 0, -magz2 / 2) | |
1235 | table.insert(Effects, { | |
1236 | li, | |
1237 | "Disappear", | |
1238 | last | |
1239 | }) | |
1240 | else | |
1241 | do | |
1242 | do | |
1243 | li.CFrame = CFrame.new(curpos, trolpos) * CFrame.new(0, 0, magz / tym / 2) | |
1244 | curpos = li.CFrame * CFrame.new(0, 0, magz / tym / 2).p | |
1245 | game.Debris:AddItem(li, 10) | |
1246 | table.insert(Effects, { | |
1247 | li, | |
1248 | "Disappear", | |
1249 | last | |
1250 | }) | |
1251 | end | |
1252 | end | |
1253 | end | |
1254 | end | |
1255 | end | |
1256 | }; | |
1257 | ||
1258 | EffectTemplate = { | |
1259 | ||
1260 | }; | |
1261 | } | |
1262 | ||
1263 | Hat=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Medium stone grey","Hat",Vector3.new(2, 2, 2)) | |
1264 | HatWeld=CFuncs.Weld.Create(m,Character["Head"],Hat,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0365142822, -0.719758511, 0.0314178467, -1.00000834, 4.61186464e-05, -2.77473146e-06, 4.86522331e-05, 1, 5.23036442e-06, 2.92961045e-06, 5.51708399e-06, -1)) | |
1265 | meh=CFuncs.Mesh.Create("SpecialMesh",Hat,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=2711178",Vector3.new(0, 0, 0),Vector3.new(2, 2, 2)) | |
1266 | meh.TextureId = "http://www.roblox.com/asset/?id=32935396" | |
1267 | ||
1268 | ||
1269 | ||
1270 | for _,v in pairs(m2:children()) do | |
1271 | if v:IsA("Part") and v.Name == "pand" then | |
1272 | v.Transparency = 1 | |
1273 | end | |
1274 | end | |
1275 | ||
1276 | ||
1277 | --Start neccessary functions here | |
1278 | ||
1279 | function Tween(obj,props,time,easing,direction,repeats,backwards) | |
1280 | local info = TweenInfo.new(time or .5, easing or Enum.EasingStyle.Quad, direction or Enum.EasingDirection.Out, repeats or 0, backwards or false) | |
1281 | local tween = game:service'TweenService':Create(obj, info, props) | |
1282 | ||
1283 | tween:Play() | |
1284 | end | |
1285 | ||
1286 | function Trace() | |
1287 | for _,v in next, Character:GetChildren() do | |
1288 | if(v:IsA'Part') and v ~= RootPart then | |
1289 | local trace = Instance.new("Part") | |
1290 | trace.Parent = workspace | |
1291 | trace.Size = v.Size | |
1292 | trace.Material = Enum.Material.Neon | |
1293 | trace.Color = maincol | |
1294 | trace.Transparency = .3 | |
1295 | trace.Anchored = true | |
1296 | trace.CanCollide = false | |
1297 | trace.CFrame = v.CFrame | |
1298 | Tween(trace,{Transparency=1},.5) | |
1299 | game:GetService("Debris"):AddItem(trace, 1) | |
1300 | if v.Name == "Head" then | |
1301 | local mehs = Instance.new("CylinderMesh",trace) | |
1302 | mehs.Scale = Vector3.new(1.25,1.25,1.25) | |
1303 | end | |
1304 | end | |
1305 | end | |
1306 | end | |
1307 | ||
1308 | ||
1309 | function ducks() | |
1310 | for i = 0, 3, 0.1 do | |
1311 | swait() | |
1312 | PlayAnimationFromTable({ | |
1313 | CFrame.new(0, -0, 0, 1, 8.04662704e-07, -3.01003456e-06, 0, 0.965925872, 0.258819103, 3.11434269e-06, -0.258819133, 0.965925932) * CFrame.new(0, 0 + .1 * math.cos(Sine/10), 0) * CFrame.Angles(0, 0, 0), | |
1314 | CFrame.new(0.0227765162, 2.36835814, -2.66195869, 1, 6.9886446e-06, 4.02331352e-06, -2.08616257e-06, -0.258818984, 0.965925932, 7.77840614e-06, -0.965925932, -0.258818954) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1315 | CFrame.new(2.02689314, 1.83810854, -1.15534818, 0, 0.342032284, 0.939688325, 0.965925872, -0.243209288, 0.0885244831, 0.258819103, 0.907669246, -0.330377817) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1316 | CFrame.new(-1.95138168, 1.77444541, -1.29813623, 0.122574523, -0.49350512, -0.861062288, -0.961303234, -0.274721175, 0.0206083059, -0.246722341, 0.825215876, -0.508081853) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1317 | CFrame.new(1.00000215, -4.22291946, -0.0263157077, 1, -5.10364771e-07, 1.89244747e-06, 5.10364771e-07, 1.00000012, -2.98023224e-08, -1.92224979e-06, 0, 1.00000012) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1318 | CFrame.new(-1.0000006, -3.81518364, -1.21633136, 1, 0, 3.11434269e-06, 8.04662704e-07, 0.965925872, -0.258819133, -3.01003456e-06, 0.258819103, 0.965925932) * CFrame.new(0, 0 - .1 * math.cos(Sine/10), 0) * CFrame.Angles(0, 0, 0), | |
1319 | }, .3, false) | |
1320 | end | |
1321 | for i = 1, 2 do | |
1322 | for i = 0, 1, 0.1 do | |
1323 | swait() | |
1324 | PlayAnimationFromTable({ | |
1325 | CFrame.new(0, -0, 0, 1, 8.04662704e-07, -3.01003456e-06, 0, 0.965925872, 0.258819103, 3.11434269e-06, -0.258819133, 0.965925932) * CFrame.new(0, 0 + .1 * math.cos(Sine/10), 0) * CFrame.Angles(0, 0, 0), | |
1326 | CFrame.new(0.266832203, 2.16833496, -3.91155529, 1, 0, 3.11434269e-06, 8.04662704e-07, 0.965925872, -0.258819133, -3.01003456e-06, 0.258819103, 0.965925932) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1327 | CFrame.new(2.06273198, 1.47406721, -1.53684735, 0, 0.707109213, 0.707104445, 0.965925872, -0.183012128, 0.18301338, 0.258819103, 0.683010459, -0.683015108) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1328 | CFrame.new(-1.81047451, 1.47174859, -1.69800615, 0.056022916, -0.766043305, -0.640342951, -0.979530215, -0.166366309, 0.113326266, -0.193344265, 0.620886445, -0.759682953) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1329 | CFrame.new(1.00000215, -4.22291946, -0.0263157077, 1, -5.10364771e-07, 1.89244747e-06, 5.10364771e-07, 1.00000012, -2.98023224e-08, -1.92224979e-06, 0, 1.00000012) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1330 | CFrame.new(-1.0000006, -3.81518364, -1.21633136, 1, 0, 3.11434269e-06, 8.04662704e-07, 0.965925872, -0.258819133, -3.01003456e-06, 0.258819103, 0.965925932) * CFrame.new(0, 0 - .1 * math.cos(Sine/10), 0) * CFrame.Angles(0, 0, 0), | |
1331 | }, .3, false) | |
1332 | end | |
1333 | for i = 0, 1, 0.1 do | |
1334 | swait() | |
1335 | PlayAnimationFromTable({ | |
1336 | CFrame.new(0, -0, 0, 1, 8.04662704e-07, -3.01003456e-06, 0, 0.965925872, 0.258819103, 3.11434269e-06, -0.258819133, 0.965925932) * CFrame.new(0, 0 + .1 * math.cos(Sine/10), 0) * CFrame.Angles(0, 0, 0), | |
1337 | CFrame.new(0.266833276, 0.933555186, -3.88168001, 1, 0, 3.11434269e-06, 8.04662704e-07, 0.965925872, -0.258819133, -3.01003456e-06, 0.258819103, 0.965925932) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1338 | CFrame.new(1.94570374, 1.23016787, -1.402282, -0.183013678, 0.683017731, 0.707101703, 0.98037976, 0.0732246935, 0.183013454, 0.0732241273, 0.726722121, -0.68301785) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1339 | CFrame.new(-1.88480496, 1.2523725, -1.43212485, -0.144152611, -0.754439712, -0.640344262, -0.989212334, 0.0928238332, 0.113325842, -0.0260583311, 0.649772704, -0.759681821) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1340 | CFrame.new(1.00000215, -4.22291946, -0.0263157077, 1, -5.10364771e-07, 1.89244747e-06, 5.10364771e-07, 1.00000012, -2.98023224e-08, -1.92224979e-06, 0, 1.00000012) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1341 | CFrame.new(-1.0000006, -3.81518364, -1.21633136, 1, 0, 3.11434269e-06, 8.04662704e-07, 0.965925872, -0.258819133, -3.01003456e-06, 0.258819103, 0.965925932) * CFrame.new(0, 0 - .1 * math.cos(Sine/10), 0) * CFrame.Angles(0, 0, 0), | |
1342 | }, .3, false) | |
1343 | end | |
1344 | end | |
1345 | CFuncs.Sound.Create("270620358", Hat, 3, 1) | |
1346 | for i = 0, 3, 0.1 do | |
1347 | swait() | |
1348 | PlayAnimationFromTable({ | |
1349 | CFrame.new(0, -0, 0, 1, 8.04662704e-07, -3.01003456e-06, 0, 0.965925872, 0.258819103, 3.11434269e-06, -0.258819133, 0.965925932) * CFrame.new(0, 0 + .1 * math.cos(Sine/10), 0) * CFrame.Angles(0, 0, 0), | |
1350 | CFrame.new(0.0227765162, 2.36835814, -2.66195869, 1, 6.9886446e-06, 4.02331352e-06, -2.08616257e-06, -0.258818984, 0.965925932, 7.77840614e-06, -0.965925932, -0.258818954) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1351 | CFrame.new(2.02689314, 1.83810854, -1.15534818, 0, 0.342032284, 0.939688325, 0.965925872, -0.243209288, 0.0885244831, 0.258819103, 0.907669246, -0.330377817) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1352 | CFrame.new(-1.95138168, 1.77444541, -1.29813623, 0.122574523, -0.49350512, -0.861062288, -0.961303234, -0.274721175, 0.0206083059, -0.246722341, 0.825215876, -0.508081853) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1353 | CFrame.new(1.00000215, -4.22291946, -0.0263157077, 1, -5.10364771e-07, 1.89244747e-06, 5.10364771e-07, 1.00000012, -2.98023224e-08, -1.92224979e-06, 0, 1.00000012) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1354 | CFrame.new(-1.0000006, -3.81518364, -1.21633136, 1, 0, 3.11434269e-06, 8.04662704e-07, 0.965925872, -0.258819133, -3.01003456e-06, 0.258819103, 0.965925932) * CFrame.new(0, 0 - .1 * math.cos(Sine/10), 0) * CFrame.Angles(0, 0, 0), | |
1355 | }, .2, false) | |
1356 | end | |
1357 | qwek = Instance.new("Sound", Torso) | |
1358 | qwek.SoundId = "rbxassetid://271006579" | |
1359 | qwek.Looped = true | |
1360 | qwek.Volume = 5 | |
1361 | qwek.Pitch = .8 | |
1362 | qwek:Play() | |
1363 | qwek2 = Instance.new("Sound", Torso) | |
1364 | qwek2.SoundId = "rbxassetid://271006579" | |
1365 | qwek2.Looped = true | |
1366 | qwek2.Volume = 5 | |
1367 | qwek2.Pitch = 1 | |
1368 | qwek2:Play() | |
1369 | qwek3 = Instance.new("Sound", Torso) | |
1370 | qwek3.SoundId = "rbxassetid://271006579" | |
1371 | qwek3.Looped = true | |
1372 | qwek3.Volume = 5 | |
1373 | qwek3.Pitch = 1.3 | |
1374 | qwek3:Play() | |
1375 | for i = 0, 10, 0.1 do | |
1376 | swait() | |
1377 | PlayAnimationFromTable({ | |
1378 | CFrame.new(0, -0, 0, 1.00000095, 8.12113285e-07, -3.02493572e-06, 0, 0.965925872, 0.258819103, 3.11434269e-06, -0.258819371, 0.965926886) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1379 | CFrame.new(0.022777468, 5.66071653, -1.77978086, 1.00000095, 0, -1.31428242e-05, -3.39746475e-06, 0.965925872, -0.258819371, 1.26957893e-05, 0.258819103, 0.965926886) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1380 | CFrame.new(2.11248255, 3.06429124, -1.06128931, -0.16178672, 0.22040607, 0.961898208, -0.0629198849, -0.97505945, 0.212838948, 0.984818876, -0.0260875672, 0.171619475) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1381 | CFrame.new(-1.96463084, 3.01722312, -1.42708611, -0.0698213056, -0.227341518, -0.971309781, -0.0906620771, -0.968209505, 0.233133003, -0.993432164, 0.104339033, 0.0469902605) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1382 | CFrame.new(1.00000072, -2.54767346, -0.749675632, 1.00000083, -7.37607479e-07, 2.01165676e-06, 5.58793545e-07, 0.996194899, 0.0871552527, -2.05636024e-06, -0.0871557891, 0.996195674) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1383 | CFrame.new(-1.00000954, -3.15354609, -1.14733529, 1.00000095, 0, 3.11434269e-06, 8.12113285e-07, 0.965925872, -0.258819371, -3.02493572e-06, 0.258819103, 0.965926886) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1384 | }, .3, false) | |
1385 | local duk=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Bright yellow","duk",Vector3.new(2, 2, 2)) | |
1386 | local moosh = CFuncs.Mesh.Create("SpecialMesh",duk,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=9419831",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
1387 | duk.CFrame = Hat.CFrame | |
1388 | duk.CanCollide = false | |
1389 | duk.Velocity = Vector3.new(math.random(-20,20),math.random(-60,60),math.random(-20,20)) | |
1390 | duk.Name = "duk" | |
1391 | table.insert(Effects, {duk,"Disappear",.01}) | |
1392 | game:GetService("Debris"):AddItem(duk, 3) | |
1393 | moosh.TextureId = "http://www.roblox.com/asset/?id=9419827" | |
1394 | Torso.Velocity=RootPart.CFrame.upVector*100 | |
1395 | local con = duk.Touched:connect(function(hit) | |
1396 | if hit.Name ~= "Effect" and hit.Name ~= "pand" and hit ~= Character and hit.Name ~= "duk" and hit ~= m then | |
1397 | MagnitudeDamage(duk, 5, 30, 30, 20, "Normal", " ", 1) | |
1398 | Effects.Sphere2.Create(BrickColor.new("Gold"), duk.CFrame, 1, 1, 1, 2, 2, 2, .05) | |
1399 | end | |
1400 | end) | |
1401 | end | |
1402 | qwek3:Destroy() | |
1403 | qwek2:Destroy() | |
1404 | qwek:Destroy() | |
1405 | end | |
1406 | ||
1407 | ||
1408 | ||
1409 | function pocketpandora() | |
1410 | Humanoid.AutoRotate = true | |
1411 | local PocketPandora=CFuncs.Part.Create( workspace,Enum.Material.Plastic,0,1,"Medium stone grey","PocketPandora",Vector3.new(0.512000322, 0.652799785, 0.640000045)) | |
1412 | local PocketPandoraWeld=CFuncs.Weld.Create( workspace,Character["Right Arm"],PocketPandora,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.24340057, 1.26152658, 0.0355987549, 4.68637081e-05, 1.00000417, -2.85994429e-06, 1, -4.81304887e-05, 5.30673697e-06, 5.45002649e-06, -2.93751145e-06, -1)) | |
1413 | local pand=CFuncs.Part.Create(workspace,Enum.Material.Plastic,0,0,"Fossil","pand",Vector3.new(0.406399965, 0.419200003, 0.320000023)) | |
1414 | local pandWeld=CFuncs.Weld.Create( workspace,PocketPandora,pand,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0229816437, -0.655731201, 0.0416564941, -0.0293540079, -0.0772550181, -0.99657923, -0.392862946, 0.917665899, -0.0595659576, 0.919128418, 0.389770478, -0.0572878011)) | |
1415 | CFuncs.Mesh.Create("SpecialMesh",pand,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=13520257",Vector3.new(0, 0, 0),Vector3.new(0.480000019, 0.480000019, 0.480000019)) | |
1416 | local pand=CFuncs.Part.Create( workspace,Enum.Material.SmoothPlastic,0,1.400709148669e-08,"Lily white","pand",Vector3.new(0.448000014, 0.896000028, 0.448000014)) | |
1417 | local pandWeld=CFuncs.Weld.Create( workspace,PocketPandora,pand,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0497894287, 0.0101809502, -0.68927002, 0.995689869, 0.00945099909, 0.0922629908, 0.00786634162, 0.982604146, -0.185545981, -0.0924115852, 0.185471997, 0.978294551)) | |
1418 | local pand=CFuncs.Part.Create( workspace,Enum.Material.SmoothPlastic,0,1.400709148669e-08,"Lily white","pand",Vector3.new(0.448000014, 0.896000028, 0.448000014)) | |
1419 | local pandWeld=CFuncs.Weld.Create( workspace,PocketPandora,pand,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.197641373, 0.841140389, 0.0983428955, -0.209358081, -0.0334330127, -0.977267385, 0.00387890753, 0.999379098, -0.0350204371, 0.977831423, -0.0111225415, -0.209098414)) | |
1420 | local pand=CFuncs.Part.Create( workspace,Enum.Material.SmoothPlastic,0,1.400709148669e-08,"Lily white","pand",Vector3.new(0.448000014, 0.896000028, 0.448000014)) | |
1421 | local pandWeld=CFuncs.Weld.Create( workspace,PocketPandora,pand,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0201187134, 0.0265302658, -0.746673584, -0.997025669, -0.0285979901, -0.0715689808, -0.0345623419, 0.995905221, 0.0835369974, 0.0688869208, 0.0857621059, -0.993931353)) | |
1422 | local pand=CFuncs.Part.Create( workspace,Enum.Material.SmoothPlastic,0,1.400709148669e-08,"Lily white","pand",Vector3.new(0.448000014, 0.896000028, 0.448000014)) | |
1423 | local pandWeld=CFuncs.Weld.Create( workspace,PocketPandora,pand,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.200737, 0.840947151, 0.107421875, 0.306881011, 0.0363619998, -0.951053023, -0.0217640139, 0.999276757, 0.0311830547, 0.951499104, 0.0111292461, 0.307450444)) | |
1424 | local pand=CFuncs.Part.Create( workspace,Enum.Material.SmoothPlastic,0,1.400709148669e-08,"Lily white","pand",Vector3.new(0.896000028, 0.896000028, 0.448000014)) | |
1425 | local pandWeld=CFuncs.Weld.Create( workspace,PocketPandora,pand,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0183601379, -0.0494211912, -0.0223693848, 0.0508630089, -0.0429850034, -0.997780144, 0.0136630228, 0.999009788, -0.0423414856, 0.998612225, -0.0114790779, 0.0513999537)) | |
1426 | local pand=CFuncs.Part.Create( workspace,Enum.Material.Fabric,0,1.400709148669e-08,"Institutional white","pand",Vector3.new(0.896000028, 0.448000014, 0.448000014)) | |
1427 | local pandWeld=CFuncs.Weld.Create( workspace,PocketPandora,pand,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0183601379, -0.646469116, -0.240524292, 0.0508630089, -0.0429850034, -0.997780144, -0.392863095, 0.917666256, -0.0595603026, 0.918189287, 0.395020396, 0.0297880471)) | |
1428 | CFuncs.Mesh.Create("SpecialMesh",pand,Enum.MeshType.Head,"",Vector3.new(0, 0, 0),Vector3.new(1.25, 1.25, 1.25)) | |
1429 | ||
1430 | for i = 0, 3, 0.1 do | |
1431 | swait() | |
1432 | PlayAnimationFromTable({ | |
1433 | CFrame.new(0.0911376029, 0.170700833, 0.332172483, 0.96592617, 0.0449431762, 0.254886121, 0, 0.984807849, -0.173647746, -0.25881812, 0.167730883, 0.951251686) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1434 | CFrame.new(-3.89245868, -2.29780269, -0.00377818942, 0.986237526, -0.0818925127, -0.14362888, -0.127979755, 0.17186299, -0.976772487, 0.104674846, 0.981711268, 0.159017161) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1435 | CFrame.new(2.24770093, 3.22394347, -1.96035659, 0.586824775, 0.492401212, 0.642789066, 0.718526661, -0.682659328, -0.133024901, 0.373304367, 0.539923429, -0.754404902) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1436 | CFrame.new(-3.24579811, 0.162601873, -0.169526681, 0.980992317, 0.193930089, 0.00672267377, -0.193764612, 0.980845749, -0.0199200213, -0.0104569793, 0.0182387829, 0.999779046) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1437 | CFrame.new(1.1014533, -4.16344213, 0.406021297, 0.939692914, 0, -0.342019349, 0.0593908839, 0.984807849, 0.163175538, 0.336823404, -0.173647746, 0.925417066) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1438 | CFrame.new(-0.999989688, -4.16985464, 0.369654536, 0.906307459, 0, 0.422619224, -0.0733868629, 0.984807849, 0.157378227, -0.41619873, -0.173647746, 0.892538786) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1439 | }, .3, false) | |
1440 | end | |
1441 | CFuncs.Sound.Create("525166232", pand, 10, 1.1) | |
1442 | for i = 0, 3, 0.1 do | |
1443 | swait() | |
1444 | PlayAnimationFromTable({ | |
1445 | CFrame.new(0.0911376029, 0.170700833, 0.332172483, 0.96592617, 0.0449431762, 0.254886121, 0, 0.984807849, -0.173647746, -0.25881812, 0.167730883, 0.951251686) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1446 | CFrame.new(-3.89245868, -2.29780269, -0.00377818942, 0.986237526, -0.0818925127, -0.14362888, -0.127979755, 0.17186299, -0.976772487, 0.104674846, 0.981711268, 0.159017161) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1447 | CFrame.new(1.80590749, 2.72466302, -1.93817627, 0.663057327, 0.747823834, 0.0333839096, 0.746770024, -0.657716274, -0.098711893, -0.0518619865, 0.0903817415, -0.994556129) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1448 | CFrame.new(-3.24579811, 0.162601873, -0.169526681, 0.980992317, 0.193930089, 0.00672267377, -0.193764612, 0.980845749, -0.0199200213, -0.0104569793, 0.0182387829, 0.999779046) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1449 | CFrame.new(1.1014533, -4.16344213, 0.406021297, 0.939692914, 0, -0.342019349, 0.0593908839, 0.984807849, 0.163175538, 0.336823404, -0.173647746, 0.925417066) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1450 | CFrame.new(-0.999989688, -4.16985464, 0.369654536, 0.906307459, 0, 0.422619224, -0.0733868629, 0.984807849, 0.157378227, -0.41619873, -0.173647746, 0.892538786) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1451 | }, .3, false) | |
1452 | end | |
1453 | for i = 0, 2, 0.1 do | |
1454 | swait() | |
1455 | PlayAnimationFromTable({ | |
1456 | CFrame.new(0.0911456496, 0.170702159, 0.332171082, 0.999885321, -0.00137777999, -0.0150859356, 0.00628500246, 0.943831742, 0.330366731, 0.0137834102, -0.330423653, 0.943732202) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1457 | CFrame.new(-3.75862074, -2.28645492, 0.346096963, 0.970100462, 0.236889541, -0.0528076962, -0.0789259449, 0.102158397, -0.991632223, -0.229512513, 0.966150701, 0.117800683) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1458 | CFrame.new(3.20707846, 0.285080135, 1.16387141, -0.00297607109, -0.107517615, 0.994198799, -0.783208609, 0.618401051, 0.0645325035, -0.621752024, -0.7784729, -0.0860491246) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1459 | CFrame.new(-3.36487269, 0.161271498, 0.244712532, 0.975460768, 0.219438821, 0.0179737657, -0.219429642, 0.962213933, 0.161229551, 0.0180853903, -0.161217049, 0.986753345) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1460 | CFrame.new(0.851068258, -4.07387733, -0.701450467, 0.997281611, 0.0189382583, -0.0712103695, -0.0301716141, 0.986631095, -0.160152644, 0.067225337, 0.161865816, 0.984520435) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1461 | CFrame.new(-1.25113344, -4.09032774, -0.91490078, 0.999885321, 0.00628500246, 0.0137834102, -0.00137777999, 0.943831742, -0.330423653, -0.0150859356, 0.330366731, 0.943732202) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1462 | }, .3, false) | |
1463 | end | |
1464 | ||
1465 | for i = 0, .1, 0.1 do | |
1466 | swait() | |
1467 | PlayAnimationFromTable({ | |
1468 | CFrame.new(0.0798431486, 0.233077481, 1.12295187, 0.999885499, -0.00873519853, -0.0123708993, 0.00628500246, 0.982565761, -0.18580927, 0.0137782991, 0.185710222, 0.982508063) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1469 | CFrame.new(0.0265016034, 3.24111581, -0.318699658, 0.998973072, -0.0240464583, -0.0384024978, 0.0298348591, 0.98697418, 0.158088326, 0.0341008157, -0.159071684, 0.986678004) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1470 | CFrame.new(2.96458101, 0.895944357, -2.12482834, -0.0157348998, 0.106384002, 0.994200766, 0.999534369, 0.0276731253, 0.0128581598, -0.026144743, 0.993939996, -0.106769882) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1471 | CFrame.new(-3.18996, 0.315425068, 0.578166604, 0.991264641, 0.131625995, -0.00832906365, -0.0797855482, 0.64874804, 0.756809294, 0.105019227, -0.749533653, 0.653582811) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1472 | CFrame.new(0.790542006, -3.90754509, -1.36502731, 0.998461664, 0.0502564199, 0.0234256238, -0.0362905487, 0.911728263, -0.409187764, -0.0419221073, 0.407708168, 0.912149489) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1473 | CFrame.new(-1.24295056, -4.01071262, 1.00937235, 0.99988544, 0.00379677117, 0.0146613121, -0.00873538479, 0.935390234, 0.353509545, -0.0123718679, -0.353597105, 0.935316026) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1474 | }, .3, false) | |
1475 | end | |
1476 | PocketPandoraWeld:Destroy() | |
1477 | CFuncs.Sound.Create("160718677", pand, 5, 1) | |
1478 | for _,v in pairs(workspace:children()) do | |
1479 | if v:IsA("Part") and v.Name == "PocketPandora" then | |
1480 | v.Anchored = false | |
1481 | v.CanCollide = true | |
1482 | v.Parent = workspace | |
1483 | v.CFrame = RootPart.CFrame * CFrame.new(2,5,-5) | |
1484 | v.Velocity=RootPart.CFrame.lookVector*200 | |
1485 | local con = v.Touched:connect(function(hit) | |
1486 | if hit.Name ~= "Effect" and hit.Name ~= "pand" and hit ~= Character and hit.Name ~= "refpart" then | |
1487 | MagnitudeDamage(PocketPandora, 30, 100, 100, 50, "Normal", " ", 1) | |
1488 | Effects.Sphere2.Create(BrickColor.new("Smoky grey"), v.CFrame, .5, 2, .5, 3, 5, 3, .03) | |
1489 | Effects.Sphere2.Create(BrickColor.new(maincol), v.CFrame, .6, 3, .6, 4, 6, 4, .03) | |
1490 | CFuncs.Sound.Create("206049428", pand, 10, 1) | |
1491 | v:Destroy() | |
1492 | end | |
1493 | end) | |
1494 | end | |
1495 | end | |
1496 | ||
1497 | for i = 0,5, 0.1 do | |
1498 | swait() | |
1499 | PlayAnimationFromTable({ | |
1500 | CFrame.new(0.0798431486, 0.233077481, 1.12295187, 0.999885499, -0.00873519853, -0.0123708993, 0.00628500246, 0.982565761, -0.18580927, 0.0137782991, 0.185710222, 0.982508063) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1501 | CFrame.new(0.0265016034, 3.24111581, -0.318699658, 0.998973072, -0.0240464583, -0.0384024978, 0.0298348591, 0.98697418, 0.158088326, 0.0341008157, -0.159071684, 0.986678004) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1502 | CFrame.new(2.99794817, 2.31009698, -1.64348817, 0.0563318357, 0.0916124284, 0.994200289, 0.783475637, -0.621289551, 0.0128577966, 0.618864119, 0.778207421, -0.106774479) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1503 | CFrame.new(-3.18996, 0.315425068, 0.578166604, 0.991264641, 0.131625995, -0.00832906365, -0.0797855482, 0.64874804, 0.756809294, 0.105019227, -0.749533653, 0.653582811) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1504 | CFrame.new(0.790542006, -3.90754509, -1.36502731, 0.998461664, 0.0502564199, 0.0234256238, -0.0362905487, 0.911728263, -0.409187764, -0.0419221073, 0.407708168, 0.912149489) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1505 | CFrame.new(-1.24295056, -4.01071262, 1.00937235, 0.99988544, 0.00379677117, 0.0146613121, -0.00873538479, 0.935390234, 0.353509545, -0.0123718679, -0.353597105, 0.935316026) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1506 | }, .3, false) | |
1507 | end | |
1508 | ||
1509 | end | |
1510 | ||
1511 | ||
1512 | function foryou() | |
1513 | Humanoid.AutoRotate = true | |
1514 | ||
1515 | FHandle=CFuncs.Part.Create(m2,Enum.Material.Plastic,0,1,"Institutional white","FHandle",Vector3.new(1, 2, 1)) | |
1516 | FHandleWeld=CFuncs.Weld.Create(m2,Character["Right Arm"],FHandle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.18448639, 0.551091194, -0.163902283, -0.155436471, 0.983553827, -0.09203168, -0.987750709, -0.153451264, 0.0283052251, 0.0137170125, 0.0953044593, 0.995353699)) | |
1517 | CFuncs.Mesh.Create("SpecialMesh",FHandle,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=1049194",Vector3.new(0, 0, 0),Vector3.new(1.79999995, 1.29999995, 1.89999998)) | |
1518 | Plant=CFuncs.Part.Create(m2,Enum.Material.Plastic,0,0,"Dusty Rose","Plant",Vector3.new(2, 0.400000006, 2)) | |
1519 | PlantWeld=CFuncs.Weld.Create(m2,FHandle,Plant,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.308837891, 1.90258408, 0.500061035, 0.90631032, 0.422617525, -2.08616257e-07, -0.422617853, 0.906308651, -3.24845314e-06, -6.78002834e-07, 3.28943133e-06, 1.0000006)) | |
1520 | CFuncs.Mesh.Create("SpecialMesh",Plant,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=16659363",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
1521 | Plant=CFuncs.Part.Create(m2,Enum.Material.Plastic,0,0,"Really red","Plant",Vector3.new(2, 0.400000006, 2)) | |
1522 | PlantWeld=CFuncs.Weld.Create(m2,FHandle,Plant,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.325637817, 1.54702187, 0.131658554, -0.969451249, 0.0996286124, -0.224139586, 0.0717185959, 0.988995075, 0.129403844, 0.234565258, 0.109375738, -0.965927601)) | |
1523 | CFuncs.Mesh.Create("SpecialMesh",Plant,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=16659363",Vector3.new(0, 0, 0),Vector3.new(1.5, 1.5, 1.5)) | |
1524 | Test=CFuncs.Part.Create(m2,Enum.Material.Plastic,0,0,"Earth green","Test",Vector3.new(1, 1.20000005, 1)) | |
1525 | TestWeld=CFuncs.Weld.Create(m2,FHandle,Test,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.308868408, -1.30257416, 0.220046997, -0.906308413, -0.422617137, 5.06639481e-07, 0.422617078, -0.906308293, 3.25590372e-06, -9.31322575e-07, 3.16090882e-06, 1.00000012)) | |
1526 | CFuncs.Mesh.Create("SpecialMesh",Test,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=1091940",Vector3.new(0, 0, 0),Vector3.new(0.200000003, 2, 0.200000003)) | |
1527 | Test=CFuncs.Part.Create(m2,Enum.Material.Plastic,0,0,"Earth green","Test",Vector3.new(1, 1.20000005, 1)) | |
1528 | TestWeld=CFuncs.Weld.Create(m2,FHandle,Test,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.115341187, -0.744662762, -0.176582336, 0.969449461, -0.0996279493, -0.22414732, -0.0717145503, -0.988994002, 0.129413977, -0.234573573, -0.109385677, -0.965924442)) | |
1529 | CFuncs.Mesh.Create("SpecialMesh",Test,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=1091940",Vector3.new(0, 0, 0),Vector3.new(0.5, 2.5, 0.5)) | |
1530 | fire=CFuncs.Part.Create(m2,Enum.Material.Plastic,0,1,"Medium stone grey","fire",Vector3.new(1.4400003, 2.17999935, 2.24999976)) | |
1531 | fireWeld=CFuncs.Weld.Create(m2,FHandle,fire,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.8053484, 0.600914001, 0.173200607, 0.197724402, 0.974774659, -0.103535756, -0.972187221, 0.181474328, -0.148050904, -0.125527188, 0.129929408, 0.983545303)) | |
1532 | Plant=CFuncs.Part.Create(m2,Enum.Material.Plastic,0,0,"Salmon","Plant",Vector3.new(2, 0.400000006, 2)) | |
1533 | PlantWeld=CFuncs.Weld.Create(m2,FHandle,Plant,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.391174316, 2.30257797, 7.2479248e-05, 0.90631187, 0.422617793, 7.4505806e-09, -0.42261827, 0.906309068, -3.21865082e-06, -4.84287739e-07, 3.37697566e-06, 1.00000107)) | |
1534 | CFuncs.Mesh.Create("SpecialMesh",Plant,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=16659363",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
1535 | Test=CFuncs.Part.Create(m2,Enum.Material.Plastic,0,0,"Earth green","Test",Vector3.new(1, 1.20000005, 1)) | |
1536 | TestWeld=CFuncs.Weld.Create(m2,FHandle,Test,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.391143799, -1.70257568, 0.100059509, -0.906308413, -0.422617137, 5.06639481e-07, 0.422617078, -0.906308293, 3.25590372e-06, -9.31322575e-07, 3.16090882e-06, 1.00000012)) | |
1537 | CFuncs.Mesh.Create("SpecialMesh",Test,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=1091940",Vector3.new(0, 0, 0),Vector3.new(0.200000003, 2, 0.200000003)) | |
1538 | CFuncs.Sound.Create("1030472543", Torso, 10, 1) | |
1539 | for i = 0, 5, 0.1 do | |
1540 | swait() | |
1541 | PlayAnimationFromTable({ | |
1542 | CFrame.new(0.0911376029, 0.170700833, 0.332172483, 0.96592617, 0.0449431762, 0.254886121, 0, 0.984807849, -0.173647746, -0.25881812, 0.167730883, 0.951251686) * CFrame.new(0, 0 + .1 * math.cos(Sine/10), 0) * CFrame.Angles(0, 0, 0), | |
1543 | CFrame.new(-3.89245868, -2.29780269, -0.00377818942, 0.986237526, -0.0818925127, -0.14362888, -0.127979755, 0.17186299, -0.976772487, 0.104674846, 0.981711268, 0.159017161) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1544 | CFrame.new(2.24770093, 3.22394347, -1.96035659, 0.586824775, 0.492401212, 0.642789066, 0.718526661, -0.682659328, -0.133024901, 0.373304367, 0.539923429, -0.754404902) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1545 | CFrame.new(-3.24579811, 0.162601873, -0.169526681, 0.980992317, 0.193930089, 0.00672267377, -0.193764612, 0.980845749, -0.0199200213, -0.0104569793, 0.0182387829, 0.999779046) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1546 | CFrame.new(1.1014533, -4.16344213, 0.406021297, 0.939692914, 0, -0.342019349, 0.0593908839, 0.984807849, 0.163175538, 0.336823404, -0.173647746, 0.925417066) * CFrame.new(0, 0 - .1 * math.cos(Sine/10), 0) * CFrame.Angles(0, 0, 0), | |
1547 | CFrame.new(-0.999989688, -4.16985464, 0.369654536, 0.906307459, 0, 0.422619224, -0.0733868629, 0.984807849, 0.157378227, -0.41619873, -0.173647746, 0.892538786) * CFrame.new(0, 0 - .1 * math.cos(Sine/10), 0) * CFrame.Angles(0, 0, 0), | |
1548 | }, .3, false) | |
1549 | end | |
1550 | for i = 0, 6, 0.1 do | |
1551 | swait() | |
1552 | PlayAnimationFromTable({ | |
1553 | CFrame.new(-0.201527208, 0.339289248, -0.760077715, 0.965926766, -0.109380201, 0.23456727, 0, 0.906308293, 0.422617316, -0.258816212, -0.408217311, 0.875427306) * CFrame.new(0, 0 + .1 * math.cos(Sine/10), 0) * CFrame.Angles(0, 0, 0), | |
1554 | CFrame.new(-2.63639927, -3.08259439, 2.20601225, 0.96412462, -0.126876891, -0.233165681, 0.137302473, -0.513392627, 0.847098649, -0.227182761, -0.848722875, -0.477553904) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1555 | CFrame.new(3.16202116, 2.08283663, -1.89966655, 0.0309411921, -0.0984340832, 0.994662583, 0.897010624, -0.436257124, -0.0710765198, 0.440924883, 0.894421995, 0.0747980848) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1556 | CFrame.new(-3.02596211, -0.564618766, 0.844400108, 0.999514997, -0.0298547298, 0.00887096301, 0.0205256008, 0.845656037, 0.533333659, -0.0234243199, -0.532892823, 0.845858574) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1557 | CFrame.new(1.10143936, -4.27405882, -1.10186839, 0.939693689, 0, -0.342017531, -0.144542515, 0.906308293, -0.397130758, 0.3099733, 0.422617316, 0.851652145) * CFrame.new(0, 0 - .1 * math.cos(Sine/10), 0) * CFrame.Angles(0, 0, 0), | |
1558 | CFrame.new(-0.999990761, -4.25845289, -1.13533604, 0.906306744, 0, 0.422621042, 0.178606942, 0.906308293, -0.383020878, -0.383024931, 0.422617316, 0.821393192) * CFrame.new(0, 0 - .1 * math.cos(Sine/10), 0) * CFrame.Angles(0, 0, 0), | |
1559 | }, .3, false) | |
1560 | end | |
1561 | CFuncs.Sound.Create("490241055", fire, 10, 1) | |
1562 | local PE1 = Instance.new("ParticleEmitter",fire) | |
1563 | PE1.LightEmission = NumberSequence.new(0.2) | |
1564 | PE1.Size = NumberSequence.new(3) | |
1565 | PE1.Texture = "http://www.roblox.com/asset/?id=242461088" | |
1566 | PE1.Lifetime = NumberRange.new(.75) | |
1567 | PE1.Rate = 50.000 | |
1568 | PE1.Transparency = NumberSequence.new(0.2) | |
1569 | PE1.LightEmission = NumberSequence.new(1) | |
1570 | PE1.Rotation = NumberRange.new(0) | |
1571 | PE1.Speed = NumberRange.new(.1) | |
1572 | PE1.RotSpeed = NumberRange.new(0) | |
1573 | PE1.ZOffset = .2 | |
1574 | for i = 0, 5, 0.1 do | |
1575 | swait() | |
1576 | PlayAnimationFromTable({ | |
1577 | CFrame.new(-0.201527208, 0.339289248, -0.760077715, 0.965926766, -0.109380201, 0.23456727, 0, 0.906308293, 0.422617316, -0.258816212, -0.408217311, 0.875427306) * CFrame.new(0, 0 + .1 * math.cos(Sine/10), 0) * CFrame.Angles(0, 0, 0), | |
1578 | CFrame.new(-2.63639927, -3.08259439, 2.20601225, 0.96412462, -0.126876891, -0.233165681, 0.137302473, -0.513392627, 0.847098649, -0.227182761, -0.848722875, -0.477553904) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1579 | CFrame.new(3.16202116, 2.08283663, -1.89966655, 0.0309411921, -0.0984340832, 0.994662583, 0.897010624, -0.436257124, -0.0710765198, 0.440924883, 0.894421995, 0.0747980848) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1580 | CFrame.new(-3.02596211, -0.564618766, 0.844400108, 0.999514997, -0.0298547298, 0.00887096301, 0.0205256008, 0.845656037, 0.533333659, -0.0234243199, -0.532892823, 0.845858574) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1581 | CFrame.new(1.10143936, -4.27405882, -1.10186839, 0.939693689, 0, -0.342017531, -0.144542515, 0.906308293, -0.397130758, 0.3099733, 0.422617316, 0.851652145) * CFrame.new(0, 0 - .1 * math.cos(Sine/10), 0) * CFrame.Angles(0, 0, 0), | |
1582 | CFrame.new(-0.999990761, -4.25845289, -1.13533604, 0.906306744, 0, 0.422621042, 0.178606942, 0.906308293, -0.383020878, -0.383024931, 0.422617316, 0.821393192) * CFrame.new(0, 0 - .1 * math.cos(Sine/10), 0) * CFrame.Angles(0, 0, 0), | |
1583 | }, .3, false) | |
1584 | end | |
1585 | CFuncs.Sound.Create("172324194", Torso, 10, 1) | |
1586 | for i = 0, 6, 0.1 do | |
1587 | swait() | |
1588 | PlayAnimationFromTable({ | |
1589 | CFrame.new(-0.201516241, 0.339291096, -0.760076404, 0.97455883, -0.126014829, -0.185352385, 0.178607017, 0.936242044, 0.302573204, 0.135405973, -0.327980638, 0.934929967) * CFrame.new(0, 0 + .1 * math.cos(Sine/10), 0) * CFrame.Angles(0, 0, 0), | |
1590 | CFrame.new(-2.55570674, -2.16993427, 3.6085391, 0.879511952, -0.473674715, -0.0457305014, -0.268807769, -0.573806643, 0.773620367, -0.392684817, -0.668115556, -0.631997108) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1591 | CFrame.new(2.06292558, 1.80838537, -3.22790933, 0.214386374, 0.288788915, 0.933080733, 0.927286148, -0.360320926, -0.101535536, 0.306886107, 0.887000561, -0.345037788) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1592 | CFrame.new(-2.80201578, 0.225536764, 1.78792167, 0.999614537, -0.0117794126, 0.0251443088, -0.00699919462, 0.769420385, 0.638704658, -0.0268700868, -0.638634384, 0.769041181) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1593 | CFrame.new(0.532568038, -4.3854022, -1.08604121, 0.98265177, 0.178607017, 0.0499521792, -0.154120743, 0.936242044, -0.315749615, -0.103162408, 0.302573204, 0.947526813) * CFrame.new(0, 0 - .1 * math.cos(Sine/10), 0) * CFrame.Angles(0, 0, 0), | |
1594 | CFrame.new(-1.38611662, -4.29509449, -0.232889488, 0.659518123, 0.178607017, 0.730161428, 0.114288926, 0.936242044, -0.332248539, -0.742949605, 0.302573204, 0.597055733) * CFrame.new(0, 0 - .1 * math.cos(Sine/10), 0) * CFrame.Angles(0, 0, 0), | |
1595 | }, .4, false) | |
1596 | end | |
1597 | FHandleWeld:Destroy() | |
1598 | for _,v in pairs(m2:children()) do | |
1599 | if v:IsA("Part") then | |
1600 | v.Parent = workspace | |
1601 | v.CanCollide = true | |
1602 | v.Velocity=RootPart.CFrame.upVector*0 | |
1603 | table.insert(Effects, {v,"Disappear",.008}) | |
1604 | game:GetService("Debris"):AddItem(v, 5) | |
1605 | end | |
1606 | end | |
1607 | end | |
1608 | ||
1609 | ||
1610 | ||
1611 | function topwat() | |
1612 | Attack = true | |
1613 | Humanoid.WalkSpeed = 0 | |
1614 | Humanoid.JumpPower = 0 | |
1615 | Humanoid.AutoRotate = false | |
1616 | ||
1617 | for i = 0, 8, 0.1 do | |
1618 | swait() | |
1619 | PlayAnimationFromTable({ | |
1620 | CFrame.new(-0.00205035275, 0, -0.0156110032, 0.965925872, 0, 0.258819073, 0, 1, 0, -0.258819073, 0, 0.965925872) * CFrame.new(0, 0 + .1 * math.cos(Sine/10), 0) * CFrame.Angles(0, 0, 0), | |
1621 | CFrame.new(0.302975714, -0.0352788754, -2.58990121, 0.996195078, 0.0298128296, 0.0818930417, 0.0298129916, -0.999554753, 0.00122109544, 0.0818929821, 0.00122502726, -0.996640384) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1622 | CFrame.new(1.13866591, 2.04802728, -1.94127011, -0.439383566, 0.627507865, 0.642787695, 0.819152892, 0.573575318, -1.11085149e-06, -0.368687868, 0.526540875, -0.766044438) * CFrame.new(0, -.5, 0) * CFrame.Angles(RAD(0 + 5 * math.cos(Sine/2)), 0, 0), | |
1623 | CFrame.new(-2.42017388, 0.400777161, -2.11568689, 0.882900894, -0.469536036, 0.00468276255, 0.131853923, 0.238337904, -0.962190032, 0.450666815, 0.850135863, 0.272338927) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1624 | CFrame.new(1.10143924, -3.99999404, 0.0369313061, 0.939692557, 0, -0.342020273, 0, 1, 0, 0.342020273, 0, 0.939692557) * CFrame.new(0, 0 - .1 * math.cos(Sine/10), 0) * CFrame.Angles(0, 0, 0), | |
1625 | CFrame.new(-0.999986231, -3.99999404, 1.25169754e-06, 0.906307876, 0, 0.42261827, 0, 1, 0, -0.42261827, 0, 0.906307876) * CFrame.new(0, 0 - .1 * math.cos(Sine/10), 0) * CFrame.Angles(0, 0, 0), | |
1626 | }, .1, false) | |
1627 | end | |
1628 | ||
1629 | ||
1630 | local x = math.random(1,3) | |
1631 | if x == 1 then | |
1632 | pocketpandora() | |
1633 | elseif x == 2 then | |
1634 | ducks() | |
1635 | elseif x == 3 then | |
1636 | foryou() | |
1637 | end | |
1638 | ||
1639 | Humanoid.WalkSpeed = 16 | |
1640 | Humanoid.JumpPower = 50 | |
1641 | Humanoid.AutoRotate = true | |
1642 | Attack = false | |
1643 | end | |
1644 | ||
1645 | function hatsoff() | |
1646 | Attack = true | |
1647 | Humanoid.WalkSpeed = 0 | |
1648 | Humanoid.JumpPower = 0 | |
1649 | CFuncs.Sound.Create("1578720743", Torso, 5, 1) | |
1650 | ShowDamage((Head.CFrame * CFrame.new(0, 0, (Head.Size.Z / 2)).p + Vector3.new(0, 5, 0)), quotes[math.random(#quotes)], 5, BrickColor.new(maincol).Color, BrickColor.new("Really black").Color) | |
1651 | for i = 0, 8, 0.1 do | |
1652 | swait() | |
1653 | PlayAnimationFromTable({ | |
1654 | CFrame.new(-0.115069248, -0, -0.214136839, 0.766046524, 0, -0.642790973, 0, 1, 0, 0.642790973, 0, 0.766046524) * CFrame.new(0, 0 + .1 * math.cos(Sine/10), 0) * CFrame.Angles(0, 0, 0), | |
1655 | CFrame.new(-4.87525558, 0.797361493, -4.06305599, 0.866025567, -0.0435784385, -0.498097122, -0.0868260041, -0.994166732, -0.0639820844, -0.492403448, 0.0986578986, -0.864757538) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1656 | CFrame.new(3.4945271, 1.52527678, -1.38384485, 0.870185137, -0.374341398, 0.3203848, 0.179849938, -0.364053726, -0.9138484, 0.458728582, 0.852838457, -0.249468848) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1657 | CFrame.new(-3.41207027, 1.04570305, -1.46108115, -0.88571322, 0.4565247, 0.084245488, 0.0838330537, -0.0211990401, 0.996254325, 0.456600636, 0.889458179, -0.0194955915) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1658 | CFrame.new(0.853903413, -4.00243044, 0.828555107, 0.98480767, 0.0868239999, -0.150384188, 0, 0.866026282, 0.499998599, 0.173648536, -0.492402464, 0.852869391) * CFrame.new(0, 0 - .1 * math.cos(Sine/10), 0) * CFrame.Angles(0, 0, 0), | |
1659 | CFrame.new(-1.19523168, -4.00639772, -0.555792093, 0.904794216, -0.0996007398, 0.414037675, 0.0301539879, 0.984807849, 0.17100963, -0.42478025, -0.142243639, 0.894051731) * CFrame.new(0, 0 - .3 * math.cos(Sine/3.5), 0) * CFrame.Angles(0, 0, 0), | |
1660 | }, .2, false) | |
1661 | end | |
1662 | for i = 0, .5, 0.1 do | |
1663 | swait() | |
1664 | PlayAnimationFromTable({ | |
1665 | CFrame.new(-0.115069248, -0, -0.214136839, 0.766046524, 0, -0.642790973, 0, 1, 0, 0.642790973, 0, 0.766046524) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1666 | CFrame.new(-2.31292915, 5.66935062, 0.386707425, -0.0979517624, -0.866521716, -0.489434123, -0.98050642, -0.000144343387, 0.196486965, -0.170330837, 0.499139547, -0.849615812) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1667 | CFrame.new(3.4945271, 1.52527678, -1.38384485, 0.870185137, -0.374341398, 0.3203848, 0.179849938, -0.364053726, -0.9138484, 0.458728582, 0.852838457, -0.249468848) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1668 | CFrame.new(-2.79443884, 2.43125439, -0.142938256, 0.312049747, -0.222866639, 0.92355597, -0.188317999, -0.967318416, -0.169798508, 0.931214929, -0.120936617, -0.343821317) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1669 | CFrame.new(0.853903413, -4.00243044, 0.828555107, 0.98480767, 0.0868239999, -0.150384188, 0, 0.866026282, 0.499998599, 0.173648536, -0.492402464, 0.852869391) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1670 | CFrame.new(-1.19523168, -4.00639772, -0.555792093, 0.904794216, -0.0996007398, 0.414037675, 0.0301539879, 0.984807849, 0.17100963, -0.42478025, -0.142243639, 0.894051731) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1671 | }, .1, false) | |
1672 | end | |
1673 | Humanoid.WalkSpeed = 16 | |
1674 | Humanoid.JumpPower = 50 | |
1675 | Attack = false | |
1676 | end | |
1677 | ||
1678 | ||
1679 | ||
1680 | function overthere() | |
1681 | Attack = true | |
1682 | local xy = 2 | |
1683 | local hitt = Mouse.hit | |
1684 | Humanoid.WalkSpeed = 0 | |
1685 | Humanoid.JumpPower = 0 | |
1686 | CFuncs.Sound.Create("538558581", Hat, 5, 1) | |
1687 | for i = 0, 5, 0.1 do | |
1688 | swait() | |
1689 | xy = xy + .15 | |
1690 | PlayAnimationFromTable({ | |
1691 | CFrame.new(0.0107159223, -2.71742606, 0.0607917309, 0.99988538, 0.009216398, 0.0120227486, -0.0151350051, 0.641702771, 0.766804099, -0.000647842884, -0.766898036, 0.641768754) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1692 | CFrame.new(-0.28039515, 11.482439, 13.6262321, 0.99988538, -0.0151350051, -0.000647842884, 0.009216398, 0.641702771, -0.766898036, 0.0120227486, 0.766804099, 0.641768754) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1693 | CFrame.new(1.83838439, 2.67886591, 0.0802880749, -2.82153487e-05, 0.707110763, 0.707103014, -3.48687172e-06, -0.707103014, 0.707110524, 1.00000012, 1.75237656e-05, 2.24113464e-05) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1694 | CFrame.new(-1.61722004, 2.37308216, -0.0369534679, 0.0996018648, -0.819160461, -0.564850211, 0.0309238136, -0.56485045, 0.82461369, -0.994546771, -0.0996004194, -0.0309286118) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1695 | CFrame.new(0.999969661, -3.48585701, -0.497745633, 1, 1.82539225e-05, 1.02139893e-06, -1.46329403e-05, 0.766044199, 0.642787874, 1.09598041e-05, -0.642788053, 0.766044199) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1696 | CFrame.new(-0.999921381, -3.45396709, -0.373242021, 1.00000024, -2.43186951e-05, -2.02894444e-06, 1.99228525e-05, 0.766044378, 0.642787635, -1.40666962e-05, -0.642787695, 0.766044438) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1697 | }, .1, false) | |
1698 | meh.Scale = Vector3.new(xy, xy, xy) | |
1699 | end | |
1700 | CFuncs.Sound.Create("144507916", Torso, 5, 1) | |
1701 | Effects.Wave.Create(BrickColor.new("White"), Hat.CFrame*CFrame.new(0,-20,0), 4, 1, 4, 4, 1, 4, .05) | |
1702 | for i = 0, 1, 0.1 do | |
1703 | swait() | |
1704 | PlayAnimationFromTable({ | |
1705 | CFrame.new(0.0107159223, -2.71742606, 0.0607917309, 0.99988538, 0.009216398, 0.0120227486, -0.0151350051, 0.641702771, 0.766804099, -0.000647842884, -0.766898036, 0.641768754) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1706 | CFrame.new(-0.0671697259, 2.44198537, 2.82332158, 0.99988538, -0.0151350051, -0.000647842884, 0.009216398, 0.641702771, -0.766898036, 0.0120227486, 0.766804099, 0.641768754) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1707 | CFrame.new(1.83838439, 2.67886591, 0.0802880749, -2.82153487e-05, 0.707110763, 0.707103014, -3.48687172e-06, -0.707103014, 0.707110524, 1.00000012, 1.75237656e-05, 2.24113464e-05) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1708 | CFrame.new(-1.61722004, 2.37308216, -0.0369534679, 0.0996018648, -0.819160461, -0.564850211, 0.0309238136, -0.56485045, 0.82461369, -0.994546771, -0.0996004194, -0.0309286118) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1709 | CFrame.new(0.999969661, -3.48585701, -0.497745633, 1, 1.82539225e-05, 1.02139893e-06, -1.46329403e-05, 0.766044199, 0.642787874, 1.09598041e-05, -0.642788053, 0.766044199) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1710 | CFrame.new(-0.999921381, -3.45396709, -0.373242021, 1.00000024, -2.43186951e-05, -2.02894444e-06, 1.99228525e-05, 0.766044378, 0.642787635, -1.40666962e-05, -0.642787695, 0.766044438) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1711 | }, .5, false) | |
1712 | end | |
1713 | RootPart.CFrame = hitt * CFrame.new(0,6,0) | |
1714 | for i = 0, 2, 0.1 do | |
1715 | swait() | |
1716 | PlayAnimationFromTable({ | |
1717 | CFrame.new(0.0107159223, -2.71742606, 0.0607917309, 0.99988538, 0.009216398, 0.0120227486, -0.0151350051, 0.641702771, 0.766804099, -0.000647842884, -0.766898036, 0.641768754) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1718 | CFrame.new(-0.0671697259, 2.44198537, 2.82332158, 0.99988538, -0.0151350051, -0.000647842884, 0.009216398, 0.641702771, -0.766898036, 0.0120227486, 0.766804099, 0.641768754) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1719 | CFrame.new(1.83838439, 2.67886591, 0.0802880749, -2.82153487e-05, 0.707110763, 0.707103014, -3.48687172e-06, -0.707103014, 0.707110524, 1.00000012, 1.75237656e-05, 2.24113464e-05) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1720 | CFrame.new(-1.61722004, 2.37308216, -0.0369534679, 0.0996018648, -0.819160461, -0.564850211, 0.0309238136, -0.56485045, 0.82461369, -0.994546771, -0.0996004194, -0.0309286118) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1721 | CFrame.new(0.999969661, -3.48585701, -0.497745633, 1, 1.82539225e-05, 1.02139893e-06, -1.46329403e-05, 0.766044199, 0.642787874, 1.09598041e-05, -0.642788053, 0.766044199) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1722 | CFrame.new(-0.999921381, -3.45396709, -0.373242021, 1.00000024, -2.43186951e-05, -2.02894444e-06, 1.99228525e-05, 0.766044378, 0.642787635, -1.40666962e-05, -0.642787695, 0.766044438) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1723 | }, .3, false) | |
1724 | end | |
1725 | for i = 0, 1.5, 0.1 do | |
1726 | swait() | |
1727 | xy = xy - .5 | |
1728 | PlayAnimationFromTable({ | |
1729 | CFrame.new(-0, -0, -0, 1.00000751, 0, 0, 0, 1, 0, 0, 0, 1.00000751) * CFrame.new(0,0 + .1 * math.cos(Sine/10), 0) * CFrame.Angles(0, 0, 0), | |
1730 | CFrame.new(2.09699351e-07, 3.07826781, -0.0930013061, 1.00000381, 4.02331352e-07, -2.29477882e-06, 0, 0.984807849, 0.173648134, 2.32458115e-06, -0.173648804, 0.984811544) * CFrame.new(0, 0 + .2 * math.cos(Sine/10), 0) * CFrame.Angles(RAD(0 + 2 * math.cos(Sine/4)), 0, 0), | |
1731 | CFrame.new(3.23488927, 0.217123732, -0.0756206512, 0.986215889, -0.164953321, -0.0135539025, 0.164731994, 0.986208379, -0.0160120502, 0.0160082281, 0.0135585759, 0.99978739) * CFrame.new(0, 0 + .1 * math.cos(Sine/10), 0) * CFrame.Angles(0, 0, RAD(0 - 2 * math.cos(Sine/10))), | |
1732 | CFrame.new(-2.27295804, 2.68117332, -0.407379597, -0.142512456, -0.53919214, 0.830046415, 0.0714119896, -0.842015326, -0.534706116, 0.987221003, -0.0169270113, 0.158502445) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, RAD(0 + 2 * math.cos(Sine/10))), | |
1733 | CFrame.new(1.00000048, -3.99999428, 8.58306885e-06, 0.984811425, 0.0301538315, -0.171010852, 0, 0.984807849, 0.173648164, 0.173648983, -0.171010718, 0.969849944) * CFrame.new(0, 0 - .1 * math.cos(Sine/10), 0) * CFrame.Angles(0, 0, 0), | |
1734 | CFrame.new(-1.19524455, -4.0063982, -0.555813253, 0.996198535, 0, 0.0871554539, 0, 1, 0, -0.0871554539, 0, 0.996198535) * CFrame.new(0, 0 - .3 * math.cos(Sine/3.5), 0) * CFrame.Angles(0, 0, 0), | |
1735 | }, .1, false) | |
1736 | meh.Scale = Vector3.new(xy, xy, xy) | |
1737 | end | |
1738 | meh.Scale = Vector3.new(2, 2, 2) | |
1739 | Humanoid.WalkSpeed = 16 | |
1740 | Humanoid.JumpPower = 50 | |
1741 | Attack = false | |
1742 | end | |
1743 | ||
1744 | function card() | |
1745 | Attack = true | |
1746 | Humanoid.WalkSpeed = 0 | |
1747 | Humanoid.JumpPower = 0 | |
1748 | for i = 0, 5, 0.1 do | |
1749 | swait() | |
1750 | PlayAnimationFromTable({ | |
1751 | CFrame.new(0.0594676584, 0.0768035352, -0.0666813478, 0.884229183, 0.0283103138, 0.46619451, -0.046942994, 0.998493731, 0.0284016542, -0.464688241, -0.0469981395, 0.884226322) * CFrame.new(0, 0 + .1 * math.cos(Sine/10), 0) * CFrame.Angles(0, 0, 0), | |
1752 | CFrame.new(-0.320109785, 3.63055658, -0.170195401, 0.694239378, -0.266091168, 0.668750525, 0.0364392735, 0.940953016, 0.336570561, -0.718821168, -0.209291756, 0.662942886) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1753 | CFrame.new(3.35686827, 0.22342144, -0.428599238, 0.968903899, -0.230326891, 0.090413481, 0.243740588, 0.9513551, -0.188451782, -0.0426098406, 0.204629123, 0.97791177) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1754 | CFrame.new(-2.54222584, -0.211173713, 0.944933712, 0.922422528, -0.0570006818, 0.381952316, -0.034134835, 0.973141432, 0.227663115, -0.384670615, -0.223039463, 0.895702004) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1755 | CFrame.new(1.25511241, -4.02567768, 0.0611277819, 0.840364099, -0.046942994, -0.539985716, 0.0241064206, 0.998493731, -0.0492867082, 0.541486025, 0.0284016542, 0.840229928) * CFrame.new(0, 0 - .1 * math.cos(Sine/10), 0) * CFrame.Angles(0, 0, 0), | |
1756 | CFrame.new(-0.907657266, -4.11040592, -0.53483367, 0.976054788, -0.046942994, 0.212399751, 0.0518967845, 0.998493731, -0.0178051461, -0.211244017, 0.0284016542, 0.977020741) * CFrame.new(0, 0 - .1 * math.cos(Sine/10), 0) * CFrame.Angles(0, 0, 0), | |
1757 | }, .2, false) | |
1758 | end | |
1759 | MysteryCard=CFuncs.Part.Create(workspace,Enum.Material.Plastic,0,0,"White","MysteryCard",Vector3.new(0.880001426, 0.0500000007, 1.42000163)) | |
1760 | MysteryCardWeld=CFuncs.Weld.Create(workspace,Character["Left Arm"],MysteryCard,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.019998312, -0.0606269836, -2.56632233, -1, -1.86971738e-06, 5.30659418e-06, -5.45002649e-06, 2.93751145e-06, -1, 3.13629062e-06, -1.00000417, -2.86020963e-06)) | |
1761 | local dec = Instance.new("Decal",MysteryCard) | |
1762 | dec.Texture = "rbxassetid://8644107" | |
1763 | dec.Face = "Bottom" | |
1764 | local e = math.random(1,4) | |
1765 | if e == 1 then | |
1766 | local dec2 = Instance.new("Decal",MysteryCard) | |
1767 | dec2.Texture = "rbxassetid://173448236" | |
1768 | dec2.Face = "Top" | |
1769 | elseif e == 2 then | |
1770 | local dec2 = Instance.new("Decal",MysteryCard) | |
1771 | dec2.Texture = "rbxassetid://1167119856" | |
1772 | dec2.Face = "Top" | |
1773 | CFuncs.Sound.Create("976606790", Torso, 3, 1) | |
1774 | elseif e == 3 then | |
1775 | local dec2 = Instance.new("Decal",MysteryCard) | |
1776 | dec2.Texture = "rbxassetid://342673258" | |
1777 | dec2.Face = "Top" | |
1778 | elseif e == 100 then | |
1779 | local dec2 = Instance.new("Decal",MysteryCard) | |
1780 | dec2.Texture = "rbxassetid://1403304829" | |
1781 | dec2.Face = "Top" | |
1782 | elseif e == 4 then | |
1783 | local dec2 = Instance.new("Decal",MysteryCard) | |
1784 | dec2.Texture = "rbxassetid://358190487" | |
1785 | dec2.Face = "Top" | |
1786 | end | |
1787 | for i = 0, .1, 0.1 do | |
1788 | swait() | |
1789 | PlayAnimationFromTable({ | |
1790 | CFrame.new(0.0594634786, 0.0768039674, -0.0666834489, 0.998862267, 0.0283112749, -0.0383773446, -0.0264539961, 0.998493731, 0.0480682589, 0.0396804214, -0.0469983406, 0.998106539) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1791 | CFrame.new(-0.122908428, 3.62031841, -0.300296009, 0.993329167, -0.08360935, 0.0794143826, 0.0752441362, 0.991826117, 0.103050947, -0.0873812661, -0.096388042, 0.991500795) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1792 | CFrame.new(3.27946377, 0.196054846, -0.0853066146, 0.977669358, -0.20545657, 0.0441635996, 0.20282878, 0.977524698, 0.0574999899, -0.0549847484, -0.0472583175, 0.997368217) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1793 | CFrame.new(-3.38164973, 1.88772869, -1.7773633, 0.870166838, 0.233024612, -0.434176862, -0.190451264, -0.653598666, -0.732487082, -0.454464883, 0.720075309, -0.524359882) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1794 | CFrame.new(1.11755061, -4.02567816, -0.574618757, 0.998519659, -0.0264539961, -0.0475273132, 0.0241073575, 0.998493731, -0.0492869914, 0.0487595648, 0.0480682589, 0.997653246) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1795 | CFrame.new(-1.05345631, -4.11040878, -0.0093524158, 0.73966682, -0.0264539961, 0.672453284, 0.0518976487, 0.998493731, -0.0178046823, -0.670969307, 0.0480682589, 0.739925504) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1796 | }, .1, false) | |
1797 | end | |
1798 | for i = 0, 5, 0.1 do | |
1799 | swait() | |
1800 | PlayAnimationFromTable({ | |
1801 | CFrame.new(0.0594634786, 0.0768039674, -0.0666834489, 0.998862267, 0.0283112749, -0.0383773446, -0.0264539961, 0.998493731, 0.0480682589, 0.0396804214, -0.0469983406, 0.998106539) * CFrame.new(0, 0 + .1 * math.cos(Sine/10), 0) * CFrame.Angles(0, 0, 0), | |
1802 | CFrame.new(-0.122908428, 3.62031841, -0.300296009, 0.993329167, -0.08360935, 0.0794143826, 0.0752441362, 0.991826117, 0.103050947, -0.0873812661, -0.096388042, 0.991500795) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1803 | CFrame.new(3.27946377, 0.196054846, -0.0853066146, 0.977669358, -0.20545657, 0.0441635996, 0.20282878, 0.977524698, 0.0574999899, -0.0549847484, -0.0472583175, 0.997368217) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1804 | CFrame.new(-1.93848646, 1.49346352, -2.41478252, 0.870159626, 0.0276981965, -0.491991103, -0.190459937, -0.901923239, -0.387633443, -0.454474866, 0.431007445, -0.779541671) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1805 | CFrame.new(1.11755061, -4.02567816, -0.574618757, 0.998519659, -0.0264539961, -0.0475273132, 0.0241073575, 0.998493731, -0.0492869914, 0.0487595648, 0.0480682589, 0.997653246) * CFrame.new(0, 0 - .1 * math.cos(Sine/10), 0) * CFrame.Angles(0, 0, 0), | |
1806 | CFrame.new(-1.05345631, -4.11040878, -0.0093524158, 0.73966682, -0.0264539961, 0.672453284, 0.0518976487, 0.998493731, -0.0178046823, -0.670969307, 0.0480682589, 0.739925504) * CFrame.new(0, 0 - .1 * math.cos(Sine/10), 0) * CFrame.Angles(0, 0, 0), | |
1807 | }, .2, false) | |
1808 | end | |
1809 | ||
1810 | for i = 0, 3, 0.1 do | |
1811 | swait() | |
1812 | PlayAnimationFromTable({ | |
1813 | CFrame.new(0.0594634525, 0.0768030137, -0.0666834041, 0.998862267, 0.0283112749, -0.0383773446, -0.0264539961, 0.998493731, 0.0480682589, 0.0396804214, -0.0469983406, 0.998106539) * CFrame.new(0, 0 + .1 * math.cos(Sine/10), 0) * CFrame.Angles(0, 0, 0), | |
1814 | CFrame.new(-0.122923493, 3.62031841, -0.300292909, 0.993329167, -0.08360935, 0.0794143826, 0.0752441362, 0.991826117, 0.103050947, -0.0873812661, -0.096388042, 0.991500795) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1815 | CFrame.new(3.27946401, 0.196052969, -0.0853065252, 0.977669358, -0.20545657, 0.0441635996, 0.20282878, 0.977524698, 0.0574999899, -0.0549847484, -0.0472583175, 0.997368217) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1816 | CFrame.new(-1.89293754, 1.45044494, -1.85970807, -0.996556878, -0.0150756445, 0.0815295279, 0.00878233463, -0.996992052, -0.0770052373, 0.0824451596, -0.0760240704, 0.993691742) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1817 | CFrame.new(1.11755061, -4.02567768, -0.574618697, 0.998519659, -0.0264539961, -0.0475273132, 0.0241073575, 0.998493731, -0.0492869914, 0.0487595648, 0.0480682589, 0.997653246) * CFrame.new(0, 0 - .1 * math.cos(Sine/10), 0) * CFrame.Angles(0, 0, 0), | |
1818 | CFrame.new(-1.05346203, -4.11040878, -0.00934726, 0.73966682, -0.0264539961, 0.672453284, 0.0518976487, 0.998493731, -0.0178046823, -0.670969307, 0.0480682589, 0.739925504) * CFrame.new(0, 0 - .1 * math.cos(Sine/10), 0) * CFrame.Angles(0, 0, 0), | |
1819 | }, .2, false) | |
1820 | end | |
1821 | if e == 1 then | |
1822 | MagnitudeDamage(Torso, 70, 20, 20, 0, "Seizure", " ", 1) | |
1823 | Effects.Sphere2.Create(BrickColor.new("Eggplant"), MysteryCard.CFrame, 1, 1, 1, 1, 1, 1, .01) | |
1824 | Effects.InnerSphere.Create(BrickColor.new("Eggplant"), MysteryCard.CFrame, 100, 2, .01) | |
1825 | CFuncs.Sound.Create("1751051242", Torso, 5, 1) | |
1826 | elseif e == 2 then | |
1827 | MagnitudeDamage(Torso, 70, 10, 10, 0, "Freeze", " ", 1) | |
1828 | Effects.Sphere2.Create(BrickColor.new("Baby blue"), MysteryCard.CFrame, 2, 2, 2, 2, 2, 2, .01) | |
1829 | Effects.Sphere1.Create(BrickColor.new("Baby blue"), MysteryCard.CFrame, 1, 1, 1, 1, 1, 1, .01) | |
1830 | elseif e == 3 then | |
1831 | CFuncs.Sound.Create("157506631", Torso, 5, 1) | |
1832 | for i = 1,5 do | |
1833 | Effects.InnerSphere.Create(BrickColor.new("Crimson"), MysteryCard.CFrame, 100, 2, .01) | |
1834 | wait(.4) | |
1835 | end | |
1836 | wait(.8) | |
1837 | MagnitudeDamage(Torso, 70, 500, 500, 500, "Normal", " ", 1) | |
1838 | CFuncs.Sound.Create("1543847134", Torso, 5, 1) | |
1839 | Effects.Sphere2.Create(BrickColor.new("Crimson"), MysteryCard.CFrame, 2, 2, 2, 13, 13, 13, .01) | |
1840 | Effects.Sphere1.Create(BrickColor.new("Really red"), MysteryCard.CFrame, 1, 1, 1, 12, 12, 12, .01) | |
1841 | elseif e == 100 then | |
1842 | MagnitudeDamage(Torso, 70, 5, 5, 0, "Float", " ", 1) | |
1843 | Effects.Sphere2.Create(BrickColor.new("White"), MysteryCard.CFrame, 1, 1, 1, 1, 1, 1, .01) | |
1844 | elseif e == 4 then | |
1845 | MagnitudeDamage(Torso, 70, 30, 30, 0, "Paralyze", " ", 1) | |
1846 | Effects.Sphere2.Create(BrickColor.new("Gold"), MysteryCard.CFrame, 1, 1, 1, 8, 8, 8, .05) | |
1847 | Effects.InnerSphere.Create(BrickColor.new("White"), MysteryCard.CFrame, 100, 2, .01) | |
1848 | end | |
1849 | table.insert(Effects, {MysteryCard,"Disappear",.01}) | |
1850 | for i = 0, 5, 0.1 do | |
1851 | swait() | |
1852 | PlayAnimationFromTable({ | |
1853 | CFrame.new(0.0594634525, 0.0768030137, -0.0666834041, 0.998862267, 0.0283112749, -0.0383773446, -0.0264539961, 0.998493731, 0.0480682589, 0.0396804214, -0.0469983406, 0.998106539) * CFrame.new(0, 0 + .1 * math.cos(Sine/10), 0) * CFrame.Angles(0, 0, 0), | |
1854 | CFrame.new(-0.122923493, 3.62031841, -0.300292909, 0.993329167, -0.08360935, 0.0794143826, 0.0752441362, 0.991826117, 0.103050947, -0.0873812661, -0.096388042, 0.991500795) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1855 | CFrame.new(3.27946401, 0.196052969, -0.0853065252, 0.977669358, -0.20545657, 0.0441635996, 0.20282878, 0.977524698, 0.0574999899, -0.0549847484, -0.0472583175, 0.997368217) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1856 | CFrame.new(-1.89293754, 1.45044494, -1.85970807, -0.996556878, -0.0150756445, 0.0815295279, 0.00878233463, -0.996992052, -0.0770052373, 0.0824451596, -0.0760240704, 0.993691742) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1857 | CFrame.new(1.11755061, -4.02567768, -0.574618697, 0.998519659, -0.0264539961, -0.0475273132, 0.0241073575, 0.998493731, -0.0492869914, 0.0487595648, 0.0480682589, 0.997653246) * CFrame.new(0, 0 - .1 * math.cos(Sine/10), 0) * CFrame.Angles(0, 0, 0), | |
1858 | CFrame.new(-1.05346203, -4.11040878, -0.00934726, 0.73966682, -0.0264539961, 0.672453284, 0.0518976487, 0.998493731, -0.0178046823, -0.670969307, 0.0480682589, 0.739925504) * CFrame.new(0, 0 - .1 * math.cos(Sine/10), 0) * CFrame.Angles(0, 0, 0), | |
1859 | }, .2, false) | |
1860 | end | |
1861 | Humanoid.WalkSpeed = 16 | |
1862 | Humanoid.JumpPower = 50 | |
1863 | Attack = false | |
1864 | MysteryCard:Destroy() | |
1865 | MysteryCardWeld:Destroy() | |
1866 | end | |
1867 | ||
1868 | ||
1869 | ||
1870 | ||
1871 | function unanchor() | |
1872 | g = Character:GetChildren() | |
1873 | for i = 1, #g do | |
1874 | if g[i].ClassName == "Part" then | |
1875 | g[i].Anchored = false | |
1876 | end | |
1877 | end | |
1878 | end | |
1879 | ||
1880 | ||
1881 | Mouse.KeyDown:connect(function(Key) | |
1882 | Key = Key:lower() | |
1883 | if Attack == false and Key == 'z' and Anim == "Idle" then | |
1884 | overthere() | |
1885 | elseif Attack == false and Key == 'x' and Anim == "Idle" then | |
1886 | topwat() | |
1887 | elseif Attack == false and Key == 'c' then | |
1888 | card() | |
1889 | elseif Attack == false and Key == 'v' then | |
1890 | print("too lazy to add this move lul") | |
1891 | elseif Attack == false and Key == 't' and Anim == "Idle" then | |
1892 | hatsoff() | |
1893 | end | |
1894 | end) | |
1895 | ||
1896 | ||
1897 | ||
1898 | ||
1899 | ||
1900 | while true do | |
1901 | swait() | |
1902 | unanchor() | |
1903 | for i, v in pairs(Character:GetChildren()) do | |
1904 | if v:IsA("Part") then | |
1905 | v.Material = "SmoothPlastic" | |
1906 | elseif v:IsA("Accessory") then | |
1907 | v:WaitForChild("Handle").Material = "SmoothPlastic" | |
1908 | end | |
1909 | end | |
1910 | for i, v in pairs(Character:GetChildren()) do | |
1911 | if v:IsA'Model' then | |
1912 | for _, c in pairs(v:GetChildren()) do | |
1913 | if c:IsA'Part' then | |
1914 | c.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001) | |
1915 | end | |
1916 | end | |
1917 | end | |
1918 | end | |
1919 | TorsoVelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
1920 | Velocity = RootPart.Velocity.y | |
1921 | Sine = Sine + Change | |
1922 | local hit, pos = RayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 7, Character) | |
1923 | if RootPart.Velocity.y > 1 and hit == nil then | |
1924 | Anim = "Jump" | |
1925 | if Attack == false then | |
1926 | Change = 1 | |
1927 | PlayAnimationFromTable({ | |
1928 | CFrame.new(-0, -0, -0, 1.00000751, 0, 0, 0, 1, 0, 0, 0, 1.00000751) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1929 | CFrame.new(-6.66721871e-06, 4.92021656, -0.417787671, 1.00000381, 4.02331352e-07, -2.29477882e-06, 0, 0.984807849, 0.173648134, 2.32458115e-06, -0.173648804, 0.984811544) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1930 | CFrame.new(2.04141426, 2.38522053, -0.261183709, 0.870933354, 0.490618378, 0.0278630257, 0.491302133, -0.868171513, -0.0700040013, -0.0101553798, 0.0746579692, -0.997161388) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1931 | CFrame.new(-2.27295709, 2.68117261, -0.407387137, -0.142512456, -0.53919214, 0.830046415, 0.0714119896, -0.842015326, -0.534706116, 0.987221003, -0.0169270113, 0.158502445) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1932 | CFrame.new(1.03295517, -2.92346931, -0.186930001, 0.984811425, 0.0301538315, -0.171010852, 0, 0.984807849, 0.173648164, 0.173648983, -0.171010718, 0.969849944) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1933 | CFrame.new(-1.19524062, -3.79352093, -0.555811405, 1.00000381, 0, -1.78813934e-07, 0, 1, 0, 1.78813934e-07, 0, 1.00000381) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1934 | }, .04, false) | |
1935 | end | |
1936 | elseif RootPart.Velocity.y < -1 and hit == nil then | |
1937 | Anim = "Fall" | |
1938 | if Attack == false then | |
1939 | Change = 1 | |
1940 | PlayAnimationFromTable({ | |
1941 | CFrame.new(-0, -0, -0, 1.00000751, 0, 0, 0, 1, 0, 0, 0, 1.00000751) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, .05), | |
1942 | CFrame.new(-6.66721871e-06, 4.92021656, -0.417787671, 1.00000381, 4.02331352e-07, -2.29477882e-06, 0, 0.984807849, 0.173648134, 2.32458115e-06, -0.173648804, 0.984811544) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1943 | CFrame.new(2.04141426, 2.38522053, -0.261183709, 0.870933354, 0.490618378, 0.0278630257, 0.491302133, -0.868171513, -0.0700040013, -0.0101553798, 0.0746579692, -0.997161388) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1944 | CFrame.new(-2.27295709, 2.68117261, -0.407387137, -0.142512456, -0.53919214, 0.830046415, 0.0714119896, -0.842015326, -0.534706116, 0.987221003, -0.0169270113, 0.158502445) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1945 | CFrame.new(1.03295517, -2.92346931, -0.186930001, 0.984811425, 0.0301538315, -0.171010852, 0, 0.984807849, 0.173648164, 0.173648983, -0.171010718, 0.969849944) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1946 | CFrame.new(-1.19524062, -3.79352093, -0.555811405, 1.00000381, 0, -1.78813934e-07, 0, 1, 0, 1.78813934e-07, 0, 1.00000381) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1947 | }, .04, false) | |
1948 | end | |
1949 | elseif TorsoVelocity < 1 and hit ~= nil then | |
1950 | Anim = "Idle" | |
1951 | if Attack == false then | |
1952 | Change = 1 | |
1953 | PlayAnimationFromTable({ | |
1954 | CFrame.new(-0, -0, -0, 1.00000751, 0, 0, 0, 1, 0, 0, 0, 1.00000751) * CFrame.new(0,0 + .1 * math.cos(Sine/10), 0) * CFrame.Angles(0, 0, .02), | |
1955 | CFrame.new(2.09699351e-07, 3.07826781, -0.0930013061, 1.00000381, 4.02331352e-07, -2.29477882e-06, 0, 0.984807849, 0.173648134, 2.32458115e-06, -0.173648804, 0.984811544) * CFrame.new(0, 0 + .2 * math.cos(Sine/10), 0) * CFrame.Angles(RAD(0 + 5 * math.cos(Sine/10)), 0, 0), | |
1956 | CFrame.new(3.23488927, 0.217123732, -0.0756206512, 0.986215889, -0.164953321, -0.0135539025, 0.164731994, 0.986208379, -0.0160120502, 0.0160082281, 0.0135585759, 0.99978739) * CFrame.new(0, 0 + .1 * math.cos(Sine/10), 0) * CFrame.Angles(0, 0, RAD(0 - 2 * math.cos(Sine/10))), | |
1957 | CFrame.new(-2.27295804, 2.68117332, -0.407379597, -0.142512456, -0.53919214, 0.830046415, 0.0714119896, -0.842015326, -0.534706116, 0.987221003, -0.0169270113, 0.158502445) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, RAD(0 + 2 * math.cos(Sine/10))), | |
1958 | CFrame.new(1.00000048, -3.99999428, 8.58306885e-06, 0.984811425, 0.0301538315, -0.171010852, 0, 0.984807849, 0.173648164, 0.173648983, -0.171010718, 0.969849944) * CFrame.new(0, 0 - .1 * math.cos(Sine/10), 0) * CFrame.Angles(0, 0, 0), | |
1959 | CFrame.new(-1.19524455, -4.0063982, -0.555813253, 0.996198535, 0, 0.0871554539, 0, 1, 0, -0.0871554539, 0, 0.996198535) * CFrame.new(0, 0 - playlist.PlaybackLoudness/500 * math.cos(Sine/3.5), 0) * CFrame.Angles(0, 0, 0), | |
1960 | }, .1, false) | |
1961 | end | |
1962 | elseif TorsoVelocity > 2 and hit ~= nil then | |
1963 | Anim = "Walk" | |
1964 | if Attack == false then | |
1965 | PlayAnimationFromTable({ | |
1966 | CFrame.new(-0, -0, -0, 1.00000751, 0, 0, 0, 1, 0, 0, 0, 1.00000751) * CFrame.new(0, .1 + .2 * math.cos(Sine/8), 0) * CFrame.Angles(-.1, 0 - .02 * math.sin(Sine/8), 0 - .02 * math.sin(Sine/8)), | |
1967 | CFrame.new(2.09699351e-07, 3.07826781, -0.0930013061, 1.00000381, 4.02331352e-07, -2.29477882e-06, 0, 0.984807849, 0.173648134, 2.32458115e-06, -0.173648804, 0.984811544) * CFrame.new(0, .1 + .2 * math.cos(Sine/8), 0) * CFrame.Angles(RAD(0 + 2 * math.cos(Sine/4)), 0, 0), | |
1968 | CFrame.new(3.23488927, 0.217123732, -0.0756206512, 0.986215889, -0.164953321, -0.0135539025, 0.164731994, 0.986208379, -0.0160120502, 0.0160082281, 0.0135585759, 0.99978739) * CFrame.new(0, .1 + .2 * math.cos(Sine/8), 0) * CFrame.Angles(RAD(0 - 10 * math.cos(Sine/8)), 0, RAD(0 - 2 * math.cos(Sine/10))), | |
1969 | CFrame.new(-2.27295804, 2.68117332, -0.407379597, -0.142512456, -0.53919214, 0.830046415, 0.0714119896, -0.842015326, -0.534706116, 0.987221003, -0.0169270113, 0.158502445) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, RAD(0 + 2 * math.cos(Sine/10))), | |
1970 | CFrame.new(1.00000048, -3.99999428, 8.58306885e-06, 0.984811425, 0.0301538315, -0.171010852, 0, 0.984807849, 0.173648164, 0.173648983, -0.171010718, 0.969849944) * CFrame.new(0, .1 + .6 * math.cos(Sine/8), math.sin(Sine/-8)) * CFrame.Angles(.1 + .6 * math.sin(Sine/8), 0, 0), | |
1971 | CFrame.new(-1.19524455, -4.0063982, -0.555813253, 0.996198535, 0, 0.0871554539, 0, 1, 0, -0.0871554539, 0, 0.996198535) * CFrame.new(0, .1 - .6 * math.cos(Sine/8), math.sin(Sine/8)) * CFrame.Angles(.1 + .6 * math.sin(Sine/-8), 0, 0), | |
1972 | }, .1, false) --math.cos on the Y angle of the CFrame.new, math.sin on the Z angle of it, and math.sin on the X angle of the CFrame.angles | |
1973 | end | |
1974 | end | |
1975 | if #Effects > 0 then | |
1976 | for e = 1, #Effects do | |
1977 | if Effects[e] ~= nil then | |
1978 | local Thing = Effects[e] | |
1979 | if Thing ~= nil then | |
1980 | local Part = Thing[1] | |
1981 | local Mode = Thing[2] | |
1982 | local Delay = Thing[3] | |
1983 | local IncX = Thing[4] | |
1984 | local IncY = Thing[5] | |
1985 | if Thing[1].Transparency <= 1 then | |
1986 | if Thing[2] == "Block1" then | |
1987 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
1988 | Mesh = Thing[7] | |
1989 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1990 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1991 | elseif Thing[2] == "Ice" then | |
1992 | if Thing[6] <= Thing[5] then | |
1993 | Thing[6] = Thing[6] + .05 | |
1994 | Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, .4, 0) | |
1995 | else | |
1996 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1997 | end | |
1998 | elseif Thing[2] == "Shatter" then | |
1999 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
2000 | Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0) | |
2001 | Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0) | |
2002 | Thing[6] = Thing[6] + Thing[5] | |
2003 | elseif Thing[2] == "Block2" then | |
2004 | Thing[1].CFrame = Thing[1].CFrame | |
2005 | Mesh = Thing[7] | |
2006 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
2007 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
2008 | elseif Thing[2] == "Block3" then | |
2009 | Thing[1].CFrame = Thing[8].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
2010 | Mesh = Thing[7] | |
2011 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
2012 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
2013 | elseif Thing[2] == "Block4" then | |
2014 | Thing[1].CFrame = Thing[8].CFrame * CFrame.new(0, -Thing[7].Scale.Y, 0) * CFrame.fromEulerAnglesXYZ(3.14, 0, 0) | |
2015 | Mesh = Thing[7] | |
2016 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
2017 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
2018 | elseif Thing[2] == "Block2Fire" then | |
2019 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
2020 | Mesh = Thing[7] | |
2021 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
2022 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
2023 | if Thing[1].Transparency >= .3 then | |
2024 | Thing[1].BrickColor = BrickColor.new("Bright red") | |
2025 | else | |
2026 | Thing[1].BrickColor = BrickColor.new("Bright yellow") | |
2027 | end | |
2028 | elseif Thing[2] == "Cylinder" then | |
2029 | Mesh = Thing[7] | |
2030 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
2031 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
2032 | elseif Thing[2] == "Blood" then | |
2033 | Mesh = Thing[7] | |
2034 | Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, -.5, 0) | |
2035 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
2036 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
2037 | elseif Thing[2] == "Elec" then | |
2038 | Mesh = Thing[10] | |
2039 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9]) | |
2040 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
2041 | Thing[1].CFrame = Thing[1].CFrame * Thing[11] * CFrame.new(0, 0, .2) | |
2042 | Thing[1].Rotation = Vector3.new(0, 0, 0) | |
2043 | elseif Thing[2] == "Disappear" then | |
2044 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
2045 | end | |
2046 | else | |
2047 | Part.Parent = nil | |
2048 | table.remove(Effects, e) | |
2049 | end | |
2050 | end | |
2051 | end | |
2052 | end | |
2053 | end | |
2054 | if playlist.IsPlaying == false then | |
2055 | playlist:Destroy() | |
2056 | playlist=Instance.new("Sound", Torso) | |
2057 | playlist.SoundId = "rbxassetid://" ..songs[math.random(#songs)] | |
2058 | playlist.Volume = 3 | |
2059 | playlist.Looped = false | |
2060 | playlist.Name = "aa" | |
2061 | warn(playlist.SoundId) | |
2062 | playlist:Play() | |
2063 | end | |
2064 | playlist.Volume = 3 | |
2065 | playlist.Looped = false | |
2066 | --soundbork(workspace) | |
2067 | if true then | |
2068 | Humanoid.MaxHealth = 1e100 | |
2069 | Humanoid.Health = 1e100 | |
2070 | Humanoid.Name = math.random()*100 | |
2071 | end | |
2072 | end |