SHOW:
|
|
- or go back to the newest paste.
1 | - | --[[Edited by Raven_Cale]]-- |
1 | + | --[[Edited by joe201501]]-- |
2 | wait(1 / 60) | |
3 | Effects = { } | |
4 | local Player = game.Players.localPlayer | |
5 | local Character = Player.Character | |
6 | local Humanoid = Character.Humanoid | |
7 | local Mouse = Player:GetMouse() | |
8 | local LeftArm = Character["Left Arm"] | |
9 | local RightArm = Character["Right Arm"] | |
10 | local LeftLeg = Character["Left Leg"] | |
11 | local RightLeg = Character["Right Leg"] | |
12 | local Head = Character.Head | |
13 | local Torso = Character.Torso | |
14 | local Camera = game.Workspace.CurrentCamera | |
15 | local RootPart = Character.HumanoidRootPart | |
16 | local RootJoint = RootPart.RootJoint | |
17 | local attack = false | |
18 | local Anim = 'Idle' | |
19 | local attacktype = 1 | |
20 | local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
21 | local velocity = RootPart.Velocity.y | |
22 | local sine = 0 | |
23 | local change = 1 | |
24 | local Create = LoadLibrary("RbxUtility").Create | |
25 | ||
26 | local m = Create("Model"){ | |
27 | Parent = Character, | |
28 | Name = "WeaponModel", | |
29 | } | |
30 | ||
31 | Humanoid.Animator.Parent = nil | |
32 | Character.Animate.Parent = nil | |
33 | ||
34 | local newMotor = function(part0, part1, c0, c1) | |
35 | local w = Create('Motor'){ | |
36 | Parent = part0, | |
37 | Part0 = part0, | |
38 | Part1 = part1, | |
39 | C0 = c0, | |
40 | C1 = c1, | |
41 | } | |
42 | return w | |
43 | end | |
44 | ||
45 | function clerp(a, b, t) | |
46 | return a:lerp(b, t) | |
47 | end | |
48 | ||
49 | RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14) | |
50 | NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
51 | ||
52 | local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0)) | |
53 | local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0)) | |
54 | local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0)) | |
55 | local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0)) | |
56 | RootJoint.C1 = CFrame.new(0, 0, 0) | |
57 | RootJoint.C0 = CFrame.new(0, 0, 0) | |
58 | Torso.Neck.C1 = CFrame.new(0, 0, 0) | |
59 | Torso.Neck.C0 = CFrame.new(0, 1.5, 0) | |
60 | ||
61 | local rarmc1 = RW.C1 | |
62 | local larmc1 = LW.C1 | |
63 | local rlegc1 = RH.C1 | |
64 | local llegc1 = LH.C1 | |
65 | ||
66 | local resetc1 = false | |
67 | ||
68 | function PlayAnimationFromTable(table, speed, bool) | |
69 | RootJoint.C0 = clerp(RootJoint.C0, table[1], speed) | |
70 | Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed) | |
71 | RW.C0 = clerp(RW.C0, table[3], speed) | |
72 | LW.C0 = clerp(LW.C0, table[4], speed) | |
73 | RH.C0 = clerp(RH.C0, table[5], speed) | |
74 | LH.C0 = clerp(LH.C0, table[6], speed) | |
75 | if bool == true then | |
76 | if resetc1 == false then | |
77 | resetc1 = true | |
78 | RootJoint.C1 = RootJoint.C1 | |
79 | Torso.Neck.C1 = Torso.Neck.C1 | |
80 | RW.C1 = rarmc1 | |
81 | LW.C1 = larmc1 | |
82 | RH.C1 = rlegc1 | |
83 | LH.C1 = llegc1 | |
84 | end | |
85 | end | |
86 | end | |
87 | ||
88 | Cirno = Instance.new("Sound",Torso) | |
89 | Cirno.Looped = true | |
90 | Cirno.SoundId = "http://www.roblox.com/asset?id=276748653" | |
91 | Cirno.Volume = 50 | |
92 | Cirno:Play() | |
93 | ||
94 | Character.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=150219907" | |
95 | Character.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=150219868" | |
96 | ||
97 | ArtificialHB = Create("BindableEvent", script){ | |
98 | Parent = script, | |
99 | Name = "Heartbeat", | |
100 | } | |
101 | ||
102 | script:WaitForChild("Heartbeat") | |
103 | ||
104 | frame = 1 / 30 | |
105 | tf = 0 | |
106 | allowframeloss = false | |
107 | tossremainder = false | |
108 | lastframe = tick() | |
109 | script.Heartbeat:Fire() | |
110 | ||
111 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
112 | tf = tf + s | |
113 | if tf >= frame then | |
114 | if allowframeloss then | |
115 | script.Heartbeat:Fire() | |
116 | lastframe = tick() | |
117 | else | |
118 | for i = 1, math.floor(tf / frame) do | |
119 | script.Heartbeat:Fire() | |
120 | end | |
121 | lastframe = tick() | |
122 | end | |
123 | if tossremainder then | |
124 | tf = 0 | |
125 | else | |
126 | tf = tf - frame * math.floor(tf / frame) | |
127 | end | |
128 | end | |
129 | end) | |
130 | ||
131 | function swait(num) | |
132 | if num == 0 or num == nil then | |
133 | ArtificialHB.Event:wait() | |
134 | else | |
135 | for i = 0, num do | |
136 | ArtificialHB.Event:wait() | |
137 | end | |
138 | end | |
139 | end | |
140 | ||
141 | function RemoveOutlines(part) | |
142 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
143 | end | |
144 | ||
145 | CFuncs = { | |
146 | Part = { | |
147 | Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
148 | local Part = Create("Part"){ | |
149 | Parent = Parent, | |
150 | Reflectance = Reflectance, | |
151 | Transparency = Transparency, | |
152 | CanCollide = false, | |
153 | Locked = true, | |
154 | BrickColor = BrickColor.new(tostring(BColor)), | |
155 | Name = Name, | |
156 | Size = Size, | |
157 | Material = Material, | |
158 | } | |
159 | RemoveOutlines(Part) | |
160 | return Part | |
161 | end; | |
162 | }; | |
163 | ||
164 | Mesh = { | |
165 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
166 | local Msh = Create(Mesh){ | |
167 | Parent = Part, | |
168 | Offset = OffSet, | |
169 | Scale = Scale, | |
170 | } | |
171 | if Mesh == "SpecialMesh" then | |
172 | Msh.MeshType = MeshType | |
173 | Msh.MeshId = MeshId | |
174 | end | |
175 | return Msh | |
176 | end; | |
177 | }; | |
178 | ||
179 | Weld = { | |
180 | Create = function(Parent, Part0, Part1, C0, C1) | |
181 | local Weld = Create("Weld"){ | |
182 | Parent = Parent, | |
183 | Part0 = Part0, | |
184 | Part1 = Part1, | |
185 | C0 = C0, | |
186 | C1 = C1, | |
187 | } | |
188 | return Weld | |
189 | end; | |
190 | }; | |
191 | ||
192 | Sound = { | |
193 | Create = function(id, par, vol, pit) | |
194 | coroutine.resume(coroutine.create(function() | |
195 | local Sound = Create("Sound"){ | |
196 | Volume = vol, | |
197 | Pitch = pit or 1, | |
198 | SoundId = "rbxassetid://" .. id, | |
199 | Parent = par or workspace, | |
200 | } | |
201 | Sound:play() | |
202 | game:GetService("Debris"):AddItem(Sound, 10) | |
203 | end)) | |
204 | end; | |
205 | }; | |
206 | ||
207 | Decal = { | |
208 | Create = function(Color, Texture, Transparency, Name, Parent) | |
209 | local Decal = Create("Decal"){ | |
210 | Color3 = Color, | |
211 | Texture = "rbxassetid://" .. Texture, | |
212 | Transparency = Transparency, | |
213 | Name = Name, | |
214 | Parent = Parent, | |
215 | } | |
216 | return Decal | |
217 | end; | |
218 | }; | |
219 | ||
220 | BillboardGui = { | |
221 | Create = function(Parent, Image, Position, Size) | |
222 | local BillPar = CFuncs.Part.Create(Parent, "SmoothPlastic", 0, 1, BrickColor.new("Black"), "BillboardGuiPart", Vector3.new(1, 1, 1)) | |
223 | BillPar.CFrame = CFrame.new(Position) | |
224 | local Bill = Create("BillboardGui"){ | |
225 | Parent = BillPar, | |
226 | Adornee = BillPar, | |
227 | Size = UDim2.new(1, 0, 1, 0), | |
228 | SizeOffset = Vector2.new(Size, Size), | |
229 | } | |
230 | local d = Create("ImageLabel", Bill){ | |
231 | Parent = Bill, | |
232 | BackgroundTransparency = 1, | |
233 | Size = UDim2.new(1, 0, 1, 0), | |
234 | Image = "rbxassetid://" .. Image, | |
235 | } | |
236 | return BillPar | |
237 | end | |
238 | }; | |
239 | ||
240 | ParticleEmitter = { | |
241 | Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread) | |
242 | local Particle = Create("ParticleEmitter"){ | |
243 | Parent = Parent, | |
244 | Color = ColorSequence.new(Color1, Color2), | |
245 | LightEmission = LightEmission, | |
246 | Size = Size, | |
247 | Texture = Texture, | |
248 | Transparency = Transparency, | |
249 | ZOffset = ZOffset, | |
250 | Acceleration = Accel, | |
251 | Drag = Drag, | |
252 | LockedToPart = LockedToPart, | |
253 | VelocityInheritance = VelocityInheritance, | |
254 | EmissionDirection = EmissionDirection, | |
255 | Enabled = Enabled, | |
256 | Lifetime = LifeTime, | |
257 | Rate = Rate, | |
258 | Rotation = Rotation, | |
259 | RotSpeed = RotSpeed, | |
260 | Speed = Speed, | |
261 | VelocitySpread = VelocitySpread, | |
262 | } | |
263 | return Particle | |
264 | end; | |
265 | }; | |
266 | ||
267 | CreateTemplate = { | |
268 | ||
269 | }; | |
270 | } | |
271 | ||
272 | function rayCast(Position, Direction, Range, Ignore) | |
273 | return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore) | |
274 | end | |
275 | ||
276 | FindNearestTorso = function(pos) | |
277 | local list = (game.Workspace:children()) | |
278 | local torso = nil | |
279 | local dist = 1000 | |
280 | local temp, human, temp2 = nil, nil, nil | |
281 | for x = 1, #list do | |
282 | temp2 = list[x] | |
283 | if temp2.className == "Model" and temp2.Name ~= Character.Name then | |
284 | temp = temp2:findFirstChild("Torso") | |
285 | human = temp2:findFirstChild("Humanoid") | |
286 | if temp ~= nil and human ~= nil and human.Health > 0 and (temp.Position - pos).magnitude < dist then | |
287 | local dohit = true | |
288 | if dohit == true then | |
289 | torso = temp | |
290 | dist = (temp.Position - pos).magnitude | |
291 | end | |
292 | end | |
293 | end | |
294 | end | |
295 | return torso, dist | |
296 | end | |
297 | ||
298 | function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch) | |
299 | if hit.Parent == nil then | |
300 | return | |
301 | end | |
302 | local h = hit.Parent:FindFirstChild("Humanoid") | |
303 | for _, v in pairs(hit.Parent:children()) do | |
304 | if v:IsA("Humanoid") then | |
305 | h = v | |
306 | end | |
307 | end | |
308 | if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then | |
309 | if hit.Parent:findFirstChild("DebounceHit") ~= nil then | |
310 | if hit.Parent.DebounceHit.Value == true then | |
311 | return | |
312 | end | |
313 | end | |
314 | - | local Damage = math.random(minim, maxim) |
314 | + | |
315 | Name = "creator", | |
316 | Value = game:service("Players").LocalPlayer, | |
317 | Parent = h, | |
318 | } | |
319 | game:GetService("Debris"):AddItem(c, .5) | |
320 | if HitSound ~= nil and HitPitch ~= nil then | |
321 | CFuncs.Sound.Create(HitSound, hit, 1, HitPitch) | |
322 | end | |
323 | local Damage = math.huge | |
324 | local blocked = false | |
325 | local block = hit.Parent:findFirstChild("Block") | |
326 | if block ~= nil then | |
327 | if block.className == "IntValue" then | |
328 | if block.Value > 0 then | |
329 | blocked = true | |
330 | block.Value = block.Value - 1 | |
331 | print(block.Value) | |
332 | end | |
333 | end | |
334 | end | |
335 | if blocked == false then | |
336 | h.Health = h.Health - Damage | |
337 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Really black").Color) | |
338 | else | |
339 | h.Health = h.Health - (Damage / 2) | |
340 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Really black").Color) | |
341 | end | |
342 | if Type == "Knockdown" then | |
343 | local hum = hit.Parent.Humanoid | |
344 | hum.PlatformStand = true | |
345 | coroutine.resume(coroutine.create(function(HHumanoid) | |
346 | swait(1) | |
347 | HHumanoid.PlatformStand = false | |
348 | end), hum) | |
349 | local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit | |
350 | local bodvol = Create("BodyVelocity"){ | |
351 | velocity = angle * knockback, | |
352 | P = 5000, | |
353 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
354 | Parent = hit, | |
355 | } | |
356 | local rl = Create("BodyAngularVelocity"){ | |
357 | P = 3000, | |
358 | maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, | |
359 | angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), | |
360 | Parent = hit, | |
361 | } | |
362 | game:GetService("Debris"):AddItem(bodvol, .5) | |
363 | game:GetService("Debris"):AddItem(rl, .5) | |
364 | elseif Type == "Normal" then | |
365 | local vp = Create("BodyVelocity"){ | |
366 | P = 500, | |
367 | maxForce = Vector3.new(math.huge, 0, math.huge), | |
368 | velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05, | |
369 | } | |
370 | if knockback > 0 then | |
371 | vp.Parent = hit.Parent.Torso | |
372 | end | |
373 | game:GetService("Debris"):AddItem(vp, .5) | |
374 | elseif Type == "Up" then | |
375 | local bodyVelocity = Create("BodyVelocity"){ | |
376 | velocity = Vector3.new(0, 20, 0), | |
377 | P = 5000, | |
378 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
379 | Parent = hit, | |
380 | } | |
381 | game:GetService("Debris"):AddItem(bodyVelocity, .5) | |
382 | elseif Type == "DarkUp" then | |
383 | coroutine.resume(coroutine.create(function() | |
384 | for i = 0, 1, 0.1 do | |
385 | swait() | |
386 | Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1) | |
387 | end | |
388 | end)) | |
389 | local bodyVelocity = Create("BodyVelocity"){ | |
390 | velocity = Vector3.new(0, 20, 0), | |
391 | P = 5000, | |
392 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
393 | Parent = hit, | |
394 | } | |
395 | game:GetService("Debris"):AddItem(bodyVelocity, 1) | |
396 | elseif Type == "Snare" then | |
397 | local bp = Create("BodyPosition"){ | |
398 | P = 2000, | |
399 | D = 100, | |
400 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
401 | position = hit.Parent.Torso.Position, | |
402 | Parent = hit.Parent.Torso, | |
403 | } | |
404 | game:GetService("Debris"):AddItem(bp, 1) | |
405 | elseif Type == "Freeze" then | |
406 | local BodPos = Create("BodyPosition"){ | |
407 | P = 50000, | |
408 | D = 1000, | |
409 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
410 | position = hit.Parent.Torso.Position, | |
411 | Parent = hit.Parent.Torso, | |
412 | } | |
413 | local BodGy = Create("BodyGyro") { | |
414 | maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge , | |
415 | P = 20e+003, | |
416 | Parent = hit.Parent.Torso, | |
417 | cframe = hit.Parent.Torso.CFrame, | |
418 | } | |
419 | hit.Parent.Torso.Anchored = true | |
420 | coroutine.resume(coroutine.create(function(Part) | |
421 | swait(1.5) | |
422 | Part.Anchored = false | |
423 | end), hit.Parent.Torso) | |
424 | game:GetService("Debris"):AddItem(BodPos, 3) | |
425 | game:GetService("Debris"):AddItem(BodGy, 3) | |
426 | end | |
427 | local debounce = Create("BoolValue"){ | |
428 | Name = "DebounceHit", | |
429 | Parent = hit.Parent, | |
430 | Value = true, | |
431 | } | |
432 | game:GetService("Debris"):AddItem(debounce, Delay) | |
433 | c = Create("ObjectValue"){ | |
434 | Name = "creator", | |
435 | Value = Player, | |
436 | Parent = h, | |
437 | } | |
438 | game:GetService("Debris"):AddItem(c, .5) | |
439 | end | |
440 | end | |
441 | ||
442 | function ShowDamage(Pos, Text, Time, Color) | |
443 | local Rate = (1 / 30) | |
444 | local Pos = (Pos or Vector3.new(0, 0, 0)) | |
445 | local Text = (Text or "") | |
446 | local Time = (Time or 2) | |
447 | local Color = (Color or Color3.new(1, 0, 1)) | |
448 | local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0)) | |
449 | EffectPart.Anchored = true | |
450 | local BillboardGui = Create("BillboardGui"){ | |
451 | Size = UDim2.new(3, 0, 3, 0), | |
452 | Adornee = EffectPart, | |
453 | Parent = EffectPart, | |
454 | } | |
455 | local TextLabel = Create("TextLabel"){ | |
456 | BackgroundTransparency = 1, | |
457 | Size = UDim2.new(1, 0, 1, 0), | |
458 | Text = Text, | |
459 | Font = "SciFi", | |
460 | TextColor3 = Color, | |
461 | TextScaled = true, | |
462 | Parent = BillboardGui, | |
463 | } | |
464 | game.Debris:AddItem(EffectPart, (Time)) | |
465 | EffectPart.Parent = game:GetService("Workspace") | |
466 | delay(0, function() | |
467 | local Frames = (Time / Rate) | |
468 | for Frame = 1, Frames do | |
469 | wait(Rate) | |
470 | local Percent = (Frame / Frames) | |
471 | EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0) | |
472 | TextLabel.TextTransparency = Percent | |
473 | end | |
474 | if EffectPart and EffectPart.Parent then | |
475 | EffectPart:Destroy() | |
476 | end | |
477 | end) | |
478 | end | |
479 | ||
480 | function MagnitudeDamage(Part, Magnitude, MinimumDamage, MaximumDamage, KnockBack, Type, HitSound, HitPitch) | |
481 | for _, c in pairs(workspace:children()) do | |
482 | local hum = c:findFirstChild("Humanoid") | |
483 | if hum ~= nil then | |
484 | local head = c:findFirstChild("Torso") | |
485 | if head ~= nil then | |
486 | local targ = head.Position - Part.Position | |
487 | local mag = targ.magnitude | |
488 | if mag <= Magnitude and c.Name ~= Player.Name then | |
489 | Damage(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, RootPart, .1, "rbxassetid://" .. HitSound, HitPitch) | |
490 | end | |
491 | end | |
492 | end | |
493 | end | |
494 | end | |
495 | ||
496 | New = function(Object, Parent, Name, Data) | |
497 | local Object = Instance.new(Object) | |
498 | for Index, Value in pairs(Data or {}) do | |
499 | Object[Index] = Value | |
500 | end | |
501 | Object.Parent = Parent | |
502 | Object.Name = Name | |
503 | return Object | |
504 | end | |
505 | ||
506 | ---Fur-- | |
507 | ||
508 | ||
509 | ||
510 | --other-- | |
511 | ||
512 | local introos = Instance.new("ParticleEmitter",particle1) | |
513 | introos.Color = ColorSequence.new(Color3.new(.5, 1, 1), Color3.new(.8, 1, 1)) | |
514 | introos.LightEmission = 1 | |
515 | introos.Size = NumberSequence.new(1) | |
516 | introos.Texture = "http://www.roblox.com/asset/?id=31727915" | |
517 | --aas = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1.54)}) | |
518 | asd = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.2, 0),NumberSequenceKeypoint.new(0.8, 0),NumberSequenceKeypoint.new(1, 1)}) | |
519 | introos.Transparency = asd | |
520 | --introos.Size = aas | |
521 | introos.ZOffset = 0 | |
522 | introos.Acceleration = Vector3.new(0, 0, 0) | |
523 | introos.LockedToPart = true | |
524 | introos.EmissionDirection = "Bottom" | |
525 | introos.Lifetime = NumberRange.new(1) | |
526 | introos.Rate = 100000 | |
527 | introos.Rotation = NumberRange.new(-360, 500) | |
528 | introos.RotSpeed = NumberRange.new(-180, 189) | |
529 | introos.Speed = NumberRange.new(4) | |
530 | introos.VelocitySpread = 1 | |
531 | introos.Enabled=true | |
532 | ||
533 | local introoss = Instance.new("ParticleEmitter",particle2) | |
534 | introoss.Color = ColorSequence.new(Color3.new(.5, 1, 1), Color3.new(.8, 1, 1)) | |
535 | introoss.LightEmission = 1 | |
536 | --introoss.Size = NumberSequence.new(1) | |
537 | introoss.Texture = "http://www.roblox.com/asset/?id=320043786" | |
538 | aas = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.5),NumberSequenceKeypoint.new(1, .5)}) | |
539 | asd = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.2, 0),NumberSequenceKeypoint.new(0.8, 0),NumberSequenceKeypoint.new(1, 1)}) | |
540 | introoss.Transparency = asd | |
541 | introos.Size = aas | |
542 | introoss.ZOffset = 0 | |
543 | introoss.Acceleration = Vector3.new(0, 0, 0) | |
544 | introoss.LockedToPart = true | |
545 | introoss.EmissionDirection = "Bottom" | |
546 | introoss.Lifetime = NumberRange.new(1) | |
547 | introoss.Rate = 20 | |
548 | introoss.Rotation = NumberRange.new(-360, 360) | |
549 | introoss.RotSpeed = NumberRange.new(-180, 180) | |
550 | introoss.Speed = NumberRange.new(4) | |
551 | introoss.VelocitySpread = 180 | |
552 | introoss.Enabled=true | |
553 | ||
554 | ||
555 | EffectModel = Create("Model"){ | |
556 | Parent = Character, | |
557 | Name = "Effects", | |
558 | } | |
559 | ||
560 | Effects = { | |
561 | Block = { | |
562 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type) | |
563 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
564 | prt.Anchored = true | |
565 | prt.CFrame = cframe | |
566 | local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
567 | game:GetService("Debris"):AddItem(prt, 10) | |
568 | if Type == 1 or Type == nil then | |
569 | table.insert(Effects, { | |
570 | prt, | |
571 | "Block1", | |
572 | delay, | |
573 | x3, | |
574 | y3, | |
575 | z3, | |
576 | msh | |
577 | }) | |
578 | elseif Type == 2 then | |
579 | table.insert(Effects, { | |
580 | prt, | |
581 | "Block2", | |
582 | delay, | |
583 | x3, | |
584 | y3, | |
585 | z3, | |
586 | msh | |
587 | }) | |
588 | end | |
589 | end; | |
590 | }; | |
591 | ||
592 | Cylinder = { | |
593 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
594 | local prt = CFuncs.Part..Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.2, 0.2, 0.2)) | |
595 | prt.Anchored = true | |
596 | prt.CFrame = cframe | |
597 | local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
598 | game:GetService("Debris"):AddItem(prt, 2) | |
599 | Effects[#Effects + 1] = { | |
600 | prt, | |
601 | "Cylinder", | |
602 | delay, | |
603 | x3, | |
604 | y3, | |
605 | z3 | |
606 | } | |
607 | end; | |
608 | }; | |
609 | ||
610 | Head = { | |
611 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
612 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
613 | prt.Anchored = true | |
614 | prt.CFrame = cframe | |
615 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Head", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
616 | game:GetService("Debris"):AddItem(prt, 10) | |
617 | table.insert(Effects, { | |
618 | prt, | |
619 | "Cylinder", | |
620 | delay, | |
621 | x3, | |
622 | y3, | |
623 | z3, | |
624 | msh | |
625 | }) | |
626 | end; | |
627 | }; | |
628 | ||
629 | Sphere = { | |
630 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
631 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
632 | prt.Anchored = true | |
633 | prt.CFrame = cframe | |
634 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
635 | game:GetService("Debris"):AddItem(prt, 10) | |
636 | table.insert(Effects, { | |
637 | prt, | |
638 | "Cylinder", | |
639 | delay, | |
640 | x3, | |
641 | y3, | |
642 | z3, | |
643 | msh | |
644 | }) | |
645 | end; | |
646 | }; | |
647 | ||
648 | Elect = { | |
649 | Create = function(cff, x, y, z) | |
650 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, BrickColor.new("Lime green"), "Part", Vector3.new(1, 1, 1)) | |
651 | prt.Anchored = true | |
652 | prt.CFrame = cff * CFrame.new(math.random(-x, x), math.random(-y, y), math.random(-z, z)) | |
653 | prt.CFrame = CFrame.new(prt.Position) | |
654 | game:GetService("Debris"):AddItem(prt, 2) | |
655 | local xval = math.random() / 2 | |
656 | local yval = math.random() / 2 | |
657 | local zval = math.random() / 2 | |
658 | local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval)) | |
659 | table.insert(Effects, { | |
660 | prt, | |
661 | "Elec", | |
662 | 0.1, | |
663 | x, | |
664 | y, | |
665 | z, | |
666 | xval, | |
667 | yval, | |
668 | zval | |
669 | }) | |
670 | end; | |
671 | ||
672 | }; | |
673 | ||
674 | Ring = { | |
675 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
676 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
677 | prt.Anchored = true | |
678 | prt.CFrame = cframe | |
679 | local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
680 | game:GetService("Debris"):AddItem(prt, 10) | |
681 | table.insert(Effects, { | |
682 | prt, | |
683 | "Cylinder", | |
684 | delay, | |
685 | x3, | |
686 | y3, | |
687 | z3, | |
688 | msh | |
689 | }) | |
690 | end; | |
691 | }; | |
692 | ||
693 | ||
694 | Wave = { | |
695 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
696 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
697 | prt.Anchored = true | |
698 | prt.CFrame = cframe | |
699 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
700 | game:GetService("Debris"):AddItem(prt, 10) | |
701 | table.insert(Effects, { | |
702 | prt, | |
703 | "Cylinder", | |
704 | delay, | |
705 | x3, | |
706 | y3, | |
707 | z3, | |
708 | msh | |
709 | }) | |
710 | end; | |
711 | }; | |
712 | ||
713 | Break = { | |
714 | Create = function(brickcolor, cframe, x1, y1, z1) | |
715 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
716 | prt.Anchored = true | |
717 | prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
718 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
719 | local num = math.random(10, 50) / 1000 | |
720 | game:GetService("Debris"):AddItem(prt, 10) | |
721 | table.insert(Effects, { | |
722 | prt, | |
723 | "Shatter", | |
724 | num, | |
725 | prt.CFrame, | |
726 | math.random() - math.random(), | |
727 | 0, | |
728 | math.random(50, 100) / 100 | |
729 | }) | |
730 | end; | |
731 | }; | |
732 | ||
733 | Fire = { | |
734 | Create = function(brickcolor, cframe, x1, y1, z1, delay) | |
735 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
736 | prt.Anchored = true | |
737 | prt.CFrame = cframe | |
738 | msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
739 | game:GetService("Debris"):AddItem(prt, 10) | |
740 | table.insert(Effects, { | |
741 | prt, | |
742 | "Fire", | |
743 | delay, | |
744 | 1, | |
745 | 1, | |
746 | 1, | |
747 | msh | |
748 | }) | |
749 | end; | |
750 | }; | |
751 | ||
752 | FireWave = { | |
753 | Create = function(brickcolor, cframe, x1, y1, z1) | |
754 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 1, brickcolor, "Effect", Vector3.new()) | |
755 | prt.Anchored = true | |
756 | prt.CFrame = cframe | |
757 | msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
758 | local d = Create("Decal"){ | |
759 | Parent = prt, | |
760 | Texture = "rbxassetid://26356434", | |
761 | Face = "Top", | |
762 | } | |
763 | local d = Create("Decal"){ | |
764 | Parent = prt, | |
765 | Texture = "rbxassetid://26356434", | |
766 | Face = "Bottom", | |
767 | } | |
768 | game:GetService("Debris"):AddItem(prt, 10) | |
769 | table.insert(Effects, { | |
770 | prt, | |
771 | "FireWave", | |
772 | 1, | |
773 | 30, | |
774 | math.random(400, 600) / 100, | |
775 | msh | |
776 | }) | |
777 | end; | |
778 | }; | |
779 | ||
780 | Lightning = { | |
781 | Create = function(p0, p1, tym, ofs, col, th, tra, last) | |
782 | local magz = (p0 - p1).magnitude | |
783 | local curpos = p0 | |
784 | local trz = { | |
785 | -ofs, | |
786 | ofs | |
787 | } | |
788 | for i = 1, tym do | |
789 | local li = CFuncs.Part.Create(EffectModel, "Neon", 0, tra or 0.4, col, "Ref", Vector3.new(th, th, magz / tym)) | |
790 | local ofz = Vector3.new(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)]) | |
791 | local trolpos = CFrame.new(curpos, p1) * CFrame.new(0, 0, magz / tym).p + ofz | |
792 | li.Material = "Neon" | |
793 | if tym == i then | |
794 | local magz2 = (curpos - p1).magnitude | |
795 | li.Size = Vector3.new(th, th, magz2) | |
796 | li.CFrame = CFrame.new(curpos, p1) * CFrame.new(0, 0, -magz2 / 2) | |
797 | table.insert(Effects, { | |
798 | li, | |
799 | "Disappear", | |
800 | last | |
801 | }) | |
802 | else | |
803 | do | |
804 | do | |
805 | li.CFrame = CFrame.new(curpos, trolpos) * CFrame.new(0, 0, magz / tym / 2) | |
806 | curpos = li.CFrame * CFrame.new(0, 0, magz / tym / 2).p | |
807 | game.Debris:AddItem(li, 10) | |
808 | table.insert(Effects, { | |
809 | li, | |
810 | "Disappear", | |
811 | last | |
812 | }) | |
813 | end | |
814 | end | |
815 | end | |
816 | end | |
817 | end | |
818 | }; | |
819 | ||
820 | EffectTemplate = { | |
821 | ||
822 | }; | |
823 | } | |
824 | ||
825 | function attackone() | |
826 | attack = true | |
827 | for i = 0, 1, 0.1 do | |
828 | swait() | |
829 | PlayAnimationFromTable({ | |
830 | CFrame.new(-0, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1), | |
831 | CFrame.new(0, 1.5, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), | |
832 | CFrame.new(1.5, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), | |
833 | CFrame.new(-1.5, -0, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1), | |
834 | CFrame.new(0.5, -2, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), | |
835 | CFrame.new(-0.5, -2, -0, 1, 0, 0, 0, 1, 0, 0, 0, 1), | |
836 | }, .3, false) | |
837 | end | |
838 | attack = false | |
839 | end | |
840 | ||
841 | function How_to_live_avi() | |
842 | attack = true | |
843 | Humanoid.WalkSpeed = 1 | |
844 | for i = 0, 3, 0.1 do | |
845 | swait() | |
846 | PlayAnimationFromTable({ | |
847 | - | Effects.Wave.Create(BrickColor.new("Magenta"), RootPart.CFrame* CFrame.new(0,-3.5,0)*CFrame.Angles(0,0,0), 2, 1.4, 2, 1.5, 0.6, 1.5, 0.05) |
847 | + | |
848 | CFrame.new(0, 1.55075097, -0.201079994, 1, 0, 0, 0, 0.928164721, 0.372169584, 0, -0.372169584, 0.928164721) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
849 | CFrame.new(1.60673702, -0.0154295918, 0.104641199, 0.583110213, -0.806256592, -0.0996639654, 0.812393069, 0.578700125, 0.0715808272, -3.69548798e-05, -0.122705847, 0.992443144) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
850 | CFrame.new(-1.68533659, -0.036477834, 0.232782185, 0.598335326, 0.784392118, 0.163481146, -0.80124712, 0.585750222, 0.12207219, -6.70552254e-06, -0.204027355, 0.978967488) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
851 | CFrame.new(0.424130619, -0.599340916, -0.89095664, 0.996774673, 0.012246226, 0.0793405771, 0.0441683494, 0.741622627, -0.669363678, -0.0670379251, 0.670709252, 0.738686264) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
852 | CFrame.new(-0.652507722, -1.94315124, 0.513518453, 0.978214204, 0.200444415, -0.0540676638, -0.154227883, 0.875958264, 0.457072139, 0.138978034, -0.438775092, 0.887786567) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
853 | }, .05, false) | |
854 | end | |
855 | CFuncs["Sound"].Create("200632211", Torso, 1, .6) | |
856 | Effects.Wave.Create(BrickColor.new("Cyan"), RootPart.CFrame* CFrame.new(0,-3.5,0)*CFrame.Angles(0,0,0), 2, 1.4, 2, 1.5, 0.6, 1.5, 0.05) | |
857 | Humanoid.Jump = true | |
858 | Torso.Velocity = Vector3.new(0, 400, 0) | |
859 | for i = 0, 5, 0.1 do | |
860 | swait() | |
861 | PlayAnimationFromTable({ | |
862 | CFrame.new(0, -0.000592137396, 0.0243320614, 1, 0, -0, 0, 0.998815119, -0.0486660115, 0, 0.0486660078, 0.998815119) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
863 | CFrame.new(0, 1.49255788, 0.0580787957, 1, 0, -0, 0, 0.991898537, -0.127052188, -0, 0.127052188, 0.991898537) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
864 | CFrame.new(1.77745748, 0.0644446909, 0.6576069, 0.444794923, -0.699619889, -0.559186816, 0.895632386, 0.347450435, 0.277707279, -4.32133675e-07, -0.624347925, 0.781146765) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
865 | CFrame.new(-1.74996197, 0.110267356, 0.44159767, 0.353478432, 0.848394156, 0.394056529, -0.93215698, 0.354735166, 0.0724315718, -0.0783351958, -0.392925411, 0.916228056) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
866 | CFrame.new(0.564538479, -1.08948302, -0.169450268, 0.999277413, -0.0380095579, 1.31532767e-08, 0.0373679549, 0.982409656, 0.182961941, -0.00695431605, -0.182829753, 0.983120024) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
867 | CFrame.new(-0.587307692, -1.9104619, 0.29412967, 0.994682372, 0.102991022, -1.53875547e-07, -0.0993663296, 0.959675372, 0.262962759, 0.0270829555, -0.261564374, 0.96480602) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
868 | }, .3, false) | |
869 | end | |
870 | RootPart.Anchored = true | |
871 | ref = New("Part",m,"ref",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Transparency = 1,Transparency = 1,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(-72.7290878, 28.5900459, 2.38004827, 0.99999994, 0.000383002043, -5.96046448e-08, -0.000383001927, 1, 1.16415322e-09, 4.47034836e-08, -1.39698386e-09, 1),Color = Color3.new(0.0666667, 0.0666667, 0.0666667),}) | |
872 | mot = New("Motor",ref,"mot",{Part0 = ref,Part1 = RootPart,C0 = CFrame.new(0, 0, 0, 0.99999994, -0.000383001927, 4.47034836e-08, 0.000383002043, 1, -1.39698386e-09, -5.96046448e-08, 1.16415322e-09, 1),C1 = CFrame.new(-0.0108718872, 28.6000443, -2.38418579e-07, -1, 0, 0, 0, 1, 0, 0, 0, -1),}) | |
873 | ||
874 | CFuncs["Sound"].Create("214876666", Character, 1.5, .7) | |
875 | for i = 0, 6, 0.1 do | |
876 | - | Effects.Lightning.Create(RightArm.Position,ref.Position,5,5,BrickColor.new("Magenta"),.7,.5,0.1) |
876 | + | |
877 | - | Effects.Block.Create(BrickColor.new("Magenta"), ref.CFrame, 2, 2, 2, 3, 3, 3, 0.06) |
877 | + | |
878 | CFrame.new(0, -0.00170694385, 0.0412697122, 1, 0, -0, 0, 0.996587992, -0.0825380012, 0, 0.0825380012, 0.996587992) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
879 | CFrame.new(0, 1.35443878, 0.157845795, 1, 0, -0, 0, 0.936196327, -0.351494998, -0, 0.351494998, 0.936196327) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
880 | CFrame.new(1.59617484, 1.19478106, -0.175431296, 0.97810787, -0.194577187, 0.0738007948, -0.160195485, -0.930362523, -0.329793394, 0.132831812, 0.310750633, -0.941164196) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
881 | - | ok1 = New("Decal",refs,"k",{Face = "Top",Texture = "http://www.roblox.com/asset/?id=68782707"}) |
881 | + | |
882 | - | ok2 = New("Decal",refs,"k",{Face = "Bottom",Texture = "http://www.roblox.com/asset/?id=68782707"}) |
882 | + | |
883 | CFrame.new(-0.594926953, -1.87837791, 0.3280527, 0.992015719, 0.119715877, 0.0396601185, -0.126114279, 0.941686928, 0.311963469, -4.36790287e-07, -0.314474404, 0.949266076) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
884 | }, .15, false) | |
885 | Effects.Lightning.Create(RightArm.Position,ref.Position,5,5,BrickColor.new("Cyan"),.7,.5,0.1) | |
886 | Effects.Block.Create(BrickColor.new("Cyan"), ref.CFrame, 2, 2, 2, 3, 3, 3, 0.06) | |
887 | end | |
888 | refs = New("Part",m,"ref",{Anchored = true,BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Transparency = 1,Transparency = 1,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = ref.CFrame,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),}) | |
889 | aa = New("BlockMesh",refs,"aa",{Scale = Vector3.new(1,0,1)}) | |
890 | ok1 = New("Decal",refs,"k",{Face = "Top",Texture = "http://www.roblox.com/asset/?id=148722328"}) | |
891 | ok2 = New("Decal",refs,"k",{Face = "Bottom",Texture = "http://www.roblox.com/asset/?id=148722328"}) | |
892 | Humanoid.WalkSpeed = 16 | |
893 | wait(.1) | |
894 | ref:Remove() | |
895 | local val = 100 | |
896 | coroutine.wrap(function() | |
897 | while wait() and refs and refs.Reflectance <= 1 do | |
898 | val = val - 1 | |
899 | refs.Reflectance = refs.Reflectance + .01 | |
900 | aa.Scale = aa.Scale + Vector3.new(val,0,val) | |
901 | end | |
902 | end)() | |
903 | for i = 0, 3, 0.1 do | |
904 | swait() | |
905 | PlayAnimationFromTable({ | |
906 | CFrame.new(0, -0.00170670624, 0.0412697308, 1, 0, -0, 0, 0.996587992, -0.0825380012, 0, 0.0825380012, 0.996587992) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
907 | CFrame.new(0, 1.38451409, -0.272948891, 1, 0, 0, 0, 0.881881952, 0.471470267, -0, -0.471470267, 0.881882012) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
908 | - | Effects.Sphere.Create(BrickColor.new("Magenta"), RootPart.CFrame, 5, 5, 5, 10, 10, 10, 0.04) |
908 | + | |
909 | CFrame.new(-0.617085814, 0.39823994, -0.825249493, -0.00209266553, -0.783531249, -0.62135005, -0.934353113, 0.222947314, -0.277993411, 0.356344759, 0.579977095, -0.732561052) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
910 | CFrame.new(0.57985276, -1.93068719, 0.293669045, 0.995965481, -0.0878097862, -0.0184999984, 0.0897372141, 0.974572957, 0.205324233, 9.35979187e-08, -0.206156105, 0.978520691) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
911 | CFrame.new(-0.594926953, -1.87837791, 0.3280527, 0.992015719, 0.119715877, 0.0396601185, -0.126114279, 0.941686928, 0.311963469, -4.36790287e-07, -0.314474404, 0.949266076) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
912 | }, .1, false) | |
913 | end | |
914 | refs1 = New("Part",m,"ref",{Anchored = true,BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Transparency = 1,Transparency = 1,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = refs.CFrame,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),}) | |
915 | - | Effects.Lightning.Create(refs1.Position,refs2.Position,5,5,BrickColor.new("Magenta"),5,.5,0.1) |
915 | + | |
916 | - | Effects.Block.Create(BrickColor.new("Magenta"), refs2.CFrame, 2, 2, 2, 15, 15, 15, 0.07) |
916 | + | |
917 | - | Effects.Block.Create(BrickColor.new("Magenta"), refs2.CFrame, 2, 2, 2, 15, 15, 15, 0.07) |
917 | + | Effects.Sphere.Create(BrickColor.new("Cyan"), RootPart.CFrame, 5, 5, 5, 10, 10, 10, 0.04) |
918 | CFuncs["Sound"].Create("138079095", Character, 1.5, .4) | |
919 | coroutine.wrap(function() | |
920 | for i = 1,100 do | |
921 | swait(1) | |
922 | refs1.CFrame = refs.CFrame * CFrame.new(math.random(-200,200),0,math.random(-200,200)) | |
923 | refs2.CFrame = refs.CFrame * CFrame.new(math.random(-200,200),-420,math.random(-200,200)) | |
924 | Effects.Lightning.Create(refs1.Position,refs2.Position,5,5,BrickColor.new("Cyan"),5,.5,0.1) | |
925 | Effects.Block.Create(BrickColor.new("Cyan"), refs2.CFrame, 2, 2, 2, 15, 15, 15, 0.07) | |
926 | Effects.Block.Create(BrickColor.new("Cyan"), refs2.CFrame, 2, 2, 2, 15, 15, 15, 0.07) | |
927 | MagnitudeDamage(refs2, 25, 20, 40, math.random(1, 5), "Snare", "", 1) | |
928 | CFuncs["Sound"].Create("427582855", refs2, 3, 1.2) | |
929 | ||
930 | end | |
931 | end)() | |
932 | for i = 0, 20, 0.1 do | |
933 | swait() | |
934 | PlayAnimationFromTable({ | |
935 | CFrame.new(0, -0.00170670624, 0.0412697308, 1, 0, -0, 0, 0.996587992, -0.0825380012, 0, 0.0825380012, 0.996587992) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
936 | CFrame.new(0, 1.38187397, 0.24372232, 1, 0, -0, 0, 0.936117887, -0.351686984, -0, 0.351686984, 0.936117887) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
937 | CFrame.new(1.94593441, 0.568508446, 0.229167357, 0.0108728549, -0.954202771, -0.29896301, 0.959349692, -0.074366644, 0.272246838, -0.282011509, -0.289770067, 0.914605498) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
938 | CFrame.new(-1.96323562, 0.571394145, 0.42302075, -0.00208615814, 0.909483552, 0.415736109, -0.934352875, -0.149918631, 0.323280126, 0.356344342, -0.387769997, 0.850090027) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
939 | CFrame.new(0.57985276, -1.93068719, 0.293669045, 0.995965481, -0.0878097862, -0.0184999984, 0.0897372141, 0.974572957, 0.205324233, 9.35979187e-08, -0.206156105, 0.978520691) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
940 | CFrame.new(-0.594926953, -1.87837791, 0.3280527, 0.992015719, 0.119715877, 0.0396601185, -0.126114279, 0.941686928, 0.311963469, -4.36790287e-07, -0.314474404, 0.949266076) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
941 | }, .3, false) | |
942 | end | |
943 | RootPart.Anchored = false | |
944 | attack = false | |
945 | for i = 1,100 do | |
946 | swait() | |
947 | ok1.Transparency = ok1.Transparency + 0.01 | |
948 | ok2.Transparency = ok2.Transparency + 0.01 | |
949 | aa.Scale = aa.Scale + Vector3.new(10,0,10) | |
950 | end | |
951 | refs:Remove() | |
952 | refs1:Remove() | |
953 | refs2:Remove() | |
954 | ||
955 | end | |
956 | Mouse.Button1Down:connect(function() | |
957 | if attack == false and attacktype == 1 then | |
958 | attackone() | |
959 | end | |
960 | end) | |
961 | ||
962 | Mouse.KeyDown:connect(function(k) | |
963 | k = k:lower() | |
964 | if attack == false and k == 'q' then | |
965 | How_to_live_avi() | |
966 | end | |
967 | end) | |
968 | ||
969 | while true do | |
970 | swait() | |
971 | for i, v in pairs(Character:GetChildren()) do | |
972 | if v:IsA("Part") then | |
973 | v.Material = "SmoothPlastic" | |
974 | elseif v:IsA("Accessory") then | |
975 | v:WaitForChild("Handle").Material = "SmoothPlastic" | |
976 | end | |
977 | end | |
978 | Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
979 | velocity = RootPart.Velocity.y | |
980 | sine = sine + change | |
981 | local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character) | |
982 | if RootPart.Velocity.y > 1 and hit == nil then | |
983 | Anim = "Jump" | |
984 | if attack == false then | |
985 | RootJoint.C0 = clerp(RootJoint.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3) | |
986 | Torso.Neck.C0 = clerp(Torso.Neck.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3) | |
987 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
988 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
989 | RH.C0 = clerp(RH.C0, CFrame.new(.5, -2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3) | |
990 | LH.C0 = clerp(LH.C0, CFrame.new(-.5, -2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3) | |
991 | end | |
992 | elseif RootPart.Velocity.y < -1 and hit == nil then | |
993 | Anim = "Fall" | |
994 | if attack == false then | |
995 | RootJoint.C0 = clerp(RootJoint.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3) | |
996 | Torso.Neck.C0 = clerp(Torso.Neck.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3) | |
997 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
998 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3) | |
999 | RH.C0 = clerp(RH.C0, CFrame.new(.5, -2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3) | |
1000 | LH.C0 = clerp(LH.C0, CFrame.new(-.5, -2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3) | |
1001 | end | |
1002 | elseif Torsovelocity < 1 and hit ~= nil then | |
1003 | Anim = "Idle" | |
1004 | if attack == false then | |
1005 | change = 1 | |
1006 | PlayAnimationFromTable({ | |
1007 | CFrame.new(0, -0, -0, 0.974372447, 0, -0.224940956, 0, 1, 0, 0.224941015, 0, 0.974372387) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1008 | CFrame.new(-1.1920929e-07, 1.49999416, -2.08616257e-07, 0.920513809, -0.0204478577, 0.390176117, 1.86964701e-08, 0.998630404, 0.0523349345, -0.390711427, -0.0481749773, 0.919252574) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), -- <-- (+/-) [number] * math.cos([number]/[number]) cough cough | |
1009 | CFrame.new(1.68044662, 0.0500002615, -0.100577071, 0.985486329, -0.16919525, -0.0138741881, 0.168487713, 0.984809339, -0.0420071632, 0.0207707137, 0.0390598364, 0.999020934) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1010 | CFrame.new(-1.58900392, -0.010000065, 0.141046837, 0.967111886, 0.118746817, 0.224941015, -0.121870048, 0.992548466, 0, -0.223264799, -0.0274135657, 0.974372387) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1011 | CFrame.new(0.690335035, -2.00001669, 0.0561553538, 0.987111211, -0.0335469171, 0.156496003, 0.0346383005, 0.999395728, -0.00425298186, -0.156258017, 0.00961896125, 0.987671435) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1012 | CFrame.new(-0.514178514, -1.99999702, -0.00445482135, 0.933586121, 0, 0.358358383, 0, 1, 0, -0.358358324, 0, 0.93358618) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1013 | }, .3, false) | |
1014 | end | |
1015 | elseif Torsovelocity > 2 and hit ~= nil then | |
1016 | Anim = "Walk" | |
1017 | if attack == false then | |
1018 | PlayAnimationFromTable({ | |
1019 | CFrame.new(0, -0.0193441566, -0.137761548, 1, 0, 0, 0, 0.961308897, 0.275472969, 0, -0.275472969, 0.961308897) * CFrame.new(0, 0- .1 * math.cos((sine) / 2), 0) * CFrame.Angles(0, 0, 0), | |
1020 | CFrame.new(0, 1.44159341, 0.0451771915, 1, 0, 0, 0, 0.98646307, -0.163984656, 0, 0.163984656, 0.98646307) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1021 | CFrame.new(1.63363111, 0.0754526258, -2.72151652e-007, 0.985570133, -0.16926825, 1.56980732e-007, 0.16926825, 0.985570133, 2.38418579e-007, -1.86264515e-007, -1.49011612e-007, 1.00000024) * CFrame.new(0, 0, 0+ 0.5 * math.cos((sine) / 4)) * CFrame.Angles(math.rad(0- 20 * math.cos((sine) / 4)), 0, 0), | |
1022 | CFrame.new(-1.61827064, 0.111134544, 1.51569429e-006, 0.978242338, 0.207465827, 7.76345075e-007, -0.207465842, 0.978242397, -2.41398811e-006, -1.25542283e-006, 2.20537186e-006, 1.00000012) * CFrame.new(0, 0, 0- 0.5 * math.cos((sine) / 4)) * CFrame.Angles(math.rad(0+ 20 * math.cos((sine) / 4)), 0, 0), | |
1023 | CFrame.new(0.5, -2.00000334, 2.67028881e-005, 1, 0, 0, 0, 1.00000024, 0, 0, 0, 1.00000024) * CFrame.new(0, 0+ .4 * math.cos((sine) / 2), 0 + 1 * math.cos((sine) / 4)) * CFrame.Angles(math.rad(0 - 50 * math.cos((sine) / 4)), math.rad(0), math.rad(0)), | |
1024 | CFrame.new(-0.5, -2.00000334, 2.67028881e-005, 1, 0, 0, 0, 1.00000024, 0, 0, 0, 1.00000024) * CFrame.new(0, 0+ .4 * math.cos((sine) / 2), 0 - 1 * math.cos((sine) / 4)) * CFrame.Angles(math.rad(0 + 50 * math.cos((sine) / 4)), math.rad(0), math.rad(0)), | |
1025 | }, .3, false) | |
1026 | end | |
1027 | end | |
1028 | if 0 < #Effects then | |
1029 | for e = 1, #Effects do | |
1030 | if Effects[e] ~= nil then | |
1031 | local Thing = Effects[e] | |
1032 | if Thing ~= nil then | |
1033 | local Part = Thing[1] | |
1034 | local Mode = Thing[2] | |
1035 | local Delay = Thing[3] | |
1036 | local IncX = Thing[4] | |
1037 | local IncY = Thing[5] | |
1038 | local IncZ = Thing[6] | |
1039 | if Thing[2] == "Shoot" then | |
1040 | local Look = Thing[1] | |
1041 | local move = 30 | |
1042 | if Thing[8] == 3 then | |
1043 | move = 10 | |
1044 | end | |
1045 | local hit, pos = rayCast(Thing[4], Thing[1], move, m) | |
1046 | if Thing[10] ~= nil then | |
1047 | da = pos | |
1048 | cf2 = CFrame.new(Thing[4], Thing[10].Position) | |
1049 | cfa = CFrame.new(Thing[4], pos) | |
1050 | tehCF = cfa:lerp(cf2, 0.2) | |
1051 | Thing[1] = tehCF.lookVector | |
1052 | end | |
1053 | local mag = (Thing[4] - pos).magnitude | |
1054 | Effects["Head"].Create(Torso.BrickColor, CFrame.new((Thing[4] + pos) / 2, pos) * CFrame.Angles(1.57, 0, 0), 1, mag * 5, 1, 0.5, 0, 0.5, 0.2) | |
1055 | if Thing[8] == 2 then | |
1056 | Effects["Ring"].Create(Torso.BrickColor, CFrame.new((Thing[4] + pos) / 2, pos) * CFrame.Angles(1.57, 0, 0) * CFrame.fromEulerAnglesXYZ(1.57, 0, 0), 1, 1, 0.1, 0.5, 0.5, 0.1, 0.1, 1) | |
1057 | end | |
1058 | Thing[4] = Thing[4] + Look * move | |
1059 | Thing[3] = Thing[3] - 1 | |
1060 | if 2 < Thing[5] then | |
1061 | Thing[5] = Thing[5] - 0.3 | |
1062 | Thing[6] = Thing[6] - 0.3 | |
1063 | end | |
1064 | if hit ~= nil then | |
1065 | Thing[3] = 0 | |
1066 | if Thing[8] == 1 or Thing[8] == 3 then | |
1067 | Damage(hit, hit, Thing[5], Thing[6], Thing[7], "Normal", RootPart, 0, "", 1) | |
1068 | else | |
1069 | if Thing[8] == 2 then | |
1070 | Damage(hit, hit, Thing[5], Thing[6], Thing[7], "Normal", RootPart, 0, "", 1) | |
1071 | if (hit.Parent:findFirstChild("Humanoid")) ~= nil or (hit.Parent.Parent:findFirstChild("Humanoid")) ~= nil then | |
1072 | ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new()) | |
1073 | ref.Anchored = true | |
1074 | ref.CFrame = CFrame.new(pos) | |
1075 | CFuncs["Sound"].Create("161006093", ref, 1, 1.2) | |
1076 | game:GetService("Debris"):AddItem(ref, 0.2) | |
1077 | Effects["Block"].Create(Torso.BrickColor, CFrame.new(ref.Position) * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 1, 1, 10, 10, 10, 0.1, 2) | |
1078 | Effects["Ring"].Create(BrickColor.new("Bright yellow"), CFrame.new(ref.Position) * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 1, 0.1, 4, 4, 0.1, 0.1) | |
1079 | MagnitudeDamage(ref, 15, Thing[5] / 1.5, Thing[6] / 1.5, 0, "Normal", "", 1) | |
1080 | end | |
1081 | end | |
1082 | end | |
1083 | ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", Vector3.new()) | |
1084 | ref.Anchored = true | |
1085 | ref.CFrame = CFrame.new(pos) | |
1086 | Effects["Sphere"].Create(Torso.BrickColor, CFrame.new(pos), 5, 5, 5, 1, 1, 1, 0.07) | |
1087 | game:GetService("Debris"):AddItem(ref, 1) | |
1088 | end | |
1089 | if Thing[3] <= 0 then | |
1090 | table.remove(Effects, e) | |
1091 | end | |
1092 | end | |
1093 | do | |
1094 | do | |
1095 | if Thing[2] == "FireWave" then | |
1096 | if Thing[3] <= Thing[4] then | |
1097 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(0, 1, 0) | |
1098 | Thing[3] = Thing[3] + 1 | |
1099 | Thing[6].Scale = Thing[6].Scale + Vector3.new(Thing[5], 0, Thing[5]) | |
1100 | else | |
1101 | Part.Parent = nil | |
1102 | table.remove(Effects, e) | |
1103 | end | |
1104 | end | |
1105 | if Thing[2] ~= "Shoot" and Thing[2] ~= "Wave" and Thing[2] ~= "FireWave" then | |
1106 | if Thing[1].Transparency <= 1 then | |
1107 | if Thing[2] == "Block1" then | |
1108 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
1109 | Mesh = Thing[7] | |
1110 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1111 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1112 | else | |
1113 | if Thing[2] == "Block2" then | |
1114 | Thing[1].CFrame = Thing[1].CFrame | |
1115 | Mesh = Thing[7] | |
1116 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1117 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1118 | else | |
1119 | if Thing[2] == "Fire" then | |
1120 | Thing[1].CFrame = CFrame.new(Thing[1].Position) + Vector3.new(0, 0.2, 0) | |
1121 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
1122 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1123 | else | |
1124 | if Thing[2] == "Cylinder" then | |
1125 | Mesh = Thing[7] | |
1126 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1127 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1128 | else | |
1129 | if Thing[2] == "Blood" then | |
1130 | Mesh = Thing[7] | |
1131 | Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 0.5, 0) | |
1132 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1133 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1134 | else | |
1135 | if Thing[2] == "Elec" then | |
1136 | Mesh = Thing[10] | |
1137 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9]) | |
1138 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1139 | else | |
1140 | if Thing[2] == "Disappear" then | |
1141 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1142 | end | |
1143 | end | |
1144 | end | |
1145 | end | |
1146 | end | |
1147 | end | |
1148 | end | |
1149 | else | |
1150 | Part.Parent = nil | |
1151 | table.remove(Effects, e) | |
1152 | end | |
1153 | end | |
1154 | end | |
1155 | end | |
1156 | end | |
1157 | end | |
1158 | end | |
1159 | end | |
1160 | end |