SHOW:
|
|
- or go back to the newest paste.
1 | wait(1 / 60) | |
2 | local Player = game:GetService('Players').LocalPlayer | |
3 | repeat wait() until Player.Character | |
4 | local Character = Player.Character | |
5 | ||
6 | TrailSettings = { | |
7 | Lifetime = 0.5, | |
8 | Texture = 'rbxassetid://31270182', | |
9 | Color1 = ColorSequence.new(BrickColor.new('Steel blue').Color,BrickColor.new('Navy blue').Color), | |
10 | Color2 = ColorSequence.new(BrickColor.new('Cyan').Color,BrickColor.new('Electric blue').Color), | |
11 | AllBody = true, | |
12 | UpperBodyOnly = false, | |
13 | LowerBodyOnly = false, | |
14 | Accessories = false, | |
15 | Extras = true, | |
16 | R15 = false, --Change to true if you're using R15 | |
17 | R15Parts = { | |
18 | 'UpperTorso', | |
19 | 'LowerTorso', | |
20 | } | |
21 | } | |
22 | ||
23 | local Trail; --Making other Trails uses this in this Script | |
24 | ||
25 | --UpperBody Function | |
26 | UpperBody = function() | |
27 | if TrailSettings.R15 == false then | |
28 | A0 = Instance.new('Attachment',Character.Torso) | |
29 | A1 = Instance.new('Attachment',Character.Head) | |
30 | A2 = Instance.new('Attachment',Character['Right Arm']) | |
31 | A3 = Instance.new('Attachment',Character['Left Arm']) | |
32 | Trail = Instance.new('Trail',Character) | |
33 | Trail.Attachment0 = A0 | |
34 | Trail.Attachment1 = A1 | |
35 | Trail.Texture = TrailSettings.Texture | |
36 | Trail.Color = TrailSettings.Color1 | |
37 | Trail.Lifetime = TrailSettings.Lifetime | |
38 | local Trail2 = Trail:Clone() | |
39 | Trail2.Parent = Character | |
40 | Trail2.Attachment1 = A2 | |
41 | local Trail3 = Trail:Clone() | |
42 | Trail3.Parent = Character | |
43 | Trail3.Attachment1 = A3 | |
44 | local Trail6 = Trail:Clone() | |
45 | Trail6.Parent = Character | |
46 | Trail6.Attachment0 = A1 | |
47 | Trail6.Attachment1 = A2 | |
48 | local Trail7 = Trail:Clone() | |
49 | Trail7.Parent = Character | |
50 | Trail7.Attachment0 = A1 | |
51 | Trail7.Attachment1 = A3 | |
52 | else | |
53 | A0 = Instance.new('Attachment',Character[TrailSettings.R15Parts[1]]) | |
54 | A0R = Instance.new('Attachment',Character[TrailSettings.R15Parts[2]]) | |
55 | A1 = Instance.new('Attachment',Character.Head) | |
56 | A2 = Instance.new('Attachment',Character['RightUpperArm']) | |
57 | A2R = Instance.new('Attachment',Character['RightLowerArm']) | |
58 | A3 = Instance.new('Attachment',Character['LeftUpperArm']) | |
59 | A3R = Instance.new('Attachment',Character['LeftLowerArm']) | |
60 | Trail = Instance.new('Trail',Character) | |
61 | Trail.Attachment0 = A0 | |
62 | Trail.Attachment1 = A1 | |
63 | Trail.Texture = TrailSettings.Texture | |
64 | Trail.Color = TrailSettings.Color1 | |
65 | Trail.Lifetime = TrailSettings.Lifetime | |
66 | local Trail2 = Trail:Clone() | |
67 | Trail2.Parent = Character | |
68 | Trail2.Attachment1 = A2 | |
69 | local Trail3 = Trail:Clone() | |
70 | Trail3.Parent = Character | |
71 | Trail3.Attachment1 = A3 | |
72 | local Trail6 = Trail:Clone() | |
73 | Trail6.Parent = Character | |
74 | Trail6.Attachment0 = A1 | |
75 | Trail6.Attachment1 = A2 | |
76 | local Trail7 = Trail:Clone() | |
77 | Trail7.Parent = Character | |
78 | Trail7.Attachment0 = A1 | |
79 | Trail7.Attachment1 = A3 | |
80 | --R15 Trails | |
81 | local Trail1R = Trail:Clone() | |
82 | Trail1R.Parent = Character | |
83 | Trail1R.Attachment1 = A2R | |
84 | local Trail2R = Trail:Clone() | |
85 | Trail2R.Parent = Character | |
86 | Trail2R.Attachment1 = A3R | |
87 | local Trail6R = Trail:Clone() | |
88 | Trail6.Parent = Character | |
89 | Trail6.Attachment0 = A1 | |
90 | Trail6.Attachment1 = A2R | |
91 | local Trail7R = Trail:Clone() | |
92 | Trail7.Parent = Character | |
93 | Trail7.Attachment0 = A1 | |
94 | Trail7.Attachment1 = A3R | |
95 | end | |
96 | end | |
97 | ||
98 | --Lower Body Function | |
99 | LowerBody = function() | |
100 | if TrailSettings.R15 == false then | |
101 | A4 = Instance.new('Attachment',Character['Right Leg']) | |
102 | A5 = Instance.new('Attachment',Character['Left Leg']) | |
103 | local Trail4 = Trail:Clone() | |
104 | Trail4.Parent = Character | |
105 | Trail4.Attachment1 = A4 | |
106 | local Trail5 = Trail:Clone() | |
107 | Trail5.Parent = Character | |
108 | Trail5.Attachment1 = A5 | |
109 | local Trail8 = Trail:Clone() | |
110 | Trail8.Parent = Character | |
111 | Trail8.Attachment0 = A2 | |
112 | Trail8.Attachment1 = A4 | |
113 | Trail8.Color = TrailSettings.Color2 | |
114 | local Trail9 = Trail:Clone() | |
115 | Trail9.Parent = Character | |
116 | Trail9.Attachment0 = A3 | |
117 | Trail9.Attachment1 = A5 | |
118 | Trail9.Color = TrailSettings.Color2 | |
119 | local FT = Trail:Clone() | |
120 | FT.Parent = Character | |
121 | FT.Attachment0 = A4 | |
122 | FT.Attachment1 = A5 | |
123 | FT.Color = TrailSettings.Color2 | |
124 | else | |
125 | A4 = Instance.new('Attachment',Character['RightLowerLeg']) | |
126 | A4R = Instance.new('Attachment',Character['RightUpperLeg']) | |
127 | A5 = Instance.new('Attachment',Character['LeftLowerLeg']) | |
128 | A5R = Instance.new('Attachment',Character['LeftUpperLeg']) | |
129 | local Trail4 = Trail:Clone() | |
130 | Trail4.Parent = Character | |
131 | Trail4.Attachment1 = A4 | |
132 | local Trail5 = Trail:Clone() | |
133 | Trail5.Parent = Character | |
134 | Trail5.Attachment1 = A5 | |
135 | local Trail8 = Trail:Clone() | |
136 | Trail8.Parent = Character | |
137 | Trail8.Attachment0 = A2 | |
138 | Trail8.Attachment1 = A4 | |
139 | Trail8.Color = TrailSettings.Color2 | |
140 | local Trail9 = Trail:Clone() | |
141 | Trail9.Parent = Character | |
142 | Trail9.Attachment0 = A3 | |
143 | Trail9.Attachment1 = A5 | |
144 | Trail9.Color = TrailSettings.Color2 | |
145 | local FT = Trail:Clone() | |
146 | FT.Parent = Character | |
147 | FT.Attachment0 = A4 | |
148 | FT.Attachment1 = A5 | |
149 | FT.Color = TrailSettings.Color2 | |
150 | --R15 Trails | |
151 | local Trail3R = Trail:Clone() | |
152 | Trail3R.Parent = Character | |
153 | Trail3R.Attachment1 = A4R | |
154 | local Trail4R = Trail:Clone() | |
155 | Trail4R.Parent = Character | |
156 | Trail4R.Attachment1 = A5R | |
157 | local Trail8 = Trail:Clone() | |
158 | Trail8.Parent = Character | |
159 | Trail8.Attachment0 = A2R | |
160 | Trail8.Attachment1 = A4R | |
161 | Trail8.Color = TrailSettings.Color2 | |
162 | local Trail9 = Trail:Clone() | |
163 | Trail9.Parent = Character | |
164 | Trail9.Attachment0 = A3R | |
165 | Trail9.Attachment1 = A5R | |
166 | Trail9.Color = TrailSettings.Color2 | |
167 | local FT2R = Trail:Clone() | |
168 | FT2R.Parent = Character | |
169 | FT2R.Attachment0 = A4R | |
170 | FT2R.Attachment1 = A5R | |
171 | FT2R.Color = TrailSettings.Color2 | |
172 | end | |
173 | end | |
174 | ||
175 | --All Body Function calling Both Functions | |
176 | AllBody = function() | |
177 | UpperBody() | |
178 | LowerBody() | |
179 | end | |
180 | ||
181 | --Checking to make sure that Only some Variables are Selected else do All Body | |
182 | if TrailSettings.AllBody == true and TrailSettings.UpperBodyOnly == true and TrailSettings.LowerBodyOnly == true then | |
183 | TrailSettings.UpperBodyOnly = false | |
184 | TrailSettings.LowerBodyOnly = false | |
185 | elseif TrailSettings.AllBody == true and TrailSettings.UpperBodyOnly == false and TrailSettings.LowerBodyOnly == true then | |
186 | TrailSettings.UpperBodyOnly = false | |
187 | TrailSettings.LowerBodyOnly = false | |
188 | elseif TrailSettings.AllBody == true and TrailSettings.UpperBodyOnly == true and TrailSettings.LowerBodyOnly == false then | |
189 | TrailSettings.UpperBodyOnly = false | |
190 | TrailSettings.LowerBodyOnly = false | |
191 | elseif TrailSettings.AllBody == false and TrailSettings.UpperBodyOnly == true and TrailSettings.LowerBodyOnly == true then | |
192 | TrailSettings.AllBody = true | |
193 | TrailSettings.UpperBodyOnly = false | |
194 | TrailSettings.LowerBodyOnly = false | |
195 | end | |
196 | ||
197 | --Call Trail Functions | |
198 | if TrailSettings.UpperBodyOnly == true then | |
199 | UpperBody() | |
200 | print('Called Upper Body Trail') | |
201 | elseif TrailSettings.LowerBodyOnly == true then | |
202 | LowerBody() | |
203 | print('Called Lower Body Trail') | |
204 | elseif TrailSettings.AllBody == true then | |
205 | AllBody() | |
206 | print('Called Full Body Trail') | |
207 | end | |
208 | ||
209 | --Trails for Accessories | |
210 | if TrailSettings.Accessories == true then | |
211 | for Index,Item in pairs(Character:GetChildren()) do | |
212 | if Item:IsA'Accessory' then | |
213 | local AA = Instance.new('Attachment',Item.Handle) | |
214 | local ATrail = Trail:Clone() | |
215 | ATrail.Parent = Character | |
216 | ATrail.Attachment1 = AA | |
217 | end | |
218 | end | |
219 | end | |
220 | ||
221 | --Extras | |
222 | if TrailSettings.Extras == true then | |
223 | --Making an Invisible Platform Part | |
224 | local a = Instance.new('Part',Character) | |
225 | a.CanCollide = false | |
226 | a.Size = Vector3.new(2,.2,2) | |
227 | a.Transparency = 1 | |
228 | ||
229 | --Constantly putting it under your feet | |
230 | if TrailSettings.R15 == false then | |
231 | spawn(function() | |
232 | game:GetService('RunService').RenderStepped:connect(function() | |
233 | a.CFrame = Character.Torso.CFrame * CFrame.new(0,-3,0) | |
234 | end) | |
235 | end) | |
236 | else | |
237 | spawn(function() | |
238 | game:GetService('RunService').RenderStepped:connect(function() | |
239 | a.CFrame = Character[TrailSettings.R15Parts[2]].CFrame * CFrame.new(0,-2,0) | |
240 | end) | |
241 | end) | |
242 | end | |
243 | ||
244 | --Make a Trail from both feet to the Platform | |
245 | spawn(function() | |
246 | repeat wait() until Trail | |
247 | local AB = Instance.new('Attachment',a) | |
248 | local ABT = Trail:Clone() | |
249 | ABT.Parent = Character | |
250 | ABT.Attachment0 = A4 | |
251 | ABT.Attachment1 = AB | |
252 | ABT.Color = TrailSettings.Color2 | |
253 | local ABT2 = Trail:Clone() | |
254 | ABT2.Parent = Character | |
255 | ABT2.Attachment0 = A5 | |
256 | ABT2.Attachment1 = AB | |
257 | ABT2.Color = TrailSettings.Color2 | |
258 | end) | |
259 | end | |
260 | ||
261 | local sick = Instance.new("Sound",Character.Torso) | |
262 | sick.SoundId = "rbxassetid://934568853" | |
263 | sick.Looped = true | |
264 | sick.Pitch = 1 | |
265 | sick.Volume = 4 | |
266 | sick:Play() | |
267 | ||
268 | Effects = { } | |
269 | local Player = game.Players.localPlayer | |
270 | local Mouse = Player:GetMouse() | |
271 | local Character = Player.Character | |
272 | local Humanoid = Character.Humanoid | |
273 | local Head = Character.Head | |
274 | local RootPart = Character.HumanoidRootPart | |
275 | local Torso = Character.Torso | |
276 | local LeftArm = Character["Left Arm"] | |
277 | local RightArm = Character["Right Arm"] | |
278 | local LeftLeg = Character["Left Leg"] | |
279 | local RightLeg = Character["Right Leg"] | |
280 | local Camera = game.Workspace.CurrentCamera | |
281 | local RootJoint = RootPart.RootJoint | |
282 | local Equipped = false | |
283 | local Attack = false | |
284 | local Anim = 'Idle' | |
285 | local Idle = 0 | |
286 | local Combo = 1 | |
287 | local TorsoVelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
288 | local Velocity = RootPart.Velocity.y | |
289 | local Sine = 0 | |
290 | local Change = 1 | |
291 | Instance.new("ForceField",Character).Visible = false | |
292 | Character.Humanoid.Name = "help" | |
293 | humanoid = Character.help | |
294 | ||
295 | local RbxUtility = LoadLibrary("RbxUtility") | |
296 | local Create = RbxUtility.Create | |
297 | ||
298 | humanoid.WalkSpeed = 32 | |
299 | humanoid.JumpPower = 75 | |
300 | - | humanoid.Health = 15000 |
300 | + | humanoid.Health = 250000 |
301 | - | humanoid.MaxHealth = 15000 |
301 | + | humanoid.MaxHealth = 250000 |
302 | humanoid.Animator.Parent = nil | |
303 | Character.Animate.Parent = nil | |
304 | ||
305 | local newMotor = function(part0, part1, c0, c1) | |
306 | local w = Create('Motor'){ | |
307 | Parent = part0, | |
308 | Part0 = part0, | |
309 | Part1 = part1, | |
310 | C0 = c0, | |
311 | C1 = c1, | |
312 | } | |
313 | return w | |
314 | end | |
315 | ||
316 | function clerp(a, b, t) | |
317 | return a:lerp(b, t) | |
318 | end | |
319 | ||
320 | RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14) | |
321 | NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
322 | ||
323 | local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0)) | |
324 | local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0)) | |
325 | local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0)) | |
326 | local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0)) | |
327 | RootJoint.C1 = CFrame.new(0, 0, 0) | |
328 | RootJoint.C0 = CFrame.new(0, 0, 0) | |
329 | Torso.Neck.C1 = CFrame.new(0, 0, 0) | |
330 | Torso.Neck.C0 = CFrame.new(0, 1.5, 0) | |
331 | ||
332 | local rarmc1 = RW.C1 | |
333 | local larmc1 = LW.C1 | |
334 | local rlegc1 = RH.C1 | |
335 | local llegc1 = LH.C1 | |
336 | ||
337 | local resetc1 = false | |
338 | ||
339 | function PlayAnimationFromTable(table, speed, bool) | |
340 | RootJoint.C0 = clerp(RootJoint.C0, table[1], speed) | |
341 | Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed) | |
342 | RW.C0 = clerp(RW.C0, table[3], speed) | |
343 | LW.C0 = clerp(LW.C0, table[4], speed) | |
344 | RH.C0 = clerp(RH.C0, table[5], speed) | |
345 | LH.C0 = clerp(LH.C0, table[6], speed) | |
346 | if bool == true then | |
347 | if resetc1 == false then | |
348 | resetc1 = true | |
349 | RootJoint.C1 = RootJoint.C1 | |
350 | Torso.Neck.C1 = Torso.Neck.C1 | |
351 | RW.C1 = rarmc1 | |
352 | LW.C1 = larmc1 | |
353 | RH.C1 = rlegc1 | |
354 | LH.C1 = llegc1 | |
355 | end | |
356 | end | |
357 | end | |
358 | ||
359 | ArtificialHB = Create("BindableEvent"){ | |
360 | Parent = script, | |
361 | Name = "Heartbeat", | |
362 | } | |
363 | ||
364 | script:WaitForChild("Heartbeat") | |
365 | ||
366 | frame = 1 / 45 | |
367 | tf = 0 | |
368 | allowframeloss = false | |
369 | tossremainder = false | |
370 | lastframe = tick() | |
371 | script.Heartbeat:Fire() | |
372 | ||
373 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
374 | tf = tf + s | |
375 | if tf >= frame then | |
376 | if allowframeloss then | |
377 | script.Heartbeat:Fire() | |
378 | lastframe = tick() | |
379 | else | |
380 | for i = 1, math.floor(tf / frame) do | |
381 | script.Heartbeat:Fire() | |
382 | end | |
383 | lastframe = tick() | |
384 | end | |
385 | if tossremainder then | |
386 | tf = 0 | |
387 | else | |
388 | tf = tf - frame * math.floor(tf / frame) | |
389 | end | |
390 | end | |
391 | end) | |
392 | ||
393 | function swait(num) | |
394 | if num == 0 or num == nil then | |
395 | ArtificialHB.Event:wait() | |
396 | else | |
397 | for i = 0, num do | |
398 | ArtificialHB.Event:wait() | |
399 | end | |
400 | end | |
401 | end | |
402 | ||
403 | local m = Create("Model"){ | |
404 | Parent = Character, | |
405 | Name = "WeaponModel" | |
406 | } | |
407 | ||
408 | function RemoveOutlines(part) | |
409 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
410 | end | |
411 | ||
412 | CFuncs = { | |
413 | Part = { | |
414 | Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
415 | local Part = Create("Part"){ | |
416 | Parent = Parent, | |
417 | Reflectance = Reflectance, | |
418 | Transparency = Transparency, | |
419 | CanCollide = false, | |
420 | Locked = true, | |
421 | BrickColor = BrickColor.new(tostring(BColor)), | |
422 | Name = Name, | |
423 | Size = Size, | |
424 | Material = Material, | |
425 | } | |
426 | RemoveOutlines(Part) | |
427 | if Size == Vector3.new() then | |
428 | Part.Size = Vector3.new(0.2, 0.2, 0.2) | |
429 | else | |
430 | Part.Size = Size | |
431 | end | |
432 | return Part | |
433 | end; | |
434 | }; | |
435 | ||
436 | Mesh = { | |
437 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
438 | local Msh = Create(Mesh){ | |
439 | Parent = Part, | |
440 | Offset = OffSet, | |
441 | Scale = Scale, | |
442 | } | |
443 | if Mesh == "SpecialMesh" then | |
444 | Msh.MeshType = MeshType | |
445 | Msh.MeshId = MeshId | |
446 | end | |
447 | return Msh | |
448 | end; | |
449 | }; | |
450 | ||
451 | Weld = { | |
452 | Create = function(Parent, Part0, Part1, C0, C1) | |
453 | local Weld = Create("Weld"){ | |
454 | Parent = Parent, | |
455 | Part0 = Part0, | |
456 | Part1 = Part1, | |
457 | C0 = C0, | |
458 | C1 = C1, | |
459 | } | |
460 | return Weld | |
461 | end; | |
462 | }; | |
463 | ||
464 | Sound = { | |
465 | Create = function(id, par, vol, pit) | |
466 | coroutine.resume(coroutine.create(function() | |
467 | local S = Create("Sound"){ | |
468 | Volume = vol, | |
469 | Pitch = pit or 1, | |
470 | SoundId = "rbxassetid://" .. id, | |
471 | Parent = par or workspace, | |
472 | } | |
473 | wait() | |
474 | S:play() | |
475 | game:GetService("Debris"):AddItem(S, 10) | |
476 | end)) | |
477 | end; | |
478 | }; | |
479 | ||
480 | ParticleEmitter = { | |
481 | Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread) | |
482 | local Particle = Create("ParticleEmitter"){ | |
483 | Parent = Parent, | |
484 | Color = ColorSequence.new(Color1, Color2), | |
485 | LightEmission = LightEmission, | |
486 | Size = Size, | |
487 | Texture = Texture, | |
488 | Transparency = Transparency, | |
489 | ZOffset = ZOffset, | |
490 | Acceleration = Accel, | |
491 | Drag = Drag, | |
492 | LockedToPart = LockedToPart, | |
493 | VelocityInheritance = VelocityInheritance, | |
494 | EmissionDirection = EmissionDirection, | |
495 | Enabled = Enabled, | |
496 | Lifetime = LifeTime, | |
497 | Rate = Rate, | |
498 | Rotation = Rotation, | |
499 | RotSpeed = RotSpeed, | |
500 | Speed = Speed, | |
501 | VelocitySpread = VelocitySpread, | |
502 | } | |
503 | return Particle | |
504 | end; | |
505 | }; | |
506 | ||
507 | CreateTemplate = { | |
508 | ||
509 | }; | |
510 | } | |
511 | ||
512 | ||
513 | SwordHandle=CFuncs.Part.Create(m,Enum.Material.Plastic,0,1,"Medium stone grey","SwordHandle",Vector3.new(0.869999945, 0.450000048, 0.440000325)) | |
514 | SwordHandleWeld=CFuncs.Weld.Create(m,Character["Right Arm"],SwordHandle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.185770988, 0.870510101, 0.408577919, 0.203587696, 0.0859783739, 0.975274265, 0.215029001, 0.967887759, -0.130214334, -0.955151618, 0.236222297, 0.178562179)) | |
515 | ||
516 | FSwordHandle=CFuncs.Part.Create(m,Enum.Material.Plastic,0,1,"Medium stone grey","SwordHandle",Vector3.new(0.869999945, 0.450000048, 0.440000325)) | |
517 | FSwordHandleWeld=CFuncs.Weld.Create(m,FSwordHandle,SwordHandle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.185770988, 0.870510101, 0.408577919, 0.203587696, 0.0859783739, 0.975274265, 0.215029001, 0.967887759, -0.130214334, -0.955151618, 0.236222297, 0.178562179)) | |
518 | ||
519 | SwordHitbox=CFuncs.Part.Create(m,Enum.Material.Plastic,0,1,"Medium stone grey","SwordHitbox",Vector3.new(2.86000085, 0.780000031, 0.490000904)) | |
520 | SwordHitboxWeld=CFuncs.Weld.Create(m,FSwordHandle,SwordHitbox,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.40326214, -0.0246145725, 0.0822520256, 0.996526599, -0.0713239759, 0.0429853499, -0.0685022175, -0.995603502, -0.063884899, 0.04735291, 0.0607184023, -0.997031152)) | |
521 | Sword=CFuncs.Part.Create(m,Enum.Material.Plastic,0.40000000596046,0,"Dark stone grey","Sword",Vector3.new(1, 0.800000012, 4)) | |
522 | SwordWeld=CFuncs.Weld.Create(m,FSwordHandle,Sword,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00868201256, -0.0434961319, -1.57871437, -0.0685393885, -0.995604873, -0.0638238713, -0.0473001003, -0.060659457, 0.997037172, -0.996526659, 0.0713551864, -0.0429345965)) | |
523 | CFuncs.Mesh.Create("SpecialMesh",Sword,Enum.MeshType.FileMesh,"rbxasset://fonts/sword.mesh",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
524 | SwordTip=CFuncs.Part.Create(m,Enum.Material.Plastic,0,1,"Medium stone grey","SwordTip",Vector3.new(0.0500000007, 0.0500000007, 0.0500000007)) | |
525 | SwordTipWeld=CFuncs.Weld.Create(m,FSwordHandle,SwordTip,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.99350071, 0.0115001202, -0.0282430649, 0.996526718, -0.0713239908, 0.0429855287, 0.0685023069, 0.995603621, 0.0638830736, -0.0473529696, -0.0607165657, 0.997031391)) | |
526 | SwordBase=CFuncs.Part.Create(m,Enum.Material.Plastic,0,1,"Medium stone grey","SwordBase",Vector3.new(0.0500000007, 0.0500000007, 0.0500000007)) | |
527 | SwordBaseWeld=CFuncs.Weld.Create(m,FSwordHandle,SwordBase,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.965875626, -0.108898878, -0.0282406807, 0.996527016, -0.0713239983, 0.0429854989, 0.0685023293, 0.995603859, 0.0638830885, -0.0473529994, -0.0607165806, 0.997031689)) | |
528 | sw00ng=CFuncs.Mesh.Create("SpecialMesh",Sword,Enum.MeshType.FileMesh,"rbxasset://fonts/sword.mesh",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
529 | sw00ng.TextureId = "rbxasset://textures/SwordTexture.png" | |
530 | Dodgebox=CFuncs.Part.Create(m,Enum.Material.Plastic,0,1,"Medium stone grey","Dodgebox",Vector3.new(0.380000204, 0.440000057, 0.370000631)) | |
531 | DodgeboxWeld=CFuncs.Weld.Create(m,Character["Left Arm"],Dodgebox,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.19000053, 0.0500006676, 0.00499725342, -5.2829273e-07, -1, 9.87201929e-08, -1.00000012, 5.32949343e-07, -2.98023224e-08, 2.98023224e-08, -9.68575478e-08, -1.00000012)) | |
532 | RHandle=CFuncs.Part.Create(m,Enum.Material.Plastic,0,1,"Medium stone grey","RHandle",Vector3.new(4.92000628, 0.740000546, 0.839999795)) | |
533 | RHandleWeld=CFuncs.Weld.Create(m,Character["Left Arm"],RHandle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.891376376, 0.0220794678, -0.335389137, -0.0211870149, 0.999322236, 0.0301050469, 0.985142112, 0.0157343224, 0.171019673, 0.170430094, 0.0332811475, -0.98480773)) | |
534 | kaboomsky=CFuncs.Mesh.Create("SpecialMesh",RHandle,Enum.MeshType.FileMesh,"rbxasset://fonts/rocketlauncher.mesh",Vector3.new(0, 0, 0),Vector3.new(0.75, 0.75, 0.75)) | |
535 | RocketMaker=CFuncs.Part.Create(m,Enum.Material.Plastic,0,1,"Medium stone grey","RocketMaker",Vector3.new(0.349999934, 0.350000024, 0.369999945)) | |
536 | RocketMakerWeld=CFuncs.Weld.Create(m,RHandle,RocketMaker,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.6350019, 0.17499733, 0.0449929237, 0.999999702, 0, 7.4505806e-09, 0, 1.72555447e-05, -1, 0, 1.00000012, 1.72555447e-05)) | |
537 | ||
538 | kaboomsky=CFuncs.Mesh.Create("SpecialMesh",RHandle,Enum.MeshType.FileMesh,"rbxasset://fonts/rocketlauncher.mesh",Vector3.new(0, 0, 0),Vector3.new(0.75, 0.75, 0.75)) | |
539 | kaboomsky.TextureId = "rbxasset://textures/rocketlaunchertex.png" | |
540 | ||
541 | ||
542 | ||
543 | swordtrail = Instance.new("Trail", SwordHitbox) | |
544 | A2 = Instance.new('Attachment',SwordBase) | |
545 | A3 = Instance.new('Attachment',SwordTip) | |
546 | swordtrail.Lifetime = .1 | |
547 | swordtrail.Enabled = false | |
548 | swordtrail.Attachment0 = A2 | |
549 | swordtrail.Attachment1 = A3 | |
550 | local startColor = Color3.new(50,238,227) | |
551 | local endColor = Color3.new(167,213,211) | |
552 | local startT = .2 | |
553 | local endT = .8 | |
554 | ||
555 | local sequence = ColorSequence.new(startColor, endColor) | |
556 | local sequence2 = NumberSequence.new(startT, endT) | |
557 | ||
558 | swordtrail.Color = sequence | |
559 | swordtrail.Transparency = sequence2 | |
560 | ||
561 | ||
562 | function RayCast(Position, Direction, Range, Ignore) | |
563 | return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore) | |
564 | end | |
565 | ||
566 | FindNearestTorso = function(pos) | |
567 | local list = (game.Workspace:children()) | |
568 | local torso = nil | |
569 | local dist = 1000 | |
570 | local temp, human, temp2 = nil, nil, nil | |
571 | for x = 1, #list do | |
572 | temp2 = list[x] | |
573 | if temp2.className == "Model" and temp2.Name ~= Character.Name then | |
574 | temp = temp2:findFirstChild("Torso") | |
575 | human = temp2:findFirstChild("Humanoid") | |
576 | if temp ~= nil and human ~= nil and human.Health > 0 and (temp.Position - pos).magnitude < dist then | |
577 | local dohit = true | |
578 | if dohit == true then | |
579 | torso = temp | |
580 | dist = (temp.Position - pos).magnitude | |
581 | end | |
582 | end | |
583 | end | |
584 | end | |
585 | return torso, dist | |
586 | end | |
587 | ||
588 | function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch) | |
589 | if hit.Parent == nil then | |
590 | return | |
591 | end | |
592 | local h = hit.Parent:FindFirstChild("Humanoid") | |
593 | for _, v in pairs(hit.Parent:children()) do | |
594 | if v:IsA("Humanoid") then | |
595 | h = v | |
596 | end | |
597 | end | |
598 | if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then | |
599 | if hit.Parent:findFirstChild("DebounceHit") ~= nil then | |
600 | if hit.Parent.DebounceHit.Value == true then | |
601 | return | |
602 | end | |
603 | end | |
604 | local c = Create("ObjectValue"){ | |
605 | Name = "creator", | |
606 | Value = game:service("Players").LocalPlayer, | |
607 | Parent = h, | |
608 | } | |
609 | game:GetService("Debris"):AddItem(c, .5) | |
610 | if HitSound ~= nil and HitPitch ~= nil then | |
611 | CFuncs.Sound.Create(HitSound, hit, 1, HitPitch) | |
612 | end | |
613 | local Damage = math.random(minim, maxim) | |
614 | local blocked = false | |
615 | local block = hit.Parent:findFirstChild("Block") | |
616 | if block ~= nil then | |
617 | if block.className == "IntValue" then | |
618 | if block.Value > 0 then | |
619 | blocked = true | |
620 | block.Value = block.Value - 1 | |
621 | print(block.Value) | |
622 | end | |
623 | end | |
624 | end | |
625 | if blocked == false then | |
626 | h.Health = h.Health - Damage | |
627 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), "Bloxxed!", 1, BrickColor.new(Torso.Color).Color) | |
628 | else | |
629 | h.Health = h.Health - (Damage / 2) | |
630 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), "Bloxxed!", 1, BrickColor.new(Torso.Color).Color) | |
631 | end | |
632 | if Type == "Knockdown" then | |
633 | local hum = hit.Parent.Humanoid | |
634 | hum.PlatformStand = true | |
635 | coroutine.resume(coroutine.create(function(HHumanoid) | |
636 | swait(1) | |
637 | HHumanoid.PlatformStand = false | |
638 | end), hum) | |
639 | local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit | |
640 | local bodvol = Create("BodyVelocity"){ | |
641 | velocity = angle * knockback, | |
642 | P = 5000, | |
643 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
644 | Parent = hit, | |
645 | } | |
646 | local rl = Create("BodyAngularVelocity"){ | |
647 | P = 3000, | |
648 | maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, | |
649 | angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), | |
650 | Parent = hit, | |
651 | } | |
652 | game:GetService("Debris"):AddItem(bodvol, .5) | |
653 | game:GetService("Debris"):AddItem(rl, .5) | |
654 | elseif Type == "Normal" then | |
655 | local vp = Create("BodyVelocity"){ | |
656 | P = 500, | |
657 | maxForce = Vector3.new(math.huge, 0, math.huge), | |
658 | velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05, | |
659 | } | |
660 | hit.Parent.Torso:BreakJoints() | |
661 | if knockback > 0 then | |
662 | vp.Parent = hit.Parent.Torso | |
663 | end | |
664 | game:GetService("Debris"):AddItem(vp, .5) | |
665 | elseif Type == "Up" then | |
666 | local bodyVelocity = Create("BodyVelocity"){ | |
667 | velocity = Vector3.new(0, 20, 0), | |
668 | P = 5000, | |
669 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
670 | Parent = hit, | |
671 | } | |
672 | game:GetService("Debris"):AddItem(bodyVelocity, .5) | |
673 | elseif Type == "DarkUp" then | |
674 | coroutine.resume(coroutine.create(function() | |
675 | for i = 0, 1, 0.1 do | |
676 | swait() | |
677 | Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1) | |
678 | end | |
679 | end)) | |
680 | local bodyVelocity = Create("BodyVelocity"){ | |
681 | velocity = Vector3.new(0, 20, 0), | |
682 | P = 5000, | |
683 | maxForce = Vector3.new(8e+003, 8e+003, 8e+003), | |
684 | Parent = hit, | |
685 | } | |
686 | game:GetService("Debris"):AddItem(bodyVelocity, 1) | |
687 | elseif Type == "Snare" then | |
688 | local bp = Create("BodyPosition"){ | |
689 | P = 2000, | |
690 | D = 100, | |
691 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
692 | position = hit.Parent.Torso.Position, | |
693 | Parent = hit.Parent.Torso, | |
694 | } | |
695 | game:GetService("Debris"):AddItem(bp, 1) | |
696 | elseif Type == "Freeze" then | |
697 | local BodPos = Create("BodyPosition"){ | |
698 | P = 50000, | |
699 | D = 1000, | |
700 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
701 | position = hit.Parent.Torso.Position, | |
702 | Parent = hit.Parent.Torso, | |
703 | } | |
704 | local BodGy = Create("BodyGyro") { | |
705 | maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge , | |
706 | P = 20e+003, | |
707 | Parent = hit.Parent.Torso, | |
708 | cf = hit.Parent.Torso.CFrame, | |
709 | } | |
710 | hit.Parent.Torso.Anchored = true | |
711 | coroutine.resume(coroutine.create(function(Part) | |
712 | swait(1.5) | |
713 | Part.Anchored = false | |
714 | end), hit.Parent.Torso) | |
715 | game:GetService("Debris"):AddItem(BodPos, 3) | |
716 | game:GetService("Debris"):AddItem(BodGy, 3) | |
717 | end | |
718 | local debounce = Create("BoolValue"){ | |
719 | Name = "DebounceHit", | |
720 | Parent = hit.Parent, | |
721 | Value = true, | |
722 | } | |
723 | game:GetService("Debris"):AddItem(debounce, Delay) | |
724 | c = Create("ObjectValue"){ | |
725 | Name = "creator", | |
726 | Value = Player, | |
727 | Parent = h, | |
728 | } | |
729 | game:GetService("Debris"):AddItem(c, .5) | |
730 | end | |
731 | end | |
732 | ||
733 | function ShowDamage(Pos, Text, Time, Color) | |
734 | local Rate = (1 / 30) | |
735 | local Pos = (Pos or Vector3.new(0, 0, 0)) | |
736 | local Text = (Text or "") | |
737 | local Time = (Time or 2) | |
738 | local Color = (Color or Color3.new(1, 0, 1)) | |
739 | local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0)) | |
740 | EffectPart.Anchored = true | |
741 | local BillboardGui = Create("BillboardGui"){ | |
742 | Size = UDim2.new(3, 0, 3, 0), | |
743 | Adornee = EffectPart, | |
744 | Parent = EffectPart, | |
745 | } | |
746 | local TextLabel = Create("TextLabel"){ | |
747 | BackgroundTransparency = 1, | |
748 | Size = UDim2.new(1, 0, 1, 0), | |
749 | Text = Text, | |
750 | Font = "SourceSansLight", | |
751 | TextColor3 = Color, | |
752 | TextScaled = true, | |
753 | Parent = BillboardGui, | |
754 | } | |
755 | game.Debris:AddItem(EffectPart, (Time)) | |
756 | EffectPart.Parent = game:GetService("Workspace") | |
757 | delay(0, function() | |
758 | local Frames = (Time / Rate) | |
759 | for Frame = 1, Frames do | |
760 | wait(Rate) | |
761 | local Percent = (Frame / Frames) | |
762 | EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0) | |
763 | TextLabel.TextTransparency = Percent | |
764 | end | |
765 | if EffectPart and EffectPart.Parent then | |
766 | EffectPart:Destroy() | |
767 | end | |
768 | end) | |
769 | end | |
770 | ||
771 | function MagnitudeDamage(Part, Magnitude, MinimumDamage, MaximumDamage, KnockBack, Type, HitSound, HitPitch) | |
772 | for _, c in pairs(workspace:children()) do | |
773 | local hum = c:findFirstChild("Humanoid") | |
774 | if hum ~= nil then | |
775 | local head = c:findFirstChild("Torso") | |
776 | if head ~= nil then | |
777 | local targ = head.Position - Part.Position | |
778 | local mag = targ.magnitude | |
779 | if mag <= Magnitude and c.Name ~= Player.Name then | |
780 | Damage(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, RootPart, .1, "rbxassetid://" .. HitSound, HitPitch) | |
781 | end | |
782 | end | |
783 | end | |
784 | end | |
785 | end | |
786 | ||
787 | EffectModel = Create("Model"){ | |
788 | Parent = Character, | |
789 | Name = "EffectModel", | |
790 | } | |
791 | ||
792 | Effects = { | |
793 | Block = { | |
794 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type, Part) | |
795 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
796 | prt.Anchored = true | |
797 | prt.CFrame = cframe | |
798 | msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
799 | game:GetService("Debris"):AddItem(prt, 10) | |
800 | if Type == 1 or Type == nil then | |
801 | table.insert(Effects, { | |
802 | prt, | |
803 | "Block1", | |
804 | delay, | |
805 | x3, | |
806 | y3, | |
807 | z3, | |
808 | msh | |
809 | }) | |
810 | elseif Type == 2 then | |
811 | table.insert(Effects, { | |
812 | prt, | |
813 | "Block2", | |
814 | delay, | |
815 | x3, | |
816 | y3, | |
817 | z3, | |
818 | msh | |
819 | }) | |
820 | elseif Type == 3 then | |
821 | table.insert(Effects, { | |
822 | prt, | |
823 | "Block3", | |
824 | delay, | |
825 | x3, | |
826 | y3, | |
827 | z3, | |
828 | msh, | |
829 | Part | |
830 | }) | |
831 | elseif Type == 4 then | |
832 | table.insert(Effects, { | |
833 | prt, | |
834 | "Block2Fire", | |
835 | delay, | |
836 | x3, | |
837 | y3, | |
838 | z3, | |
839 | msh | |
840 | }) | |
841 | end | |
842 | end | |
843 | }; | |
844 | ||
845 | Sphere = { | |
846 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, parent) | |
847 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
848 | prt.Anchored = true | |
849 | prt.CFrame = cframe | |
850 | if parent == nil then | |
851 | prt.Parent = workspace | |
852 | else | |
853 | prt.Parent = parent | |
854 | end | |
855 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
856 | game:GetService("Debris"):AddItem(prt, 10) | |
857 | table.insert(Effects, { | |
858 | prt, | |
859 | "Cylinder", | |
860 | delay, | |
861 | x3, | |
862 | y3, | |
863 | z3, | |
864 | msh | |
865 | }) | |
866 | end | |
867 | }; | |
868 | ||
869 | Blood = { | |
870 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
871 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
872 | prt.Anchored = true | |
873 | prt.CFrame = cframe | |
874 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
875 | game:GetService("Debris"):AddItem(prt, 10) | |
876 | table.insert(Effects, { | |
877 | prt, | |
878 | "Blood", | |
879 | delay, | |
880 | x3, | |
881 | y3, | |
882 | z3, | |
883 | msh | |
884 | }) | |
885 | end | |
886 | }; | |
887 | ||
888 | Blast = { | |
889 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Part) | |
890 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
891 | prt.Anchored = true | |
892 | prt.CFrame = cframe | |
893 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "1323306", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
894 | game:GetService("Debris"):AddItem(prt, 10) | |
895 | table.insert(Effects, { | |
896 | prt, | |
897 | "Block4", | |
898 | delay, | |
899 | x3, | |
900 | y3, | |
901 | z3, | |
902 | msh, | |
903 | Part | |
904 | }) | |
905 | end | |
906 | }; | |
907 | ||
908 | Ring = { | |
909 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
910 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
911 | prt.Anchored = true | |
912 | prt.CFrame = cframe | |
913 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
914 | game:GetService("Debris"):AddItem(prt, 10) | |
915 | table.insert(Effects, { | |
916 | prt, | |
917 | "Cylinder", | |
918 | delay, | |
919 | x3, | |
920 | y3, | |
921 | z3, | |
922 | msh | |
923 | }) | |
924 | end | |
925 | }; | |
926 | ||
927 | Cylinder = { | |
928 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
929 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
930 | prt.Anchored = true | |
931 | prt.CFrame = cframe | |
932 | local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
933 | game:GetService("Debris"):AddItem(prt, 10) | |
934 | table.insert(Effects, { | |
935 | prt, | |
936 | "Cylinder", | |
937 | delay, | |
938 | x3, | |
939 | y3, | |
940 | z3, | |
941 | msh | |
942 | }) | |
943 | end | |
944 | }; | |
945 | ||
946 | Head = { | |
947 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
948 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
949 | prt.Anchored = true | |
950 | prt.CFrame = cframe | |
951 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Head", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
952 | game:GetService("Debris"):AddItem(prt, 10) | |
953 | table.insert(Effects, { | |
954 | prt, | |
955 | "Cylinder", | |
956 | delay, | |
957 | x3, | |
958 | y3, | |
959 | z3, | |
960 | msh | |
961 | }) | |
962 | end | |
963 | }; | |
964 | ||
965 | Wave = { | |
966 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
967 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
968 | prt.Anchored = true | |
969 | prt.CFrame = cframe | |
970 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
971 | game:GetService("Debris"):AddItem(prt, 10) | |
972 | table.insert(Effects, { | |
973 | prt, | |
974 | "Cylinder", | |
975 | delay, | |
976 | x3, | |
977 | y3, | |
978 | z3, | |
979 | msh | |
980 | }) | |
981 | end | |
982 | }; | |
983 | ||
984 | Break = { | |
985 | Create = function(brickcolor, cframe, x1, y1, z1) | |
986 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
987 | prt.Anchored = true | |
988 | prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
989 | game:GetService("Debris"):AddItem(prt, 10) | |
990 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
991 | local num = math.random(10, 50) / 1000 | |
992 | table.insert(Effects, { | |
993 | prt, | |
994 | "Shatter", | |
995 | num, | |
996 | prt.CFrame, | |
997 | math.random() - math.random(), | |
998 | 0, | |
999 | math.random(50, 100) / 100 | |
1000 | }) | |
1001 | end | |
1002 | }; | |
1003 | ||
1004 | Elec = { | |
1005 | Create = function(brickcolor, cff, x, y, z) | |
1006 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Part", Vector3.new(1, 1, 1)) | |
1007 | prt.Anchored = true | |
1008 | prt.CFrame = cff * CFrame.new(math.random(-x * 100, x * 100) / 100, math.random(-y * 100, y * 100) / 100, math.random(-z * 100, z * 100) / 100) | |
1009 | prt.CFrame = CFrame.new(prt.Position) | |
1010 | game:GetService("Debris"):AddItem(prt, 10) | |
1011 | xval = math.random() / 9 | |
1012 | yval = math.random() / 9 | |
1013 | zval = math.random() / 9 | |
1014 | msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval)) | |
1015 | eul1 = math.random(-50, 50) | |
1016 | eul2 = math.random(-50, 50) | |
1017 | eul3 = math.random(-50, 50) | |
1018 | euld = CFrame.fromEulerAnglesXYZ(eul1, eul2, eul3) | |
1019 | euld2 = CFrame.fromEulerAnglesXYZ(-eul1, -eul2, -eul3) | |
1020 | table.insert(Effects, { | |
1021 | prt, | |
1022 | "Elec", | |
1023 | .05, | |
1024 | x, | |
1025 | y, | |
1026 | z, | |
1027 | xval, | |
1028 | yval, | |
1029 | zval, | |
1030 | msh, | |
1031 | euld, | |
1032 | euld2 | |
1033 | }) | |
1034 | end | |
1035 | }; | |
1036 | ||
1037 | Elec2 = { | |
1038 | Create = function(brickcolor, cff, x, y, z) | |
1039 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Part", Vector3.new(1, 1, 1)) | |
1040 | prt.Anchored = true | |
1041 | prt.CFrame = cff * CFrame.new(math.random(-x * 100, x * 100) / 100, math.random(-y * 100, y * 100) / 100, math.random(-z * 100, z * 100) / 100) | |
1042 | prt.CFrame = CFrame.new(prt.Position) | |
1043 | game:GetService("Debris"):AddItem(prt, 10) | |
1044 | xval = math.random() / 7 | |
1045 | yval = math.random() / 7 | |
1046 | zval = math.random() / 7 | |
1047 | msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval)) | |
1048 | eul1 = math.random(-50, 50) | |
1049 | eul2 = math.random(-50, 50) | |
1050 | eul3 = math.random(-50, 50) | |
1051 | euld = CFrame.fromEulerAnglesXYZ(eul1, eul2, eul3) | |
1052 | euld2 = CFrame.fromEulerAnglesXYZ(-eul1, -eul2, -eul3) | |
1053 | table.insert(Effects, { | |
1054 | prt, | |
1055 | "Elec", | |
1056 | .1, | |
1057 | x, | |
1058 | y, | |
1059 | z, | |
1060 | xval, | |
1061 | yval, | |
1062 | zval, | |
1063 | msh, | |
1064 | euld, | |
1065 | euld2 | |
1066 | }) | |
1067 | end | |
1068 | }; | |
1069 | ||
1070 | Clone = { | |
1071 | Create = function() | |
1072 | for _, v in pairs(Torso.Parent:children()) do | |
1073 | if v.className == "Part" and v.Name ~= "HumanoidRootPart" then | |
1074 | local c = CFuncs.Part.Create(EffectModel, "Neon", 0, .5, BrickColor.new("Bright blue"), "Effect", v.Size) | |
1075 | c.Anchored = true | |
1076 | c.CFrame = v.CFrame | |
1077 | game:GetService("Debris"):AddItem(c, 5) | |
1078 | local cmsh = nil | |
1079 | if v.Name == "Head" then | |
1080 | cmsh = CFuncs.Mesh.Create("SpecialMesh", c, "Head", "", Vector3.new(0, 0, 0), v.Mesh.Scale) | |
1081 | else | |
1082 | cmsh = CFuncs.Mesh.Create("BlockMesh", c, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1)) | |
1083 | end | |
1084 | table.insert(Effects, { | |
1085 | c, | |
1086 | "Cylinder", | |
1087 | 0.05, | |
1088 | 0.1, | |
1089 | 0.1, | |
1090 | 0.1, | |
1091 | cmsh | |
1092 | }) | |
1093 | end | |
1094 | end | |
1095 | end | |
1096 | }; | |
1097 | ||
1098 | EffectTemplate = { | |
1099 | ||
1100 | }; | |
1101 | } | |
1102 | ||
1103 | ||
1104 | ||
1105 | function basicatk3() | |
1106 | Attack = true | |
1107 | for i = 0, 1, 0.1 do | |
1108 | swait() | |
1109 | PlayAnimationFromTable({ | |
1110 | CFrame.new(-0.0142343417, 0.0233179983, 0.020687107, 0.573575377, 0, -0.819152832, 0, 1, 0, 0.819152832, 0, 0.573575377) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1111 | CFrame.new(2.98023224e-07, 1.49992621, 2.16066837e-07, 0.608099699, -0.0691893846, 0.790839791, 0, 0.99619478, 0.0871555731, -0.793860614, -0.0529992878, 0.605785728) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1112 | CFrame.new(2.05688548, 0.769726157, 0.0676793456, -0.311439514, -0.945715487, -0.092885226, 0.945463896, -0.298567384, -0.130214006, 0.09541291, -0.128373384, 0.987125456) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1113 | CFrame.new(-0.411215395, 0.158524469, -0.878887057, 0.250847429, -0.870902896, 0.422615528, 0.960933626, 0.276778936, -3.5065608e-07, -0.116970763, 0.406105578, 0.906309128) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1114 | CFrame.new(0.657444179, -1.99999833, -0.128117085, 0.896965504, -0.0924630314, 0.432323426, 0.14320904, 0.98592627, -0.0862591267, -0.418263227, 0.139284089, 0.897583365) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1115 | CFrame.new(-0.494430214, -2.06444812, 0.151889086, 0.924378932, -0.0320322104, 0.380128324, -0.00379799958, 0.995646238, 0.093135722, -0.381456703, -0.0875364318, 0.920232713) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1116 | }, .3, false) | |
1117 | FSwordHandleWeld.C0 = clerp(FSwordHandleWeld.C0, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 1) | |
1118 | end | |
1119 | swordtrail.Enabled = true | |
1120 | local con = SwordHitbox.Touched:connect(function(hit) | |
1121 | Damage(SwordHitbox, hit, 0, 0, 0, "Normal", RootPart, 0.2, "851453784", 1)end) | |
1122 | CFuncs.Sound.Create("12222208", SwordHitbox, 1, 1) | |
1123 | for i = 0, 1, 0.1 do | |
1124 | swait() | |
1125 | PlayAnimationFromTable({ | |
1126 | CFrame.new(-0.0142339114, 0.0233179983, 0.0206872839, 0.642787755, 0, 0.766044497, 0, 1, 0, -0.766044497, 0, 0.642787755) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1127 | CFrame.new(9.59248496e-07, 1.49992597, 4.65522191e-07, 0.60942173, 0, -0.792846382, 0, 1, 0, 0.792846322, 0, 0.609421849) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1128 | CFrame.new(1.73596513, 0.521444082, -0.798278034, 0.809956312, -0.584440529, 0.0489933714, 0.032929007, -0.0380880162, -0.998731732, 0.585565269, 0.810542405, -0.0116045829) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1129 | CFrame.new(-1.85990238, 0.325684935, -0.117992491, 0.89608562, 0.442657262, 0.0329447091, -0.4075903, 0.849945962, -0.333859384, -0.175786465, 0.285738617, 0.942047179) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1130 | CFrame.new(0.425910503, -2.07023525, 0.0920312852, 0.940003216, -0.0248685181, 0.340258449, -0.0248680059, 0.98969233, 0.141034499, -0.340258539, -0.141034409, 0.929695547) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1131 | CFrame.new(-0.614895225, -2, -0.0110759763, 1.00000024, 0, 0, 0, 1, 0, 0, 0, 1.00000024) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1132 | }, .3, false) | |
1133 | Torso.Velocity=RootPart.CFrame.lookVector*50 | |
1134 | FSwordHandleWeld.C0 = clerp(FSwordHandleWeld.C0, CFrame.new(.5, .5, 0) * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(-90)), .5) | |
1135 | end | |
1136 | Torso.Velocity=RootPart.CFrame.lookVector*0 | |
1137 | con:Disconnect() | |
1138 | swordtrail.Enabled = false | |
1139 | Attack = false | |
1140 | end | |
1141 | ||
1142 | function basicatk1() | |
1143 | Attack = true | |
1144 | CFuncs.Sound.Create("12222216", SwordHitbox, 1, 1) | |
1145 | local con = SwordHitbox.Touched:connect(function(hit) | |
1146 | Damage(SwordHitbox, hit, 0, 0, 0, "Normal", RootPart, 0.2, "851453784", 1)end) | |
1147 | for i = 0, 1, 0.1 do | |
1148 | swait() | |
1149 | PlayAnimationFromTable({ | |
1150 | CFrame.new(-0.0142327882, 0.0233180653, 0.0206850152, 0.342022419, 9.53674316e-07, -0.939693272, -1.97067857e-06, 0.999999821, -2.77161598e-06, 0.939691842, -3.1888485e-06, 0.342018187) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1151 | CFrame.new(-3.0002484e-06, 1.49992502, -4.16819603e-06, 0.536599159, 0, 0.843837321, 0, 1, 0, -0.843837321, 0, 0.536599159) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1152 | CFrame.new(1.86725414, 0.520918071, 0.271278173, -0.192566082, -0.920491397, -0.340020508, 0.967886448, -0.121106967, -0.220293105, 0.16159907, -0.371522188, 0.914252102) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1153 | CFrame.new(-1.63878369, 0.0883156657, 0.277901947, 0.932158768, 0.313689649, 0.180773243, -0.33414492, 0.937619865, 0.0960013121, -0.139381975, -0.149892926, 0.978828311) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1154 | CFrame.new(0.631921172, -2.00664234, -0.186664119, 0.932272255, -0.109707505, 0.344721258, 0.134574026, 0.989692569, -0.0489756428, -0.335795075, 0.0920491666, 0.937426567) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1155 | CFrame.new(-0.51753515, -2, 0.082954295, 0.939693093, 0, 0.342018992, 0, 1, 0, -0.342019022, 0, 0.939693093) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1156 | }, .3, false) | |
1157 | FSwordHandleWeld.C0 = clerp(FSwordHandleWeld.C0, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(-90), math.rad(0)), 1) | |
1158 | end | |
1159 | swordtrail.Enabled = true | |
1160 | for i = 0, .5, 0.1 do | |
1161 | swait() | |
1162 | PlayAnimationFromTable({ | |
1163 | CFrame.new(-0.0142326681, 0.0233180001, 0.0206871442, 1.78813934e-07, 0, 1.00000203, 0, 1, 0, -1.00000203, 0, 1.49011612e-07) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1164 | CFrame.new(0, 1.49992609, 0, 0.462487102, 0, -0.886626124, 0, 1, 0, 0.886626124, 0, 0.462487072) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1165 | CFrame.new(1.59986377, 0.488647908, -0.460965931, 0.695726395, -0.716896534, 0.0449903496, 0.0475609899, -0.0165210012, -0.998731732, 0.716730595, 0.696983814, 0.0226022154) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1166 | CFrame.new(-1.80470943, 0.308719665, 0.00611042976, 0.864646077, 0.492070675, 0.1012609, -0.498273998, 0.865697801, 0.0478584878, -0.0641115457, -0.0918363109, 0.993708193) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1167 | CFrame.new(0.450665146, -1.87432182, 0.242756784, 0.938798666, 0.182527304, -0.29213196, -0.024868004, 0.881770015, 0.471023679, 0.343567908, -0.434931636, 0.832343459) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1168 | CFrame.new(-0.463921428, -2, -0.403737426, 0.766046047, 0, -0.642788887, 0, 1, 0, 0.642788887, 0, 0.766046047) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1169 | }, .3, false) | |
1170 | FSwordHandleWeld.C0 = clerp(FSwordHandleWeld.C0, CFrame.new(.5, .5, 0) * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(-90)), 1) | |
1171 | end | |
1172 | ||
1173 | ||
1174 | for i = 0, .5, 0.1 do | |
1175 | swait() | |
1176 | PlayAnimationFromTable({ | |
1177 | CFrame.new(-0.0142326681, 0.0233180001, 0.0206871442, 1.78813934e-07, 0, 1.00000203, 0, 1, 0, -1.00000203, 0, 1.49011612e-07) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1178 | CFrame.new(0, 1.49992609, 0, 0.462487102, 0, -0.886626124, 0, 1, 0, 0.886626124, 0, 0.462487072) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1179 | CFrame.new(1.59986377, 0.488647908, -0.460965931, 0.695726395, -0.716896534, 0.0449903496, 0.0475609899, -0.0165210012, -0.998731732, 0.716730595, 0.696983814, 0.0226022154) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1180 | CFrame.new(-1.80470943, 0.308719665, 0.00611042976, 0.864646077, 0.492070675, 0.1012609, -0.498273998, 0.865697801, 0.0478584878, -0.0641115457, -0.0918363109, 0.993708193) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1181 | CFrame.new(0.450665146, -1.87432182, 0.242756784, 0.938798666, 0.182527304, -0.29213196, -0.024868004, 0.881770015, 0.471023679, 0.343567908, -0.434931636, 0.832343459) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1182 | CFrame.new(-0.463921428, -2, -0.403737426, 0.766046047, 0, -0.642788887, 0, 1, 0, 0.642788887, 0, 0.766046047) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1183 | }, .3, false) | |
1184 | FSwordHandleWeld.C0 = clerp(FSwordHandleWeld.C0, CFrame.new(0, .5, 0) * CFrame.Angles(math.rad(0), math.rad(30), math.rad(0)), .1) | |
1185 | end | |
1186 | swordtrail.Enabled = false | |
1187 | con:Disconnect() | |
1188 | Attack = false | |
1189 | end | |
1190 | ||
1191 | ||
1192 | ||
1193 | ||
1194 | ||
1195 | function basicatk2() | |
1196 | Attack = true | |
1197 | CFuncs.Sound.Create("12222216", SwordHitbox, 1, .8) | |
1198 | local con = SwordHitbox.Touched:connect(function(hit) | |
1199 | Damage(SwordHitbox, hit, 0, 0, 0, "Normal", RootPart, 0.2, "851453784", 1)end) | |
1200 | for i = 0, .5, 0.1 do | |
1201 | PlayAnimationFromTable({ | |
1202 | CFrame.new(0.199326009, 0, -0.0621959642, 0.500000238, 0, 0.866025388, 0, 1, 0, -0.866025388, 0, 0.500000238) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1203 | CFrame.new(0, 1.49999201, 0, 0.866025805, 0, -0.499999762, 0, 1, 0, 0.499999762, 0, 0.866025805) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1204 | CFrame.new(0.930871904, 0.250794977, -1.28154397, -0.0386770852, 0.569197655, -0.821290731, -0.998659015, 0.00628901878, 0.0513885207, 0.0344153345, 0.822176874, 0.568191111) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1205 | CFrame.new(-1.60257423, 0.0277413726, -0.076416865, 0.0147553682, 0.129409567, 0.991481602, 0.224142969, 0.965926051, -0.12940973, -0.974444628, 0.224143118, -0.0147536397) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1206 | CFrame.new(0.624383092, -1.99999106, -0.0120142996, 0.707107008, 0, -0.707106769, 0, 1, 0, 0.707106769, 0, 0.707107008) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1207 | CFrame.new(-0.482958466, -1.99999106, -0.129410326, 0.707106769, 0, 0.707107008, 0, 1, 0, -0.707107008, 0, 0.707106769) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1208 | }, .3, false) | |
1209 | FSwordHandleWeld.C0 = clerp(FSwordHandleWeld.C0, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 1) | |
1210 | end | |
1211 | swordtrail.Enabled = true | |
1212 | for i = 0, .5, 0.1 do | |
1213 | swait() | |
1214 | PlayAnimationFromTable({ | |
1215 | CFrame.new(0.366101086, 0, -0.414826214, 0.258818984, 0, 0.965925872, 0, 1, 0, -0.965925872, 0, 0.258818984) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1216 | CFrame.new(0, 1.49999201, 0, 0.342023224, 0, -0.939691603, 0, 1, 0, 0.939691603, 0, 0.342023224) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1217 | CFrame.new(0.0553627312, 1.3573252, -1.17095125, 0.785249949, 0.559134185, 0.265991658, 0.545306027, -0.827990174, 0.130666092, 0.293298304, 0.0424413234, -0.955078542) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1218 | CFrame.new(-1.60256672, 0.0277402997, -0.0764263347, 0.0147550702, 0.129409924, 0.991481423, 0.224143073, 0.965925932, -0.129410043, -0.974444628, 0.224143118, -0.0147539973) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1219 | CFrame.new(0.624385655, -1.99999106, -0.0120021999, 0.707108498, 0, -0.70710516, 0, 1, 0, 0.70710516, 0, 0.707108498) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1220 | CFrame.new(-0.48295331, -1.99999106, -0.129420042, 0.70710516, 0, 0.707108498, 0, 1, 0, -0.707108498, 0, 0.70710516) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1221 | }, .3, false) | |
1222 | FSwordHandleWeld.C0 = clerp(FSwordHandleWeld.C0, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 1) | |
1223 | end | |
1224 | for i = 0, .5, 0.1 do | |
1225 | swait() | |
1226 | PlayAnimationFromTable({ | |
1227 | CFrame.new(0.366099417, -0.200000986, -0.414823025, 0.582563281, 0.271655113, 0.766044199, -0.42261821, 0.906307876, -1.75809453e-06, -0.694272339, -0.323743135, 0.642787993) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1228 | CFrame.new(-0.231262937, 1.54721832, -0.0511251986, 0.851651847, -0.42261821, -0.309973061, 0.397132277, 0.906307876, -0.144540951, 0.342016667, -1.75809453e-06, 0.939694047) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1229 | CFrame.new(-0.0908454061, 1.16592097, -1.08897507, -0.0772816539, 0.583855987, 0.808170736, 0.727612376, -0.521148086, 0.446077228, 0.681621552, 0.622508645, -0.384545565) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1230 | CFrame.new(-1.61299813, 0.0366990864, 0.314264029, -0.455841899, 0.169077203, 0.87385428, 0.0347501114, 0.984423816, -0.172343403, -0.889382243, -0.048194766, -0.454617083) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1231 | CFrame.new(1.21119905, -1.34869587, -0.183849275, 0.851651549, -0.252021521, -0.459537864, 0.397132158, 0.882479608, 0.252023607, 0.342017442, -0.39713347, 0.851650953) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1232 | CFrame.new(0.0580956787, -1.95897889, 0.369651437, 0.640855312, -0.42261821, 0.640857816, 0.298834234, 0.906307876, 0.298838168, -0.707108855, -1.75809453e-06, 0.707104981) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1233 | }, .3, false) | |
1234 | FSwordHandleWeld.C0 = clerp(FSwordHandleWeld.C0, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 1) | |
1235 | end | |
1236 | for i = 0, .5, 0.1 do | |
1237 | swait() | |
1238 | PlayAnimationFromTable({ | |
1239 | CFrame.new(0.366085619, -1.19999647, -0.414817601, 0.582568169, -0.412207156, 0.700499654, -0.422613144, 0.582565188, 0.69427377, -0.694271266, -0.700502098, 0.165179759) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1240 | CFrame.new(0.112729274, 1.56678414, 0.254275501, 0.577656388, 0.0997146964, -0.810166836, -0.213354647, 0.976452529, -0.0319427848, 0.787904203, 0.191304803, 0.585328698) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1241 | CFrame.new(1.96889925, 0.746382177, -0.185331225, 0.0769328177, -0.997015715, 0.00641870499, 0.879773498, 0.0648541152, -0.470948815, 0.469127119, 0.0418784246, 0.882137418) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1242 | CFrame.new(-1.88176703, 0.136358321, 0.177449048, -0.455846965, 0.778092861, 0.43217504, 0.703643739, 0.612389445, -0.360367835, -0.545058966, 0.139824644, -0.826655984) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1243 | CFrame.new(0.90178746, -1.14663219, -0.653959215, 0.851655245, 0.190028608, -0.488439023, -0.00672882795, 0.935840786, 0.352359027, 0.524059415, -0.296801776, 0.798292339) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1244 | CFrame.new(-0.830604553, -2.07172632, -0.233860642, 0.784890771, 0.0754829049, -0.615019679, -0.147760659, 0.986719251, -0.0674703121, 0.601758778, 0.143832445, 0.785620093) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1245 | }, .3, false) | |
1246 | FSwordHandleWeld.C0 = clerp(FSwordHandleWeld.C0, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 1) | |
1247 | end | |
1248 | swordtrail.Enabled = false | |
1249 | con:Disconnect() | |
1250 | Attack = false | |
1251 | end | |
1252 | ||
1253 | ||
1254 | function dodgeball() | |
1255 | Attack = true | |
1256 | humanoid.AutoRotate = false | |
1257 | local spawnPos = Torso.Position | |
1258 | orb1=CFuncs.Part.Create(Torso, "Neon", 0, 0, BrickColor.new("Cyan"), "ref", Vector3.new(2,2,2)) | |
1259 | orb1.Anchored=true | |
1260 | orb1.CanCollide=false | |
1261 | ||
1262 | game:GetService("Debris"):AddItem(orb1, 10) | |
1263 | orb1.Elasticity = 1 | |
1264 | local mbewm2 = Instance.new("SpecialMesh", orb1) | |
1265 | mbewm2.MeshType = "Sphere" | |
1266 | mbewm2.Scale = Vector3.new(1,1,1) | |
1267 | game:GetService("Debris"):AddItem(orb1, 3) | |
1268 | for i = 0, 2, 0.1 do | |
1269 | orb1.CFrame = Dodgebox.CFrame | |
1270 | swait() | |
1271 | PlayAnimationFromTable({ | |
1272 | CFrame.new(-0.0142339477, 0.0233179312, 0.0206872448, 0.642789185, 7.39382813e-08, 0.766043305, -4.8651782e-07, 1, 3.11712938e-07, -0.766043305, -5.73050784e-07, 0.642789245) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1273 | CFrame.new(-3.34310243e-06, 1.49992716, -2.40420513e-06, 0.609423697, -6.78923243e-07, -0.792844892, 8.58872227e-08, 1, -7.90281774e-07, 0.792844832, 4.13525413e-07, 0.609423757) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1274 | CFrame.new(1.70033991, 0.0784267411, 0.291652292, 0.980928302, -0.190888226, -0.0366283059, 0.192193046, 0.924432218, 0.329373628, -0.0290131569, -0.330131561, 0.943489075) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1275 | CFrame.new(-1.9394995, 0.331927955, -0.314799666, 0.117194936, 0.856613636, -0.502472639, -0.987918258, 0.0488963015, -0.14706032, -0.101404801, 0.513636589, 0.851994693) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1276 | CFrame.new(0.596234262, -2.04406619, 0.245654553, 0.999976635, 0.00595425069, -0.00338888168, -0.00461965939, 0.95128876, 0.308266908, 0.00505927205, -0.308244109, 0.951293945) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1277 | CFrame.new(-0.699660361, -2.00000048, 0.0218301564, 0.984807849, -4.44691977e-07, 0.173648536, 4.41870725e-07, 1, 5.48861863e-08, -0.173648536, 2.26791599e-08, 0.984807849) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1278 | }, .3, false) | |
1279 | RootPart.CFrame = CFrame.new(RootPart.Position, Vector3.new(Mouse.Hit.p.X, 0, Mouse.Hit.p.Z)) | |
1280 | end | |
1281 | local con = orb1.Touched:connect(function(hit) | |
1282 | CFuncs.Sound.Create("112503990", Torso, 1, .8)end) | |
1283 | orb1.Anchored=false | |
1284 | orb1.CanCollide=true | |
1285 | ||
1286 | local roketsped = 500 | |
1287 | local spawnPosition = (RootPart.CFrame * CFrame.new(0, 0, -3)).p | |
1288 | orb1.CFrame = CFrame.new(spawnPosition, Mouse.hit.p) | |
1289 | orb1.Velocity = orb1.CFrame.lookVector * roketsped | |
1290 | local GRAVITY_ACCELERATION = 196.2 | |
1291 | local bodyForce = Instance.new('BodyForce', orb1) | |
1292 | bodyForce.Name = 'Antigravity' | |
1293 | bodyForce.force = Vector3.new(0, orb1:GetMass() * GRAVITY_ACCELERATION, 0) | |
1294 | ||
1295 | game:GetService("Debris"):AddItem(orb1, 8) | |
1296 | ||
1297 | for i = 0, 1, 0.1 do | |
1298 | swait() | |
1299 | PlayAnimationFromTable({ | |
1300 | CFrame.new(-0.0142358784, 0.0233174488, 0.0206872076, 0.642785072, 3.25146175e-06, -0.766046703, -2.37840504e-06, 1, 2.24876021e-06, 0.766046762, 3.76494427e-07, 0.642785072) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1301 | CFrame.new(-5.94174753e-06, 1.49992752, 6.44530655e-06, 0.674973369, -2.24472751e-06, 0.737842202, 3.30112925e-06, 1, 2.24354153e-08, -0.737842202, 2.4205583e-06, 0.674973369) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1302 | CFrame.new(1.67408049, 0.116924986, -0.235040307, 0.93551451, -0.291971684, 0.198909909, 0.329377055, 0.924430549, -0.192195028, -0.127762914, 0.245317593, 0.960987091) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1303 | CFrame.new(-1.58664989, 0.765351355, -0.846855521, -0.120212317, 0.321875662, -0.939119458, -0.987918437, -0.131986037, 0.0812216997, -0.0978073403, 0.937537193, 0.333853245) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1304 | CFrame.new(0.766593277, -1.96006727, -0.107848071, 0.976080298, -0.137189135, 0.168661386, 0.138399139, 0.990365744, 0.00461723236, -0.167669922, 0.0188358091, 0.985663354) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1305 | CFrame.new(-0.403303981, -1.99999976, -0.0619408637, 0.984807789, -2.66062125e-06, 0.173648238, 2.98927625e-06, 1, -1.63115692e-06, -0.173648268, 2.1254591e-06, 0.98480773) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1306 | }, .3, false) | |
1307 | RootPart.CFrame = CFrame.new(RootPart.Position, Vector3.new(Mouse.Hit.p.X, 0, Mouse.Hit.p.Z)) | |
1308 | end | |
1309 | humanoid.AutoRotate = true | |
1310 | Attack = false | |
1311 | while orb1 do | |
1312 | swait() | |
1313 | MagnitudeDamage(orb1, 4, 0, 0, 100, "Normal", "112503990", 1) | |
1314 | end | |
1315 | ||
1316 | end | |
1317 | ||
1318 | ||
1319 | function roketlunch() | |
1320 | Attack = true | |
1321 | humanoid.WalkSpeed = 8 | |
1322 | humanoid.JumpPower = 0 | |
1323 | RHandle.Transparency = 0 | |
1324 | Sword.Transparency = 1 | |
1325 | for i = 0, 1, 0.1 do | |
1326 | swait() | |
1327 | PlayAnimationFromTable({ | |
1328 | CFrame.new(-0.0142319212, 0.0233183783, 0.0206877608, 1.00000012, 1.49011612e-08, 2.98023224e-08, 2.72463048e-08, 0.984807968, 0.173647314, 2.98023224e-08, -0.17364724, 0.984807849) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1329 | CFrame.new(0.0154076805, 1.5522356, -0.0916171968, 0.999084175, 0.0180828422, -0.0387787819, -0.00742995739, 0.9658584, 0.258964151, 0.0421376526, -0.258438855, 0.965108156) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1330 | CFrame.new(1.28755724, 0.00418370962, -0.0650342703, 0.890014946, 0.230696142, -0.393259257, -0.298804998, 0.946620405, -0.120936036, 0.344367683, 0.225142673, 0.911439359) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1331 | CFrame.new(-1.59552705, 0.053297095, -0.298519343, 0.986049891, 0.15347448, -0.0644321442, -0.162331849, 0.801095366, -0.576103032, -0.036800772, 0.578525543, 0.814833522) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1332 | CFrame.new(0.573113441, -1.8059541, -0.374102622, 0.999206126, -0.0373207629, 0.0139417946, 0.0392762311, 0.98143959, -0.187706873, -0.00667765737, 0.188105404, 0.982126117) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1333 | CFrame.new(-0.433013678, -1.95186841, 0.175973177, 1, 0, 2.98023224e-08, 0, 0.98480773, 0.173648328, 2.98023224e-08, -0.173648328, 0.984807789) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1334 | }, .3, false) | |
1335 | end | |
1336 | ||
1337 | ||
1338 | for i = 0, 3, 0.1 do | |
1339 | swait() | |
1340 | PlayAnimationFromTable({ | |
1341 | CFrame.new(-0.0142319426, -1.08839262, 0.0206871927, 1.00000012, 1.49011612e-08, 2.98023224e-08, 2.72463048e-08, 0.984807968, 0.173647314, 2.98023224e-08, -0.17364724, 0.984807849) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1342 | CFrame.new(0.0154080922, 1.55223548, -0.0916156173, 0.999084175, 0.0180828422, -0.0387787819, -0.00742995739, 0.9658584, 0.258964151, 0.0421376526, -0.258438855, 0.965108156) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1343 | CFrame.new(0.428888142, 0.573096275, -1.0865351, 0.629741013, 0.73693651, -0.245664269, -0.133446366, -0.208918005, -0.968785584, -0.765257001, 0.64286691, -0.0332227312) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1344 | CFrame.new(-1.24049437, 0.563232303, -0.47247985, 0.974705219, -0.150607079, -0.165128678, -0.176947653, -0.0686892122, -0.981820583, 0.136526525, 0.986204565, -0.0936013013) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1345 | CFrame.new(0.542829335, -1.05595815, -0.494429678, 0.999206185, -0.0391747355, 0.00724902749, 0.0392762125, 0.999124289, -0.0144301355, -0.00667738914, 0.0147034377, 0.999869585) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1346 | CFrame.new(-0.433013409, -1.47995389, 0.259185165, 1, -2.98023224e-08, 0, 0, 0.17364727, 0.984807968, 2.98023224e-08, -0.984807849, 0.173647255) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1347 | }, .3, false) | |
1348 | RootPart.CFrame = CFrame.new(RootPart.Position, Vector3.new(Mouse.Hit.p.X, 0, Mouse.Hit.p.Z)) | |
1349 | end | |
1350 | ||
1351 | local roket=CFuncs.Part.Create(Torso, "Neon", 0, 0, BrickColor.new("Steel blue"), "ref", Vector3.new(1,1,2)) | |
1352 | roket.Anchored=false | |
1353 | roket.CanCollide=true | |
1354 | local roketsped = 100 | |
1355 | local spawnPosition = (RootPart.CFrame * CFrame.new(0, 0, -6)).p | |
1356 | roket.CFrame = CFrame.new(spawnPosition, Mouse.hit.p) --NOTE: This must be done before assigning Parent | |
1357 | roket.Velocity = roket.CFrame.lookVector * roketsped | |
1358 | CFuncs.Sound.Create("31761785", roket, 3, 1) | |
1359 | local GRAVITY_ACCELERATION = 196.2 | |
1360 | local bodyForce = Instance.new('BodyForce', roket) | |
1361 | bodyForce.Name = 'Antigravity' | |
1362 | bodyForce.force = Vector3.new(0, roket:GetMass() * GRAVITY_ACCELERATION, 0) | |
1363 | ||
1364 | game:GetService("Debris"):AddItem(roket, 8) | |
1365 | local con = roket.Touched:connect(function(hit) | |
1366 | MagnitudeDamage(roket, 10, 0, 0, 100, "Normal", "112503990", 1) Effects.Sphere.Create(BrickColor.new(roket.Color), roket.CFrame, 3, 3, 3, 3, 3, 3, 0.03) roket.Transparency = 1 CFuncs.Sound.Create("169628396", Character, .1, 1) local boo = Instance.new("Explosion", roket) boo.Position = roket.Position boo.BlastRadius = 30 | |
1367 | boo.BlastPressure = 500 roket:Destroy() end) | |
1368 | for i = 0, 2, 0.1 do | |
1369 | swait() | |
1370 | PlayAnimationFromTable({ | |
1371 | CFrame.new(-0.0142334783, -1.08840001, 0.0206862688, 1.00000119, 7.67409801e-07, -2.98023224e-08, 6.21078584e-07, 0.984811127, -0.173649758, 2.38418579e-07, 0.173647732, 0.984807074) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1372 | CFrame.new(-0.0153429285, 1.61389816, 0.0791989863, 0.999084234, -0.0110745579, -0.0413306355, 0.00743017718, 0.996153533, -0.0873102993, 0.0421385169, 0.0869232267, 0.995323479) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1373 | CFrame.new(0.489735812, 0.316905022, -1.24634087, 0.629742265, 0.683080673, -0.369899511, -0.387131512, -0.136858344, -0.911810875, -0.67346406, 0.717405558, 0.178256541) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1374 | CFrame.new(-1.24049377, 0.367668957, -0.636619806, 0.974705458, -0.198001236, -0.103657492, -0.119579755, -0.0701957047, -0.990339994, 0.188812226, 0.977685094, -0.092097044) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1375 | CFrame.new(0.542830348, -1.16139019, -0.103446305, 0.999207258, -0.0391742066, 0.00724938512, 0.0346246623, 0.943902194, 0.328414857, -0.0197079182, -0.327904552, 0.944504917) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1376 | CFrame.new(-0.433018923, -1.30207276, 0.749731183, 1.00000107, -2.38418579e-07, 6.00692658e-07, 7.78585672e-07, -0.173647717, 0.984811127, 5.96046448e-08, -0.984807074, -0.173649803) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1377 | }, .3, false) | |
1378 | Torso.Velocity=RootPart.CFrame.lookVector*-20 | |
1379 | RootPart.CFrame = CFrame.new(RootPart.Position, Vector3.new(Mouse.Hit.p.X, 0, Mouse.Hit.p.Z)) | |
1380 | end | |
1381 | RHandle.Transparency = 1 | |
1382 | Sword.Transparency = 0 | |
1383 | ||
1384 | humanoid.WalkSpeed = 32 | |
1385 | humanoid.JumpPower = 75 | |
1386 | Attack = false | |
1387 | end | |
1388 | ||
1389 | ||
1390 | ||
1391 | function fireinDhole() | |
1392 | Attack = true | |
1393 | local bomb1=CFuncs.Part.Create(Torso, "Neon", 0, 0, BrickColor.new("Cyan"), "ref", Vector3.new(1,1,1)) | |
1394 | bomb1.Anchored=true | |
1395 | bomb1.CanCollide=true | |
1396 | game:GetService("Debris"):AddItem(orb1, 10) | |
1397 | bomb1.Elasticity = .3 | |
1398 | local mbewm2 = Instance.new("SpecialMesh", bomb1) | |
1399 | mbewm2.MeshId = "rbxasset://fonts/timebomb.mesh" | |
1400 | mbewm2.TextureId = "rbxasset://textures/bombtex.png" | |
1401 | mbewm2.Scale = Vector3.new(1,1,1) | |
1402 | ||
1403 | CFuncs.Sound.Create("11565378", bomb1, 1, 1) | |
1404 | for i = 0, 2, 0.1 do | |
1405 | swait() | |
1406 | PlayAnimationFromTable({ | |
1407 | CFrame.new(-0.0142339477, 0.0233179312, 0.0206872448, 0.642789185, 7.39382813e-08, 0.766043305, -4.8651782e-07, 1, 3.11712938e-07, -0.766043305, -5.73050784e-07, 0.642789245) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1408 | CFrame.new(-3.34310243e-06, 1.49992716, -2.40420513e-06, 0.609423697, -6.78923243e-07, -0.792844892, 8.58872227e-08, 1, -7.90281774e-07, 0.792844832, 4.13525413e-07, 0.609423757) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1409 | CFrame.new(1.70033991, 0.0784267411, 0.291652292, 0.980928302, -0.190888226, -0.0366283059, 0.192193046, 0.924432218, 0.329373628, -0.0290131569, -0.330131561, 0.943489075) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1410 | CFrame.new(-1.66880238, 0.166423663, -0.183722675, 0.845035851, 0.182852611, -0.502473533, -0.291941375, 0.945062757, -0.147059917, 0.447978795, 0.270963728, 0.851994097) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1411 | CFrame.new(0.596234262, -2.04406619, 0.245654553, 0.999976635, 0.00595425069, -0.00338888168, -0.00461965939, 0.95128876, 0.308266908, 0.00505927205, -0.308244109, 0.951293945) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1412 | CFrame.new(-0.699660361, -2.00000048, 0.0218301564, 0.984807849, -4.44691977e-07, 0.173648536, 4.41870725e-07, 1, 5.48861863e-08, -0.173648536, 2.26791599e-08, 0.984807849) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1413 | }, .3, false) | |
1414 | bomb1.CFrame = Dodgebox.CFrame | |
1415 | end | |
1416 | for i = 0, .5, 0.1 do | |
1417 | swait() | |
1418 | PlayAnimationFromTable({ | |
1419 | CFrame.new(-0.0142358784, 0.0233174488, 0.0206872076, 0.642785072, 3.25146175e-06, -0.766046703, -2.37840504e-06, 1, 2.24876021e-06, 0.766046762, 3.76494427e-07, 0.642785072) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1420 | CFrame.new(-5.94174753e-06, 1.49992752, 6.44530655e-06, 0.674973369, -2.24472751e-06, 0.737842202, 3.30112925e-06, 1, 2.24354153e-08, -0.737842202, 2.4205583e-06, 0.674973369) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1421 | CFrame.new(1.67408049, 0.116924986, -0.235040307, 0.93551451, -0.291971684, 0.198909909, 0.329377055, 0.924430549, -0.192195028, -0.127762914, 0.245317593, 0.960987091) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1422 | CFrame.new(-1.53036773, 0.2318203, -0.558730543, 0.939119756, 0.343578428, -0.00287370384, -0.0812207609, 0.213862434, -0.973481536, -0.333852679, 0.914449036, 0.228748128) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1423 | CFrame.new(0.766593277, -1.96006727, -0.107848071, 0.976080298, -0.137189135, 0.168661386, 0.138399139, 0.990365744, 0.00461723236, -0.167669922, 0.0188358091, 0.985663354) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1424 | CFrame.new(-0.403303981, -1.99999976, -0.0619408637, 0.984807789, -2.66062125e-06, 0.173648238, 2.98927625e-06, 1, -1.63115692e-06, -0.173648268, 2.1254591e-06, 0.98480773) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1425 | }, .3, false) | |
1426 | bomb1.CFrame = Dodgebox.CFrame | |
1427 | end | |
1428 | bomb1.CFrame = RootPart.CFrame * CFrame.new(0,0,-3) | |
1429 | bomb1.Anchored=false | |
1430 | bomb1.Velocity=RootPart.CFrame.lookVector*50 | |
1431 | for i = 0, .5, 0.1 do | |
1432 | swait() | |
1433 | PlayAnimationFromTable({ | |
1434 | CFrame.new(-0.0142358784, 0.0233174488, 0.0206872076, 0.642785072, 3.25146175e-06, -0.766046703, -2.37840504e-06, 1, 2.24876021e-06, 0.766046762, 3.76494427e-07, 0.642785072) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1435 | CFrame.new(-5.94174753e-06, 1.49992752, 6.44530655e-06, 0.674973369, -2.24472751e-06, 0.737842202, 3.30112925e-06, 1, 2.24354153e-08, -0.737842202, 2.4205583e-06, 0.674973369) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1436 | CFrame.new(1.67408049, 0.116924986, -0.235040307, 0.93551451, -0.291971684, 0.198909909, 0.329377055, 0.924430549, -0.192195028, -0.127762914, 0.245317593, 0.960987091) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1437 | CFrame.new(-1.53036773, 0.2318203, -0.558730543, 0.939119756, 0.343578428, -0.00287370384, -0.0812207609, 0.213862434, -0.973481536, -0.333852679, 0.914449036, 0.228748128) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1438 | CFrame.new(0.766593277, -1.96006727, -0.107848071, 0.976080298, -0.137189135, 0.168661386, 0.138399139, 0.990365744, 0.00461723236, -0.167669922, 0.0188358091, 0.985663354) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1439 | CFrame.new(-0.403303981, -1.99999976, -0.0619408637, 0.984807789, -2.66062125e-06, 0.173648238, 2.98927625e-06, 1, -1.63115692e-06, -0.173648268, 2.1254591e-06, 0.98480773) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1440 | }, .3, false) | |
1441 | end | |
1442 | Attack = false | |
1443 | wait(4) | |
1444 | MagnitudeDamage(bomb1, 30, 0, 0, 400, "Normal", "112503990", 1) | |
1445 | Effects.Sphere.Create(BrickColor.new(Torso.Color), bomb1.CFrame, 3, 3, 3, 3, 3, 3, 0.03) | |
1446 | CFuncs.Sound.Create("169628396", bomb1, 3, 1) | |
1447 | bomb1.Transparency = 1 | |
1448 | bomb1.Anchored=true | |
1449 | bomb1.CanCollide=false | |
1450 | local boo = Instance.new("Explosion", bomb1) | |
1451 | boo.Position = bomb1.Position | |
1452 | boo.BlastRadius = 30 | |
1453 | boo.BlastPressure = 500 | |
1454 | end | |
1455 | ||
1456 | ||
1457 | ||
1458 | ||
1459 | Mouse.KeyDown:connect(function(Key) | |
1460 | Key = Key:lower() | |
1461 | if Attack == false and Key == 'z' then | |
1462 | dodgeball() | |
1463 | elseif Attack == false and Key == 'x' then | |
1464 | roketlunch() | |
1465 | elseif Attack == false and Key == 'c' then | |
1466 | fireinDhole() | |
1467 | end | |
1468 | end) | |
1469 | ||
1470 | ||
1471 | ||
1472 | Mouse.Button1Up:connect(function() | |
1473 | if Attack == false and Combo== 1 then | |
1474 | basicatk1() | |
1475 | Combo=2 | |
1476 | elseif Attack == false and Combo== 2 then | |
1477 | basicatk2() | |
1478 | Combo=3 | |
1479 | elseif Attack == false and Combo== 3 then | |
1480 | basicatk3() | |
1481 | Combo=1 | |
1482 | end | |
1483 | end) | |
1484 | ||
1485 | ||
1486 | ||
1487 | ||
1488 | ||
1489 | --{{Linked Sword remake by SezHu. Made for WolfyKi11er.}}-- | |
1490 | while true do | |
1491 | swait() | |
1492 | for i, v in pairs(Character:GetChildren()) do | |
1493 | if v:IsA("Part") then | |
1494 | v.Material = "SmoothPlastic" | |
1495 | elseif v:IsA("Accessory") then | |
1496 | v:WaitForChild("Handle").Material = "SmoothPlastic" | |
1497 | end | |
1498 | end | |
1499 | for i, v in pairs(Character:GetChildren()) do | |
1500 | if v:IsA'Model' then | |
1501 | for _, c in pairs(v:GetChildren()) do | |
1502 | if c:IsA'Part' then | |
1503 | c.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001) | |
1504 | end | |
1505 | end | |
1506 | end | |
1507 | end | |
1508 | TorsoVelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
1509 | Velocity = RootPart.Velocity.y | |
1510 | Sine = Sine + Change | |
1511 | local hit, pos = RayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character) | |
1512 | if RootPart.Velocity.y > 1 and hit == nil then | |
1513 | Anim = "Jump" | |
1514 | if Attack == false then | |
1515 | Change = 1 | |
1516 | PlayAnimationFromTable({ | |
1517 | CFrame.new(-0.0142319221, 0.0233184248, 0.0206878185, 1.00000012, 1.49011612e-08, 0, 2.72463048e-08, 0.965925992, 0.258818656, 2.98023224e-08, -0.258818597, 0.965925932) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1518 | CFrame.new(0.0172861218, 1.54588914, -0.00366462767, 0.999084175, 0.00742999092, -0.0421376228, -0.011074245, 0.996153653, -0.0869220346, 0.0413297117, 0.0873090774, 0.995323658) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1519 | CFrame.new(1.54051697, 0.254249156, -0.521965742, 0.890014946, -0.152965426, -0.429505706, -0.32768172, 0.440404594, -0.835864007, 0.317014515, 0.884672523, 0.341842651) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1520 | CFrame.new(-1.55745959, 0.112057857, 0.343250573, 0.986049891, 0.113037676, 0.12218184, -0.158506706, 0.861737013, 0.481959641, -0.050808996, -0.49460274, 0.867632747) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1521 | CFrame.new(0.566533923, -1.59700418, -0.481964171, 0.999206185, -0.0385679156, -0.00998616219, 0.0397087261, 0.94381088, 0.328091979, -0.00322881341, -0.328228056, 0.944592893) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1522 | CFrame.new(-0.433014154, -1.95977831, 0.0051856637, 1, 0, 0, 0, 0.965925813, 0.258819401, -2.98023224e-08, -0.258819431, 0.965925753) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1523 | }, .3, false) | |
1524 | FSwordHandleWeld.C0 = clerp(FSwordHandleWeld.C0, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 1) | |
1525 | end | |
1526 | elseif RootPart.Velocity.y < -1 and hit == nil then | |
1527 | Anim = "Fall" | |
1528 | if Attack == false then | |
1529 | Change = 1 | |
1530 | PlayAnimationFromTable({ | |
1531 | CFrame.new(-0.0142319212, 0.0233183783, 0.0206877608, 1.00000012, 1.49011612e-08, 2.98023224e-08, 2.72463048e-08, 0.984807968, 0.173647314, 2.98023224e-08, -0.17364724, 0.984807849) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1532 | CFrame.new(0.0154076805, 1.5522356, -0.0916171968, 0.999084175, 0.0180828422, -0.0387787819, -0.00742995739, 0.9658584, 0.258964151, 0.0421376526, -0.258438855, 0.965108156) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1533 | CFrame.new(1.44003379, 0.0510732532, -0.418421805, 0.890014946, -0.0760585517, -0.449542671, -0.298804998, 0.647417247, -0.701118112, 0.344367683, 0.75833106, 0.553484201) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1534 | CFrame.new(-1.55745959, 0.141547889, 0.332177758, 0.986049891, 0.113037676, 0.12218184, -0.162331849, 0.815350056, 0.555745184, -0.036800772, -0.567826271, 0.822325349) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1535 | CFrame.new(0.573113441, -1.8059541, -0.374102622, 0.999206126, -0.0373207629, 0.0139417946, 0.0392762311, 0.98143959, -0.187706873, -0.00667765737, 0.188105404, 0.982126117) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1536 | CFrame.new(-0.433013678, -1.95186841, 0.175973177, 1, 0, 2.98023224e-08, 0, 0.98480773, 0.173648328, 2.98023224e-08, -0.173648328, 0.984807789) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1537 | }, .3, false) | |
1538 | FSwordHandleWeld.C0 = clerp(FSwordHandleWeld.C0, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 1) | |
1539 | end | |
1540 | elseif TorsoVelocity < 1 and hit ~= nil then | |
1541 | Anim = "Idle" | |
1542 | if Attack == false then | |
1543 | Change = 1 | |
1544 | PlayAnimationFromTable({ | |
1545 | CFrame.new(-0.014233104, 0.0233179983, 0.020687025, 0.866024911, 0, -0.500000954, 0, 1, 0, 0.500000954, 0, 0.866024852) * CFrame.new(0, 0 + .05 * math.cos(Sine/25), 0) * CFrame.Angles(0, 0, 0), | |
1546 | CFrame.new(0, 1.49992597, 0, 0.886625588, 0, 0.462487936, 0, 1, 0, -0.462487817, 0, 0.886625707) * CFrame.new(0, 0, 0) * CFrame.Angles(0 + .08 * math.cos(Sine/25), 0, 0), | |
1547 | CFrame.new(1.70001733, 0.169989109, 0.310000241, 0.827918112, -0.251382649, -0.501356483, 0.215029001, 0.967887759, -0.130214334, 0.51799041, 6.03497028e-07, 0.855386436) * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0 + 2 * math.cos(Sine/25)), math.rad(0), math.rad(0)), | |
1548 | CFrame.new(-1.61998975, 0.0599977374, 2.55400209e-06, 0.981399894, 0.191975057, 4.17232513e-07, -0.191975072, 0.981399834, 9.87734779e-07, -2.38418579e-07, -1.05053186e-06, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0 - 2 * math.cos(Sine/25))), | |
1549 | CFrame.new(0.649993002, -1.99999797, 9.67067535e-07, 0.98969245, -0.143209025, 1.16229057e-06, 0.14320904, 0.98969245, -1.03930267e-06, -1.01327896e-06, 1.19954348e-06, 1) * CFrame.new(0, 0 - .08 * math.cos(Sine/25), 0) * CFrame.Angles(0, 0, 0 + .01 * math.cos(Sine/25)), | |
1550 | CFrame.new(-0.500000954, -2, -9.53674316e-07, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0 - .08 * math.cos(Sine/25), 0) * CFrame.Angles(0, 0, 0), | |
1551 | }, .3, false) | |
1552 | FSwordHandleWeld.C0 = clerp(FSwordHandleWeld.C0, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 1) | |
1553 | end | |
1554 | elseif TorsoVelocity > 2 and hit ~= nil then | |
1555 | Anim = "Walk" | |
1556 | if Attack == false then | |
1557 | PlayAnimationFromTable({ | |
1558 | CFrame.new(-0.0142326364, 0.023318341, 0.0206875801, 1.00000012, 1.5803721e-08, 5.96046448e-08, 2.72463048e-08, 1, 5.61747235e-08, 2.98023224e-08, 2.44280045e-08, 1) * CFrame.new(0, 0, 0) * CFrame.Angles(-.2, math.rad(0 - 10 * math.cos(Sine/6)/2), 0), | |
1559 | CFrame.new(1.03447394e-06, 1.49992573, -8.27737608e-07, 0.999084234, 2.72463048e-08, -0.0427876711, 2.93197502e-08, 1, 2.55612349e-08, 0.0427877009, 5.61747235e-08, 0.999084353) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1560 | CFrame.new(1.66816366, 0.125450149, 0.167713135, 0.975411952, -0.217704624, -0.0342991352, 0.22028406, 0.9678877, 0.12111339, 0.0068307519, -0.125690982, 0.992045999) * CFrame.new(0, 0, 0 + .2 * math.cos(Sine/6)/2) * CFrame.Angles(math.rad(0 - 30 * math.cos(Sine/6)/2), 0, 0), | |
1561 | CFrame.new(-1.58983934, 0.0268005617, -0.146883398, 0.986049891, 0.166255936, -0.00805497169, -0.16625604, 0.981399775, -0.0959867239, -0.00805321336, 0.0959868878, 0.995350063) * CFrame.new(0, 0, 0 - .3 * math.cos(Sine/6)/2) * CFrame.Angles(math.rad(0 + 30 * math.cos(Sine/6)/2), 0, 0), | |
1562 | CFrame.new(.5, -1.64 - 0.8 * math.cos(Sine / 6) / 2, 0 + 2 * math.sin(Sine / 6) / 3) * CFrame.Angles(math.rad(-50 * math.sin(Sine / 6)), math.rad(-3), math.rad(0)), | |
1563 | CFrame.new(-.5, -1.64 + 0.8 * math.cos(Sine / 6) / 2, 0 - 2 * math.sin(Sine / 6) / 3) * CFrame.Angles(math.rad(50 * math.sin(Sine / 6)), math.rad(3), math.rad(0)),}, .3, false) | |
1564 | FSwordHandleWeld.C0 = clerp(FSwordHandleWeld.C0, CFrame.new(0, 1, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 1) | |
1565 | end | |
1566 | end | |
1567 | ||
1568 | if #Effects > 0 then | |
1569 | for e = 1, #Effects do | |
1570 | if Effects[e] ~= nil then | |
1571 | local Thing = Effects[e] | |
1572 | if Thing ~= nil then | |
1573 | local Part = Thing[1] | |
1574 | local Mode = Thing[2] | |
1575 | local Delay = Thing[3] | |
1576 | local IncX = Thing[4] | |
1577 | local IncY = Thing[5] | |
1578 | if Thing[1].Transparency <= 1 then | |
1579 | if Thing[2] == "Block1" then | |
1580 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
1581 | Mesh = Thing[7] | |
1582 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1583 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1584 | elseif Thing[2] == "Ice" then | |
1585 | if Thing[6] <= Thing[5] then | |
1586 | Thing[6] = Thing[6] + .05 | |
1587 | Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, .4, 0) | |
1588 | else | |
1589 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1590 | end | |
1591 | elseif Thing[2] == "Shatter" then | |
1592 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1593 | Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0) | |
1594 | Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0) | |
1595 | Thing[6] = Thing[6] + Thing[5] | |
1596 | elseif Thing[2] == "Block2" then | |
1597 | Thing[1].CFrame = Thing[1].CFrame | |
1598 | Mesh = Thing[7] | |
1599 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1600 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1601 | elseif Thing[2] == "Block3" then | |
1602 | Thing[1].CFrame = Thing[8].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
1603 | Mesh = Thing[7] | |
1604 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1605 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1606 | elseif Thing[2] == "Block4" then | |
1607 | Thing[1].CFrame = Thing[8].CFrame * CFrame.new(0, -Thing[7].Scale.Y, 0) * CFrame.fromEulerAnglesXYZ(3.14, 0, 0) | |
1608 | Mesh = Thing[7] | |
1609 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1610 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1611 | elseif Thing[2] == "Block2Fire" then | |
1612 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
1613 | Mesh = Thing[7] | |
1614 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1615 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1616 | if Thing[1].Transparency >= .3 then | |
1617 | Thing[1].BrickColor = BrickColor.new("Bright red") | |
1618 | else | |
1619 | Thing[1].BrickColor = BrickColor.new("Bright yellow") | |
1620 | end | |
1621 | elseif Thing[2] == "Cylinder" then | |
1622 | Mesh = Thing[7] | |
1623 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1624 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1625 | elseif Thing[2] == "Blood" then | |
1626 | Mesh = Thing[7] | |
1627 | Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, -.5, 0) | |
1628 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1629 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1630 | elseif Thing[2] == "Elec" then | |
1631 | Mesh = Thing[10] | |
1632 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9]) | |
1633 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1634 | Thing[1].CFrame = Thing[1].CFrame * Thing[11] * CFrame.new(0, 0, .2) | |
1635 | Thing[1].Rotation = Vector3.new(0, 0, 0) | |
1636 | elseif Thing[2] == "Disappear" then | |
1637 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1638 | end | |
1639 | else | |
1640 | Part.Parent = nil | |
1641 | table.remove(Effects, e) | |
1642 | end | |
1643 | end | |
1644 | end | |
1645 | end | |
1646 | end | |
1647 | Humanoid.Health = math.huge | |
1648 | end |