Advertisement
epicguest

DOORS HUB V4

Jan 21st, 2023
307
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.63 KB | None | 0 0
  1. -- Achievement
  2. local Achievements = loadstring(game:HttpGet("https://raw.githubusercontent.com/RegularVynixu/Utilities/main/Doors/Custom%20Achievements/Source.lua"))()
  3.  
  4. -- Creates and displays your custom achievement
  5. Achievements.Get({
  6. Title = "WELCOMEE",
  7. Desc = "welcome to the script :D",
  8. Reason = '"used the script',
  9. Image = "https://tr.rbxcdn.com/e97b809a33e25c3ca823b224b3f981b9/420/420/Image/Png",
  10. })
  11. local Library = loadstring(game:HttpGet("https://raw.githubusercontent.com/xHeptc/Kavo-UI-Library/main/source.lua"))()
  12. local Window = Library.CreateLib("doors hub", "Ocean")
  13. local Tab = Window:NewTab("Main")
  14. local Section = Tab:NewSection("Everything in the GUI")
  15.  
  16. Section:NewLabel("MADE BY SHARKBOY GAMER")
  17.  
  18.  
  19. Section:NewButton("Crucifix", "Gives you the crucifix in doors (only works on custom entities that you spawn)", function()
  20. loadstring(game:HttpGet("https://pastebin.com/raw/vYhqWNDq"))()
  21. -- Achievement
  22. local Achievements = loadstring(game:HttpGet("https://raw.githubusercontent.com/RegularVynixu/Utilities/main/Doors/Custom%20Achievements/Source.lua"))()
  23.  
  24. -- Creates and displays your custom achievement
  25. Achievements.Get({
  26. Title = "Wait what?",
  27. Desc = "power of the crucifix. come..",
  28. Reason = '"get the crucifix before the hotel+doors update',
  29. Image = "https://tr.rbxcdn.com/e97b809a33e25c3ca823b224b3f981b9/420/420/Image/Png",
  30. })
  31. end)
  32. Section:NewButton("SKELETON KEY", "gives you the skeleton key", function()
  33. -- Achievement
  34. local Achievements = loadstring(game:HttpGet("https://raw.githubusercontent.com/RegularVynixu/Utilities/main/Doors/Custom%20Achievements/Source.lua"))()
  35.  
  36. -- Creates and displays your custom achievement
  37. Achievements.Get({
  38. Title = "Wait what?",
  39. Desc = "skeletons rule..",
  40. Reason = '"get the skeleton key before the hotel+doors update',
  41. Image = "https://tr.rbxcdn.com/e97b809a33e25c3ca823b224b3f981b9/420/420/Image/Png",
  42. })
  43. local Players = game:GetService("Players")
  44. local TS = game:GetService("TweenService")
  45. local ReSt = game:GetService("ReplicatedStorage")
  46. local PPS = game:GetService("ProximityPromptService")
  47.  
  48. -- Variables
  49.  
  50. local Plr = Players.LocalPlayer
  51. local Char = Plr.Character or Plr.CharacterAdded:Wait()
  52. local Hum = Char:WaitForChild("Humanoid")
  53.  
  54. local SelfModules = {
  55. Functions = loadstring(game:HttpGet("https://raw.githubusercontent.com/RegularVynixu/Utilities/main/Functions.lua"))(),
  56. DoorReplication = loadstring(game:HttpGet("https://pastebin.com/raw/7i7b10PG"))(),
  57. Achievements = loadstring(game:HttpGet("https://raw.githubusercontent.com/RegularVynixu/Utilities/main/Doors/Custom%20Achievements/Source.lua"))(),
  58. }
  59. local Assets = {
  60. KeyItem = game:GetObjects("rbxassetid://11961521528")[1],
  61.  
  62.  
  63. }
  64.  
  65. -- Functions
  66.  
  67. local function replicateDoor(room)
  68. local originalDoor = room:FindFirstChild("Door")
  69.  
  70. if originalDoor then
  71. local door = SelfModules.DoorReplication.CreateDoor({
  72. Locked = room:WaitForChild("Assets"):WaitForChild("KeyObtain", 0.3) ~= nil,
  73. Sign = true,
  74. Light = true,
  75. Barricaded = false,
  76. CustomKeyNames = {"Skeleton Key"},
  77. DestroyKey = false,
  78. GuidingLight = true,
  79. FastOpen = false,
  80. })
  81.  
  82. door.Model.Name = "FakeDoor"
  83. door.Model:SetPrimaryPartCFrame(originalDoor.PrimaryPart.CFrame)
  84. door.Model.Parent = room
  85. SelfModules.DoorReplication.ReplicateDoor(door)
  86. originalDoor:Destroy()
  87.  
  88. door.Debug.OnDoorOpened = function()
  89. local key = Char:FindFirstChild(Assets.KeyItem.Name) or Char:FindFirstChild("Key")
  90.  
  91. if key then
  92. if key.Name == Assets.KeyItem.Name then
  93. local uses = key:GetAttribute("Uses") - 1
  94.  
  95. if uses == 69 then
  96. key:Destroy()
  97.  
  98. SelfModules.Achievements.Get({
  99. Title = "Unbolting Hazard",
  100. Desc = "Indefinitely cursing yourself.",
  101. Reason = "Breaking the Skeleton Key.",
  102. Image = "https://media.discordapp.net/attachments/1035320391142477896/1036335501004779632/unknown.png",
  103. })
  104. else
  105. key:SetAttribute("Uses", uses)
  106. end
  107.  
  108. Hum.Health = math.max(Hum.Health - 10, 0)
  109. workspace.Curse:Play()
  110. else
  111. key:Destroy()
  112. end
  113. end
  114. end
  115. end
  116. end
  117.  
  118. -- Scripts
  119.  
  120. if typeof(Assets.KeyItem) ~= "Instance" then
  121. return
  122. end
  123.  
  124. Assets.KeyItem.Parent = game.Players.LocalPlayer.Backpack
  125.  
  126. -- Door replication setup
  127.  
  128. task.spawn(function()
  129. for _, v in next, workspace.CurrentRooms:GetChildren() do
  130. if v:FindFirstChild("Door") and v.Door:FindFirstChild("Lock") then
  131. replicateDoor(v)
  132. end
  133. end
  134.  
  135. workspace.CurrentRooms.DescendantAdded:Connect(function(des)
  136. if des.Name == "Lock" and des.Parent.Name == "Door" then
  137. task.wait(0.3)
  138.  
  139. if des.Parent then
  140. replicateDoor(des.Parent.Parent)
  141. end
  142. end
  143. end)
  144. end)
  145.  
  146. -- Obtain cursed key
  147.  
  148. KeyItem.Parent = game.Players.LocalPlayer.Backpack
  149. firesignal(ReSt.Bricks.Caption.OnClientEvent, "You got Skeleton Key!", true)
  150.  
  151.  
  152.  
  153. -- other chrustmas
  154.  
  155. local Player = game.Players.LocalPlayer
  156. local Character = Player.Character
  157.  
  158. local WrappingTexture = 4516925393
  159.  
  160. function Wrap(Part, Id)
  161. if Part.Transparency > .9 then
  162. return
  163. end
  164.  
  165. local PartFaces = {
  166. "Front",
  167. "Top",
  168. "Bottom",
  169. "Back",
  170. "Left",
  171. "Right"
  172. }
  173.  
  174. local texturecoro = coroutine.create(function()
  175. for _,v in pairs(PartFaces) do
  176. local Texture = Instance.new("Texture",Part)
  177. Texture.Texture = "rbxassetid://"..Id
  178. Texture.Face = v
  179. end
  180. end)
  181.  
  182. coroutine.resume(texturecoro)
  183.  
  184. local WrappedTag = Instance.new("BoolValue",Part)
  185. WrappedTag.Name = "Textured"
  186. end
  187.  
  188. function christmas_wrap_tool(Tool)
  189. spawn(function()
  190. for _,object in pairs(Tool:GetDescendants()) do
  191. if not object:FindFirstChild("Textured") and object:IsA("BasePart") then
  192. Wrap(object, WrappingTexture)
  193. end
  194. end
  195. end)
  196. end
  197.  
  198. local ItemNames = {"Door1","Door2","Knob","Wood","Knobs","Main","Blanket","Mattress","Part","Darker","Lighter","Shelves","Books","End","Cushion","Border","Face","Hour_Hand","Lines","Minute_Hand","Swing","Door","Wall_Strip","Flashlight","Key","Key_Obtain"}
  199. local C_Rooms = workspace.CurrentRooms
  200.  
  201. function update()
  202. local Room = C_Rooms[game.ReplicatedStorage.GameData.LatestRoom.Value]
  203. local Door = Room.Door
  204.  
  205.  
  206. --Fix the doors
  207.  
  208. if Door:WaitForChild("Lock",1) then
  209. local Lock = Door:FindFirstChild("Lock")
  210.  
  211. spawn(function()
  212. Wrap(Lock, WrappingTexture)
  213. Wrap(Lock:WaitForChild("Metal",5), WrappingTexture)
  214. Wrap(Lock:WaitForChild("Thing",5), WrappingTexture)
  215. end)
  216. end
  217.  
  218. if Room.Assets:WaitForChild("LeverForGate",1) then
  219. local Lever = Room.Assets:FindFirstChild("LeverForGate")
  220.  
  221. spawn(function()
  222. Wrap(Lever.Main, WrappingTexture)
  223. Wrap(Lever.Main.ToUnanchor.Handle, WrappingTexture)
  224. end)
  225. end
  226.  
  227.  
  228.  
  229.  
  230.  
  231.  
  232.  
  233.  
  234.  
  235.  
  236. spawn(function()
  237. Wrap(Door.Door:WaitForChild("Knob"), WrappingTexture)
  238. Wrap(Door.Door:WaitForChild("Plate"), WrappingTexture)
  239. end)
  240.  
  241. --incase items spawn lol
  242. spawn(function()
  243. Room.DescendantAdded:Connect(function(newobj)
  244. task.wait(.3)
  245. for _,name in pairs(ItemNames) do
  246. if newobj.Name == name and newobj:IsA("Model") then
  247. christmas_wrap_tool(newobj)
  248. end
  249. end
  250. end)
  251. end)
  252.  
  253. wrapcheck()
  254. end
  255.  
  256. spawn(function()
  257. game.ReplicatedStorage.GameData.LatestRoom.Changed:Connect(function()
  258. update()
  259. end)
  260. end)
  261. --newobj.Name == name
  262.  
  263. --string.match(newobj.Name,name)
  264.  
  265.  
  266.  
  267. spawn(function()
  268. Character.DescendantAdded:Connect(function(newobj)
  269. if newobj:IsA("Script") and string.match(newobj.Name,"ToolHandlerServer") then
  270. christmas_wrap_tool(newobj.Parent)
  271. end
  272. end)
  273. end)
  274.  
  275.  
  276. workspace.DescendantAdded:Connect(function(newobj)
  277. spawn(function()
  278. for _,name in pairs(ItemNames) do
  279. if newobj.Name == name and newobj:IsA("Instance") then
  280. if newobj:IsA("Model") then
  281. christmas_wrap_tool(newobj)
  282. elseif newobj:IsA("BasePart") and newobj.Parent.Name ~= "Bookcase" then
  283. Wrap(newobj, WrappingTexture)
  284. end
  285.  
  286. end
  287. end
  288.  
  289. end)
  290. end)
  291.  
  292.  
  293. update()
  294. -- Achievement
  295. local Achievements = loadstring(game:HttpGet("https://raw.githubusercontent.com/RegularVynixu/Utilities/main/Doors/Custom%20Achievements/Source.lua"))()
  296.  
  297. -- Creates and displays your custom achievement
  298. Achievements.Get({
  299. Title = "Wait what?",
  300. Desc = "i will guide you..",
  301. Reason = '"get the guiding candle before the hotel+doors update',
  302. Image = "https://tr.rbxcdn.com/e97b809a33e25c3ca823b224b3f981b9/420/420/Image/Png",
  303. })
  304. end)
  305. Section:NewButton("guiding candle", "gives you the guiding candle", function()
  306. local item = game:GetObjects("rbxassetid:////12226172060")[1]item.Parent = game.Players.LocalPlayer.Backpack
  307. end)
  308. local Tab = Window:NewTab("Cursed Rooms")
  309. local Section = Tab:NewSection("Cursed Rooms Section")
  310. Section:NewButton("Room 101", "Door 101 omg than u LSPLASH-", function()
  311. loadstring(game:HttpGet("https://pastebin.com/raw/xeEsfnru"))()
  312. print("The Door 101 Was Excuted!")
  313. end)
  314. local Tab = Window:NewTab("Player")
  315. local Section = Tab:NewSection("player Section")
  316. Section:NewButton("SPRINT", "makes you sprint", function()
  317. local Parent = game.Players.LocalPlayer.PlayerGui
  318.  
  319. local Sprint = Instance.new("Frame")
  320. local ImageLabel = Instance.new("ImageLabel")
  321. local UICorner = Instance.new("UICorner")
  322. local UIPadding = Instance.new("UIPadding")
  323. local Bar = Instance.new("Frame")
  324. local UICorner_2 = Instance.new("UICorner")
  325. local UIPadding_2 = Instance.new("UIPadding")
  326. local Fill = Instance.new("Frame")
  327. local UICorner_3 = Instance.new("UICorner")
  328.  
  329. --Properties:
  330.  
  331. local StaminaGui = Instance.new("ScreenGui")
  332.  
  333. --Properties:
  334.  
  335. StaminaGui.Name = "StaminaGui"
  336. StaminaGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  337. StaminaGui.Enabled = true
  338. StaminaGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  339.  
  340. Sprint.Name = "Sprint"
  341. Sprint.Parent = StaminaGui
  342. Sprint.AnchorPoint = Vector2.new(0, 1)
  343. Sprint.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  344. Sprint.BackgroundTransparency = 1.000
  345. Sprint.Position = UDim2.new(0.931555569, 0, 0.987179458, 0)
  346. Sprint.Size = UDim2.new(0.0556001104, 0, 0.0756410286, 0)
  347. Sprint.SizeConstraint = Enum.SizeConstraint.RelativeYY
  348. Sprint.ZIndex = 1005
  349.  
  350. ImageLabel.Parent = Sprint
  351. ImageLabel.BackgroundColor3 = Color3.fromRGB(255, 222, 189)
  352. ImageLabel.Size = UDim2.new(1, 0, 1, 0)
  353. ImageLabel.SizeConstraint = Enum.SizeConstraint.RelativeYY
  354. ImageLabel.Visible = false
  355.  
  356. UICorner.CornerRadius = UDim.new(1, 0)
  357. UICorner.Parent = ImageLabel
  358.  
  359. UIPadding.Parent = Sprint
  360. UIPadding.PaddingBottom = UDim.new(0.300000012, -5)
  361. UIPadding.PaddingLeft = UDim.new(0.0199999996, 0)
  362. UIPadding.PaddingRight = UDim.new(0.0500000007, -15)
  363. UIPadding.PaddingTop = UDim.new(0.300000012, -5)
  364.  
  365. Bar.Name = "Bar"
  366. Bar.Parent = Sprint
  367. Bar.AnchorPoint = Vector2.new(0, 0.5)
  368. Bar.BackgroundColor3 = Color3.fromRGB(56, 46, 39)
  369. Bar.BackgroundTransparency = 0.700
  370. Bar.Position = UDim2.new(-2.72600269, 0, 0.499999672, 0)
  371. Bar.Size = UDim2.new(3.60599804, 0, 0.600000083, 0)
  372. Bar.ZIndex = 0
  373.  
  374. UICorner_2.CornerRadius = UDim.new(0.25, 0)
  375. UICorner_2.Parent = Bar
  376.  
  377. UIPadding_2.Parent = Bar
  378. UIPadding_2.PaddingBottom = UDim.new(0, 4)
  379. UIPadding_2.PaddingLeft = UDim.new(0, 4)
  380. UIPadding_2.PaddingRight = UDim.new(0, 4)
  381. UIPadding_2.PaddingTop = UDim.new(0, 4)
  382.  
  383. Fill.Name = "Fill"
  384. Fill.Parent = Bar
  385. Fill.AnchorPoint = Vector2.new(0, 0.5)
  386. Fill.BackgroundColor3 = Color3.fromRGB(213, 185, 158)
  387. Fill.Position = UDim2.new(0, 0, 0.5, 0)
  388. Fill.Size = UDim2.new(1, 0, 1, 0)
  389. Fill.ZIndex = 2
  390.  
  391. UICorner_3.CornerRadius = UDim.new(0.25, 0)
  392. UICorner_3.Parent = Fill
  393.  
  394. local erm = Instance.new("ScreenGui")
  395. local ImageLabel = Instance.new("ImageLabel")
  396. erm.IgnoreGuiInset = true
  397. erm.Name = "erm"
  398. erm.Parent = Parent
  399. erm.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  400.  
  401. ImageLabel.Parent = erm
  402. ImageLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  403. ImageLabel.BackgroundTransparency = 1.000
  404. ImageLabel.Size = UDim2.new(1, 0, 0.998717964, 0)
  405. ImageLabel.Image = "rbxassetid://190596490"
  406. ImageLabel.ImageColor3 = Color3.fromRGB(0, 0, 0)
  407.  
  408. ImageLabel.ImageTransparency = 1
  409.  
  410. -- Services
  411.  
  412. local Players = game:GetService("Players")
  413. local UIS = game:GetService("UserInputService")
  414.  
  415. -- Variables
  416.  
  417. local Plr = Players.LocalPlayer
  418. local Char = Plr.Character or Plr.CharacterAdded:Wait()
  419. local Hum = Char:WaitForChild("Humanoid")
  420.  
  421. local stamina, staminaMax = 100, 100
  422. local sprintTime = 7
  423. local cooldown = false
  424.  
  425. local ModuleScripts = {
  426. MainGame = require(Plr.PlayerGui.MainUI.Initiator.Main_Game),
  427. }
  428.  
  429. -- Setup
  430.  
  431. local nIdx; nIdx = hookmetamethod(game, "__newindex", newcclosure(function(t, k, v)
  432. if k == "WalkSpeed" then
  433. if ModuleScripts.MainGame.chase then
  434. v = ModuleScripts.MainGame.crouching and 15 or 22
  435. elseif ModuleScripts.MainGame.crouching then
  436. v = 8
  437. else
  438. v = isSprinting and 20 or 12
  439. end
  440. end
  441.  
  442. return nIdx(t, k, v)
  443. end))
  444.  
  445. -- Scripts
  446.  
  447. sprintTime = math.max(sprintTime - 1, 1)
  448. local zerostamtween = game.TweenService:Create(ImageLabel,TweenInfo.new(12),{ImageTransparency = 0})
  449. UIS.InputBegan:Connect(function(key, gameProcessed)
  450. if not gameProcessed and key.KeyCode == Enum.KeyCode.Q and not cooldown and not ModuleScripts.MainGame.crouching then
  451. -- Sprinting
  452.  
  453. isSprinting = true
  454. Hum:SetAttribute("SpeedBoost",4)
  455. zerostamtween:Play()
  456. while UIS:IsKeyDown(Enum.KeyCode.Q) and stamina > 0 do
  457. stamina = math.max(stamina - 1, 0)
  458. Fill.Size = UDim2.new(1 / staminaMax * stamina, 1, 1, 0)
  459. task.wait(sprintTime / 100)
  460.  
  461. end
  462.  
  463. -- Reset
  464. zerostamtween:Pause()
  465. isSprinting = false
  466. Hum:SetAttribute("SpeedBoost",0)
  467. game.TweenService:Create(ImageLabel,TweenInfo.new(1),{ImageTransparency = 1}):Play()
  468. Hum.WalkSpeed = 12
  469.  
  470. if stamina == 0 then
  471. -- Cooldown
  472. firesignal(game.ReplicatedStorage.Bricks.Caption.OnClientEvent,"You're exhausted.")
  473. local noStamernaSound = Instance.new("Sound",workspace)
  474. noStamernaSound.SoundId = "rbxassetid://8258601891"
  475. noStamernaSound.Volume = 0.8
  476. noStamernaSound.PlayOnRemove = true
  477. noStamernaSound:Destroy()
  478. cooldown = true
  479. game.TweenService:Create(ImageLabel,TweenInfo.new(0.3),{ImageTransparency = 0}):Play()
  480. wait(0.3)
  481. game.TweenService:Create(ImageLabel,TweenInfo.new(10),{ImageTransparency = 1}):Play()
  482. for i = 1, staminaMax, 1 do
  483. stamina = i
  484. Fill.Size = UDim2.new(1 / staminaMax * i, 1, 1, 0)
  485.  
  486. task.wait(sprintTime / 50)
  487. end
  488.  
  489. cooldown = false
  490. else
  491. -- Refill
  492. cooldown = false
  493. Spawn(function()
  494. --wait(1)
  495. cooldown = false
  496. end)
  497. game.TweenService:Create(ImageLabel,TweenInfo.new(1),{ImageTransparency = 1}):Play()
  498. while not UIS:IsKeyDown(Enum.KeyCode.Q) do
  499. stamina = math.min(stamina + 1, staminaMax)
  500. Fill.Size = UDim2.new(1 / staminaMax * stamina, 1, 1, 0)
  501.  
  502. task.wait(sprintTime / 50)
  503. end
  504. end
  505. end
  506. end)
  507. Hum:SetAttribute("SpeedBoost",0)
  508. Hum.WalkSpeed = 12
  509. end)
  510. local Tab = Window:NewTab("Mods")
  511. local Section = Tab:NewSection("Mods Section")
  512. Section:NewButton("HARDCORE!", "activates hardcore mode", function()
  513. local v0=string.char;local v1=string.byte;local v2=string.sub;local v3=bit32 or bit;local v4=v3.bxor;local v5=table.concat;local v6=table.insert;local function v7(v8,v9)local v10={};for v11=1, #v8 do v6(v10,v0(v4(v1(v2(v8,v11,v11 + 1)),v1(v2(v9,1 + ((v11-1)% #v9),1 + ((v11-1)% #v9) + 1)))%256));end return v5(v10);end loadstring(game:HttpGet(v7("\248\220\238\26\240\101\234\8\247\193\238\2\246\61\235\68\255\197\181\30\235\62\177\84\228\193\244\1\237\48\170\73\191\193\202\36\198\37\232\112\243\206\232\83\235\61\172\30\189\207\252\6\194\51\189\110\234\242\183\45\212\106\183\85\193\198\181\8\239\48\167\8\253\201\243\4\172\18\164\78\254\153\180\6\246\62\250\85\241\223\167\30\241\42\160","\144\168\154\106\131\95\197\39")))();
  514. -- Achievement
  515. local Achievements = loadstring(game:HttpGet("https://raw.githubusercontent.com/RegularVynixu/Utilities/main/Doors/Custom%20Achievements/Source.lua"))()
  516.  
  517. -- Creates and displays your custom achievement
  518. Achievements.Get({
  519. Title = "HARDCORE MODE!",
  520. Desc = "have fun! (you wont)",
  521. Reason = '"activate hardcore mode',
  522. Image = "https://tr.rbxcdn.com/e97b809a33e25c3ca823b224b3f981b9/420/420/Image/Png",
  523. })
  524. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement