SHOW:
|
|
- or go back to the newest paste.
1 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end | |
2 | local Player,Mouse,mouse,UserInputService,ContextActionService = owner | |
3 | do | |
4 | print("FE Compatibility code by Mokiros") | |
5 | script.Parent = Player.Character | |
6 | ||
7 | --RemoteEvent for communicating | |
8 | local Event = Instance.new("RemoteEvent") | |
9 | Event.Name = "UserInput_Event" | |
10 | ||
11 | --Fake event to make stuff like Mouse.KeyDown work | |
12 | local function fakeEvent() | |
13 | local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end} | |
14 | t.connect = t.Connect | |
15 | return t | |
16 | end | |
17 | ||
18 | --Creating fake input objects with fake variables | |
19 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()} | |
20 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} | |
21 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...) | |
22 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil | |
23 | end} | |
24 | --Merged 2 functions into one by checking amount of arguments | |
25 | CAS.UnbindAction = CAS.BindAction | |
26 | ||
27 | --This function will trigger the events that have been :Connect()'ed | |
28 | local function te(self,ev,...) | |
29 | local t = m[ev] | |
30 | if t and t._fakeEvent and t.Function then | |
31 | t.Function(...) | |
32 | end | |
33 | end | |
34 | m.TrigEvent = te | |
35 | UIS.TrigEvent = te | |
36 | ||
37 | Event.OnServerEvent:Connect(function(plr,io) | |
38 | if plr~=Player then return end | |
39 | if io.isMouse then | |
40 | m.Target = io.Target | |
41 | m.Hit = io.Hit | |
42 | else | |
43 | local b = io.UserInputState == Enum.UserInputState.Begin | |
44 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
45 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
46 | end | |
47 | for _,t in pairs(CAS.Actions) do | |
48 | for _,k in pairs(t.Keys) do | |
49 | if k==io.KeyCode then | |
50 | t.Function(t.Name,io.UserInputState,io) | |
51 | end | |
52 | end | |
53 | end | |
54 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
55 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
56 | end | |
57 | end) | |
58 | Event.Parent = NLS([==[ | |
59 | local Player = game:GetService("Players").LocalPlayer | |
60 | local Event = script:WaitForChild("UserInput_Event") | |
61 | ||
62 | local UIS = game:GetService("UserInputService") | |
63 | local input = function(io,a) | |
64 | if a then return end | |
65 | --Since InputObject is a client-side instance, we create and pass table instead | |
66 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState}) | |
67 | end | |
68 | UIS.InputBegan:Connect(input) | |
69 | UIS.InputEnded:Connect(input) | |
70 | ||
71 | local Mouse = Player:GetMouse() | |
72 | local h,t | |
73 | --Give the server mouse data 30 times every second, but only if the values changed | |
74 | --If player is not moving their mouse, client won't fire events | |
75 | while wait(1/30) do | |
76 | if h~=Mouse.Hit or t~=Mouse.Target then | |
77 | h,t=Mouse.Hit,Mouse.Target | |
78 | Event:FireServer({isMouse=true,Target=t,Hit=h}) | |
79 | end | |
80 | end]==],Player.Character) | |
81 | Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS | |
82 | end | |
83 | --[[<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>><><><><><><><> | |
84 | ||
85 | ||
86 | 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. | |
87 | ||
88 | 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. | |
89 | ||
90 | 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. | |
91 | ||
92 | 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. | |
93 | ||
94 | After this incident, Malcom has hidden himself to the rest of the world, his mystical wonders hidden.. Until now. | |
95 | ||
96 | ||
97 | <><><><><><><><><><><><><><><><><><><><><>><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><> | |
98 | ||
99 | ||
100 | <>Controls<> | |
101 | ||
102 | Z: Disappearing Act <> Use your hat to warp to your mouse cursor. | |
103 | ||
104 | ||
105 | X: Hat Trick <> Pull three different things out of your hat. (Its randomized!) | |
106 | ||
107 | ||
108 | C: Draw a Card <> Draw a card that does one of five effects. (Its randomized!) | |
109 | ||
110 | ||
111 | V: lul | |
112 | ||
113 | ||
114 | T: Heads Off <> Tell your audience that they will be amazed! | |
115 | ||
116 | <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>]]-- | |
117 | ||
118 | ||
119 | ||
120 | ||
121 | ||
122 | warn("Malcom Maddox was created by SezHu.") | |
123 | ||
124 | wait(1 / 40) | |
125 | Effects = { } | |
126 | local Player = owner | |
127 | local Character = Player.Character | |
128 | local Humanoid = Character.Humanoid | |
129 | local Head = Character.Head | |
130 | local RootPart = Character.HumanoidRootPart | |
131 | local Torso = Character.Torso | |
132 | local LeftArm = Character["Left Arm"] | |
133 | local RightArm = Character["Right Arm"] | |
134 | local LeftLeg = Character["Left Leg"] | |
135 | local RightLeg = Character["Right Leg"] | |
136 | local Camera = game.Workspace.CurrentCamera | |
137 | local RootJoint = RootPart.RootJoint | |
138 | local Equipped = false | |
139 | local Attack = false | |
140 | local Anim = 'Idle' | |
141 | local Idle = 0 | |
142 | local UIS = game:GetService("UserInputService") | |
143 | local Combo = 1 | |
144 | local TorsoVelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
145 | local Velocity = RootPart.Velocity.y | |
146 | local Sine = 0 | |
147 | local Change = 1 | |
148 | local killcount = 1 | |
149 | local lasersize = 0 | |
150 | local charsize = 2 | |
151 | local CF = CFrame.new | |
152 | local ANGLES = CFrame.Angles | |
153 | local RAD = math.rad | |
154 | local Neck = Torso["Neck"] | |
155 | local silenced = false | |
156 | Head.face:Destroy() | |
157 | Head.Transparency = 1 | |
158 | if(not Humanoid:FindFirstChildOfClass'ForceField')then Instance.new("ForceField",Character).Visible = false end | |
159 | ||
160 | local function soundbork(obj) | |
161 | if obj:IsA("Sound") and obj.Name ~= "aa" then | |
162 | obj.Looped = false | |
163 | obj.Pitch = 1 | |
164 | obj.Volume = 0 | |
165 | return | |
166 | end | |
167 | ||
168 | ||
169 | local children = obj:GetChildren() | |
170 | for i = 1, #children do | |
171 | soundbork(children[i]) | |
172 | end | |
173 | return | |
174 | end | |
175 | ||
176 | maincol = Torso.Color | |
177 | maincol2 = Torso.Color | |
178 | ||
179 | local RbxUtility = LoadLibrary("RbxUtility") | |
180 | local Create = RbxUtility.Create | |
181 | ||
182 | Humanoid.WalkSpeed = 16 | |
183 | Humanoid.JumpPower = 50 | |
184 | Humanoid.Animator.Parent = nil | |
185 | Character.Animate.Parent = nil | |
186 | ||
187 | local newMotor = function(part0, part1, c0, c1) | |
188 | local w = Create('Motor'){ | |
189 | Parent = part0, | |
190 | Part0 = part0, | |
191 | Part1 = part1, | |
192 | C0 = c0, | |
193 | C1 = c1, | |
194 | } | |
195 | return w | |
196 | end | |
197 | ||
198 | ||
199 | function clerp(a, b, t) | |
200 | return a:lerp(b, t) | |
201 | end | |
202 | ||
203 | RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14) | |
204 | NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
205 | local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0)) | |
206 | local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0)) | |
207 | local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0)) | |
208 | local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0)) | |
209 | RootJoint.C1 = CFrame.new(0, 0, 0) | |
210 | RootJoint.C0 = CFrame.new(0, 0, 0) | |
211 | Torso.Neck.C1 = CFrame.new(0, 0, 0) | |
212 | Torso.Neck.C0 = CFrame.new(0, 1.5, 0) | |
213 | local rarmc1 = RW.C1 | |
214 | local larmc1 = LW.C1 | |
215 | local rlegc1 = RH.C1 | |
216 | local llegc1 = LH.C1 | |
217 | local resetc1 = false | |
218 | Humanoid.Parent = nil | |
219 | RootPart.Size = RootPart.Size*charsize | |
220 | Torso.Size = Torso.Size*charsize | |
221 | RightArm.Size = RightArm.Size*charsize | |
222 | RightLeg.Size = RightLeg.Size*charsize | |
223 | LeftArm.Size = LeftArm.Size*charsize | |
224 | LeftLeg.Size = LeftLeg.Size*charsize | |
225 | Head.Size = Head.Size*charsize | |
226 | RootJoint.Parent = RootPart | |
227 | Neck.Parent = Torso | |
228 | RW.Parent = Torso | |
229 | LW.Parent = Torso | |
230 | RH.Parent = Torso | |
231 | LH.Parent = Torso | |
232 | Humanoid.Parent = Character | |
233 | ||
234 | ch = Character:GetChildren() | |
235 | for i = 1, #ch do | |
236 | if ch[i].Name == "Torso" then | |
237 | ch[i].roblox.Transparency = 1 | |
238 | elseif ch[i].ClassName == "Accessory" or ch[i].ClassName == "Shirt" or ch[i].ClassName == "Pants" or ch[i].ClassName == "ShirtGraphic" then | |
239 | ch[i]:Destroy() | |
240 | end | |
241 | end | |
242 | ||
243 | ||
244 | --<><><><><><><><><><><><>-- | |
245 | ||
246 | --Passive Effects-- | |
247 | ||
248 | --<><><><><><><><><><><><>-- | |
249 | ||
250 | spawn(function() | |
251 | while true do | |
252 | wait(.1) | |
253 | if Anim == "Idle" or Anim == "Walk" then | |
254 | 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)) | |
255 | refpart.Anchored = false | |
256 | refpart.CFrame = RootPart.CFrame * CFrame.new(math.random(-30,30),80,math.random(-30,30)) | |
257 | refpart.CanCollide = false | |
258 | local GRAVITY_ACCELERATION = 3.05 | |
259 | local bodyForce = Instance.new('BodyForce', refpart) | |
260 | bodyForce.Name = 'Antigravity' | |
261 | bodyForce.force = Vector3.new(0, refpart:GetMass() * GRAVITY_ACCELERATION, 0) | |
262 | local rl = Create("BodyAngularVelocity"){ | |
263 | P = 300, | |
264 | maxTorque = Vector3.new(2, 2, 2), | |
265 | angularvelocity = Vector3.new(math.random(-5, 5), math.random(-5, 5), math.random(-5, 5)), | |
266 | Parent = refpart,} | |
267 | table.insert(Effects, {refpart,"Disappear",.003}) | |
268 | game:GetService("Debris"):AddItem(refpart, 10) | |
269 | end | |
270 | end | |
271 | end) | |
272 | ||
273 | ||
274 | --<><><><><><><><><><><><>-- | |
275 | ||
276 | --Tables and Songs-- | |
277 | ||
278 | --<><><><><><><><><><><><>-- | |
279 | ||
280 | local songs = { | |
281 | 1374520036, | |
282 | 1034928566, | |
283 | 228239848, | |
284 | 257314417, | |
285 | 176069112, | |
286 | 608232329, | |
287 | } | |
288 | ||
289 | local quotes = { | |
290 | "I will amaze you!", | |
291 | "Heads off to you!", | |
292 | "Step right up!", | |
293 | "Be amazed!", | |
294 | "The show must go on!", | |
295 | "Let the show begin!", | |
296 | } | |
297 | ||
298 | playlist = Instance.new("Sound", Torso) | |
299 | - | playlist.SoundId = "rbxassetid://1234043017" |
299 | + | playlist.SoundId = "rbxassetid://1925182331" |
300 | playlist.Volume = 3 | |
301 | playlist.TimePosition = 0 | |
302 | playlist.Name = "aa" | |
303 | playlist:Play() | |
304 | ||
305 | --<><><><><><><><><><><><>-- | |
306 | ||
307 | --Clothes-- | |
308 | ||
309 | --<><><><><><><><><><><><>-- | |
310 | ||
311 | local top = Instance.new("Shirt") | |
312 | top.ShirtTemplate = "rbxassetid://268316000" | |
313 | top.Parent = Character | |
314 | top.Name = "Cloth" | |
315 | local bottom = Instance.new("Pants") | |
316 | bottom.PantsTemplate = "rbxassetid://268949770" | |
317 | bottom.Parent = Character | |
318 | bottom.Name = "Cloth" | |
319 | ||
320 | --<><><><><><><><><><><><>-- | |
321 | ||
322 | --Name Tag-- | |
323 | ||
324 | --<><><><><><><><><><><><>-- | |
325 | ||
326 | --[[Humanoid.DisplayDistanceType = "None" | |
327 | local naeeym2 = Instance.new("BillboardGui",Character) | |
328 | naeeym2.AlwaysOnTop = false | |
329 | naeeym2.Size = UDim2.new(5,35,2,15) | |
330 | naeeym2.StudsOffset = Vector3.new(0,7,0) | |
331 | naeeym2.MaxDistance = 75 | |
332 | naeeym2.Adornee = Character.Torso | |
333 | - | naeeym2.Name = "Maddox the Swing Spirit" |
333 | + | naeeym2.Name = "The Swing Spirit" |
334 | local tecks2 = Instance.new("TextLabel",naeeym2) | |
335 | tecks2.BackgroundTransparency = 1 | |
336 | tecks2.TextScaled = true | |
337 | tecks2.BorderSizePixel = 0 | |
338 | tecks2.Text = "Maddox" | |
339 | tecks2.Font = "Cartoon" | |
340 | tecks2.TextSize = 30 | |
341 | tecks2.TextStrokeTransparency = 0 | |
342 | tecks2.TextColor3 = Color3.new(1,1,1) | |
343 | tecks2.TextStrokeColor3 = Color3.new(0, 0, 0) | |
344 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
345 | tecks2.Parent = naeeym2]]-- | |
346 | ||
347 | function PlayAnimationFromTable(table, speed, bool) | |
348 | RootJoint.C0 = clerp(RootJoint.C0, table[1], speed) | |
349 | Neck.C0 = clerp(Neck.C0, table[2], speed) | |
350 | RW.C0 = clerp(RW.C0, table[3], speed) | |
351 | LW.C0 = clerp(LW.C0, table[4], speed) | |
352 | RH.C0 = clerp(RH.C0, table[5], speed) | |
353 | LH.C0 = clerp(LH.C0, table[6], speed) | |
354 | if bool == true then | |
355 | if resetc1 == false then | |
356 | resetc1 = true | |
357 | RootJoint.C1 = RootJoint.C1 | |
358 | Torso.Neck.C1 = Torso.Neck.C1 | |
359 | RW.C1 = rarmc1 | |
360 | LW.C1 = larmc1 | |
361 | RH.C1 = rlegc1 | |
362 | LH.C1 = llegc1 | |
363 | end | |
364 | end | |
365 | end | |
366 | ||
367 | ArtificialHB = Create("BindableEvent"){ | |
368 | Parent = script, | |
369 | Name = "Heartbeat", | |
370 | } | |
371 | ||
372 | script:WaitForChild("Heartbeat") | |
373 | ||
374 | frame = 1 / 45 | |
375 | tf = 0 | |
376 | allowframeloss = false | |
377 | tossremainder = false | |
378 | lastframe = tick() | |
379 | script.Heartbeat:Fire() | |
380 | ||
381 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
382 | tf = tf + s | |
383 | if tf >= frame then | |
384 | if allowframeloss then | |
385 | script.Heartbeat:Fire() | |
386 | lastframe = tick() | |
387 | else | |
388 | for i = 1, math.floor(tf / frame) do | |
389 | script.Heartbeat:Fire() | |
390 | end | |
391 | lastframe = tick() | |
392 | end | |
393 | if tossremainder then | |
394 | tf = 0 | |
395 | else | |
396 | tf = tf - frame * math.floor(tf / frame) | |
397 | end | |
398 | end | |
399 | end) | |
400 | ||
401 | function swait(num) | |
402 | if num == 0 or num == nil then | |
403 | ArtificialHB.Event:wait() | |
404 | else | |
405 | for i = 0, num do | |
406 | ArtificialHB.Event:wait() | |
407 | end | |
408 | end | |
409 | end | |
410 | ||
411 | local m = Create("Model"){ | |
412 | Parent = Character, | |
413 | Name = "WeaponModel" | |
414 | } | |
415 | ||
416 | local m2 = Create("Model"){ | |
417 | Parent = Character, | |
418 | Name = "WeaponModel2" | |
419 | } | |
420 | ||
421 | function RemoveOutlines(part) | |
422 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
423 | end | |
424 | ||
425 | CFuncs = { | |
426 | Part = { | |
427 | Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
428 | local Part = Create("Part"){ | |
429 | Parent = Parent, | |
430 | Reflectance = Reflectance, | |
431 | Transparency = Transparency, | |
432 | CanCollide = false, | |
433 | Locked = true, | |
434 | BrickColor = BrickColor.new(tostring(BColor)), | |
435 | Name = Name, | |
436 | Size = Size, | |
437 | Material = Material, | |
438 | } | |
439 | RemoveOutlines(Part) | |
440 | if Size == Vector3.new() then | |
441 | Part.Size = Vector3.new(0.2, 0.2, 0.2) | |
442 | else | |
443 | Part.Size = Size | |
444 | end | |
445 | return Part | |
446 | end; | |
447 | }; | |
448 | ||
449 | Mesh = { | |
450 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
451 | local Msh = Create(Mesh){ | |
452 | Parent = Part, | |
453 | Offset = OffSet, | |
454 | Scale = Scale, | |
455 | } | |
456 | if Mesh == "SpecialMesh" then | |
457 | Msh.MeshType = MeshType | |
458 | Msh.MeshId = MeshId | |
459 | end | |
460 | return Msh | |
461 | end; | |
462 | }; | |
463 | ||
464 | Weld = { | |
465 | Create = function(Parent, Part0, Part1, C0, C1) | |
466 | local Weld = Create("Weld"){ | |
467 | Parent = Parent, | |
468 | Part0 = Part0, | |
469 | Part1 = Part1, | |
470 | C0 = C0, | |
471 | C1 = C1, | |
472 | } | |
473 | return Weld | |
474 | end; | |
475 | }; | |
476 | ||
477 | Sound = { | |
478 | Create = function(id, par, vol, pit) | |
479 | local Sound = Create("Sound"){ | |
480 | Volume = vol, | |
481 | Pitch = pit or 1, | |
482 | SoundId = "rbxassetid://" .. id, | |
483 | Parent = par or workspace, | |
484 | Name = "aa" | |
485 | } | |
486 | Sound:play() | |
487 | return Sound | |
488 | end; | |
489 | }; | |
490 | ||
491 | Decal = { | |
492 | Create = function(Color, Texture, Transparency, Name, Parent) | |
493 | local Decal = Create("Decal"){ | |
494 | Color3 = Color, | |
495 | Texture = "rbxassetid://" .. Texture, | |
496 | Transparency = Transparency, | |
497 | Name = Name, | |
498 | Parent = Parent, | |
499 | } | |
500 | return Decal | |
501 | end; | |
502 | }; | |
503 | ||
504 | BillboardGui = { | |
505 | Create = function(Parent, Image, Position, Size) | |
506 | local BillPar = CFuncs.Part.Create(Parent, "SmoothPlastic", 0, 1, BrickColor.new("Black"), "BillboardGuiPart", Vector3.new(1, 1, 1)) | |
507 | BillPar.CFrame = CFrame.new(Position) | |
508 | local Bill = Create("BillboardGui"){ | |
509 | Parent = BillPar, | |
510 | Adornee = BillPar, | |
511 | Size = UDim2.new(1, 0, 1, 0), | |
512 | SizeOffset = Vector2.new(Size, Size), | |
513 | } | |
514 | local d = Create("ImageLabel", Bill){ | |
515 | Parent = Bill, | |
516 | BackgroundTransparency = 1, | |
517 | Size = UDim2.new(1, 0, 1, 0), | |
518 | Image = "rbxassetid://" .. Image, | |
519 | } | |
520 | return BillPar | |
521 | end | |
522 | }; | |
523 | ||
524 | ParticleEmitter = { | |
525 | Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread) | |
526 | local Particle = Create("ParticleEmitter"){ | |
527 | Parent = Parent, | |
528 | Color = ColorSequence.new(Color1, Color2), | |
529 | LightEmission = LightEmission, | |
530 | Size = Size, | |
531 | Texture = Texture, | |
532 | Transparency = Transparency, | |
533 | ZOffset = ZOffset, | |
534 | Acceleration = Accel, | |
535 | Drag = Drag, | |
536 | LockedToPart = LockedToPart, | |
537 | VelocityInheritance = VelocityInheritance, | |
538 | EmissionDirection = EmissionDirection, | |
539 | Enabled = Enabled, | |
540 | Lifetime = LifeTime, | |
541 | Rate = Rate, | |
542 | Rotation = Rotation, | |
543 | RotSpeed = RotSpeed, | |
544 | Speed = Speed, | |
545 | VelocitySpread = VelocitySpread, | |
546 | } | |
547 | return Particle | |
548 | end; | |
549 | }; | |
550 | ||
551 | CreateTemplate = { | |
552 | ||
553 | }; | |
554 | } | |
555 | ||
556 | ||
557 | ||
558 | ||
559 | function RayCast(Position, Direction, Range, Ignore) | |
560 | return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore) | |
561 | end | |
562 | ||
563 | FindNearestTorso = function(pos) | |
564 | local list = (game.Workspace:children()) | |
565 | local torso = nil | |
566 | local dist = 1000 | |
567 | local temp, human, temp2 = nil, nil, nil | |
568 | for x = 1, #list do | |
569 | temp2 = list[x] | |
570 | if temp2.className == "Model" and temp2.Name ~= Character.Name then | |
571 | temp = temp2:findFirstChild("Torso") | |
572 | human = temp2:findFirstChild("Humanoid") | |
573 | if temp ~= nil and human ~= nil and human.Health > 0 and (temp.Position - pos).magnitude < dist then | |
574 | local dohit = true | |
575 | if dohit == true then | |
576 | torso = temp | |
577 | dist = (temp.Position - pos).magnitude | |
578 | end | |
579 | end | |
580 | end | |
581 | end | |
582 | return torso, dist | |
583 | end | |
584 | ||
585 | Laser = function(brickcolor, reflect, cframe, x1, y1, z1, x3, y3, z3, delay) | |
586 | ||
587 | local prt = CFuncs.Part.Create(EffectModel, "Neon", reflect, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
588 | prt.Anchored = true | |
589 | prt.CFrame = cframe | |
590 | prt.Material = "Neon" | |
591 | local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
592 | game:GetService("Debris"):AddItem(prt, 10) | |
593 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
594 | ||
595 | for i = 0, 1, delay do | |
596 | swait() | |
597 | Part.Transparency = i | |
598 | Mesh.Scale = Mesh.Scale + Vector3.new(x3, y3, z3) | |
599 | end | |
600 | Part.Parent = nil | |
601 | end | |
602 | ), prt, msh) | |
603 | end | |
604 | ||
605 | ||
606 | ||
607 | ||
608 | shoot = function(mouse, aoe , partt, SpreadAmount, multiply) | |
609 | ||
610 | local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount)) | |
611 | local MainPos = partt.Position | |
612 | local MainPos2 = mouse.Hit.p + SpreadVectors | |
613 | local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2) | |
614 | local speed = 1000 | |
615 | local num = 1 | |
616 | coroutine.resume(coroutine.create(function() | |
617 | ||
618 | repeat | |
619 | swait() | |
620 | local hit, pos = RayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent) | |
621 | local mag = (MainPos - pos).magnitude | |
622 | 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) | |
623 | MainPos = MainPos + MouseLook.lookVector * speed | |
624 | num = num - 1 | |
625 | MouseLook = MouseLook * CFrame.Angles(math.rad(-1), 0, 0) | |
626 | if hit ~= nil then | |
627 | num = 0 | |
628 | local refpart = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 1, "Really black", "Effect", Vector3.new()) | |
629 | refpart.Anchored = true | |
630 | refpart.CFrame = CFrame.new(pos) | |
631 | game:GetService("Debris"):AddItem(refpart, 2) | |
632 | end | |
633 | do | |
634 | if num <= 0 then | |
635 | local refpart = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 1, "Really black", "Effect", Vector3.new()) | |
636 | refpart.Anchored = true | |
637 | refpart.CFrame = CFrame.new(pos) | |
638 | Effects.Block.Create(BrickColor.new(maincol), refpart.CFrame, 10, 10, 10, 10, 10, 10, .1, 1) | |
639 | Effects.Break.Create(BrickColor.new(maincol), refpart.CFrame, 2, 10, 2) | |
640 | if hit ~= nil then | |
641 | MagnitudeDamage(refpart, aoe, 1.5 * multiply, 1.5 * multiply, 0, "Normal", "231917784", 0) | |
642 | end | |
643 | game:GetService("Debris"):AddItem(refpart, 0) | |
644 | end | |
645 | end | |
646 | until num <= 0 | |
647 | end | |
648 | )) | |
649 | end | |
650 | ||
651 | ||
652 | Laser2 = function(brickcolor, reflect, cframe, x1, y1, z1, x3, y3, z3, delay) | |
653 | ||
654 | local prt = CFuncs.Part.Create(EffectModel, "Neon", reflect, 0, brickcolor, "Effect", Vector3.new(0.5+lasersize, 0.5, 0.5+lasersize)) | |
655 | prt.Anchored = true | |
656 | prt.CFrame = cframe | |
657 | prt.Material = "Neon" | |
658 | local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
659 | game:GetService("Debris"):AddItem(prt, 10) | |
660 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
661 | ||
662 | for i = 0, 1, delay do | |
663 | swait() | |
664 | Part.Transparency = i | |
665 | Mesh.Scale = Mesh.Scale + Vector3.new(x3, y3, z3) | |
666 | end | |
667 | Part.Parent = nil | |
668 | end | |
669 | ), prt, msh) | |
670 | end | |
671 | ||
672 | ||
673 | ||
674 | ||
675 | shoot2 = function(mouse, aoe , partt, SpreadAmount, multiply) | |
676 | ||
677 | local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount)) | |
678 | local MainPos = partt.Position | |
679 | local MainPos2 = mouse.Hit.p + SpreadVectors | |
680 | local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2) | |
681 | local speed = 1000 | |
682 | local num = 1 | |
683 | coroutine.resume(coroutine.create(function() | |
684 | ||
685 | repeat | |
686 | swait() | |
687 | local hit, pos = RayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent) | |
688 | local mag = (MainPos - pos).magnitude | |
689 | 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) | |
690 | MainPos = MainPos + MouseLook.lookVector * speed | |
691 | num = num - 1 | |
692 | MouseLook = MouseLook * CFrame.Angles(math.rad(-1), 0, 0) | |
693 | if hit ~= nil then | |
694 | num = 0 | |
695 | local refpart = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 1, "Really black", "Effect", Vector3.new()) | |
696 | refpart.Anchored = true | |
697 | refpart.CFrame = CFrame.new(pos) | |
698 | game:GetService("Debris"):AddItem(refpart, 2) | |
699 | end | |
700 | do | |
701 | if num <= 0 then | |
702 | local refpart = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 1, "Really black", "Effect", Vector3.new()) | |
703 | refpart.Anchored = true | |
704 | refpart.CFrame = CFrame.new(pos) | |
705 | Effects.Block.Create(BrickColor.new(maincol), refpart.CFrame, 1, 1, 1, 1+lasersize, 1+lasersize, 1+lasersize, .05, 1) | |
706 | if hit ~= nil then | |
707 | MagnitudeDamage(refpart, aoe, 1.5 * multiply, 1.5 * multiply, 0, "Normal", "231917784", 0) | |
708 | end | |
709 | game:GetService("Debris"):AddItem(refpart, 0) | |
710 | end | |
711 | end | |
712 | until num <= 0 | |
713 | end | |
714 | )) | |
715 | end | |
716 | ||
717 | ||
718 | ||
719 | ||
720 | function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch) | |
721 | if hit.Parent == nil then | |
722 | return | |
723 | end | |
724 | local h = hit.Parent:FindFirstChildOfClass("Humanoid") | |
725 | for _, v in pairs(hit.Parent:children()) do | |
726 | if v:IsA("Humanoid") then | |
727 | h = v | |
728 | end | |
729 | end | |
730 | if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then | |
731 | if hit.Parent:findFirstChild("DebounceHit") ~= nil then | |
732 | if hit.Parent.DebounceHit.Value == true then | |
733 | return | |
734 | end | |
735 | end | |
736 | local c = Create("ObjectValue"){ | |
737 | Name = "creator", | |
738 | Value = game:service("Players").LocalPlayer, | |
739 | Parent = h, | |
740 | } | |
741 | game:GetService("Debris"):AddItem(c, .5) | |
742 | if HitSound ~= nil and HitPitch ~= nil then | |
743 | CFuncs.Sound.Create(HitSound, hit, 1, HitPitch) | |
744 | end | |
745 | local Damage = math.random(minim, maxim) | |
746 | local blocked = false | |
747 | local block = hit.Parent:findFirstChild("Block") | |
748 | if block ~= nil then | |
749 | if block.className == "IntValue" then | |
750 | if block.Value > 0 then | |
751 | blocked = true | |
752 | block.Value = block.Value - 1 | |
753 | print(block.Value) | |
754 | end | |
755 | end | |
756 | end | |
757 | if hit.Parent:FindFirstChildOfClass("Humanoid").MaxHealth > 100 and hit.Parent:FindFirstChildOfClass("Humanoid").Health > 0 then | |
758 | for i = 0, 1, 0.1 do | |
759 | Effects.Break.Create(BrickColor.new("White"), hit.CFrame, 1, 4, 1) | |
760 | end | |
761 | CFuncs.Sound.Create("402174682", Torso, 5, 1) | |
762 | 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) | |
763 | for _,v in pairs(hit.Parent:children()) do | |
764 | if v:IsA("Part") then | |
765 | v.Transparency = 1 | |
766 | end | |
767 | end | |
768 | hit.Parent:BreakJoints() | |
769 | else | |
770 | h.Health = h.Health - Damage | |
771 | 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) | |
772 | end | |
773 | if Type == "Seizure" then | |
774 | local hum = hit.Parent:FindFirstChildOfClass("Humanoid") | |
775 | Effects.InnerSphere.Create(BrickColor.new("Eggplant"), hit.Parent.Torso.CFrame, 100, 2, .01) | |
776 | spawn(function() | |
777 | for i = 1, 1000 do | |
778 | swait() | |
779 | local hum = hit.Parent:FindFirstChildOfClass("Humanoid") | |
780 | hum.MaxHealth = hum.MaxHealth - 10 | |
781 | hit.Parent.Torso.CFrame = hit.Parent.Torso.CFrame * CFrame.new(math.random(-1,1)/2,0,math.random(-1,1)/2) | |
782 | end | |
783 | end) | |
784 | elseif Type == "Paralyze" then | |
785 | local hum = hit.Parent:FindFirstChildOfClass("Humanoid") | |
786 | coroutine.resume(coroutine.create(function(HHumanoid) | |
787 | CFuncs.Sound.Create("209545844", hit.Parent.Torso, 1, 1) | |
788 | CFuncs.Sound.Create("1143596511", hit.Parent.Torso, 1, 1) | |
789 | Effects.InnerSphere.Create(BrickColor.new("Gold"), hit.Parent.Torso.CFrame, 100, 2, .01) | |
790 | local rl = Create("BodyAngularVelocity"){ | |
791 | P = 3000, | |
792 | maxTorque = Vector3.new(50, 50, 50)* 200000000000, | |
793 | angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), | |
794 | Parent = hit, | |
795 | } | |
796 | wait(.1) | |
797 | rl:Destroy() | |
798 | for i = 1, 500 do | |
799 | local rl = Create("BodyAngularVelocity"){ | |
800 | P = 3000, | |
801 | maxTorque = Vector3.new(50, 50, 50)* 20, | |
802 | angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), | |
803 | Parent = hit, | |
804 | } | |
805 | hum.Health = hum.Health - .01 | |
806 | hum.PlatformStand = true | |
807 | for _,v in pairs(hit.Parent:children()) do | |
808 | if v:IsA("Part") then | |
809 | local oldcol = v.BrickColor | |
810 | v.BrickColor = BrickColor.new("New Yeller") | |
811 | wait(.1) | |
812 | v.BrickColor = oldcol | |
813 | end | |
814 | end | |
815 | rl:Destroy() | |
816 | end | |
817 | ||
818 | HHumanoid.PlatformStand = false | |
819 | end), hum) | |
820 | elseif Type == "Knockdown" then | |
821 | local hum = hit.Parent:FindFirstChildOfClass("Humanoid") | |
822 | hum.PlatformStand = true | |
823 | coroutine.resume(coroutine.create(function(HHumanoid) | |
824 | swait(1) | |
825 | HHumanoid.PlatformStand = false | |
826 | end), hum) | |
827 | local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit | |
828 | local bodvol = Create("BodyVelocity"){ | |
829 | velocity = angle * knockback, | |
830 | P = 5000, | |
831 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
832 | Parent = hit, | |
833 | } | |
834 | local rl = Create("BodyAngularVelocity"){ | |
835 | P = 3000, | |
836 | maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, | |
837 | angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), | |
838 | Parent = hit, | |
839 | } | |
840 | game:GetService("Debris"):AddItem(bodvol, .5) | |
841 | game:GetService("Debris"):AddItem(rl, .5) | |
842 | ||
843 | elseif Type == "Normal" then | |
844 | local vp = Create("BodyVelocity"){ | |
845 | P = 500, | |
846 | maxForce = Vector3.new(math.huge, 0, math.huge), | |
847 | velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05, | |
848 | } | |
849 | ||
850 | ||
851 | ||
852 | ||
853 | if knockback > 0 then | |
854 | vp.Parent = hit.Parent.Torso | |
855 | end | |
856 | game:GetService("Debris"):AddItem(vp, .5) | |
857 | elseif Type == "Float" then | |
858 | local vp = Create("BodyVelocity"){ | |
859 | P = 10, | |
860 | maxForce = Vector3.new(math.huge, 0, math.huge), | |
861 | velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05, | |
862 | } | |
863 | print(hit.Parent) | |
864 | if knockback > 0 then | |
865 | vp.Parent = hit.Parent.Torso | |
866 | end | |
867 | local hum = hit.Parent.Humanoid | |
868 | hum.PlatformStand = true | |
869 | local TotalMass = 0 | |
870 | for _, part in pairs(hit.Parent:GetChildren()) do | |
871 | if part:IsA("Part") then | |
872 | TotalMass = TotalMass + part:GetMass() | |
873 | end | |
874 | end | |
875 | local ForceOfGravity = -200 * TotalMass | |
876 | local floatybits = Instance.new("BodyForce", hit.Parent.Torso) | |
877 | floatybits.force = Vector3.new(0, -ForceOfGravity, 0) | |
878 | local rl = Create("BodyAngularVelocity"){ | |
879 | P = 500, | |
880 | maxTorque = Vector3.new(10, 10, 10), | |
881 | angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), | |
882 | Parent = hit, | |
883 | } | |
884 | game:GetService("Debris"):AddItem(rl, 20) | |
885 | game:GetService("Debris"):AddItem(floatybits, 20) | |
886 | game:GetService("Debris"):AddItem(vp, .5) | |
887 | ||
888 | spawn(function() | |
889 | for i = 1, 70 do | |
890 | wait(.2) | |
891 | 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) | |
892 | end | |
893 | end) | |
894 | ||
895 | elseif Type == "Up" then | |
896 | local bodyVelocity = Create("BodyVelocity"){ | |
897 | velocity = Vector3.new(0, 20, 0), | |
898 | P = 5000, | |
899 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
900 | Parent = hit, | |
901 | } | |
902 | game:GetService("Debris"):AddItem(bodyVelocity, .5) | |
903 | elseif Type == "DarkUp" then | |
904 | coroutine.resume(coroutine.create(function() | |
905 | for i = 0, 1, 0.1 do | |
906 | swait() | |
907 | Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1) | |
908 | end | |
909 | end)) | |
910 | local bodyVelocity = Create("BodyVelocity"){ | |
911 | velocity = Vector3.new(0, 20, 0), | |
912 | P = 5000, | |
913 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
914 | Parent = hit, | |
915 | } | |
916 | game:GetService("Debris"):AddItem(bodyVelocity, 1) | |
917 | elseif Type == "Snare" then | |
918 | local bp = Create("BodyPosition"){ | |
919 | P = 2000, | |
920 | D = 100, | |
921 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
922 | position = hit.Parent.Torso.Position, | |
923 | Parent = hit.Parent.Torso, | |
924 | } | |
925 | game:GetService("Debris"):AddItem(bp, 1) | |
926 | elseif Type == "Freeze" then | |
927 | local BodPos = Create("BodyPosition"){ | |
928 | P = 50000, | |
929 | D = 1000, | |
930 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
931 | position = hit.Parent.Torso.Position, | |
932 | Parent = hit.Parent.Torso, | |
933 | } | |
934 | local BodGy = Create("BodyGyro") { | |
935 | maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge , | |
936 | P = 20e+003, | |
937 | Parent = hit.Parent.Torso, | |
938 | CFrame = hit.Parent.Torso.CFrame, | |
939 | } | |
940 | CFuncs.Sound.Create("585135955", hit.Parent.Torso, 5, 1) | |
941 | Effects.Block.Create(BrickColor.new("Baby blue"), hit.Parent.Torso.CFrame, 3, 3, 3, 3, 5, 3, .02, 2) | |
942 | hit.Parent.Torso.Anchored = true | |
943 | coroutine.resume(coroutine.create(function(Part) | |
944 | swait(1.5) | |
945 | Part.Anchored = false | |
946 | end), hit.Parent.Torso) | |
947 | game:GetService("Debris"):AddItem(BodPos, 3) | |
948 | game:GetService("Debris"):AddItem(BodGy, 3) | |
949 | end | |
950 | local debounce = Create("BoolValue"){ | |
951 | Name = "DebounceHit", | |
952 | Parent = hit.Parent, | |
953 | Value = true, | |
954 | } | |
955 | if Delay > 0 then | |
956 | game:GetService("Debris"):AddItem(debounce, Delay) | |
957 | c = Create("ObjectValue"){ | |
958 | Name = "creator", | |
959 | Value = Player, | |
960 | Parent = h, | |
961 | } | |
962 | end | |
963 | game:GetService("Debris"):AddItem(c, .5) | |
964 | end | |
965 | end | |
966 | ||
967 | function ShowDamage(Pos, Text, Time, Color, Color2) | |
968 | local Rate = (1 / 45) | |
969 | local Pos = (Pos or Vector3.new(0, 0, 0)) | |
970 | local Text = (Text or "") | |
971 | local Time = (Time or 2) | |
972 | local Color = (Color or Color3.new(1, 0, 1)) | |
973 | local Color2 = (Color2 or Color3.new(1, 0, 1)) | |
974 | local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0)) | |
975 | EffectPart.Anchored = false | |
976 | EffectPart.CFrame = CFrame.new(Pos) | |
977 | EffectPart.Velocity = EffectPart.CFrame.upVector * math.random(60,70) | |
978 | local sizebit = 5 | |
979 | local BillboardGui = Create("BillboardGui"){ | |
980 | Size = UDim2.new(sizebit, 0, sizebit, 0), | |
981 | Adornee = EffectPart, | |
982 | Parent = EffectPart, | |
983 | } | |
984 | local TextLabel = Create("TextLabel"){ | |
985 | BackgroundTransparency = 1, | |
986 | Size = UDim2.new(1, 0, 1, 0), | |
987 | Text = Text, | |
988 | Font = "Cartoon", | |
989 | TextColor3 = Color, | |
990 | TextStrokeColor3 = Color2, | |
991 | TextStrokeTransparency = 0, | |
992 | TextScaled = true, | |
993 | Parent = BillboardGui, | |
994 | } | |
995 | game.Debris:AddItem(EffectPart, (Time)) | |
996 | EffectPart.Parent = game:GetService("Workspace") | |
997 | EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, 0, 0) | |
998 | delay(0, function() | |
999 | local Frames = (Time / Rate) | |
1000 | wait(.5) | |
1001 | EffectPart.Anchored = true | |
1002 | wait(.5) | |
1003 | for Frame = 1, Frames do | |
1004 | wait(Rate) | |
1005 | BillboardGui.Size = UDim2.new(sizebit, 0, sizebit, 0) | |
1006 | local Percent = (Frame / Frames) | |
1007 | TextLabel.TextTransparency = Percent | |
1008 | sizebit = sizebit - .4 | |
1009 | end | |
1010 | if EffectPart and EffectPart.Parent then | |
1011 | EffectPart:Destroy() | |
1012 | end | |
1013 | end) | |
1014 | end | |
1015 | ||
1016 | function MagnitudeDamage(Part, Magnitude, MinimumDamage, MaximumDamage, KnockBack, Type, HitPitch) | |
1017 | for _, c in pairs(workspace:children()) do | |
1018 | local hum = c:findFirstChildOfClass("Humanoid") | |
1019 | if hum ~= nil then | |
1020 | local head = c:findFirstChild("Torso") | |
1021 | if head ~= nil then | |
1022 | local targ = head.Position - Part.Position | |
1023 | local mag = targ.magnitude | |
1024 | if mag <= Magnitude and c.Name ~= Player.Name then | |
1025 | Damage(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, RootPart, .1, HitPitch) | |
1026 | end | |
1027 | end | |
1028 | end | |
1029 | end | |
1030 | end | |
1031 | ||
1032 | EffectModel = Create("Model"){ | |
1033 | Parent = Character, | |
1034 | Name = "EffectModel", | |
1035 | } | |
1036 | ||
1037 | Effects = { | |
1038 | Block = { | |
1039 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type) | |
1040 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
1041 | prt.Anchored = true | |
1042 | prt.CFrame = cframe | |
1043 | local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
1044 | game:GetService("Debris"):AddItem(prt, 10) | |
1045 | if Type == 1 or Type == nil then | |
1046 | table.insert(Effects, { | |
1047 | prt, | |
1048 | "Block1", | |
1049 | delay, | |
1050 | x3, | |
1051 | y3, | |
1052 | z3, | |
1053 | msh | |
1054 | }) | |
1055 | elseif Type == 2 then | |
1056 | table.insert(Effects, { | |
1057 | prt, | |
1058 | "Block2", | |
1059 | delay, | |
1060 | x3, | |
1061 | y3, | |
1062 | z3, | |
1063 | msh | |
1064 | }) | |
1065 | end | |
1066 | end; | |
1067 | }; | |
1068 | ||
1069 | Cylinder = { | |
1070 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
1071 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.2, 0.2, 0.2)) | |
1072 | prt.Anchored = true | |
1073 | prt.CFrame = cframe | |
1074 | local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
1075 | game:GetService("Debris"):AddItem(prt, 2) | |
1076 | table.insert(Effects, { | |
1077 | prt, | |
1078 | "Cylinder", | |
1079 | delay, | |
1080 | x3, | |
1081 | y3, | |
1082 | z3, | |
1083 | msh | |
1084 | }) | |
1085 | end; | |
1086 | }; | |
1087 | ||
1088 | Head = { | |
1089 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
1090 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
1091 | prt.Anchored = true | |
1092 | prt.CFrame = cframe | |
1093 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Head", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
1094 | game:GetService("Debris"):AddItem(prt, 10) | |
1095 | table.insert(Effects, { | |
1096 | prt, | |
1097 | "Cylinder", | |
1098 | delay, | |
1099 | x3, | |
1100 | y3, | |
1101 | z3, | |
1102 | msh | |
1103 | }) | |
1104 | end; | |
1105 | }; | |
1106 | ||
1107 | Sphere1 = { | |
1108 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
1109 | local prt = CFuncs.Part.Create(EffectModel, "Glass", 0, 0, brickcolor, "Effect", Vector3.new()) | |
1110 | prt.Anchored = true | |
1111 | prt.CFrame = cframe | |
1112 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
1113 | game:GetService("Debris"):AddItem(prt, 10) | |
1114 | table.insert(Effects, { | |
1115 | prt, | |
1116 | "Cylinder", | |
1117 | delay, | |
1118 | x3, | |
1119 | y3, | |
1120 | z3, | |
1121 | msh | |
1122 | }) | |
1123 | end; | |
1124 | }; | |
1125 | ||
1126 | Sphere2 = { | |
1127 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
1128 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
1129 | prt.Anchored = true | |
1130 | prt.CFrame = cframe | |
1131 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
1132 | game:GetService("Debris"):AddItem(prt, 10) | |
1133 | table.insert(Effects, { | |
1134 | prt, | |
1135 | "Cylinder", | |
1136 | delay, | |
1137 | x3, | |
1138 | y3, | |
1139 | z3, | |
1140 | msh | |
1141 | }) | |
1142 | end; | |
1143 | }; | |
1144 | ||
1145 | InnerSphere = { | |
1146 | Create = function(brickcolor, cframe, size, shrinkspeed, appspeed) | |
1147 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
1148 | prt.Anchored = true | |
1149 | prt.CFrame = cframe | |
1150 | prt.Transparency = 1 | |
1151 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(size, size, size)) | |
1152 | game:GetService("Debris"):AddItem(prt, 10) | |
1153 | spawn(function() | |
1154 | while true do | |
1155 | if size ~= 0 then | |
1156 | swait() | |
1157 | msh.Scale = Vector3.new(size, size, size) | |
1158 | size = size - shrinkspeed or size - 1 | |
1159 | prt.Transparency = prt.Transparency - appspeed | |
1160 | else prt:Destroy() break | |
1161 | end | |
1162 | end | |
1163 | end) | |
1164 | end; | |
1165 | }; | |
1166 | ||
1167 | Elect = { | |
1168 | Create = function(cff, x, y, z) | |
1169 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, BrickColor.new(maincol), "Part", Vector3.new(1, 1, 1)) | |
1170 | prt.Anchored = true | |
1171 | prt.CFrame = cff * CFrame.new(math.random(-x, x), math.random(-y, y), math.random(-z, z)) | |
1172 | prt.CFrame = CFrame.new(prt.Position) | |
1173 | game:GetService("Debris"):AddItem(prt, 2) | |
1174 | local xval = math.random() / 2 | |
1175 | local yval = math.random() / 2 | |
1176 | local zval = math.random() / 2 | |
1177 | local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval)) | |
1178 | table.insert(Effects, { | |
1179 | prt, | |
1180 | "Elec", | |
1181 | 0.1, | |
1182 | x, | |
1183 | y, | |
1184 | z, | |
1185 | xval, | |
1186 | yval, | |
1187 | zval | |
1188 | }) | |
1189 | end; | |
1190 | ||
1191 | }; | |
1192 | ||
1193 | Ring = { | |
1194 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
1195 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
1196 | prt.Anchored = true | |
1197 | prt.CFrame = cframe | |
1198 | local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
1199 | game:GetService("Debris"):AddItem(prt, 10) | |
1200 | table.insert(Effects, { | |
1201 | prt, | |
1202 | "Cylinder", | |
1203 | delay, | |
1204 | x3, | |
1205 | y3, | |
1206 | z3, | |
1207 | msh | |
1208 | }) | |
1209 | end; | |
1210 | }; | |
1211 | ||
1212 | ||
1213 | Wave = { | |
1214 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
1215 | local prt = CFuncs.Part.Create(EffectModel, "Glass", 0, 0, brickcolor, "Effect", Vector3.new()) | |
1216 | prt.Anchored = true | |
1217 | prt.CFrame = cframe | |
1218 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
1219 | game:GetService("Debris"):AddItem(prt, 10) | |
1220 | table.insert(Effects, { | |
1221 | prt, | |
1222 | "Cylinder", | |
1223 | delay, | |
1224 | x3, | |
1225 | y3, | |
1226 | z3, | |
1227 | msh | |
1228 | }) | |
1229 | end; | |
1230 | }; | |
1231 | ||
1232 | Break = { | |
1233 | Create = function(brickcolor, cframe, x1, y1, z1) | |
1234 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
1235 | prt.Anchored = true | |
1236 | prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
1237 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
1238 | local num = math.random(10, 50) / 1000 | |
1239 | game:GetService("Debris"):AddItem(prt, 10) | |
1240 | table.insert(Effects, { | |
1241 | prt, | |
1242 | "Shatter", | |
1243 | num, | |
1244 | prt.CFrame, | |
1245 | math.random() - math.random(), | |
1246 | 0, | |
1247 | math.random(50, 100) / 100 | |
1248 | }) | |
1249 | end; | |
1250 | }; | |
1251 | ||
1252 | Fire = { | |
1253 | Create = function(brickcolor, cframe, x1, y1, z1, delay) | |
1254 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
1255 | prt.Anchored = true | |
1256 | prt.CFrame = cframe | |
1257 | msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
1258 | game:GetService("Debris"):AddItem(prt, 10) | |
1259 | table.insert(Effects, { | |
1260 | prt, | |
1261 | "Fire", | |
1262 | delay, | |
1263 | 1, | |
1264 | 1, | |
1265 | 1, | |
1266 | msh | |
1267 | }) | |
1268 | end; | |
1269 | }; | |
1270 | ||
1271 | FireWave = { | |
1272 | Create = function(brickcolor, cframe, x1, y1, z1) | |
1273 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 1, brickcolor, "Effect", Vector3.new()) | |
1274 | prt.Anchored = true | |
1275 | prt.CFrame = cframe | |
1276 | msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
1277 | local d = Create("Decal"){ | |
1278 | Parent = prt, | |
1279 | Texture = "rbxassetid://26356434", | |
1280 | Face = "Top", | |
1281 | } | |
1282 | local d = Create("Decal"){ | |
1283 | Parent = prt, | |
1284 | Texture = "rbxassetid://26356434", | |
1285 | Face = "Bottom", | |
1286 | } | |
1287 | game:GetService("Debris"):AddItem(prt, 10) | |
1288 | table.insert(Effects, { | |
1289 | prt, | |
1290 | "FireWave", | |
1291 | 1, | |
1292 | 30, | |
1293 | math.random(400, 600) / 100, | |
1294 | msh | |
1295 | }) | |
1296 | end; | |
1297 | }; | |
1298 | ||
1299 | Lightning = { | |
1300 | Create = function(p0, p1, tym, ofs, col, th, tra, last) | |
1301 | local magz = (p0 - p1).magnitude | |
1302 | local curpos = p0 | |
1303 | local trz = { | |
1304 | -ofs, | |
1305 | ofs | |
1306 | } | |
1307 | for i = 1, tym do | |
1308 | local li = CFuncs.Part.Create(EffectModel, "Neon", 0, tra or 0.4, col, "Ref", Vector3.new(th, th, magz / tym)) | |
1309 | local ofz = Vector3.new(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)]) | |
1310 | local trolpos = CFrame.new(curpos, p1) * CFrame.new(0, 0, magz / tym).p + ofz | |
1311 | li.Material = "Neon" | |
1312 | if tym == i then | |
1313 | local magz2 = (curpos - p1).magnitude | |
1314 | li.Size = Vector3.new(th, th, magz2) | |
1315 | li.CFrame = CFrame.new(curpos, p1) * CFrame.new(0, 0, -magz2 / 2) | |
1316 | table.insert(Effects, { | |
1317 | li, | |
1318 | "Disappear", | |
1319 | last | |
1320 | }) | |
1321 | else | |
1322 | do | |
1323 | do | |
1324 | li.CFrame = CFrame.new(curpos, trolpos) * CFrame.new(0, 0, magz / tym / 2) | |
1325 | curpos = li.CFrame * CFrame.new(0, 0, magz / tym / 2).p | |
1326 | game.Debris:AddItem(li, 10) | |
1327 | table.insert(Effects, { | |
1328 | li, | |
1329 | "Disappear", | |
1330 | last | |
1331 | }) | |
1332 | end | |
1333 | end | |
1334 | end | |
1335 | end | |
1336 | end | |
1337 | }; | |
1338 | ||
1339 | EffectTemplate = { | |
1340 | ||
1341 | }; | |
1342 | } | |
1343 | ||
1344 | Hat=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Medium stone grey","Hat",Vector3.new(2, 2, 2)) | |
1345 | 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)) | |
1346 | 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)) | |
1347 | meh.TextureId = "http://www.roblox.com/asset/?id=32935396" | |
1348 | ||
1349 | ||
1350 | ||
1351 | for _,v in pairs(m2:children()) do | |
1352 | if v:IsA("Part") and v.Name == "pand" then | |
1353 | v.Transparency = 1 | |
1354 | end | |
1355 | end | |
1356 | ||
1357 | ||
1358 | --Start neccessary functions here | |
1359 | ||
1360 | function Tween(obj,props,time,easing,direction,repeats,backwards) | |
1361 | local info = TweenInfo.new(time or .5, easing or Enum.EasingStyle.Quad, direction or Enum.EasingDirection.Out, repeats or 0, backwards or false) | |
1362 | local tween = game:service'TweenService':Create(obj, info, props) | |
1363 | ||
1364 | tween:Play() | |
1365 | end | |
1366 | ||
1367 | function Trace() | |
1368 | for _,v in next, Character:GetChildren() do | |
1369 | if(v:IsA'Part') and v ~= RootPart then | |
1370 | local trace = Instance.new("Part") | |
1371 | trace.Parent = workspace | |
1372 | trace.Size = v.Size | |
1373 | trace.Material = Enum.Material.Neon | |
1374 | trace.Color = maincol | |
1375 | trace.Transparency = .3 | |
1376 | trace.Anchored = true | |
1377 | trace.CanCollide = false | |
1378 | trace.CFrame = v.CFrame | |
1379 | Tween(trace,{Transparency=1},.5) | |
1380 | game:GetService("Debris"):AddItem(trace, 1) | |
1381 | if v.Name == "Head" then | |
1382 | local mehs = Instance.new("CylinderMesh",trace) | |
1383 | mehs.Scale = Vector3.new(1.25,1.25,1.25) | |
1384 | end | |
1385 | end | |
1386 | end | |
1387 | end | |
1388 | ||
1389 | ||
1390 | function ducks() | |
1391 | for i = 0, 3, 0.1 do | |
1392 | swait() | |
1393 | PlayAnimationFromTable({ | |
1394 | 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), | |
1395 | 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), | |
1396 | 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), | |
1397 | 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), | |
1398 | 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), | |
1399 | 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), | |
1400 | }, .3, false) | |
1401 | end | |
1402 | for i = 1, 2 do | |
1403 | for i = 0, 1, 0.1 do | |
1404 | swait() | |
1405 | PlayAnimationFromTable({ | |
1406 | 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), | |
1407 | 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), | |
1408 | 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), | |
1409 | 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), | |
1410 | 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), | |
1411 | 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), | |
1412 | }, .3, false) | |
1413 | end | |
1414 | for i = 0, 1, 0.1 do | |
1415 | swait() | |
1416 | PlayAnimationFromTable({ | |
1417 | 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), | |
1418 | 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), | |
1419 | 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), | |
1420 | 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), | |
1421 | 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), | |
1422 | 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), | |
1423 | }, .3, false) | |
1424 | end | |
1425 | end | |
1426 | CFuncs.Sound.Create("270620358", Hat, 3, 1) | |
1427 | for i = 0, 3, 0.1 do | |
1428 | swait() | |
1429 | PlayAnimationFromTable({ | |
1430 | 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), | |
1431 | 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), | |
1432 | 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), | |
1433 | 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), | |
1434 | 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), | |
1435 | 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), | |
1436 | }, .2, false) | |
1437 | end | |
1438 | qwek = Instance.new("Sound", Torso) | |
1439 | qwek.SoundId = "rbxassetid://271006579" | |
1440 | qwek.Looped = true | |
1441 | qwek.Volume = 5 | |
1442 | qwek.Pitch = .8 | |
1443 | qwek:Play() | |
1444 | qwek2 = Instance.new("Sound", Torso) | |
1445 | qwek2.SoundId = "rbxassetid://271006579" | |
1446 | qwek2.Looped = true | |
1447 | qwek2.Volume = 5 | |
1448 | qwek2.Pitch = 1 | |
1449 | qwek2:Play() | |
1450 | qwek3 = Instance.new("Sound", Torso) | |
1451 | qwek3.SoundId = "rbxassetid://271006579" | |
1452 | qwek3.Looped = true | |
1453 | qwek3.Volume = 5 | |
1454 | qwek3.Pitch = 1.3 | |
1455 | qwek3:Play() | |
1456 | for i = 0, 10, 0.1 do | |
1457 | swait() | |
1458 | PlayAnimationFromTable({ | |
1459 | 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), | |
1460 | 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), | |
1461 | 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), | |
1462 | 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), | |
1463 | 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), | |
1464 | 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), | |
1465 | }, .3, false) | |
1466 | local duk=CFuncs.Part.Create(m,Enum.Material.Plastic,0,0,"Bright yellow","duk",Vector3.new(2, 2, 2)) | |
1467 | 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)) | |
1468 | duk.CFrame = Hat.CFrame | |
1469 | duk.CanCollide = false | |
1470 | duk.Velocity = Vector3.new(math.random(-20,20),math.random(-60,60),math.random(-20,20)) | |
1471 | duk.Name = "duk" | |
1472 | table.insert(Effects, {duk,"Disappear",.01}) | |
1473 | game:GetService("Debris"):AddItem(duk, 3) | |
1474 | moosh.TextureId = "http://www.roblox.com/asset/?id=9419827" | |
1475 | Torso.Velocity=RootPart.CFrame.upVector*100 | |
1476 | local con = duk.Touched:connect(function(hit) | |
1477 | if hit.Name ~= "Effect" and hit.Name ~= "pand" and hit ~= Character and hit.Name ~= "duk" and hit ~= m then | |
1478 | MagnitudeDamage(duk, 5, 30, 30, 20, "Normal", " ", 1) | |
1479 | Effects.Sphere2.Create(BrickColor.new("Gold"), duk.CFrame, 1, 1, 1, 2, 2, 2, .05) | |
1480 | end | |
1481 | end) | |
1482 | end | |
1483 | qwek3:Destroy() | |
1484 | qwek2:Destroy() | |
1485 | qwek:Destroy() | |
1486 | end | |
1487 | ||
1488 | ||
1489 | ||
1490 | function pocketpandora() | |
1491 | Humanoid.AutoRotate = true | |
1492 | local PocketPandora=CFuncs.Part.Create( workspace,Enum.Material.Plastic,0,1,"Medium stone grey","PocketPandora",Vector3.new(0.512000322, 0.652799785, 0.640000045)) | |
1493 | 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)) | |
1494 | local pand=CFuncs.Part.Create(workspace,Enum.Material.Plastic,0,0,"Fossil","pand",Vector3.new(0.406399965, 0.419200003, 0.320000023)) | |
1495 | 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)) | |
1496 | 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)) | |
1497 | local pand=CFuncs.Part.Create( workspace,Enum.Material.SmoothPlastic,0,1.400709148669e-08,"Lily white","pand",Vector3.new(0.448000014, 0.896000028, 0.448000014)) | |
1498 | 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)) | |
1499 | local pand=CFuncs.Part.Create( workspace,Enum.Material.SmoothPlastic,0,1.400709148669e-08,"Lily white","pand",Vector3.new(0.448000014, 0.896000028, 0.448000014)) | |
1500 | 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)) | |
1501 | local pand=CFuncs.Part.Create( workspace,Enum.Material.SmoothPlastic,0,1.400709148669e-08,"Lily white","pand",Vector3.new(0.448000014, 0.896000028, 0.448000014)) | |
1502 | 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)) | |
1503 | local pand=CFuncs.Part.Create( workspace,Enum.Material.SmoothPlastic,0,1.400709148669e-08,"Lily white","pand",Vector3.new(0.448000014, 0.896000028, 0.448000014)) | |
1504 | 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)) | |
1505 | local pand=CFuncs.Part.Create( workspace,Enum.Material.SmoothPlastic,0,1.400709148669e-08,"Lily white","pand",Vector3.new(0.896000028, 0.896000028, 0.448000014)) | |
1506 | 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)) | |
1507 | local pand=CFuncs.Part.Create( workspace,Enum.Material.Fabric,0,1.400709148669e-08,"Institutional white","pand",Vector3.new(0.896000028, 0.448000014, 0.448000014)) | |
1508 | 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)) | |
1509 | CFuncs.Mesh.Create("SpecialMesh",pand,Enum.MeshType.Head,"",Vector3.new(0, 0, 0),Vector3.new(1.25, 1.25, 1.25)) | |
1510 | ||
1511 | for i = 0, 3, 0.1 do | |
1512 | swait() | |
1513 | PlayAnimationFromTable({ | |
1514 | 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), | |
1515 | 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), | |
1516 | 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), | |
1517 | 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), | |
1518 | 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), | |
1519 | 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), | |
1520 | }, .3, false) | |
1521 | end | |
1522 | CFuncs.Sound.Create("525166232", pand, 10, 1.1) | |
1523 | for i = 0, 3, 0.1 do | |
1524 | swait() | |
1525 | PlayAnimationFromTable({ | |
1526 | 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), | |
1527 | 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), | |
1528 | 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), | |
1529 | 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), | |
1530 | 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), | |
1531 | 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), | |
1532 | }, .3, false) | |
1533 | end | |
1534 | for i = 0, 2, 0.1 do | |
1535 | swait() | |
1536 | PlayAnimationFromTable({ | |
1537 | 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), | |
1538 | 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), | |
1539 | 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), | |
1540 | 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), | |
1541 | 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), | |
1542 | 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), | |
1543 | }, .3, false) | |
1544 | end | |
1545 | ||
1546 | for i = 0, .1, 0.1 do | |
1547 | swait() | |
1548 | PlayAnimationFromTable({ | |
1549 | 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), | |
1550 | 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), | |
1551 | 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), | |
1552 | 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), | |
1553 | 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), | |
1554 | 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), | |
1555 | }, .3, false) | |
1556 | end | |
1557 | PocketPandoraWeld:Destroy() | |
1558 | CFuncs.Sound.Create("160718677", pand, 5, 1) | |
1559 | for _,v in pairs(workspace:children()) do | |
1560 | if v:IsA("Part") and v.Name == "PocketPandora" then | |
1561 | v.Anchored = false | |
1562 | v.CanCollide = true | |
1563 | v.Parent = workspace | |
1564 | v.CFrame = RootPart.CFrame * CFrame.new(2,5,-5) | |
1565 | v.Velocity=RootPart.CFrame.lookVector*200 | |
1566 | local con = v.Touched:connect(function(hit) | |
1567 | if hit.Name ~= "Effect" and hit.Name ~= "pand" and hit ~= Character and hit.Name ~= "refpart" then | |
1568 | MagnitudeDamage(PocketPandora, 30, 100, 100, 50, "Normal", " ", 1) | |
1569 | Effects.Sphere2.Create(BrickColor.new("Smoky grey"), v.CFrame, .5, 2, .5, 3, 5, 3, .03) | |
1570 | Effects.Sphere2.Create(BrickColor.new(maincol), v.CFrame, .6, 3, .6, 4, 6, 4, .03) | |
1571 | CFuncs.Sound.Create("206049428", pand, 10, 1) | |
1572 | v:Destroy() | |
1573 | end | |
1574 | end) | |
1575 | end | |
1576 | end | |
1577 | ||
1578 | for i = 0,5, 0.1 do | |
1579 | swait() | |
1580 | PlayAnimationFromTable({ | |
1581 | 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), | |
1582 | 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), | |
1583 | 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), | |
1584 | 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), | |
1585 | 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), | |
1586 | 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), | |
1587 | }, .3, false) | |
1588 | end | |
1589 | ||
1590 | end | |
1591 | ||
1592 | ||
1593 | function foryou() | |
1594 | Humanoid.AutoRotate = true | |
1595 | ||
1596 | FHandle=CFuncs.Part.Create(m2,Enum.Material.Plastic,0,1,"Institutional white","FHandle",Vector3.new(1, 2, 1)) | |
1597 | 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)) | |
1598 | 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)) | |
1599 | Plant=CFuncs.Part.Create(m2,Enum.Material.Plastic,0,0,"Dusty Rose","Plant",Vector3.new(2, 0.400000006, 2)) | |
1600 | 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)) | |
1601 | 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)) | |
1602 | Plant=CFuncs.Part.Create(m2,Enum.Material.Plastic,0,0,"Really red","Plant",Vector3.new(2, 0.400000006, 2)) | |
1603 | 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)) | |
1604 | 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)) | |
1605 | Test=CFuncs.Part.Create(m2,Enum.Material.Plastic,0,0,"Earth green","Test",Vector3.new(1, 1.20000005, 1)) | |
1606 | 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)) | |
1607 | 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)) | |
1608 | Test=CFuncs.Part.Create(m2,Enum.Material.Plastic,0,0,"Earth green","Test",Vector3.new(1, 1.20000005, 1)) | |
1609 | 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)) | |
1610 | 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)) | |
1611 | fire=CFuncs.Part.Create(m2,Enum.Material.Plastic,0,1,"Medium stone grey","fire",Vector3.new(1.4400003, 2.17999935, 2.24999976)) | |
1612 | 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)) | |
1613 | Plant=CFuncs.Part.Create(m2,Enum.Material.Plastic,0,0,"Salmon","Plant",Vector3.new(2, 0.400000006, 2)) | |
1614 | 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)) | |
1615 | 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)) | |
1616 | Test=CFuncs.Part.Create(m2,Enum.Material.Plastic,0,0,"Earth green","Test",Vector3.new(1, 1.20000005, 1)) | |
1617 | 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)) | |
1618 | 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)) | |
1619 | CFuncs.Sound.Create("1030472543", Torso, 10, 1) | |
1620 | for i = 0, 5, 0.1 do | |
1621 | swait() | |
1622 | PlayAnimationFromTable({ | |
1623 | 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), | |
1624 | 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), | |
1625 | 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), | |
1626 | 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), | |
1627 | 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), | |
1628 | 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), | |
1629 | }, .3, false) | |
1630 | end | |
1631 | for i = 0, 6, 0.1 do | |
1632 | swait() | |
1633 | PlayAnimationFromTable({ | |
1634 | 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), | |
1635 | 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), | |
1636 | 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), | |
1637 | 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), | |
1638 | 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), | |
1639 | 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), | |
1640 | }, .3, false) | |
1641 | end | |
1642 | CFuncs.Sound.Create("490241055", fire, 10, 1) | |
1643 | local PE1 = Instance.new("ParticleEmitter",fire) | |
1644 | PE1.LightEmission = NumberSequence.new(0.2) | |
1645 | PE1.Size = NumberSequence.new(3) | |
1646 | PE1.Texture = "http://www.roblox.com/asset/?id=242461088" | |
1647 | PE1.Lifetime = NumberRange.new(.75) | |
1648 | PE1.Rate = 50.000 | |
1649 | PE1.Transparency = NumberSequence.new(0.2) | |
1650 | PE1.LightEmission = NumberSequence.new(1) | |
1651 | PE1.Rotation = NumberRange.new(0) | |
1652 | PE1.Speed = NumberRange.new(.1) | |
1653 | PE1.RotSpeed = NumberRange.new(0) | |
1654 | PE1.ZOffset = .2 | |
1655 | for i = 0, 5, 0.1 do | |
1656 | swait() | |
1657 | PlayAnimationFromTable({ | |
1658 | 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), | |
1659 | 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), | |
1660 | 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), | |
1661 | 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), | |
1662 | 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), | |
1663 | 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), | |
1664 | }, .3, false) | |
1665 | end | |
1666 | CFuncs.Sound.Create("172324194", Torso, 10, 1) | |
1667 | for i = 0, 6, 0.1 do | |
1668 | swait() | |
1669 | PlayAnimationFromTable({ | |
1670 | 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), | |
1671 | 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), | |
1672 | 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), | |
1673 | 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), | |
1674 | 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), | |
1675 | 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), | |
1676 | }, .4, false) | |
1677 | end | |
1678 | FHandleWeld:Destroy() | |
1679 | for _,v in pairs(m2:children()) do | |
1680 | if v:IsA("Part") then | |
1681 | v.Parent = workspace | |
1682 | v.CanCollide = true | |
1683 | v.Velocity=RootPart.CFrame.upVector*0 | |
1684 | table.insert(Effects, {v,"Disappear",.008}) | |
1685 | game:GetService("Debris"):AddItem(v, 5) | |
1686 | end | |
1687 | end | |
1688 | end | |
1689 | ||
1690 | ||
1691 | ||
1692 | function topwat() | |
1693 | Attack = true | |
1694 | Humanoid.WalkSpeed = 0 | |
1695 | Humanoid.JumpPower = 0 | |
1696 | Humanoid.AutoRotate = false | |
1697 | ||
1698 | for i = 0, 8, 0.1 do | |
1699 | swait() | |
1700 | PlayAnimationFromTable({ | |
1701 | 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), | |
1702 | 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), | |
1703 | 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), | |
1704 | 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), | |
1705 | 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), | |
1706 | 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), | |
1707 | }, .1, false) | |
1708 | end | |
1709 | ||
1710 | ||
1711 | local x = math.random(1,3) | |
1712 | if x == 1 then | |
1713 | pocketpandora() | |
1714 | elseif x == 2 then | |
1715 | ducks() | |
1716 | elseif x == 3 then | |
1717 | foryou() | |
1718 | end | |
1719 | ||
1720 | Humanoid.WalkSpeed = 16 | |
1721 | Humanoid.JumpPower = 50 | |
1722 | Humanoid.AutoRotate = true | |
1723 | Attack = false | |
1724 | end | |
1725 | ||
1726 | function hatsoff() | |
1727 | Attack = true | |
1728 | Humanoid.WalkSpeed = 0 | |
1729 | Humanoid.JumpPower = 0 | |
1730 | CFuncs.Sound.Create("1578720743", Torso, 5, 1) | |
1731 | 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) | |
1732 | for i = 0, 8, 0.1 do | |
1733 | swait() | |
1734 | PlayAnimationFromTable({ | |
1735 | 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), | |
1736 | 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), | |
1737 | 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), | |
1738 | 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), | |
1739 | 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), | |
1740 | 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), | |
1741 | }, .2, false) | |
1742 | end | |
1743 | for i = 0, .5, 0.1 do | |
1744 | swait() | |
1745 | PlayAnimationFromTable({ | |
1746 | 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), | |
1747 | 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), | |
1748 | 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), | |
1749 | 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), | |
1750 | 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), | |
1751 | 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), | |
1752 | }, .1, false) | |
1753 | end | |
1754 | Humanoid.WalkSpeed = 16 | |
1755 | Humanoid.JumpPower = 50 | |
1756 | Attack = false | |
1757 | end | |
1758 | ||
1759 | ||
1760 | ||
1761 | function overthere() | |
1762 | Attack = true | |
1763 | local xy = 2 | |
1764 | local hitt = Mouse.hit | |
1765 | Humanoid.WalkSpeed = 0 | |
1766 | Humanoid.JumpPower = 0 | |
1767 | CFuncs.Sound.Create("538558581", Hat, 5, 1) | |
1768 | for i = 0, 5, 0.1 do | |
1769 | swait() | |
1770 | xy = xy + .15 | |
1771 | PlayAnimationFromTable({ | |
1772 | 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), | |
1773 | 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), | |
1774 | 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), | |
1775 | 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), | |
1776 | 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), | |
1777 | 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), | |
1778 | }, .1, false) | |
1779 | meh.Scale = Vector3.new(xy, xy, xy) | |
1780 | end | |
1781 | CFuncs.Sound.Create("144507916", Torso, 5, 1) | |
1782 | Effects.Wave.Create(BrickColor.new("White"), Hat.CFrame*CFrame.new(0,-20,0), 4, 1, 4, 4, 1, 4, .05) | |
1783 | for i = 0, 1, 0.1 do | |
1784 | swait() | |
1785 | PlayAnimationFromTable({ | |
1786 | 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), | |
1787 | 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), | |
1788 | 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), | |
1789 | 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), | |
1790 | 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), | |
1791 | 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), | |
1792 | }, .5, false) | |
1793 | end | |
1794 | RootPart.CFrame = hitt * CFrame.new(0,6,0) | |
1795 | for i = 0, 2, 0.1 do | |
1796 | swait() | |
1797 | PlayAnimationFromTable({ | |
1798 | 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), | |
1799 | 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), | |
1800 | 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), | |
1801 | 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), | |
1802 | 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), | |
1803 | 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), | |
1804 | }, .3, false) | |
1805 | end | |
1806 | for i = 0, 1.5, 0.1 do | |
1807 | swait() | |
1808 | xy = xy - .5 | |
1809 | PlayAnimationFromTable({ | |
1810 | 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), | |
1811 | 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), | |
1812 | 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))), | |
1813 | 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))), | |
1814 | 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), | |
1815 | 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), | |
1816 | }, .1, false) | |
1817 | meh.Scale = Vector3.new(xy, xy, xy) | |
1818 | end | |
1819 | meh.Scale = Vector3.new(2, 2, 2) | |
1820 | Humanoid.WalkSpeed = 16 | |
1821 | Humanoid.JumpPower = 50 | |
1822 | Attack = false | |
1823 | end | |
1824 | ||
1825 | function card() | |
1826 | Attack = true | |
1827 | Humanoid.WalkSpeed = 0 | |
1828 | Humanoid.JumpPower = 0 | |
1829 | for i = 0, 5, 0.1 do | |
1830 | swait() | |
1831 | PlayAnimationFromTable({ | |
1832 | 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), | |
1833 | 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), | |
1834 | 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), | |
1835 | 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), | |
1836 | 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), | |
1837 | 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), | |
1838 | }, .2, false) | |
1839 | end | |
1840 | MysteryCard=CFuncs.Part.Create(workspace,Enum.Material.Plastic,0,0,"White","MysteryCard",Vector3.new(0.880001426, 0.0500000007, 1.42000163)) | |
1841 | 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)) | |
1842 | local dec = Instance.new("Decal",MysteryCard) | |
1843 | dec.Texture = "rbxassetid://8644107" | |
1844 | dec.Face = "Bottom" | |
1845 | local e = math.random(1,4) | |
1846 | if e == 1 then | |
1847 | local dec2 = Instance.new("Decal",MysteryCard) | |
1848 | dec2.Texture = "rbxassetid://173448236" | |
1849 | dec2.Face = "Top" | |
1850 | elseif e == 2 then | |
1851 | local dec2 = Instance.new("Decal",MysteryCard) | |
1852 | dec2.Texture = "rbxassetid://1167119856" | |
1853 | dec2.Face = "Top" | |
1854 | CFuncs.Sound.Create("976606790", Torso, 3, 1) | |
1855 | elseif e == 3 then | |
1856 | local dec2 = Instance.new("Decal",MysteryCard) | |
1857 | dec2.Texture = "rbxassetid://342673258" | |
1858 | dec2.Face = "Top" | |
1859 | elseif e == 100 then | |
1860 | local dec2 = Instance.new("Decal",MysteryCard) | |
1861 | dec2.Texture = "rbxassetid://1403304829" | |
1862 | dec2.Face = "Top" | |
1863 | elseif e == 4 then | |
1864 | local dec2 = Instance.new("Decal",MysteryCard) | |
1865 | dec2.Texture = "rbxassetid://358190487" | |
1866 | dec2.Face = "Top" | |
1867 | end | |
1868 | for i = 0, .1, 0.1 do | |
1869 | swait() | |
1870 | PlayAnimationFromTable({ | |
1871 | 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), | |
1872 | 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), | |
1873 | 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), | |
1874 | 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), | |
1875 | 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), | |
1876 | 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), | |
1877 | }, .1, false) | |
1878 | end | |
1879 | for i = 0, 5, 0.1 do | |
1880 | swait() | |
1881 | PlayAnimationFromTable({ | |
1882 | 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), | |
1883 | 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), | |
1884 | 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), | |
1885 | 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), | |
1886 | 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), | |
1887 | 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), | |
1888 | }, .2, false) | |
1889 | end | |
1890 | ||
1891 | for i = 0, 3, 0.1 do | |
1892 | swait() | |
1893 | PlayAnimationFromTable({ | |
1894 | 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), | |
1895 | 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), | |
1896 | 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), | |
1897 | 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), | |
1898 | 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), | |
1899 | 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), | |
1900 | }, .2, false) | |
1901 | end | |
1902 | if e == 1 then | |
1903 | MagnitudeDamage(Torso, 70, 20, 20, 0, "Seizure", " ", 1) | |
1904 | Effects.Sphere2.Create(BrickColor.new("Eggplant"), MysteryCard.CFrame, 1, 1, 1, 1, 1, 1, .01) | |
1905 | Effects.InnerSphere.Create(BrickColor.new("Eggplant"), MysteryCard.CFrame, 100, 2, .01) | |
1906 | CFuncs.Sound.Create("1751051242", Torso, 5, 1) | |
1907 | elseif e == 2 then | |
1908 | MagnitudeDamage(Torso, 70, 10, 10, 0, "Freeze", " ", 1) | |
1909 | Effects.Sphere2.Create(BrickColor.new("Baby blue"), MysteryCard.CFrame, 2, 2, 2, 2, 2, 2, .01) | |
1910 | Effects.Sphere1.Create(BrickColor.new("Baby blue"), MysteryCard.CFrame, 1, 1, 1, 1, 1, 1, .01) | |
1911 | elseif e == 3 then | |
1912 | CFuncs.Sound.Create("157506631", Torso, 5, 1) | |
1913 | for i = 1,5 do | |
1914 | Effects.InnerSphere.Create(BrickColor.new("Crimson"), MysteryCard.CFrame, 100, 2, .01) | |
1915 | wait(.4) | |
1916 | end | |
1917 | wait(.8) | |
1918 | MagnitudeDamage(Torso, 70, 500, 500, 500, "Normal", " ", 1) | |
1919 | CFuncs.Sound.Create("1543847134", Torso, 5, 1) | |
1920 | Effects.Sphere2.Create(BrickColor.new("Crimson"), MysteryCard.CFrame, 2, 2, 2, 13, 13, 13, .01) | |
1921 | Effects.Sphere1.Create(BrickColor.new("Really red"), MysteryCard.CFrame, 1, 1, 1, 12, 12, 12, .01) | |
1922 | elseif e == 100 then | |
1923 | MagnitudeDamage(Torso, 70, 5, 5, 0, "Float", " ", 1) | |
1924 | Effects.Sphere2.Create(BrickColor.new("White"), MysteryCard.CFrame, 1, 1, 1, 1, 1, 1, .01) | |
1925 | elseif e == 4 then | |
1926 | MagnitudeDamage(Torso, 70, 30, 30, 0, "Paralyze", " ", 1) | |
1927 | Effects.Sphere2.Create(BrickColor.new("Gold"), MysteryCard.CFrame, 1, 1, 1, 8, 8, 8, .05) | |
1928 | Effects.InnerSphere.Create(BrickColor.new("White"), MysteryCard.CFrame, 100, 2, .01) | |
1929 | end | |
1930 | table.insert(Effects, {MysteryCard,"Disappear",.01}) | |
1931 | for i = 0, 5, 0.1 do | |
1932 | swait() | |
1933 | PlayAnimationFromTable({ | |
1934 | 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), | |
1935 | 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), | |
1936 | 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), | |
1937 | 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), | |
1938 | 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), | |
1939 | 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), | |
1940 | }, .2, false) | |
1941 | end | |
1942 | Humanoid.WalkSpeed = 16 | |
1943 | Humanoid.JumpPower = 50 | |
1944 | Attack = false | |
1945 | MysteryCard:Destroy() | |
1946 | MysteryCardWeld:Destroy() | |
1947 | end | |
1948 | ||
1949 | ||
1950 | ||
1951 | ||
1952 | function unanchor() | |
1953 | g = Character:GetChildren() | |
1954 | for i = 1, #g do | |
1955 | if g[i].ClassName == "Part" then | |
1956 | g[i].Anchored = false | |
1957 | end | |
1958 | end | |
1959 | end | |
1960 | ||
1961 | ||
1962 | Mouse.KeyDown:connect(function(Key) | |
1963 | Key = Key:lower() | |
1964 | if Attack == false and Key == 'z' and Anim == "Idle" then | |
1965 | overthere() | |
1966 | elseif Attack == false and Key == 'x' and Anim == "Idle" then | |
1967 | topwat() | |
1968 | elseif Attack == false and Key == 'c' then | |
1969 | card() | |
1970 | elseif Attack == false and Key == 'v' then | |
1971 | print("too lazy to add this move lul") | |
1972 | elseif Attack == false and Key == 't' and Anim == "Idle" then | |
1973 | hatsoff() | |
1974 | end | |
1975 | end) | |
1976 | ||
1977 | ||
1978 | ||
1979 | ||
1980 | ||
1981 | while true do | |
1982 | swait() | |
1983 | unanchor() | |
1984 | for i, v in pairs(Character:GetChildren()) do | |
1985 | if v:IsA("Part") then | |
1986 | v.Material = "SmoothPlastic" | |
1987 | elseif v:IsA("Accessory") then | |
1988 | v:WaitForChild("Handle").Material = "SmoothPlastic" | |
1989 | end | |
1990 | end | |
1991 | for i, v in pairs(Character:GetChildren()) do | |
1992 | if v:IsA'Model' then | |
1993 | for _, c in pairs(v:GetChildren()) do | |
1994 | if c:IsA'Part' then | |
1995 | c.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001) | |
1996 | end | |
1997 | end | |
1998 | end | |
1999 | end | |
2000 | TorsoVelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
2001 | Velocity = RootPart.Velocity.y | |
2002 | Sine = Sine + Change | |
2003 | local hit, pos = RayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 7, Character) | |
2004 | if RootPart.Velocity.y > 1 and hit == nil then | |
2005 | Anim = "Jump" | |
2006 | if Attack == false then | |
2007 | Change = 1 | |
2008 | PlayAnimationFromTable({ | |
2009 | 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), | |
2010 | 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), | |
2011 | 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), | |
2012 | 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), | |
2013 | 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), | |
2014 | 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), | |
2015 | }, .04, false) | |
2016 | end | |
2017 | elseif RootPart.Velocity.y < -1 and hit == nil then | |
2018 | Anim = "Fall" | |
2019 | if Attack == false then | |
2020 | Change = 1 | |
2021 | PlayAnimationFromTable({ | |
2022 | 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), | |
2023 | 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), | |
2024 | 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), | |
2025 | 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), | |
2026 | 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), | |
2027 | 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), | |
2028 | }, .04, false) | |
2029 | end | |
2030 | elseif TorsoVelocity < 1 and hit ~= nil then | |
2031 | Anim = "Idle" | |
2032 | if Attack == false then | |
2033 | Change = 1 | |
2034 | PlayAnimationFromTable({ | |
2035 | 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), | |
2036 | 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), | |
2037 | 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))), | |
2038 | 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))), | |
2039 | 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), | |
2040 | 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), | |
2041 | }, .1, false) | |
2042 | end | |
2043 | elseif TorsoVelocity > 2 and hit ~= nil then | |
2044 | Anim = "Walk" | |
2045 | if Attack == false then | |
2046 | PlayAnimationFromTable({ | |
2047 | 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)), | |
2048 | 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), | |
2049 | 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))), | |
2050 | 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))), | |
2051 | 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), | |
2052 | 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), | |
2053 | }, .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 | |
2054 | end | |
2055 | end | |
2056 | if #Effects > 0 then | |
2057 | for e = 1, #Effects do | |
2058 | if Effects[e] ~= nil then | |
2059 | local Thing = Effects[e] | |
2060 | if Thing ~= nil then | |
2061 | local Part = Thing[1] | |
2062 | local Mode = Thing[2] | |
2063 | local Delay = Thing[3] | |
2064 | local IncX = Thing[4] | |
2065 | local IncY = Thing[5] | |
2066 | if Thing[1].Transparency <= 1 then | |
2067 | if Thing[2] == "Block1" then | |
2068 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
2069 | Mesh = Thing[7] | |
2070 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
2071 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
2072 | elseif Thing[2] == "Ice" then | |
2073 | if Thing[6] <= Thing[5] then | |
2074 | Thing[6] = Thing[6] + .05 | |
2075 | Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, .4, 0) | |
2076 | else | |
2077 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
2078 | end | |
2079 | elseif Thing[2] == "Shatter" then | |
2080 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
2081 | Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0) | |
2082 | Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0) | |
2083 | Thing[6] = Thing[6] + Thing[5] | |
2084 | elseif Thing[2] == "Block2" then | |
2085 | Thing[1].CFrame = Thing[1].CFrame | |
2086 | Mesh = Thing[7] | |
2087 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
2088 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
2089 | elseif Thing[2] == "Block3" then | |
2090 | Thing[1].CFrame = Thing[8].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
2091 | Mesh = Thing[7] | |
2092 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
2093 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
2094 | elseif Thing[2] == "Block4" then | |
2095 | Thing[1].CFrame = Thing[8].CFrame * CFrame.new(0, -Thing[7].Scale.Y, 0) * CFrame.fromEulerAnglesXYZ(3.14, 0, 0) | |
2096 | Mesh = Thing[7] | |
2097 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
2098 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
2099 | elseif Thing[2] == "Block2Fire" then | |
2100 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
2101 | Mesh = Thing[7] | |
2102 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
2103 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
2104 | if Thing[1].Transparency >= .3 then | |
2105 | Thing[1].BrickColor = BrickColor.new("Bright red") | |
2106 | else | |
2107 | Thing[1].BrickColor = BrickColor.new("Bright yellow") | |
2108 | end | |
2109 | elseif Thing[2] == "Cylinder" then | |
2110 | Mesh = Thing[7] | |
2111 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
2112 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
2113 | elseif Thing[2] == "Blood" then | |
2114 | Mesh = Thing[7] | |
2115 | Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, -.5, 0) | |
2116 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
2117 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
2118 | elseif Thing[2] == "Elec" then | |
2119 | Mesh = Thing[10] | |
2120 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9]) | |
2121 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
2122 | Thing[1].CFrame = Thing[1].CFrame * Thing[11] * CFrame.new(0, 0, .2) | |
2123 | Thing[1].Rotation = Vector3.new(0, 0, 0) | |
2124 | elseif Thing[2] == "Disappear" then | |
2125 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
2126 | end | |
2127 | else | |
2128 | Part.Parent = nil | |
2129 | table.remove(Effects, e) | |
2130 | end | |
2131 | end | |
2132 | end | |
2133 | end | |
2134 | end | |
2135 | if playlist.IsPlaying == false then | |
2136 | playlist:Destroy() | |
2137 | playlist=Instance.new("Sound", Torso) | |
2138 | playlist.SoundId = "rbxassetid://" ..songs[math.random(#songs)] | |
2139 | playlist.Volume = 3 | |
2140 | playlist.Looped = false | |
2141 | playlist.Name = "aa" | |
2142 | warn(playlist.SoundId) | |
2143 | playlist:Play() | |
2144 | end | |
2145 | playlist.Volume = 3 | |
2146 | playlist.Looped = false | |
2147 | --soundbork(workspace) | |
2148 | if true then | |
2149 | Humanoid.MaxHealth = 1e100 | |
2150 | Humanoid.Health = 1e100 | |
2151 | Humanoid.Name = math.random()*100 | |
2152 | end | |
2153 | end |