forked from Catsuq/Doors-Entity-Replicator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsource.lua
1960 lines (1706 loc) · 80.9 KB
/
source.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
--#region Setup
if getgenv then
if getgenv().DGEM_LOADED==true then
repeat task.wait() until true==false
end
getgenv().DGEM_LOADED=true
end
local entities={
AllEntities={"All","Ambush","Eyes","Glitch","Grundge","Halt","Hide","None","Random","Rush","Screech","Seek","Shadow","Smiler","Timothy","Trashbag","Trollface"},
DeveloperEntities={"Trollface", "None"},
CustomEntities={"Grundge","Smiler","Trashbag", "None"},
RegularEntities={"All", "Ambush", "Eyes", "Glitch", "Halt", "Hide", "Random", "None", "Rush", "Screech", "Seek", "Shadow", "Timothy"}
}
for _, tb in pairs(entities) do table.sort(tb) end
if not isfile("interactedWithDiscordPrompt.txt") then
writefile("interactedWithDiscordPrompt.txt",".")
local Inviter = loadstring(game:HttpGet("https://raw.githubusercontent.com/RegularVynixu/Utilities/main/Discord%20Inviter/Source.lua"))()
Inviter.Prompt({
name = "Zepsyy's Server",
invite = "https://discord.gg/zepsyy",
})
end
--#endregion
--#region Window
local Rayfield = loadstring(game:HttpGet('https://raw.githubusercontent.com/shlexware/Rayfield/main/source'))()
local Window = Rayfield:CreateWindow({
Name = "Doors Entity Replicator | "..(identifyexecutor and identifyexecutor() or syn and "Synapse X" or "Unknown"),
LoadingTitle = "Loading Doors Entity Spawner",
LoadingSubtitle = "Made by Zepsyy and Spongus",
ConfigurationSaving = {
Enabled = true,
FolderName = nil, -- Create a custom folder for your hub/game
FileName = "L.N.K v1" -- ZEPSYY I TOLD YOU ITS NOT GONNA BE NAMED LINK
},
Discord = {
Enabled = false,
Invite = "zepsyy", -- The Discord invite code, do not include discord.gg/
RememberJoins = false -- Set this to false to make them join the discord every time they load it up
},
KeySystem = false
})
--#endregion
--#region Connections & Variables
--//MAIN VARIABLES\\--
local Debris = game:GetService("Debris")
local player = game.Players.LocalPlayer
local Character = player.Character or player.CharacterAdded:Wait()
local RootPart = Character:FindFirstChild("HumanoidRootPart")
local Humanoid = Character:FindFirstChild("Humanoid")
local allLimbs = {}
for i,v in pairs(Character:GetChildren()) do
if v:IsA("BasePart") then
table.insert(allLimbs, v)
end
end
--//MAIN USABLE FUNCTIONS\\--
function removeDebris(obj, Duration)
Debris:AddItem(obj, Duration)
end
-- Services
local Players = game:GetService("Players")
local RS = game:GetService("RunService")
local ReSt = game:GetService("ReplicatedStorage")
local TextService = game:GetService("TextService")
local TS = game:GetService("TweenService")
-- Variables
local Plr = Players.LocalPlayer
local Char = Plr.Character or Plr.CharacterAdded:Wait()
local Root = Char:WaitForChild("HumanoidRootPart")
local Hum = Char:WaitForChild("Humanoid")
local ModuleScripts = {
MainGame = require(Plr.PlayerGui.MainUI.Initiator.Main_Game),
SeekIntro = require(Plr.PlayerGui.MainUI.Initiator.Main_Game.RemoteListener.Cutscenes.SeekIntro),
}
local Connections = {}
-- Functions
local function playSound(soundId, source, properties)
local sound = Instance.new("Sound")
sound.SoundId = "rbxassetid://".. soundId
sound.PlayOnRemove = true
for i, v in next, properties do
if i ~= "SoundId" and i ~= "Parent" and i ~= "PlayOnRemove" then
sound[i] = v
end
end
sound.Parent = source
sound:Destroy()
end
local function drag(model, dest, speed)
local reached = false
Connections.Drag = RS.Stepped:Connect(function(_, step)
if model.Parent then
local seekPos = model.PrimaryPart.Position
local newDest = Vector3.new(dest.X, seekPos.Y, dest.Z)
local diff = newDest - seekPos
if diff.Magnitude > 0.1 then
model:SetPrimaryPartCFrame(CFrame.lookAt(seekPos + diff.Unit * math.min(step * speed, diff.Magnitude - 0.05), newDest))
else
Connections.Drag:Disconnect()
reached = true
end
else
Connections.Drag:Disconnect()
end
end)
repeat task.wait() until reached
end
local function jumpscareSeek()
Hum.Health = 0
workspace.Ambience_Seek:Stop()
local func = getconnections(ReSt.Bricks.Jumpscare.OnClientEvent)[1].Function
debug.setupvalue(func, 1, false)
func("Seek")
end
local function connectSeek(room)
local seekMoving = workspace.SeekMoving
local seekRig = seekMoving.SeekRig
-- Intro
seekMoving:SetPrimaryPartCFrame(room.RoomStart.CFrame * CFrame.new(0, 0, -15))
seekRig.AnimationController:LoadAnimation(seekRig.AnimRaise):Play()
task.spawn(function()
task.wait(7)
workspace.Footsteps_Seek:Play()
end)
workspace.Ambience_Seek:Play()
ModuleScripts.SeekIntro(ModuleScripts.MainGame)
seekRig.AnimationController:LoadAnimation(seekRig.AnimRun):Play()
Char:SetPrimaryPartCFrame(room.RoomEnd.CFrame * CFrame.new(0, 0, 20))
ModuleScripts.MainGame.chase = true
Hum.WalkSpeed = 22
-- Movement
task.spawn(function()
local nodes = {}
for _, v in next, workspace.CurrentRooms:GetChildren() do
for i2, v2 in next, v:GetAttributes() do
if string.find(i2, "Seek") and v2 then
nodes[#nodes + 1] = v.RoomEnd
end
end
end
for _, v in next, nodes do
if seekMoving.Parent and not seekMoving:GetAttribute("IsDead") then
drag(seekMoving, v.Position, 15)
end
end
end)
-- Killing
task.spawn(function()
while seekMoving.Parent do
if (Root.Position - seekMoving.PrimaryPart.Position).Magnitude <= 30 and Hum.Health > 0 and not seekMoving.GetAttribute(seekMoving, "IsDead") then
Connections.Drag:Disconnect()
workspace.Footsteps_Seek:Stop()
ModuleScripts.MainGame.chase = false
Hum.WalkSpeed = 15
-- Crucifix / death
if not Char.FindFirstChild(Char, "Crucifix") then
jumpscareSeek()
else
seekMoving.Figure.Repent:Play()
seekMoving:SetAttribute("IsDead", true)
workspace.Ambience_Seek.TimePosition = 92.6
task.spawn(function()
ModuleScripts.MainGame.camShaker:ShakeOnce(35, 25, 0.15, 0.15)
task.wait(0.5)
ModuleScripts.MainGame.camShaker:ShakeOnce(5, 25, 4, 4)
end)
-- Crucifix float
local model = Instance.new("Model")
model.Name = "Crucifix"
local hl = Instance.new("Highlight")
local crucifix = Char.Crucifix
local fakeCross = crucifix.Handle:Clone()
fakeCross:FindFirstChild("EffectLight").Enabled = true
ModuleScripts.MainGame.camShaker:ShakeOnce(35, 25, 0.15, 0.15)
model.Parent = workspace
-- hl.Parent = model
-- hl.FillTransparency = 1
-- hl.OutlineColor = Color3.fromRGB(75, 177, 255)
fakeCross.Anchored = true
fakeCross.Parent = model
crucifix:Destroy()
for i, v in pairs(fakeCross:GetChildren()) do
if v.Name == "E" and v:IsA("BasePart") then
v.Transparency = 0
v.CanCollide = false
end
if v:IsA("Motor6D") then
v.Name = "Motor6D"
end
end
-- Seek death
task.wait(4)
seekMoving.Figure.Scream:Play()
playSound(11464351694, workspace, { Volume = 3 })
game.TweenService:Create(seekMoving.PrimaryPart, TweenInfo.new(4), {CFrame = seekMoving.PrimaryPart.CFrame - Vector3.new(0, 10, 0)}):Play()
task.wait(4)
seekMoving:Destroy()
fakeCross.Anchored = false
fakeCross.CanCollide = true
task.wait(0.5)
model:Remove()
end
break
end
task.wait()
end
end)
end
-- Setup
local newIdx; newIdx = hookmetamethod(game, "__newindex", newcclosure(function(t, k, v)
if k == "WalkSpeed" and not checkcaller() then
if ModuleScripts.MainGame.chase then
v = ModuleScripts.MainGame.crouching and 17 or 22
else
v = ModuleScripts.MainGame.crouching and 10 or 15
end
end
return newIdx(t, k, v)
end))
-- Scripts
local roomConnection; roomConnection = workspace.CurrentRooms.ChildAdded:Connect(function(room)
local trigger = room:WaitForChild("TriggerEventCollision", 1)
if trigger then
roomConnection:Disconnect()
local collision = trigger.Collision:Clone()
collision.Parent = room
trigger:Destroy()
local touchedConnection; touchedConnection = collision.Touched:Connect(function(p)
if p:IsDescendantOf(Char) then
touchedConnection:Disconnect()
connectSeek(room)
end
end)
end
end)
--#endregion
--#region Tabs
local MainTab=Window:CreateTab("Entity Spawning", 4370345144)
local DoorsMods=Window:CreateTab("Doors Modifications", 10722835155)
local ConfigEntities = Window:CreateTab("Configure Entities", 8285095937)
local publicServers = Window:CreateTab("Special Servers", 9692125126)
local Tools=Window:CreateTab("Tools", 29402763)
local CharacterMods=Window:CreateTab("Character Modifications", 483040244)
local global=Window:CreateTab("Global", 1588352259)
--#endregion
--#region Special Servers
publicServers:CreateSection("Server Identifier")
publicServers:CreateLabel("Current Server Identification: "..game.JobId)
publicServers:CreateButton({
Name="Copy Server Identification",
Callback=function()
(syn and syn.write_clipboard or setclipboard)(game.JobId)
end
})
publicServers:CreateSection("Features")
publicServers:CreateButton({
Name="Join Empty Special Server",
Callback=function()
game.Players.LocalPlayer:Kick("\nJoining Special Server... Please Wait")
wait()
queue_on_teleport("loadstring(game:HttpGet\"https://raw.githubusercontent.com/sponguss/Doors-Entity-Replicator/main/source.lua\")()")
game:GetService("TeleportService"):Teleport(game.PlaceId, game.Players.LocalPlayer)
end
})
publicServers:CreateButton({
Name="Free Revive",
Callback=function()
queue_on_teleport("loadstring(game:HttpGet\"https://raw.githubusercontent.com/sponguss/Doors-Entity-Replicator/main/source.lua\")()")
game:GetService("TeleportService"):TeleportToPlaceInstance(game.PlaceId, game.JobId, game.Players.LocalPlayer)
end
})
publicServers:CreateLabel("WARNING: FREE REVIVING REQUIRES TO BE IN A SPECIAL SERVER WITH COMPANY")
publicServers:CreateSection("Server-Hopping")
publicServers:CreateButton({
Name="Join Random Special Server",
Callback = function()
local tb=game:GetService("HttpService"):JSONDecode(game:HttpGet(("https://games.roblox.com/v1/games/%s/servers/Public?sortOrder=Asc&limit=100"):format(tostring(game.PlaceId))))
game:GetService("TeleportService"):TeleportToPlaceInstance(game.PlaceId, tb.data[math.random(1,#tb.data)].id, game.Players.LocalPlayer)
queue_on_teleport("loadstring(game:HttpGet\"https://raw.githubusercontent.com/sponguss/Doors-Entity-Replicator/main/source.lua\")()")
end,
})
publicServers:CreateInput({
Name="Join Specific Player",
PlaceholderText = game.Players.LocalPlayer.Name,
RemoveTextAfterFocusLost = false,
Callback = function(Text)
local tb=game:GetService("HttpService"):JSONDecode(game:HttpGet(("https://games.roblox.com/v1/games/%s/servers/Public?sortOrder=Asc&limit=100"):format(tostring(game.PlaceId))))
for _, server in pairs(tb.data) do
for _, player in pairs(server.players) do
if player.name==Text or player.UserId==Text then
game:GetService("TeleportService"):TeleportToPlaceInstance(game.PlaceId, server.id, game.Players.LocalPlayer)
queue_on_teleport("loadstring(game:HttpGet\"https://raw.githubusercontent.com/sponguss/Doors-Entity-Replicator/main/source.lua\")()")
end
end
end
end,
})
publicServers:CreateInput({
Name="Join Special Server",
PlaceholderText = "Insert Server Identification",
RemoveTextAfterFocusLost = false,
Callback = function(Text)
game:GetService("TeleportService"):TeleportToPlaceInstance(game.PlaceId, Text, game.Players.LocalPlayer)
queue_on_teleport("loadstring(game:HttpGet\"https://raw.githubusercontent.com/sponguss/Doors-Entity-Replicator/main/source.lua\")()")
end,
})
--#endregion
--#region Entity Configuration
local EntitiesFolder = game:GetService("ReplicatedStorage"):FindFirstChild("Entities")
_G.ScreechConfig = false
_G.TimothyConfig = false
_G.HaltConfig = false
_G.GlitchConfig = false
_G.HaltModel = 0
_G.TimothyModel = 0
_G.ScreechModel = 0
_G.GlitchModel = 0
local function connectEntity(entitytype, id, entityname)
if entitytype == "3d" then
game:GetService("Debris"):AddItem(game:GetService("ReplicatedStorage"):WaitForChild("Entities"):FindFirstChild(entityname), 0)
local customentity = game:GetObjects("rbxassetid://"..id)[1]
customentity.Name = entityname
customentity.Parent = game:GetService("ReplicatedStorage"):FindFirstChild("Entities")
local isCustom = Instance.new("StringValue")
isCustom.Name = "isCustom"
isCustom.Parent = customentity
elseif entitytype == string.lower("2d") then
error("entity cannot be changed because entity is 2D.")
end
end
ConfigEntities:CreateSection("3D Entities")
ConfigEntities:CreateParagraph({Title="Warning", Content="This setting is for developers only, if you wish to continue, please join discord.gg/zepsyy for the original entity models to edit."})
ConfigEntities:CreateToggle({
Name = "Screech Configuration",
CurrentValue = false,
Flag = "AddScreechConfig",
Callback = function(Value)
_G.ScreechConfig = Value
game:GetService("RunService").RenderStepped:Connect(function()
if Value then
connectEntity("3d", _G.ScreechModel, "Screech")
else
connectEntity("3d", "11599277464", "Screech")
end
end)
end,
})
ConfigEntities:CreateInput({
Name = "Set Screech Model",
PlaceholderText = "ex: 123456789",
RemoveTextAfterFocusLost = false,
Callback = function(Text)
_G.ScreechModel = Text
end,
})
ConfigEntities:CreateToggle({
Name = "Glitch Configuration",
CurrentValue = false,
Flag = "AddGlitchConfig",
Callback = function(Value)
_G.GlitchConfig = Value
game:GetService("RunService").RenderStepped:Connect(function()
if Value then
connectEntity("3d", _G.GlitchModel, "Glitch")
else
connectEntity("3d", "11689725604", "Glitch")
end
end)
end,
})
ConfigEntities:CreateInput({
Name = "Set Glitch Model",
PlaceholderText = "ex: 123456789",
RemoveTextAfterFocusLost = false,
Callback = function(Text)
_G.GlitchModel = Text
end,
})
ConfigEntities:CreateToggle({
Name = "Timothy Configuration",
CurrentValue = false,
Flag = "AddTimothyConfig",
Callback = function(Value)
_G.TimothyConfig = Value
game:GetService("RunService").RenderStepped:Connect(function()
if Value then
connectEntity("3d", _G.TimothyModel, "Spider")
else
connectEntity("3d", "11689711982", "Spider")
end
end)
end,
})
ConfigEntities:CreateInput({
Name = "Set Timothy Model",
PlaceholderText = "ex: 123456789",
RemoveTextAfterFocusLost = false,
Callback = function(Text)
_G.TimothyModel = Text
end,
})
ConfigEntities:CreateToggle({
Name = "Halt Configuration",
CurrentValue = false,
Flag = "AddHaltConfig",
Callback = function(Value)
_G.HaltConfig = Value
game:GetService("RunService").RenderStepped:Connect(function()
if Value then
connectEntity("3d", _G.HaltModel, "Shade")
else
connectEntity("3d", "11689715035", "Shade")
end
end)
end,
})
ConfigEntities:CreateInput({
Name = "Set Halt Model",
PlaceholderText = "ex: 123456789",
RemoveTextAfterFocusLost = false,
Callback = function(Text)
_G.HaltModel = Text
end,
})
ConfigEntities:CreateSection("2D Entities")
--#endregion
--#region Doors Modifications
--#region UI Mods
DoorsMods:CreateSection("Game UI Modifications")
DoorsMods:CreateInput({
Name = "Set Knobs Amount",
PlaceholderText = game.Players.LocalPlayer.PlayerGui.PermUI.Topbar.Knobs.Text,
RemoveTextAfterFocusLost = false,
Callback = function(Text)
require(game.ReplicatedStorage.ReplicaDataModule).event.Knobs:Fire(tonumber(Text))
end,
})
DoorsMods:CreateInput({
Name = "Set Revives Amount",
PlaceholderText = game.Players.LocalPlayer.PlayerGui.PermUI.Topbar.Revives.Text,
RemoveTextAfterFocusLost = false,
Callback = function(Text)
require(game.ReplicatedStorage.ReplicaDataModule).event.Revives:Fire(tonumber(Text))
end,
})
DoorsMods:CreateInput({
Name = "Set Boosts Amount",
PlaceholderText = game.Players.LocalPlayer.PlayerGui.PermUI.Topbar.Boosts.Text,
RemoveTextAfterFocusLost = false,
Callback = function(Text)
require(game.ReplicatedStorage.ReplicaDataModule).event.Boosts:Fire(tonumber(Text))
end,
})
DoorsMods:CreateInput({
Name = "Show Bottom Text",
PlaceholderText = "Your lighter ran out of fuel...",
RemoveTextAfterFocusLost = false,
Callback = function(Text)
firesignal(game.ReplicatedStorage.Bricks.Caption.OnClientEvent, Text)
end,
})
DoorsMods:CreateButton({
Name = "Start Heartbeat Minigame",
Callback = function()
firesignal(game.ReplicatedStorage.Bricks.ClutchHeartbeat.OnClientEvent)
end,
})
DoorsMods:CreateButton({
Name = "Get All Achievements",
Callback = function()
for i,v in pairs(require(game.ReplicatedStorage.Achievements)) do
spawn(function()
require(game.Players.LocalPlayer.PlayerGui.MainUI.Initiator.Main_Game.RemoteListener.Modules.AchievementUnlock)(nil, i)
end)
end
end,
})
--#endregion
--#region Modify Rooms
DoorsMods:CreateSection("Modify Rooms")
DoorsMods:CreateColorPicker({
Name="Set Room Color",
Color=Color3.fromRGB(89,69,72),
Flag="RoomColor",
Callback=function(color)
local room=workspace.CurrentRooms[game.Players.LocalPlayer:GetAttribute("CurrentRoom")]
if color==Color3.fromRGB(89,69,72) then
room.LightBase.SurfaceLight.Enabled=true
room.LightBase.SurfaceLight.Color=Color3.fromRGB(89,69,72)
for _, thing in pairs(room.Assets:GetDescendants()) do
if thing:FindFirstChild"LightFixture" then
thing.LightFixture.Neon.Color=Color3.fromRGB(195, 161, 141)
for _, light in pairs(thing.LightFixture:GetChildren()) do
if light:IsA("SpotLight") or light:IsA("PointLight") then
light.Color=Color3.fromRGB(235, 167, 98)
end
end
end
end
return
end
room.LightBase.SurfaceLight.Enabled=true
room.LightBase.SurfaceLight.Color=color
for _, thing in pairs(room.Assets:GetDescendants()) do
if thing:FindFirstChild"LightFixture" then
thing.LightFixture.Neon.Color=color
for _, light in pairs(thing.LightFixture:GetChildren()) do
if light:IsA("SpotLight") or light:IsA("PointLight") then
light.Color=color
end
end
end
end
end
})
DoorsMods:CreateParagraph({Title="Warning", Content="If you'd like to reset the room's color, leave it as 89,69,72"})
DoorsMods:CreateButton({
Name = "Spawn Red Room",
Callback = function()
firesignal(game.ReplicatedStorage.Bricks.UseEventModule.OnClientEvent, "tryp", workspace.CurrentRooms[game.Players.LocalPlayer:GetAttribute("CurrentRoom")], 9e307)
-- Imagine someone actually waits 90000000000000000... seconds for the red room to run out, would be crazy
end,
})
DoorsMods:CreateButton({
Name = "Break Lights",
Callback = function()
firesignal(game.ReplicatedStorage.Bricks.UseEventModule.OnClientEvent, "breakLights", workspace.CurrentRooms[game.Players.LocalPlayer:GetAttribute("CurrentRoom")], 0.416, 60)
end,
})
DoorsMods:CreateInput({
Name = "Flicker Lights",
PlaceholderText = "time in seconds...",
RemoveTextAfterFocusLost = false,
Callback = function(Text)
firesignal(game.ReplicatedStorage.Bricks.UseEventModule.OnClientEvent, "flickerLights", game.Players.LocalPlayer:GetAttribute("CurrentRoom"), tonumber(Text))
end,
})
DoorsMods:CreateInput({
Name = "Set Door Text",
PlaceholderText = "gahaa lolz",
RemoveTextAfterFocusLost = false,
Callback = function(Text)
local r=workspace.CurrentRooms[game.Players.LocalPlayer:GetAttribute("CurrentRoom")]
r.Door.Sign.Stinker.Text=Text
r.Door.Sign.Stinker.Highlight.Text=Text
r.Door.Sign.Stinker.Shadow.Text=Text
end,
})
--#endregion
--#region Modify Entities
DoorsMods:CreateSection("Modify Entities")
local EnabledEntities={
EnabledScreech=false,
EnabledHalt=false,
EnabledGlitch=false,
}
DoorsMods:CreateToggle({
Name = "Ignore Screech",
CurrentValue = false,
Flag = "IgnoreScreech",
Callback = function(Value)
EnabledEntities.EnabledScreech = Value
end,
})
DoorsMods:CreateToggle({
Name = "Ignore Glitch",
CurrentValue = false,
Flag = "IgnoreGlitch",
Callback = function(Value)
EnabledEntities.EnabledGlitch = Value
end,
})
DoorsMods:CreateToggle({
Name = "Ignore Halt",
CurrentValue = false,
Flag = "IgnoreHalt",
Callback = function(Value)
EnabledEntities.EnabledHalt = Value
end,
})
workspace.Camera.ChildAdded:Connect(function(c)
if c.Name == "Screech" then
wait(0.1)
if EnabledEntities.EnabledScreech then
removeDebris(c, 0)
end
end
if c.Name == "Shade" then
wait(.1)
if EnabledEntities.EnabledHalt then
removeDebris(c, 0)
end
end
end)
workspace.CurrentRooms.ChildAdded:Connect(function()
if EnabledEntities.EnabledGlitch then
local currentRoom=game.Players.LocalPlayer:GetAttribute("CurrentRoom")
local roomAmt=#workspace.CurrentRooms:GetChildren()
local lastRoom=game.ReplicatedStorage.GameData.LatestRoom.Value
if roomAmt>=4 and currentRoom<lastRoom-3 then
game.Players.LocalPlayer.Character:PivotTo(CFrame.new(lastRoom.RoomStart.Position))
end
end
end)
--#endregion
--#region Global Doors Mods
DoorsMods:CreateSection("Global Doors Modifications")
local thanksgivingEnabled=false
DoorsMods:CreateButton({
Name = "Enable Thanksgiving Update",
Callback = function()
if thanksgivingEnabled then
return Rayfield:Notify({
Title = "Error",
Content = "You have already ran this",
Duration = 6.5,
Image = 4483362458,
Actions = {},
})
end
thanksgivingEnabled=true
loadstring(game:HttpGet("https://raw.githubusercontent.com/ZepsyyCodesLUA/Utilities/main/DOORSthanksgiving"))()
end,
})
--#endregion
--#endregion
--#region Character Mods
local con
local con2
local isJumping=false
CharacterMods:CreateInput({
Name="Set Guiding Light",
PlaceholderText = "message 1~message 2",
RemoveTextAfterFocusLost = true,
Callback=function(Text)
game.Players.LocalPlayer.Character.Humanoid.Health=0
debug.setupvalue(getconnections(game.ReplicatedStorage.Bricks.DeathHint.OnClientEvent)[1].Function, 1, Text:split"~")
end
})
CharacterMods:CreateLabel("This input will instantly kill you when used... Be careful with it")
CharacterMods:CreateButton({
Name="Instant Death",
Callback=function()
game.Players.LocalPlayer.Character.Humanoid.Health=0
end
})
CharacterMods:CreateButton({
Name="Revive",
Callback=function()
game.ReplicatedStorage.Bricks.Revive:FireServer()
end
})
CharacterMods:CreateParagraph({Title = "Warning", Content = "The revive button requires you to have atleast 1 revive, the special thing about it, is that it can bypass the \"You can only revive in a run once\" message, and other things"})
CharacterMods:CreateToggle({
Name="Enable Jumping",
CurrentValue=false,
Flag="enableJump",
Callback=function(val)
if val==true then
con=game:GetService("UserInputService").InputBegan:Connect(function(input, gameProcessed)
if gameProcessed then return end
if input.KeyCode==Enum.KeyCode.Space then
isJumping=true
repeat
task.wait()
if game.Players.LocalPlayer.Character:FindFirstChildWhichIsA("Humanoid"):GetState()==Enum.HumanoidStateType.Freefall then else
game.Players.LocalPlayer.Character:FindFirstChildOfClass('Humanoid'):ChangeState(3) end
until isJumping==false
end
end)
con2=game:GetService("UserInputService").InputEnded:Connect(function(input, gameProcessed)
if gameProcessed then return end
if input.KeyCode==Enum.KeyCode.Space then
isJumping=false
end
end)
else con:Disconnect() con2:Disconnect() end
end
})
local Speed = 15
local EVC=CharacterMods:CreateToggle({
Name="Enable Velocity Cheat",
CurrentValue=false,
Callback=function() end
})
CharacterMods:CreateSlider({
Name="Velocity",
Range={15,100},
Increment=5,
Suffix="studs/s",
CurrentValue=15,
Flag="speed",
Callback=function(val)
for _, child in pairs(game.Players.LocalPlayer.Character:GetDescendants()) do
if child.ClassName == "Part" then
child.CustomPhysicalProperties = PhysicalProperties.new(999, 0.3, 0.5)
end
end
Speed = tonumber(val)
end
})
game:GetService("RunService").RenderStepped:Connect(function()
if EVC.CurrentValue==true then game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = Speed end
end)
--#endregion
--#region Tools
--#region Vitamins
_G.VitaminsDurability = 0
Tools:CreateButton({
Name="Obtain Vitamins",
Callback = function()
local Vitamins = game:GetObjects("rbxassetid://11685698403")[1]
local idle = Vitamins.Animations:FindFirstChild("idle")
local open = Vitamins.Animations:FindFirstChild("open")
local tweenService = game:GetService("TweenService")
local sound_open = Vitamins.Handle:FindFirstChild("sound_open")
local char = game.Players.LocalPlayer.Character or game.Players.LocalPlayer.CharacteAdded:Wait()
local hum = char:WaitForChild("Humanoid")
local idleTrack = hum.Animator:LoadAnimation(idle)
local openTrack = hum.Animator:LoadAnimation(open)
local Durability = 35
local InTrans = false
local Duration = 10
local xUsed = tonumber(_G.VitaminsDurability)
local v1 = {};
function v1.AddDurability()
InTrans = true
hum:SetAttribute("SpeedBoost", 15)
wait(Duration)
InTrans = false
hum:SetAttribute("SpeedBoost", 0)
end
function v1.SetupVitamins()
Vitamins.Parent = game.Players.LocalPlayer.Backpack
Vitamins.Name = "FakeVitamins"
for slotNum, tool in pairs(game.Players.LocalPlayer.Backpack:GetChildren()) do
if tool.Name == "FakeVitamins" then
local slot =game.Players.LocalPlayer.PlayerGui:WaitForChild("MainUI").MainFrame.Hotbar:FindFirstChild(slotNum)
-- while task.wait() do
-- slot.DurabilityNumber.Text = "x"..xUsed
-- end
-- slot.DurabilityNumber.Text = "x"..xUsed
slot.DurabilityNumber.Visible = true
slot.DurabilityNumber.Text = "x"..xUsed
Vitamins.Unequipped:Connect(function()
slot.DurabilityNumber.Visible = true
slot.DurabilityNumber.Text = "x"..xUsed
end)
Vitamins.Equipped:Connect(function()
slot.DurabilityNumber.Visible = true
end)
Vitamins.Activated:Connect(function()
if not InTrans and xUsed > 0 then
xUsed = xUsed - 1
slot.DurabilityNumber.Visible = true
slot.DurabilityNumber.Text = "x"..xUsed
openTrack:Play()
sound_open:Play()
tweenService:Create(workspace.CurrentCamera, TweenInfo.new(0.2), {FieldOfView = 100}):Play()
v1.AddDurability()
end
end)
end
end
Vitamins.Equipped:Connect(function()
idleTrack:Play()
end)
Vitamins.Unequipped:Connect(function()
idleTrack:Stop()
end)
end
v1.SetupVitamins()
function v1.AddLoop()
while task.wait() do
if InTrans then
wait()
print'in trans'
hum.WalkSpeed = Durability
else
hum.WalkSpeed = 16
end
end
end
while task.wait() do
v1.AddLoop()
end
return v1
end
})
Tools:CreateInput({
Name = "Vitamin Durability",
PlaceholderText = "ex: 100",
RemoveTextAfterFocusLost = false,
Callback = function(Text)
local durability = tonumber(Text)
if durability then
_G.VitaminsDurability = Text
elseif not durability or durability == '0' then
Rayfield:Notify({
Title = "ERROR",
Content = "Please enter a valid number.",
Duration = 5,
Image = 4483362458,
Actions = {},
})
end
end,
})
Tools:CreateParagraph({Title = "NOTE", Content = "These are fake vitamins but works just as efficient as the actual ones do. So others can't see you holding the item globally. Please do not include decimals or fractions in this written piece meaning that this script will be caused to break and no longer function."})
--#endregion
--#region Skeleton Key
local con
Tools:CreateButton({
Name="Obtain Skeleton Key",
Callback=function()
if not isfile("skellyKey.rbxm") then
writefile("skellyKey.rbxm", game:HttpGet"https://raw.githubusercontent.com/sponguss/Doors-Entity-Replicator/main/skellyKey.rbxm")
end
local keyTool: Tool=game:GetObjects((getcustomasset or getsynasset)("skellyKey.rbxm"))[1]
keyTool:SetAttribute("uses", 5)
local function setupRoom(room)
local thing=loadstring(game:HttpGet"https://raw.githubusercontent.com/sponguss/Doors-Entity-Replicator/main/skellyKeyRoomRep.lua")()
local newdoor=thing.CreateDoor({CustomKeyNames={"SkellyKey"}, Sign=true, Light=true, Locked=true})
newdoor.Model.Parent=workspace
newdoor.Model:PivotTo(room.Door.Door.CFrame)
newdoor.Model.Parent=room
room.Door:Destroy()
thing.ReplicateDoor({Model=newdoor.Model, Config={CustomKeyNames={"SkellyKey"}}, Debug={OnDoorPreOpened=function() end}})
end
keyTool.Equipped:Connect(function()
for _, room in pairs(workspace.CurrentRooms:GetChildren()) do
if room.Door:FindFirstChild"Lock" and not room:GetAttribute("Replaced") then
room:SetAttribute("Replaced", true)
setupRoom(room)
end
end
con=workspace.CurrentRooms.ChildAdded:Connect(function(room)
if room.Door:FindFirstChild"Lock" and not room:GetAttribute("Replaced") then
room:SetAttribute("Replaced", true)
setupRoom(room)
end
end)
end)
keyTool.Unequipped:Connect(function() con:Disconnect() end)
if Plr.PlayerGui.MainUI.ItemShop.Visible then
loadstring(game:HttpGet("https://raw.githubusercontent.com/RegularVynixu/Utilities/main/Doors/Custom%20Shop%20Items/Source.lua"))().CreateItem(keyTool, {
Title = "Skeleton Key",