thegameplayer

Skeleton Key ( DOORS )

Nov 16th, 2022
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.86 KB | None | 0 0
  1. function skelly()
  2. local DoorReplication = loadstring(game:HttpGet("https://raw.githubusercontent.com/RegularVynixu/Utilities/main/Doors/Door%20Replication/Source.lua"))()
  3.  
  4.  
  5. -- Get current room
  6. local room = workspace.CurrentRooms[game:GetService("ReplicatedStorage").GameData.LatestRoom.Value]
  7.  
  8.  
  9. -- Replicate door
  10. local replicatedDoor = DoorReplication.ReplicateDoor(room, {
  11. CustomKeyName = "Skeleton Key",
  12. DestroyKey = false,
  13. })
  14.  
  15.  
  16. -- Debug features [advanced]
  17. replicatedDoor.Debug.OnDoorOpened = function(doorTable)
  18. warn("Door", doorTable.Model, "has opened")
  19. end
  20. end
  21. local DoorReplication = loadstring(game:HttpGet("https://raw.githubusercontent.com/RegularVynixu/Utilities/main/Doors/Door%20Replication/Source.lua"))()
  22.  
  23.  
  24. -- Get current room
  25. local room = workspace.CurrentRooms[game:GetService("ReplicatedStorage").GameData.LatestRoom.Value]
  26.  
  27.  
  28. -- Replicate door
  29. local replicatedDoor = DoorReplication.ReplicateDoor(room, {
  30. CustomKeyName = "Skeleton Key",
  31. DestroyKey = false,
  32. })
  33.  
  34.  
  35. -- Debug features [advanced]
  36. replicatedDoor.Debug.OnDoorOpened = function(doorTable)
  37. warn("Door", doorTable.Model, "has opened")
  38. end
  39. local shadow=game:GetObjects("rbxassetid://11491147151")[1]
  40. shadow.Parent = game.Players.LocalPlayer.Backpack
  41. local anim = Instance.new("Animation")
  42. local anim2 = Instance.new("Animation")
  43. anim.AnimationId = 'https://www.roblox.com/Assest?ID=6525854363'
  44. anim2.AnimationId = 'https://www.roblox.com/Assest?ID=10526835827'
  45. local track
  46.  
  47. shadow.Equipped:Connect(function()
  48. track = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(anim)
  49. track.Priority = Enum.AnimationPriority.Action
  50. track:Play()
  51. track.Looped = false
  52. wait(1.4)
  53. track2 = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(anim2)
  54. track2.Priority = Enum.AnimationPriority.Action
  55. track2:Play()
  56. track2.Looped = false
  57.  
  58. end)
  59.  
  60. shadow.Unequipped:Connect(function()
  61. if track then
  62. track:Stop()
  63. track2:Stop()
  64. end
  65. end)
  66. game.ReplicatedStorage.GameData.LatestRoom.Changed:Connect(function()
  67. if workspace.CurrentRooms[game.ReplicatedStorage.GameData.LatestRoom.Value].Door:FindFirstChild("Lock") then
  68. print("YES KEY")
  69. skelly()
  70. else
  71. print("no.")
  72. end
  73. end)
Add Comment
Please, Sign In to add comment