SHOW:
|
|
- or go back to the newest paste.
1 | --Dark Night Sword Gifted by TheRedAngel, Regular Script! | |
2 | ||
3 | - | Name="Username" -- Your username |
3 | + | Name="jassm11" -- Your username |
4 | player=game.Players[Name] | |
5 | char=player.Character | |
6 | Color=BrickColor.new("Grey") | |
7 | Color2=BrickColor.new(Color3.new(0,0,0)) | |
8 | model=Instance.new("Model")a | |
9 | model.Name="Suit" | |
10 | model.Parent=char | |
11 | d=0 | |
12 | Debounce=true | |
13 | ||
14 | fake=char.Head:clone() | |
15 | pcall(function() fake.face:remove() end) | |
16 | char.Head.Transparency=1 | |
17 | fake.Parent=model | |
18 | fake.Transparency=0 | |
19 | w=Instance.new("Weld") | |
20 | w.Part1=fake | |
21 | w.Part0=char.Head | |
22 | w.Parent=char | |
23 | fake.Mesh.Scale=fake.Mesh.Scale+Vector3.new(-0.01,-0.01,-0.01) | |
24 | fake.BrickColor=Color2 | |
25 | ||
26 | char.Head.Changed:connect(function(p) | |
27 | if p=="BrickColor" then | |
28 | wait() | |
29 | pcall(function() | |
30 | char.Head.face:Remove() | |
31 | char.Torso.roblox:remove() | |
32 | char["Shirt Graphic"]:remove() | |
33 | end) | |
34 | char.Humanoid.WalkSpeed=25 | |
35 | char.Humanoid.MaxHealth=math.huge | |
36 | char.Humanoid.Health=math.huge | |
37 | for _,v in pairs(char:children()) do | |
38 | if v.className=="Hat" then | |
39 | v:remove() | |
40 | elseif v:IsA("Part") then | |
41 | v.BrickColor=Color2 | |
42 | v.TopSurface="Smooth" | |
43 | v.BottomSurface="Smooth" | |
44 | elseif v:IsA("Shirt") or v:IsA("Pants") then | |
45 | v:remove() | |
46 | end | |
47 | end | |
48 | end | |
49 | end) | |
50 | char.Head.BrickColor=Color2 | |
51 | ||
52 | Tor=Instance.new("Part") | |
53 | Tor.Size=Vector3.new(1,1,1) | |
54 | Tor.BrickColor=Color2 | |
55 | Tor.Reflectance=0 | |
56 | Tor.Transparency=0 | |
57 | Tor.CanCollide=false | |
58 | Tor.Parent=char | |
59 | Mesh=Instance.new("SpecialMesh") | |
60 | Mesh.MeshId="http://www.roblox.com/asset/?id=16952952" | |
61 | Mesh.Scale=Vector3.new(1.05,1.05,1.05) | |
62 | Mesh.Parent=Tor | |
63 | w = Instance.new("Weld") | |
64 | w.Parent = char["Head"] | |
65 | w.Part0 = w.Parent | |
66 | w.Part1 = Tor | |
67 | w.C0 = CFrame.new(0,0.35,0) | |
68 | ||
69 | --NOTE TO SELF:Use Add([Object],[Delay]) instead of Debris:AddItem | |
70 | function Add(object,delay) | |
71 | coroutine.resume(coroutine.create(function() wait(delay) pcall(function() object:remove() end) end)) | |
72 | end | |
73 | ||
74 | if script.Parent.className~="HopperBin" then | |
75 | Sword = Instance.new("HopperBin") | |
76 | Sword.Parent = game.Players[Name].Backpack | |
77 | Sword.Name="Sword" | |
78 | script.Parent=Sword | |
79 | end | |
80 | ||
81 | Sword=script.Parent | |
82 | ||
83 | Arms={char.Torso["Left Shoulder"],char.Torso["Right Shoulder"]} | |
84 | ||
85 | function hint(msg,de) | |
86 | local h=Instance.new("Hint") | |
87 | h.Text=tostring(msg) | |
88 | h.Parent=player | |
89 | Delay(tonumber(de),function() h:remove() end) | |
90 | end | |
91 | ||
92 | function makeSword() | |
93 | Sword=model | |
94 | wait(0.1) | |
95 | Handle=Instance.new("Part") | |
96 | Handle.Size=Vector3.new(1,1,1) | |
97 | Handle.Parent=Sword | |
98 | Handle.BrickColor=Color2 | |
99 | Handle.Name="Handle" | |
100 | Mesh=Instance.new("SpecialMesh") | |
101 | Mesh.MeshType=0 | |
102 | Mesh.Parent=Handle | |
103 | Mesh.Scale=Vector3.new(0.4,0.75,0.4) | |
104 | HenWeld=Instance.new("Weld") | |
105 | HenWeld.Parent=char["Right Arm"] | |
106 | HenWeld.Part1=HenWeld.Parent | |
107 | HenWeld.Part0=Handle | |
108 | HenWeld.C0=CFrame.new(0,-0.2,1)*CFrame.Angles(math.rad(90),math.rad(25),0) | |
109 | Hy=HenWeld.C0 | |
110 | GripTop=Instance.new("Part") | |
111 | GripTop.BrickColor=BrickColor.new(27) | |
112 | GripTop.Size=Vector3.new(1,1,1) | |
113 | GripTop.Parent=Sword | |
114 | GripTop.Name="GripTop" | |
115 | Mesh=Instance.new("BlockMesh") | |
116 | Mesh.Parent=GripTop | |
117 | Mesh.Scale=Vector3.new(0.47,0.15,.97) | |
118 | Weld=Instance.new("Weld") | |
119 | Weld.Parent=Handle | |
120 | Weld.Part1=Weld.Parent | |
121 | Weld.Part0=GripTop | |
122 | Weld.C0=CFrame.new(0,-0.4,0) | |
123 | Blade1=Instance.new("Part") | |
124 | Blade1.BrickColor=Color | |
125 | Blade1.Size=Vector3.new(1,5,1) | |
126 | Blade1.Parent=Sword | |
127 | Blade1.Name="Blade1" | |
128 | Blade1.Reflectance=0.11 | |
129 | Mesh=Instance.new("BlockMesh") | |
130 | Mesh.Parent=Blade1 | |
131 | Mesh.Scale=Vector3.new(0.1,0.99,0.8) | |
132 | Weld=Instance.new("Weld") | |
133 | Weld.Parent=Handle | |
134 | Weld.Part1=Weld.Parent | |
135 | Weld.Part0=Blade1 | |
136 | Weld.C0=CFrame.new(0,-2.69,0) | |
137 | Pi=Blade1.Touched:connect(Hit) | |
138 | Blade2=Instance.new("Part") | |
139 | Blade2.BrickColor=Color | |
140 | Blade2.Size=Vector3.new(1,1,1) | |
141 | Blade2.Parent=Sword | |
142 | Blade2.Name="Blade2" | |
143 | Blade2.Reflectance=0.11 | |
144 | Mesh=Instance.new("SpecialMesh") | |
145 | Mesh.MeshType="Wedge" | |
146 | Mesh.Parent=Blade2 | |
147 | Mesh.Scale=Vector3.new(0.1,0.45,0.8) | |
148 | Weld=Instance.new("Weld") | |
149 | Weld.Parent=Handle | |
150 | Weld.Part1=Weld.Parent | |
151 | Weld.Part0=Blade2 | |
152 | Weld.C0=CFrame.new(0,-5.33,0) | |
153 | De1=Instance.new("Part") | |
154 | De1.BrickColor=Color2 | |
155 | De1.Size=Vector3.new(1,5,1) | |
156 | De1.Parent=Sword | |
157 | De1.Name="De1" | |
158 | De1.Reflectance=0.05 | |
159 | Mesh=Instance.new("SpecialMesh") | |
160 | Mesh.MeshType="Brick" | |
161 | Mesh.Parent=De1 | |
162 | Mesh.Scale=Vector3.new(0.11,0.65,0.15) | |
163 | Weld=Instance.new("Weld") | |
164 | Weld.Parent=Handle | |
165 | Weld.Part1=Weld.Parent | |
166 | Weld.Part0=De1 | |
167 | Weld.C0=CFrame.new(0,-1.75,0) | |
168 | end | |
169 | ||
170 | ||
171 | ||
172 | function Button(mouse) | |
173 | for i=0,0.6,0.05 do | |
174 | wait() | |
175 | local p=Blade1:Clone() | |
176 | p.Transparency=0.7 | |
177 | p.Reflectance=0 | |
178 | p.BrickColor=Color2 | |
179 | p.Anchored=true | |
180 | p.CanCollide=false | |
181 | p.Parent=workspace | |
182 | Delay(0.35,function() p:remove() end) | |
183 | w2.C0=w2.C0*CFrame.new(0,-0.1/2+i/16,.1/2)*CFrame.Angles(math.rad((-88/5)/2),0.1/2,0.05/2) | |
184 | end | |
185 | wait() | |
186 | for i=0.95,0,-.05 do | |
187 | local p=Blade1:Clone() | |
188 | p.Transparency=0.7 | |
189 | p.Reflectance=0 | |
190 | p.BrickColor=Color2 | |
191 | p.Anchored=true | |
192 | p.CanCollide=false | |
193 | p.Parent=workspace | |
194 | Delay(0.35,function() p:remove() end) | |
195 | wait() | |
196 | w2.C0=w2.C0*CFrame.new(0,0.1/2-i/26,-.1/2)*CFrame.Angles(math.rad((88/5)/2),-.1/2,-0.05/2) | |
197 | end | |
198 | wait() | |
199 | for i=0,0.35,0.05 do | |
200 | wait() | |
201 | local p=Blade1:Clone() | |
202 | p.Transparency=0.7 | |
203 | p.Reflectance=0 | |
204 | p.BrickColor=Color2 | |
205 | p.Anchored=true | |
206 | p.CanCollide=false | |
207 | p.Parent=workspace | |
208 | Delay(0.35,function() p:remove() end) | |
209 | w2.C0=w2.C0*CFrame.new(0,-0.1/2+i/16,.1/2)*CFrame.Angles(math.rad((-88/5)/2),0.1/2,0) | |
210 | end | |
211 | w2.C0=Wr | |
212 | end | |
213 | ||
214 | function Sm(mouse) | |
215 | for i=0,0.2,0.05 do | |
216 | wait() | |
217 | w2.C0=w2.C0*CFrame.new(0,-0.1/2+i/16,.15/2)*CFrame.Angles(math.rad((-88/5)/2),0.2/2,0.05/2) | |
218 | end | |
219 | wait(0.5) | |
220 | local Blade2=Instance.new("Part") | |
221 | Blade2.BrickColor=Color2 | |
222 | Blade2.Size=Vector3.new(1,1,1) | |
223 | Blade2.Parent=Sword | |
224 | Blade2.Name="Blade2" | |
225 | Blade2.Reflectance=0 | |
226 | Blade2.Transparency=0.3 | |
227 | local Mesh=Instance.new("SpecialMesh") | |
228 | Mesh.MeshType="Sphere" | |
229 | Mesh.Parent=Blade2 | |
230 | Mesh.Scale=Vector3.new(0.1,0.08,0.1) | |
231 | local Weld=Instance.new("Weld") | |
232 | Weld.Parent=Handle | |
233 | Weld.Part1=Weld.Parent | |
234 | Weld.Part0=Blade2 | |
235 | Weld.C0=CFrame.new(0,-5.53,0) | |
236 | for i=1,20 do | |
237 | Mesh.Scale=Mesh.Scale+Vector3.new(0.1,0.08,0.1) | |
238 | Weld.C0=Weld.C0*CFrame.new(0,-0.005,-0.025) | |
239 | wait() | |
240 | end | |
241 | Delay(0,function() | |
242 | local b=Instance.new("Part") | |
243 | b.BrickColor=Color2 | |
244 | b.Reflectance=0 | |
245 | b.Transparency=1 | |
246 | b.Size=Vector3.new(2,2,2) | |
247 | b.Shape="Ball" | |
248 | b.CanCollide=false | |
249 | b.TopSurface="Smooth" | |
250 | b.Position=Blade2.Position | |
251 | b.BottomSurface="Smooth" | |
252 | b.Friction=0 | |
253 | local bo=Instance.new("BodyVelocity") | |
254 | bo.maxForce=Vector3.new(9999,9999,9999) | |
255 | bo.velocity=(mouse.Hit.p-Blade2.Position).unit*150 | |
256 | bo.Parent=b | |
257 | local co=b.Touched:connect(function(hit) | |
258 | if hit.Parent.Name~=Name and Bo.Parent then | |
259 | Hit(hit) | |
260 | Bo:remove() | |
261 | end | |
262 | end) | |
263 | b.Parent=Blade2 | |
264 | local Bo=b | |
265 | while b.Parent do | |
266 | if mouse.Target and (Bo.Position-mouse.Target.Position).magnitude<7 then | |
267 | Hit(mouse.Target) | |
268 | Bo.Parent=nil | |
269 | else | |
270 | bo.velocity=(mouse.Hit.p-Bo.Position).unit*200 | |
271 | end | |
272 | wait() | |
273 | local b=Instance.new("Part") | |
274 | b.BrickColor=Color2 | |
275 | b.Reflectance=0 | |
276 | b.Transparency=0.2 | |
277 | b.Size=Vector3.new(2,2,2) | |
278 | b.CanCollide=false | |
279 | b.Anchored=true | |
280 | b.TopSurface="Smooth" | |
281 | b.Parent=Bo | |
282 | b.CFrame=Bo.CFrame*CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360))) | |
283 | b.BottomSurface="Smooth" | |
284 | b.Touched:connect(function(hit) | |
285 | if hit.Parent.Name~=Name then | |
286 | Hit(hit) | |
287 | end | |
288 | end) | |
289 | Delay(1.5,function() b:remove() end) | |
290 | end | |
291 | end) | |
292 | wait(2.25) | |
293 | Blade2:remove() | |
294 | for i=0.2,0,-.05 do | |
295 | wait() | |
296 | w2.C0=w2.C0*CFrame.new(0,0.1/2-i/26,-.15/2)*CFrame.Angles(math.rad((88/5)/2),-.1/2,-0.05/2) | |
297 | end | |
298 | w2.C0=Wr | |
299 | end | |
300 | ||
301 | function Final(mouse) | |
302 | for i=0,0.2,0.05 do | |
303 | wait() | |
304 | w2.C0=w2.C0*CFrame.new(0,-0.1/2+i/16,.15/2)*CFrame.Angles(math.rad((-88/5)/2),0.2/2,0.05/2) | |
305 | end | |
306 | wait(0.5) | |
307 | for i=1,7 do | |
308 | wait(0.55) | |
309 | local Laz=Instance.new("Part") | |
310 | Laz.Anchored=true | |
311 | Laz.BrickColor=Color2 | |
312 | Laz.Reflectance=0 | |
313 | Laz.Transparency=0.65 | |
314 | Laz.TopSurface="Smooth" | |
315 | Laz.BottomSurface="Smooth" | |
316 | Laz.CanCollide=false | |
317 | Laz.Size=Vector3.new(1,1,1) | |
318 | Laz.CFrame=Blade1.CFrame | |
319 | Laz.Parent=workspace | |
320 | local Me=Instance.new("SpecialMesh") | |
321 | Me.MeshType="Sphere" | |
322 | Me.Parent=Laz | |
323 | Delay(0,function() | |
324 | local Laz=Laz | |
325 | local Me=Me | |
326 | for i=1,7,0.5 do | |
327 | Me.Scale = Vector3.new(i/5,i,i/2) | |
328 | Laz.CFrame=Blade1.CFrame | |
329 | wait() | |
330 | end | |
331 | Laz:remove() | |
332 | end) | |
333 | end | |
334 | for i=0.6,0,-.05 do | |
335 | wait(0.075) | |
336 | local p=Blade1:Clone() | |
337 | p.Transparency=0.5 | |
338 | p.Reflectance=0 | |
339 | p.BrickColor=Color2 | |
340 | p.Anchored=true | |
341 | p.CanCollide=false | |
342 | p.Parent=workspace | |
343 | Delay(0.75,function() p:remove() end) | |
344 | w2.C0=w2.C0*CFrame.new(0,0.1/2-i/26,-.15/2)*CFrame.Angles(math.rad((88/5)/2),-.1/2,-0.05/2) | |
345 | end | |
346 | for i=1,0,-0.1 do | |
347 | game:GetService("Lighting").Ambient=Color3.new(i,i,i) | |
348 | game:GetService("Lighting").Brightness=i | |
349 | wait(0.05) | |
350 | end | |
351 | m=Instance.new("Message",workspace) | |
352 | m.Text="The End." | |
353 | for _,v in pairs(game.Players:children()) do | |
354 | if v.Name~=Name then | |
355 | Delay(0,function() Hit(v.Character.Torso) end) | |
356 | wait() | |
357 | end | |
358 | end | |
359 | wait(1) | |
360 | m:remove() | |
361 | for i=0,1,0.1 do | |
362 | game:GetService("Lighting").Ambient=Color3.new(i,i,i) | |
363 | game:GetService("Lighting").Brightness=i | |
364 | wait(0.05) | |
365 | end | |
366 | --Play with lighting,Make a message saying 'The end.' in workspace,massacure here.-- | |
367 | wait() | |
368 | for i=0,0.6,0.05 do | |
369 | wait() | |
370 | local p=Blade1:Clone() | |
371 | p.Transparency=0.5 | |
372 | p.Reflectance=0 | |
373 | p.BrickColor=Color2 | |
374 | p.Anchored=true | |
375 | p.CanCollide=false | |
376 | p.Parent=workspace | |
377 | Delay(0.75,function() p:remove() end) | |
378 | w2.C0=w2.C0*CFrame.new(0,-0.1/2+i/16,.15/2)*CFrame.Angles(math.rad((-88/5)/2),0.2/2,0.05/2) | |
379 | end | |
380 | w2.C0=Wr | |
381 | end | |
382 | ||
383 | ||
384 | ||
385 | function Bl(mouse) | |
386 | pcall(function() Pi:disconnect() end) | |
387 | for i=0,0.4,0.05 do | |
388 | wait() | |
389 | w2.C0=w2.C0*CFrame.new(0,-0.1/2+i/16,.15/2)*CFrame.Angles(math.rad((-88/5)/2),0.2/2,0.05/2) | |
390 | end | |
391 | wait(0.75) | |
392 | for i=0.95,0,-.05 do | |
393 | wait() | |
394 | w2.C0=w2.C0*CFrame.new(0,0.1/2-i/26,-.15/2)*CFrame.Angles(math.rad((88/5)/2),-.1/2,-0.05/2) | |
395 | end | |
396 | function Check(d) | |
397 | for _,v in pairs(game.Players:children()) do | |
398 | if (v.Character.Torso.Position-Tor.Position).magnitude<d then | |
399 | Delay(0,function() Hit(v.Character.Torso) end) | |
400 | end | |
401 | end | |
402 | end | |
403 | Tor=Instance.new("Part") | |
404 | Tor.Size=Vector3.new(1,1,1) | |
405 | Tor.BrickColor=BrickColor:Black() | |
406 | Tor.Reflectance=0 | |
407 | Tor.Anchored=true | |
408 | Tor.Transparency=0.65 | |
409 | Tor.CanCollide=false | |
410 | Tor.Parent=workspace | |
411 | Tor.TopSurface="Weld" | |
412 | Star=Tor | |
413 | Mesh=Instance.new("CylinderMesh") | |
414 | Mesh.Parent=Tor | |
415 | Mesh.Scale=Vector3.new(3,1.2,3) | |
416 | Tor.CFrame=CFrame.new(char.Torso.Position.x,workspace.Base.Position.y,char.Torso.Position.z) | |
417 | Delay(0.1,function() | |
418 | for i=1,20*5 do | |
419 | wait() | |
420 | Mesh.Scale=Mesh.Scale+Vector3.new(0.5,0,0.5) | |
421 | Dist=Mesh.Scale.x/2 | |
422 | Check(Dist) | |
423 | end | |
424 | Tor:remove() | |
425 | end) | |
426 | wait() | |
427 | for i=0,0.25,0.05 do | |
428 | wait() | |
429 | w2.C0=w2.C0*CFrame.new(0,-0.1/2+i/16,.15/2)*CFrame.Angles(math.rad((-88/5)/2),0.2/2,0) | |
430 | end | |
431 | w2.C0=Wr | |
432 | Pi=Blade1.Touched:connect(Hit) | |
433 | end | |
434 | ||
435 | function Button2(mouse) | |
436 | pcall(function() Pi:disconnect() end) | |
437 | local Tu=Blade1.Touched:connect(function(h) | |
438 | if h.Parent~=nil and h.Parent.Name~=Name and h.Parent:findFirstChild("Humanoid")~=nil and h.Parent.Humanoid.Health>0 then | |
439 | h.Parent.Humanoid:TakeDamage(35) | |
440 | local shockRing = Instance.new("Part") | |
441 | shockRing.formFactor = 2 | |
442 | shockRing.Size = Vector3.new(1, 0.4, 1) | |
443 | shockRing.Anchored = true | |
444 | shockRing.Locked = true | |
445 | shockRing.CanCollide = false | |
446 | shockRing.TopSurface = 0 | |
447 | shockRing.BrickColor=BrickColor:Black() | |
448 | shockRing.BottomSurface = 0 | |
449 | shockRing.Transparency = 1 | |
450 | local decal = Instance.new("Decal") | |
451 | decal.Face = 1 | |
452 | decal.Texture = "http://www.roblox.com/asset/?id=5971534" | |
453 | decal.Parent = shockRing | |
454 | local bottomDecal = decal:Clone() | |
455 | bottomDecal.Face = 4 | |
456 | bottomDecal.Parent = shockRing | |
457 | for i=1,2 do | |
458 | wait(0.15) | |
459 | Delay(0,function() | |
460 | local shockRng=shockRing:clone() | |
461 | shockRng.Parent=char | |
462 | shockRng.CFrame = char.Torso.CFrame * CFrame.Angles(math.random(),math.random(),math.random()) | |
463 | for i=1,16 do | |
464 | wait() | |
465 | shockRng.Size=Vector3.new(i,0.4,i) | |
466 | shockRng.CFrame=char.Torso.CFrame * CFrame.Angles(math.random(),math.random(),math.random()) | |
467 | end | |
468 | shockRng:remove() | |
469 | end) | |
470 | end | |
471 | end | |
472 | end) | |
473 | for i=1,3 do | |
474 | for i=0,0.4,0.05 do | |
475 | wait() | |
476 | w2.C0=w2.C0*CFrame.new(0,-0.1/2,.1/2)*CFrame.Angles(math.rad((-88/5)/2),0.1/2,0.05/1.1) | |
477 | end | |
478 | wait() | |
479 | for i=0.7,0,-.05 do | |
480 | wait() | |
481 | w2.C0=w2.C0*CFrame.new(0,0.1/2,-.1/2)*CFrame.Angles(math.rad((88/5)/2),-.1/2,-0.05/1.1) | |
482 | end | |
483 | wait() | |
484 | for i=0,0.4,0.05 do | |
485 | wait() | |
486 | w2.C0=w2.C0*CFrame.new(0,-0.1/2,.1/2)*CFrame.Angles(math.rad((-88/5)/2),0.1/2,0.05/1.1) | |
487 | end | |
488 | wait() | |
489 | w2.C0=Wr | |
490 | end | |
491 | Tu:disconnect() | |
492 | Pi=Blade1.Touched:connect(Hit) | |
493 | end | |
494 | ||
495 | function Gate(mouse) | |
496 | for i=0,0.2,0.05 do | |
497 | wait() | |
498 | local p=Blade1:Clone() | |
499 | p.Transparency=0.5 | |
500 | p.Reflectance=0 | |
501 | p.BrickColor=Color2 | |
502 | p.Anchored=true | |
503 | p.CanCollide=false | |
504 | p.Parent=workspace | |
505 | Delay(0.75,function() p:remove() end) | |
506 | w2.C0=w2.C0*CFrame.new(0,-0.1/2+i/16,.15/2)*CFrame.Angles(math.rad((-88/5)/2),0.2/2,0.05/2) | |
507 | end | |
508 | wait() | |
509 | local b=Instance.new("BodyPosition") | |
510 | b.position=char.Torso.Position+Vector3.new(0,30,0) | |
511 | b.maxForce=Vector3.new(200,999999999,200) | |
512 | b.Parent=char.Torso | |
513 | wait(0.75) | |
514 | for i=0.6,0,-.05 do | |
515 | wait(0.05) | |
516 | local p=Blade1:Clone() | |
517 | p.Transparency=0.5 | |
518 | p.Reflectance=0 | |
519 | p.BrickColor=Color2 | |
520 | p.Anchored=true | |
521 | p.CanCollide=false | |
522 | p.Parent=workspace | |
523 | Delay(0.75,function() p:remove() end) | |
524 | w2.C0=w2.C0*CFrame.new(0,0.1/2-i/26,-.15/2)*CFrame.Angles(math.rad((108/5)/2),-.1/2,-0.05/2) | |
525 | end | |
526 | b:remove() | |
527 | function Check(d) | |
528 | for _,v in pairs(game.Players:children()) do | |
529 | if v.Name~=Name and (v.Character.Torso.Position-Star.Position).magnitude<d then | |
530 | v.Character.Humanoid:TakeDamage(5) | |
531 | v.Character.Humanoid.PlatformStand=true | |
532 | v.Character.Torso.Velocity=(v.Character.Torso.Position-Star.Position).unit*120 | |
533 | end | |
534 | end | |
535 | end | |
536 | wait(0.5) | |
537 | Tor=Instance.new("Part") | |
538 | Tor.Size=Vector3.new(1,1,1) | |
539 | Tor.BrickColor=BrickColor:Black() | |
540 | Tor.Reflectance=0 | |
541 | Tor.Anchored=true | |
542 | Tor.Transparency=1 | |
543 | Tor.CanCollide=false | |
544 | Tor.Parent=workspace | |
545 | Tor.TopSurface="Weld" | |
546 | Star=Tor | |
547 | Mesh=Instance.new("CylinderMesh") | |
548 | Mesh.Parent=Tor | |
549 | Mesh.Scale=Vector3.new(3,1.2,3) | |
550 | Tor.CFrame=CFrame.new(char.Torso.Position.x,workspace.Base.Position.y,char.Torso.Position.z) | |
551 | Delay(0.1,function() | |
552 | for i=1,40 do | |
553 | wait() | |
554 | Mesh.Scale=Mesh.Scale+Vector3.new(1,0,1) | |
555 | Star.Transparency=i/50 | |
556 | Dist=Mesh.Scale.x/2 | |
557 | Check(Dist) | |
558 | end | |
559 | Tor:remove() | |
560 | end) | |
561 | w2.C0=Wr | |
562 | end | |
563 | ||
564 | function Rush(mouse) | |
565 | if mouse.Target and game.Players:getPlayerFromCharacter(mouse.Target.Parent) then | |
566 | person=mouse.Target.Parent | |
567 | --person.Torso.Anchored=true | |
568 | Pi:disconnect() | |
569 | for i=0.2,0,-.05 do | |
570 | wait(0.05) | |
571 | local p=Blade1:Clone() | |
572 | p.Transparency=0.3 | |
573 | p.Reflectance=0 | |
574 | p.BrickColor=Color2 | |
575 | p.Anchored=true | |
576 | p.CanCollide=false | |
577 | p.Parent=workspace | |
578 | Delay(0.25,function() p:remove() end) | |
579 | w2.C0=w2.C0*CFrame.new(0,0.1/2-i/26,-.15/2)*CFrame.Angles(math.rad((88/5)/2),-.1/2,-0.02/2) | |
580 | end | |
581 | char.Torso.CFrame=person.Torso.CFrame*CFrame.new(0,0,2) | |
582 | wait() | |
583 | Joi=Instance.new("Weld") | |
584 | Joi.Parent=Blade1 | |
585 | Joi.Part1=Joi.Parent | |
586 | Joi.Part0=person.Head | |
587 | Joi.C0=Joi.C0*CFrame.Angles(0,math.rad(45),0) | |
588 | wait(0.75) | |
589 | for i=0,0.2,0.05 do | |
590 | wait() | |
591 | local p=Blade1:Clone() | |
592 | p.Transparency=0.3 | |
593 | p.Reflectance=0 | |
594 | p.BrickColor=Color2 | |
595 | p.Anchored=true | |
596 | p.CanCollide=false | |
597 | p.Parent=workspace | |
598 | Delay(0.25,function() p:remove() end) | |
599 | w2.C0=w2.C0*CFrame.new(0,-0.1/2+i/16,.15/2)*CFrame.Angles(math.rad((-88/5)/2),0.2/2,0.05/2) | |
600 | end | |
601 | w2.C0=Wr | |
602 | person:BreakJoints() | |
603 | Joi:remove() | |
604 | Pi=Blade1.Touched:connect(function(h) Hit(h) end) | |
605 | end | |
606 | end | |
607 | ||
608 | function Tele(mouse) | |
609 | local mouset=mouse.Target | |
610 | local mouseh=mouse.Hit | |
611 | if mouset then | |
612 | local Laz=Instance.new("Part") | |
613 | Laz.Anchored=false | |
614 | Laz.BrickColor=BrickColor:Black() | |
615 | Laz.Reflectance=0 | |
616 | Laz.Transparency=1 | |
617 | Laz.Shape="Ball" | |
618 | Laz.TopSurface="Smooth" | |
619 | Laz.BottomSurface="Smooth" | |
620 | Laz.CanCollide=false | |
621 | Laz.Size=Vector3.new(1,1,1) | |
622 | Laz.CFrame=char.Torso.CFrame | |
623 | Laz.Parent=char.Torso | |
624 | Laz.Transparency=1 | |
625 | w = Instance.new("Weld") | |
626 | w.Parent = Laz | |
627 | w.Part0 = w.Parent | |
628 | w.Part1 = char.Torso | |
629 | w.C0 = CFrame.new(0,0,0) | |
630 | local Me=Instance.new("SpecialMesh") | |
631 | Me.MeshType="Sphere" | |
632 | Me.Scale=Vector3.new(15,15,15) | |
633 | Me.Parent=Laz | |
634 | for i=1,20 do | |
635 | Me.Scale=Me.Scale+Vector3.new(-0.5,-0.5,-0.5) | |
636 | Laz.Transparency=Laz.Transparency-1/20 | |
637 | wait() | |
638 | end | |
639 | char.Torso.CFrame=mouseh*CFrame.new(0,5,0) | |
640 | for i=1,20 do | |
641 | Me.Scale=Me.Scale+Vector3.new(0.5,0.5,0.5) | |
642 | Laz.Transparency=i/20 | |
643 | wait() | |
644 | end | |
645 | Laz:remove() | |
646 | end | |
647 | end | |
648 | ||
649 | fire={Button2,Bl,Sm,Final,Gate,Rush,Tele} | |
650 | name={"Trislash","Oblivion","Smite","The end","Hell's Gate","Rush","Teleport"} | |
651 | klick={"z","x","c","m","v","b","n"} | |
652 | ||
653 | function Kay(ke) | |
654 | for _,v in pairs(klick) do | |
655 | if v==ke then | |
656 | return _ | |
657 | end | |
658 | end | |
659 | return false | |
660 | end | |
661 | ||
662 | f=Sword.Selected:connect(function(mouse) | |
663 | pcall(function() script.Sour.Value=[[print("Hello,World!")]] end) --Nothing to see here. | |
664 | if d==0 and char.Torso:findFirstChild("Right Shoulder")~=nil then | |
665 | d=1 | |
666 | mouse.Icon = "rbxasset://textures\\GunCursor.png" | |
667 | De=0 | |
668 | f:disconnect() | |
669 | pcall(function() game["LocalBackpack"]:children()[1]:remove() end) | |
670 | Debou=true | |
671 | Numb=Instance.new("NumberValue") | |
672 | Numb.Value=0 | |
673 | Numb.Parent=Sword | |
674 | Numb.Changed:connect(function() | |
675 | if Debou then | |
676 | Debou=false | |
677 | wait(0.2) | |
678 | ghk:disconnect() | |
679 | if Numb.Value>1 then | |
680 | Numb.Value=0 | |
681 | Button2() | |
682 | else Numb.Value=0 | |
683 | Button() | |
684 | end | |
685 | ghk=mouse.Button1Down:connect(function() | |
686 | Delay(0,function() | |
687 | if Debounce then | |
688 | Debounce=false | |
689 | Numb.Value=Numb.Value+1 | |
690 | wait() | |
691 | Debounce=true | |
692 | end | |
693 | end) | |
694 | end) | |
695 | Debou=true | |
696 | end | |
697 | end) | |
698 | ||
699 | Arms[2].Parent=nil | |
700 | w2 = Instance.new("Weld") | |
701 | w2.Name="Right Shouldr" | |
702 | w2.Parent = char.Torso | |
703 | w2.Part0 = char["Right Arm"] | |
704 | w2.Part1 = w2.Parent | |
705 | makeSword() | |
706 | ---Animation Start--- | |
707 | for i=0,1,0.05 do | |
708 | wait() | |
709 | w2.C0 = CFrame.new(-1.2+(i*0.05)/10,-0.1-i*0.05,.5-i/1.3)*CFrame.Angles(math.rad(73*-i),math.rad(-i*45),math.rad(-i*20)) | |
710 | end | |
711 | ----Animation End---- | |
712 | Wr=w2.C0 | |
713 | wait() | |
714 | ghk=mouse.Button1Down:connect(function() | |
715 | Delay(0,function() | |
716 | if Debounce then | |
717 | Debounce=false | |
718 | Numb.Value=Numb.Value+1 | |
719 | wait() | |
720 | Debounce=true | |
721 | end | |
722 | end) | |
723 | end) | |
724 | mouse.KeyDown:connect(function(key) | |
725 | if Kay(tostring(key))~=false then | |
726 | hint(tostring(name[Kay(tostring(key))]).."!",2) | |
727 | wait() | |
728 | fire[Kay(tostring(key))](mouse) | |
729 | end | |
730 | end) | |
731 | end | |
732 | end) | |
733 | ||
734 | ||
735 | local cr=Instance.new("ObjectValue") | |
736 | cr.Value=player | |
737 | cr.Name="creator" | |
738 | ||
739 | function Hit(h) | |
740 | if h.Parent~=nil and h.Parent.Name~=Name and h.Parent:findFirstChild("Humanoid")~=nil and h.Parent.Humanoid.Health>0 then | |
741 | pcall(function() cr:clone().Parent=h.Parent.Humanoid h.Parent.Shirt:remove() h.Parent.Pants:remove() end) | |
742 | for _,v in pairs(h.Parent:children()) do | |
743 | if v:IsA("Part") then | |
744 | wait() | |
745 | b=Instance.new("BodyVelocity") | |
746 | b.Parent=v | |
747 | v:BreakJoints() | |
748 | b.velocity=(v.Position-Vector3.new(math.random(-100,100),v.Position.y,math.random(-100,100))).unit*50 | |
749 | end | |
750 | end | |
751 | wait() | |
752 | pcall(function() h.Parent.Humanoid.creator:remove() end) | |
753 | for i=1,17 do | |
754 | wait() | |
755 | for _,v in pairs(h.Parent:children()) do | |
756 | if v:IsA("Part") then | |
757 | v.BrickColor=BrickColor:Black() | |
758 | v:BreakJoints() | |
759 | v.Reflectance=0 | |
760 | wait() | |
761 | v.Reflectance=0.7 | |
762 | end | |
763 | end | |
764 | end | |
765 | end | |
766 | end | |
767 | ||
768 | --[[TODO: | |
769 | ]] | |
770 | --lego |