Advertisement
munciseek

Untitled

Nov 30th, 2024 (edited)
31
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.41 KB | None | 0 0
  1. -- 定义首次出现的功能
  2. coroutine.wrap(function()
  3. game.ReplicatedStorage.GameData.LatestRoom.Changed:Wait()
  4. if math.random(1, 10) == 1 and game.ReplicatedStorage.GameData.Floor.Value == "Hotel" then
  5. local currentRoom = game.Workspace.CurrentRooms[game.ReplicatedStorage.GameData.LatestRoom.Value]
  6. local paintingAsset = currentRoom.Assets.Painting_Small
  7. local painting = paintingAsset.Canvas.SurfaceGui.ImageLabel
  8. painting.Image = "rbxassetid://12471460355"
  9. painting.BackgroundTransparency = 1
  10. painting.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  11. painting.ImageTransparency = 0.5
  12. paintingAsset.InteractPrompt.Triggered:Connect(function()
  13. wait(0.1)
  14. local mainGame = require(game.Players.LocalPlayer.PlayerGui.MainUI.Initiator.Main_Game)
  15. mainGame.caption('This painting looks awkward...', true)
  16. wait(3)
  17. mainGame.caption('I think I might see this later in the future...', true)
  18. wait(1)
  19. if not isfile("DOORS Impossible.Mode") then
  20. writefile("DOORS Impossible.Mode", "///###XA-150X###///")
  21. end
  22. paintingAsset:Destroy()
  23. end)
  24. end
  25. end)()
  26.  
  27. ---====== 检查文件并运行脚本 ======---
  28.  
  29. local function checkFileAndRun()
  30. local fileName = "DOORS Impossible.Mode"
  31. local requiredContent = "///###XA-150X###///"
  32.  
  33. if isfile(fileName) and readfile(fileName) == requiredContent then
  34. ---====== Load spawner ======---
  35. local spawner = loadstring(game:HttpGet("https://raw.githubusercontent.com/RegularVynixu/Utilities/main/Doors/Entity%20Spawner/V2/Source.lua"))()
  36.  
  37. ---====== Create entity ======---
  38. local entity = spawner.Create({
  39. Entity = {
  40. Name = "A-150",
  41. Asset = "rbxassetid://137274104749599",
  42. HeightOffset = 0
  43. },
  44. Lights = {
  45. Flicker = {
  46. Enabled = false,
  47. Duration = 1
  48. },
  49. Shatter = true,
  50. Repair = false
  51. },
  52. Earthquake = {
  53. Enabled = false
  54. },
  55. CameraShake = {
  56. Enabled = true,
  57. Range = 100,
  58. Values = {2, 25, 0.1, 10} -- Magnitude, Roughness, FadeIn, FadeOut
  59. },
  60. Movement = {
  61. Speed = 200,
  62. Delay = 3,
  63. Reversed = true
  64. },
  65. Rebounding = {
  66. Enabled = true,
  67. Type = "Ambush", -- "Blitz"
  68. Min = 1,
  69. Max = 1,
  70. Delay = 1
  71. },
  72. Damage = {
  73. Enabled = true,
  74. Range = 100,
  75. Amount = 99999
  76. },
  77. Crucifixion = {
  78. Enabled = false,
  79. Range = 40,
  80. Resist = false,
  81. Break = true
  82. },
  83. Death = {
  84. Type = "Guiding", -- "Curious"
  85. Hints = {"Oh, Holle...", "You died", "Let me see", "Oh, Is new blue guy","Well, it usually attacks around room A-150", "so... you could just call it A-150", "It seems like it can Rebound"},
  86. Cause = ""
  87. }
  88. })
  89.  
  90. ---====== Debug entity ======---
  91. entity:SetCallback("OnSpawned", function()
  92. local FileName = "A150"
  93. local FilePath = FileName..".mp3"
  94. local url = "https://github.com/RBXDM/model/raw/refs/heads/main/A150"
  95. local TweenService = game:GetService("TweenService")
  96. if not isfile(FilePath) then
  97. writefile(FilePath, game:HttpGet(url))
  98. end
  99. local sound = Instance.new("Sound", workspace)
  100. sound.SoundId = getsynasset(FilePath)
  101. sound.Volume = 1
  102. sound.Looped = true
  103. sound:Play()
  104. task.delay(15, function()
  105. TweenService:Create(sound, TweenInfo.new(5), {Volume = 0}):Play()
  106. task.delay(5, function()
  107. sound:Stop()
  108. sound:Destroy()
  109. end)
  110. end)
  111. end)
  112.  
  113. --====== Run entity ======---
  114. entity:Run()
  115. end
  116. end
  117.  
  118. -- 调用函数检查文件并运行脚本
  119. checkFileAndRun()
  120.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement