SHOW:
|
|
- or go back to the newest paste.
1 | -- Jojo F9 Console | |
2 | - | local Player = "XeverCaiver" |
2 | + | local Player = "KeyUsbr" |
3 | local Player = game.Players[Player] | |
4 | ||
5 | local Character = Player.Character | |
6 | local Backpack = Player.Backpack | |
7 | ||
8 | local Humanoid = Character:WaitForChild("Humanoid") | |
9 | local HumanoidRootPart = Character:WaitForChild("HumanoidRootPart") | |
10 | ||
11 | local TweenService = game:GetService("TweenService") | |
12 | local function Tween(a, b, c) | |
13 | return TweenService:Create(a, b, c):Play() | |
14 | end | |
15 | ||
16 | local Lighting = game.Lighting | |
17 | -- Time Erase | |
18 | local TimeErase = Instance.new("Tool", Backpack) | |
19 | TimeErase.Name = "Time Erase" | |
20 | TimeErase.RequiresHandle = false | |
21 | ||
22 | local Debris = game:GetService("Debris") | |
23 | TimeErase.Activated:Connect(function() | |
24 | local Correction = Instance.new("ColorCorrectionEffect", Lighting) | |
25 | Correction.Brightness = 0 | |
26 | Correction.Saturation = -2 | |
27 | ||
28 | Debris:AddItem(Correction, .1) | |
29 | table.foreach(game.Players:GetPlayers(), function(Index, Player) | |
30 | if Player.Character and Player.Character ~= Character then | |
31 | if Player.Character:FindFirstChild("HumanoidRootPart") then | |
32 | Player.Character["HumanoidRootPart"].Position = Player.Character["HumanoidRootPart"].Position + (Player.Character["Humanoid"].MoveDirection * 16) + (Player.Character["HumanoidRootPart"].Velocity/2) | |
33 | end | |
34 | end | |
35 | end) | |
36 | ||
37 | table.foreach({}, function(Index, Sound) | |
38 | if Sound:IsA("Sound") then | |
39 | if Sound.Playing == true then | |
40 | Sound.TimePosition = Sound.TimePosition + 10 | |
41 | end | |
42 | elseif Sound:IsA("BasePart") and not Sound.Parent:FindFirstChild("Humanoid") then | |
43 | if Sound.Anchored == false then | |
44 | Sound.Position = Sound.Position + ((Sound.Velocity)) | |
45 | end | |
46 | end | |
47 | end) | |
48 | ||
49 | local Sound = Instance.new("Sound", workspace) | |
50 | Sound.Volume = 2 | |
51 | Sound.SoundId = "rbxassetid://3373980192" | |
52 | ||
53 | Sound:Play() | |
54 | Debris:AddItem(Sound, 5) | |
55 | end) | |
56 | ||
57 | -- Time Reverse | |
58 | local TimeReverseCC = Instance.new("ColorCorrectionEffect", game.Lighting) | |
59 | TimeReverseCC.Name = "Time Reverse Effect" | |
60 | ||
61 | local TimeReverse = Instance.new("Tool", Backpack) | |
62 | TimeReverse.Name = "Time Revert" | |
63 | TimeReverse.RequiresHandle = false | |
64 | ||
65 | local Reversed = {} | |
66 | local HasRecorded = false | |
67 | ||
68 | local function ReverseTime(Contents) | |
69 | if HasRecorded == true then | |
70 | table.foreach(Reversed, function(Name, Contents) | |
71 | local Player = game.Players:FindFirstChild(Name) | |
72 | ||
73 | if Player then | |
74 | if Player.Character then | |
75 | local Humanoid, HumanoidRootPart = Player.Character:FindFirstChild("Humanoid"), Player.Character:FindFirstChild("HumanoidRootPart") | |
76 | ||
77 | if Humanoid and HumanoidRootPart then | |
78 | local Sphere = Instance.new("Part", workspace) | |
79 | Sphere.Anchored = true | |
80 | Sphere.CanCollide = false | |
81 | Sphere.Material = "Neon" | |
82 | Sphere.CFrame = HumanoidRootPart.CFrame | |
83 | Sphere.Shape = Enum.PartType.Ball | |
84 | Sphere.Size = Vector3.new(15, 15, 15) | |
85 | Sphere.Transparency = 0.2 | |
86 | Sphere.Color = Color3.new(0, 0, 0) | |
87 | ||
88 | Debris:AddItem(Sphere, .5) | |
89 | Tween(Sphere, TweenInfo.new(.5), {Transparency = 1, Size = Vector3.new(3, 3, 3)}) | |
90 | Humanoid.Health = Contents.Health | |
91 | HumanoidRootPart.CFrame = Contents.CFrame | |
92 | HumanoidRootPart.Velocity = Contents.Velocity | |
93 | end | |
94 | end | |
95 | end | |
96 | end) | |
97 | ||
98 | HasRecorded = false | |
99 | elseif HasRecorded == false then | |
100 | table.foreach(Contents, function(Index, Player) | |
101 | if Player.Character then | |
102 | local Humanoid, HumanoidRootPart = Player.Character:FindFirstChild("Humanoid"), Player.Character:FindFirstChild("HumanoidRootPart") | |
103 | ||
104 | if Humanoid and HumanoidRootPart then | |
105 | Reversed[Player.Name] = { | |
106 | Health = Humanoid.Health, | |
107 | CFrame = HumanoidRootPart.CFrame, | |
108 | Velocity = HumanoidRootPart.Velocity | |
109 | } | |
110 | end | |
111 | end | |
112 | end) | |
113 | ||
114 | HasRecorded = true | |
115 | end | |
116 | end | |
117 | ||
118 | TimeReverse.Activated:Connect(function() | |
119 | if HasRecorded == true then | |
120 | TimeReverseCC.Saturation = -1 | |
121 | ||
122 | local Sound = Instance.new("Sound", workspace) | |
123 | Sound.Volume = 1 | |
124 | Sound.SoundId = "rbxassetid://743521618" | |
125 | ||
126 | Sound:Play() | |
127 | ||
128 | Debris:AddItem(Sound, 5) | |
129 | wait(Sound.TimeLength) | |
130 | TimeReverseCC.Saturation = 0 | |
131 | TimeReverseCC.Brightness = 1 | |
132 | ||
133 | delay(.25, function() | |
134 | Tween(TimeReverseCC, TweenInfo.new(1), {Brightness = 0}) | |
135 | end) | |
136 | local Sound = Instance.new("Sound", workspace) | |
137 | Sound.Volume = 1 | |
138 | Sound.SoundId = "rbxassetid://743521656" | |
139 | ||
140 | Sound:Play() | |
141 | Debris:AddItem(Sound, 5) | |
142 | ||
143 | local Sound = Instance.new("Sound", workspace) | |
144 | Sound.Volume = 1 | |
145 | Sound.SoundId = "rbxassetid://2554063739" | |
146 | ||
147 | Sound:Play() | |
148 | ||
149 | Tween(Sound, TweenInfo.new(4), {Volume = 0}) | |
150 | Debris:AddItem(Sound, 4) | |
151 | ||
152 | ReverseTime() | |
153 | ||
154 | HasRecorded = false | |
155 | elseif HasRecorded == false then | |
156 | TimeReverseCC.Saturation = -1 | |
157 | TimeReverseCC.Contrast = .5 | |
158 | delay(.1, function() | |
159 | TimeReverseCC.Saturation = 0 | |
160 | TimeReverseCC.Contrast = 0 | |
161 | end) | |
162 | ||
163 | Reversed = {} | |
164 | local Sound = Instance.new("Sound", workspace) | |
165 | Sound.Volume = 1 | |
166 | Sound.SoundId = "rbxassetid://743521450" | |
167 | ||
168 | Sound:Play() | |
169 | Debris:AddItem(Sound, 5) | |
170 | ||
171 | ReverseTime(game.Players:GetPlayers()) | |
172 | ||
173 | HasRecorded = true | |
174 | end | |
175 | end) | |
176 | ||
177 | -- Temporal Save | |
178 | local TimeReverseCC = Instance.new("ColorCorrectionEffect", game.Lighting) | |
179 | TimeReverseCC.Name = "Temporal Save Effect" | |
180 | ||
181 | local TimeReverse = Instance.new("Tool", Backpack) | |
182 | TimeReverse.Name = "Temporal Save" | |
183 | TimeReverse.RequiresHandle = false | |
184 | ||
185 | local Reversed = {} | |
186 | local HasRecorded = false | |
187 | ||
188 | TimeReverse.Activated:Connect(function() | |
189 | if HasRecorded == true then | |
190 | TimeReverseCC.Saturation = -1 | |
191 | TimeReverseCC.Brightness = -0.2 | |
192 | ||
193 | delay(.1, function() | |
194 | TimeReverseCC.Saturation = 0 | |
195 | TimeReverseCC.Brightness = 0 | |
196 | end) | |
197 | ||
198 | local Sound = Instance.new("Sound", workspace) | |
199 | Sound.Volume = 1 | |
200 | Sound.SoundId = "rbxassetid://743521450" | |
201 | ||
202 | Sound:Play() | |
203 | Debris:AddItem(Sound, 5) | |
204 | ||
205 | ReverseTime() | |
206 | HasRecorded = false | |
207 | elseif HasRecorded == false then | |
208 | ||
209 | Reversed = {} | |
210 | local Sound = Instance.new("Sound", Player.Character.HumanoidRootPart) | |
211 | Sound.Volume = 1 | |
212 | Sound.SoundId = "rbxassetid://743521450" | |
213 | ||
214 | Sound:Play() | |
215 | Debris:AddItem(Sound, 5) | |
216 | ||
217 | ReverseTime({Player}) | |
218 | ||
219 | HasRecorded = true | |
220 | end | |
221 | end) | |
222 | ||
223 | -- Killer Queen | |
224 | local KillerQueen = Instance.new("Tool", Backpack) | |
225 | KillerQueen.Name = "Killer Queen" | |
226 | KillerQueen.RequiresHandle = false | |
227 | ||
228 | local Target | |
229 | Humanoid.Touched:Connect(function(Hit) | |
230 | if Hit.Parent:FindFirstChild("Humanoid") and Hit.Parent ~= Target and not Hit:IsDescendantOf(Character) then | |
231 | Target = Hit.Parent | |
232 | ||
233 | local NewSound = Instance.new("Sound", Target["HumanoidRootPart"]) | |
234 | NewSound.SoundId = "rbxassetid://3037825745"; NewSound.Volume = 10 | |
235 | NewSound:Play() | |
236 | ||
237 | Debris:AddItem(NewSound, 5) | |
238 | end | |
239 | end) | |
240 | ||
241 | local Detonate = Instance.new("Sound", Character["Torso"]) | |
242 | Detonate.Volume = 6 | |
243 | Detonate.EmitterSize = 100 | |
244 | Detonate.SoundId = "rbxassetid://2302540815" | |
245 | ||
246 | KillerQueen.Activated:Connect(function() | |
247 | if Target then | |
248 | Detonate:Play() | |
249 | ||
250 | wait(1) | |
251 | local Sound = Instance.new("Sound", Target["Torso"]) | |
252 | Sound.Volume = 6 | |
253 | Sound.EmitterSize = 100 | |
254 | Sound.SoundId = "rbxassetid://2686077452" | |
255 | ||
256 | Sound:Play() | |
257 | Debris:AddItem(Sound, 5) | |
258 | ||
259 | wait(.25) | |
260 | Target["Torso"].Anchored = true | |
261 | local Explosion = Instance.new("Explosion", Target["Torso"]) | |
262 | Explosion.Position = Target["Torso"].Position | |
263 | Explosion.BlastPressure = 10000 | |
264 | Explosion.BlastRadius = 8 | |
265 | end | |
266 | end) | |
267 | ||
268 | -- Killer Queen: Bites Za Dusto | |
269 | local BitesZaDusto = Instance.new("Tool", Backpack) | |
270 | BitesZaDusto.Name = "Killer Queen: Bites the Dust" | |
271 | BitesZaDusto.RequiresHandle = false | |
272 | ||
273 | local RewindTime = Instance.new("ColorCorrectionEffect", Lighting) | |
274 | RewindTime.Name = "Rewind CC" | |
275 | ||
276 | BitesZaDusto.Activated:Connect(function() | |
277 | if Target then | |
278 | Detonate:Play() | |
279 | ||
280 | wait(1) | |
281 | ||
282 | Target["Torso"].Anchored = true | |
283 | ||
284 | RewindTime.Saturation = -1 | |
285 | RewindTime.Contrast = .5 | |
286 | for Index = 1, 6 do | |
287 | for Index = 1, math.random(1, 3) do | |
288 | local Sound = Instance.new("Sound", Target["Torso"]) | |
289 | Sound.Volume = 6 | |
290 | Sound.EmitterSize = 100 | |
291 | Sound.Pitch = Random.new():NextNumber(.5, 1.5) | |
292 | Sound.SoundId = "rbxassetid://1398290761" | |
293 | ||
294 | Sound:Play() | |
295 | Debris:AddItem(Sound, 5) | |
296 | ||
297 | local Explosion = Instance.new("Explosion", Target["Torso"]) | |
298 | Explosion.Position = Target["Torso"].Position + Vector3.new(math.random(-5, 5), math.random(-5, 5), math.random(-5, 5)) | |
299 | Explosion.BlastPressure = 10000 | |
300 | Explosion.BlastRadius = 2 | |
301 | wait() | |
302 | end | |
303 | wait(.2) | |
304 | end | |
305 | ||
306 | RewindTime.Brightness = 1 | |
307 | ||
308 | ReverseTime() | |
309 | Tween(RewindTime, TweenInfo.new(1, Enum.EasingStyle.Quint), {Brightness = 0, Saturation = 0, Contrast = 0}) | |
310 | end | |
311 | end) | |
312 | ||
313 | -- Snap Gate | |
314 | local Gate = Instance.new("Tool", Backpack) | |
315 | Gate.Name = "Gate" | |
316 | Gate.RequiresHandle = false | |
317 | ||
318 | local Snap = Instance.new("Sound", Character["HumanoidRootPart"]) | |
319 | Snap.Volume = 10 | |
320 | Snap.SoundId = "rbxassetid://242076158" | |
321 | ||
322 | local Attachment = Instance.new("Attachment", Character["HumanoidRootPart"]) | |
323 | local GateVortex = Instance.new("ParticleEmitter", Attachment) | |
324 | GateVortex.Texture = "rbxassetid://1084969997" | |
325 | GateVortex.Color = ColorSequence.new(Color3.new(1, 1, 1)) | |
326 | GateVortex.Size = NumberSequence.new(4) | |
327 | GateVortex.Lifetime = NumberRange.new(1) | |
328 | GateVortex.Rate = 5 | |
329 | GateVortex.LightEmission = 1 | |
330 | GateVortex.LockedToPart = true | |
331 | GateVortex.Speed = NumberRange.new(0) | |
332 | GateVortex.RotSpeed = NumberRange.new(360) | |
333 | GateVortex.Transparency = NumberSequence.new({ | |
334 | NumberSequenceKeypoint.new(0, 0.25), | |
335 | NumberSequenceKeypoint.new(1, 1)} | |
336 | ) | |
337 | GateVortex.Enabled = false | |
338 | ||
339 | local Gating = false | |
340 | local function GatePos(GatePosition) | |
341 | local GateCylinder = Instance.new("Part", workspace) | |
342 | GateCylinder.Shape = Enum.PartType.Cylinder | |
343 | GateCylinder.Transparency = 0 | |
344 | GateCylinder.Anchored = true | |
345 | GateCylinder.CanCollide = false | |
346 | GateCylinder.Material = "Neon" | |
347 | GateCylinder.Size = Vector3.new(.2, .1, .1) | |
348 | GateCylinder.CFrame = HumanoidRootPart.CFrame * CFrame.new(0, -3, 0) * CFrame.Angles(0, 0, math.rad(90)) | |
349 | ||
350 | GateVortex.Enabled = false | |
351 | Gating = false | |
352 | ||
353 | local Sound = Instance.new("Sound", GateCylinder) | |
354 | Sound.Volume = 2 | |
355 | Sound.EmitterSize = 100 | |
356 | Sound.SoundId = "rbxassetid://588701396" | |
357 | ||
358 | Sound:Play() | |
359 | Debris:AddItem(Sound, 5) | |
360 | ||
361 | Tween(GateCylinder, TweenInfo.new(.5), {Size = Vector3.new(.1, 6, 6)}) | |
362 | wait(.5) | |
363 | ||
364 | local CanGate = true | |
365 | GateCylinder.Touched:Connect(function(Hit) | |
366 | if CanGate == true then | |
367 | if Hit.Parent:FindFirstChild("Humanoid") then | |
368 | Hit.Parent["HumanoidRootPart"].Position = GatePosition + Vector3.new(0, 2, 0) | |
369 | end | |
370 | end | |
371 | end) | |
372 | ||
373 | wait(10) | |
374 | CanGate = false | |
375 | local Sound = Instance.new("Sound", GateCylinder) | |
376 | Sound.Volume = 2 | |
377 | Sound.EmitterSize = 100 | |
378 | Sound.SoundId = "rbxassetid://588701109" | |
379 | ||
380 | Sound:Play() | |
381 | Debris:AddItem(Sound, 5) | |
382 | ||
383 | Tween(GateCylinder, TweenInfo.new(.5), {Transparency = 1, Size = Vector3.new(.1, 0.1, .1)}) | |
384 | Debris:AddItem(GateCylinder, 5) | |
385 | end | |
386 | ||
387 | local Gates ={} | |
388 | ||
389 | Player.Chatted:Connect(function(Message) | |
390 | if Gating == true then | |
391 | local Target = game.Players:FindFirstChild(Message) | |
392 | ||
393 | if Target then | |
394 | if Target.Character then | |
395 | local TargetHumanoidRootPart = Target.Character:FindFirstChild("HumanoidRootPart") | |
396 | ||
397 | if TargetHumanoidRootPart then | |
398 | GatePos(TargetHumanoidRootPart.Position + Vector3.new(0, 5, 0)) | |
399 | end | |
400 | end | |
401 | elseif not Target then | |
402 | if Message == "alldark" then | |
403 | GatePos(Vector3.new(0, -1, 0)) | |
404 | return | |
405 | else | |
406 | local Spots = Gates[Message] | |
407 | ||
408 | if Spots then | |
409 | GatePos(Spots) | |
410 | return | |
411 | elseif not Spots then | |
412 | if game.PlaceId == 3217507450 then | |
413 | for Index, Player in pairs(game.Players:GetPlayers()) do | |
414 | if Player.Character then | |
415 | local CharacterName = Player.Character:FindFirstChild("CharacterName") | |
416 | local HRP = Player.Character:FindFirstChild("HumanoidRootPart") | |
417 | ||
418 | if CharacterName.Value == Message and HRP then | |
419 | GatePos(HRP.Position) | |
420 | break | |
421 | end | |
422 | end | |
423 | end | |
424 | end | |
425 | end | |
426 | end | |
427 | end | |
428 | end | |
429 | end) | |
430 | ||
431 | Gate.Activated:Connect(function() | |
432 | if Gating == false then | |
433 | Snap:Play() | |
434 | GateVortex.Enabled = true | |
435 | Gating = true | |
436 | ||
437 | delay(5, function() | |
438 | if Gating == true then | |
439 | Gating = false | |
440 | GateVortex.Enabled = false | |
441 | end | |
442 | end) | |
443 | end | |
444 | end) | |
445 | ||
446 | -- Star Platinum: Za Warudo | |
447 | local Stopped = false | |
448 | ||
449 | local TimestopCC = Instance.new("ColorCorrectionEffect", game.Lighting) | |
450 | TimestopCC.Name = "Time Stop Effect" | |
451 | ||
452 | local ResumeTime = Instance.new("Sound", workspace) | |
453 | ResumeTime.Volume = 1 | |
454 | ResumeTime.SoundId = "rbxassetid://864569342" | |
455 | ||
456 | local function StopTime() | |
457 | if Stopped == false then | |
458 | UnanchoredParts = {} | |
459 | ||
460 | table.foreach(workspace:GetDescendants(), function(Index, Part) | |
461 | if Part:IsA("BasePart") then | |
462 | if Part.Anchored == false and not Part:IsDescendantOf(Character) then | |
463 | UnanchoredParts[#UnanchoredParts + 1] = Part | |
464 | end | |
465 | end | |
466 | end) | |
467 | ||
468 | wait(2) | |
469 | ||
470 | table.foreach(UnanchoredParts, function(Index, Part) | |
471 | if Part:IsA("BasePart") then | |
472 | Part.Anchored = true | |
473 | end | |
474 | end) | |
475 | ||
476 | Stopped = true | |
477 | TimestopCC.Saturation = -2 | |
478 | TimestopCC.Brightness = 1 | |
479 | local Sphere = Instance.new("Part", workspace) | |
480 | Sphere.Anchored = true | |
481 | Sphere.CanCollide = false | |
482 | Sphere.Material = "Neon" | |
483 | Sphere.CFrame = HumanoidRootPart.CFrame | |
484 | Sphere.Shape = Enum.PartType.Ball | |
485 | Sphere.Size = Vector3.new(128, 128, 128) | |
486 | Sphere.Transparency = 0.2 | |
487 | Sphere.Color = Color3.new(1, 1, 1) | |
488 | ||
489 | Debris:AddItem(Sphere, 1) | |
490 | Tween(Sphere, TweenInfo.new(1), {Transparency = 1, Size = Vector3.new(2048, 2048, 2048)}) | |
491 | ||
492 | wait(.5) | |
493 | CD = false | |
494 | Tween(TimestopCC, TweenInfo.new(1), {Brightness = 0}) | |
495 | return | |
496 | else | |
497 | ResumeTime:Play() | |
498 | ||
499 | Tween(TimestopCC, TweenInfo.new(ResumeTime.TimeLength), {Saturation = 0, Brightness = 0}) | |
500 | wait(ResumeTime.TimeLength) | |
501 | CD = false | |
502 | Stopped = false | |
503 | table.foreach(UnanchoredParts, function(Index, Part) | |
504 | if Part:IsA("BasePart") then | |
505 | Part.Anchored = false | |
506 | end | |
507 | end) | |
508 | ||
509 | return | |
510 | end | |
511 | end | |
512 | ||
513 | local StarPlatinum = Instance.new("Tool", Backpack) | |
514 | StarPlatinum.Name = "Star Platinum: The World" | |
515 | StarPlatinum.RequiresHandle = false | |
516 | StarPlatinum.Parent = Backpack | |
517 | ||
518 | local UnanchoredParts = {} | |
519 | local StopTimeStarPlatinum = Instance.new("Sound", workspace) | |
520 | StopTimeStarPlatinum.Volume = 3 | |
521 | StopTimeStarPlatinum.SoundId = "rbxassetid://1404933085" | |
522 | ||
523 | local CD = false | |
524 | StarPlatinum.Activated:Connect(function() | |
525 | if CD == true then return end | |
526 | CD = true | |
527 | ||
528 | delay(.5, function() CD = false end) | |
529 | if not Stopped then | |
530 | StopTimeStarPlatinum:Play() | |
531 | end | |
532 | ||
533 | StopTime() | |
534 | end) | |
535 | ||
536 | -- The World | |
537 | local ResumeTime = Instance.new("Sound", workspace) | |
538 | ResumeTime.Volume = 1 | |
539 | ResumeTime.SoundId = "rbxassetid://864569342" | |
540 | ||
541 | local TheWorld = Instance.new("Tool", Backpack) | |
542 | TheWorld.Name = "The World" | |
543 | TheWorld.RequiresHandle = false | |
544 | TheWorld.Parent = Backpack | |
545 | ||
546 | local StopTimeTheWorld = Instance.new("Sound", workspace) | |
547 | StopTimeTheWorld.Volume = 6 | |
548 | StopTimeTheWorld.SoundId = "rbxassetid://1055792303" | |
549 | ||
550 | TheWorld.Activated:Connect(function() | |
551 | if CD == true then return end | |
552 | CD = true | |
553 | ||
554 | delay(.5, function() CD = false end) | |
555 | if not Stopped then | |
556 | StopTimeTheWorld:Play() | |
557 | end | |
558 | ||
559 | StopTime() | |
560 | end) | |
561 | ||
562 | -- Giorno Theme | |
563 | local Giorno = Instance.new("Tool", Backpack) | |
564 | Giorno.Name = "Activate Giorno Theme" | |
565 | Giorno.RequiresHandle = false | |
566 | ||
567 | local Theme = Instance.new("Sound", workspace) | |
568 | Theme.Volume = 1 | |
569 | Theme.SoundId = "rbxassetid://3457906535" | |
570 | ||
571 | local HasPlayed = false | |
572 | Giorno.Activated:Connect(function() | |
573 | HasPlayed = not HasPlayed | |
574 | ||
575 | Giorno.Name = HasPlayed and "Deactivate Giorno Theme" or "Activate Giorno Theme" | |
576 | if HasPlayed then | |
577 | Theme:Play() | |
578 | return | |
579 | else | |
580 | Theme:Stop() | |
581 | return | |
582 | end | |
583 | end) | |
584 | ||
585 | -- Josuke Theme | |
586 | local Josuke = Instance.new("Tool", Backpack) | |
587 | Josuke.Name = "Activate Josuke Theme" | |
588 | Josuke.RequiresHandle = false | |
589 | ||
590 | local Theme = Instance.new("Sound", workspace) | |
591 | Theme.Volume = 0.75 | |
592 | Theme.SoundId = "rbxassetid://2480672843" | |
593 | ||
594 | local HasPlayed = false | |
595 | Josuke.Activated:Connect(function() | |
596 | HasPlayed = not HasPlayed | |
597 | ||
598 | Josuke.Name = HasPlayed and "Deactivate Josuke Theme" or "Activate Josuke Theme" | |
599 | if HasPlayed then | |
600 | Theme:Play() | |
601 | return | |
602 | else | |
603 | Theme:Stop() | |
604 | return | |
605 | end | |
606 | end) |