Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- 定义首次出现的功能
- coroutine.wrap(function()
- game.ReplicatedStorage.GameData.LatestRoom.Changed:Wait()
- if math.random(1, 10) == 1 and game.ReplicatedStorage.GameData.Floor.Value == "Hotel" then
- local currentRoom = game.Workspace.CurrentRooms[game.ReplicatedStorage.GameData.LatestRoom.Value]
- local paintingAsset = currentRoom.Assets.Painting_Small
- local painting = paintingAsset.Canvas.SurfaceGui.ImageLabel
- painting.Image = "rbxassetid://12471460355"
- painting.BackgroundTransparency = 1
- painting.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- painting.ImageTransparency = 0.5
- paintingAsset.InteractPrompt.Triggered:Connect(function()
- wait(0.1)
- local mainGame = require(game.Players.LocalPlayer.PlayerGui.MainUI.Initiator.Main_Game)
- mainGame.caption('This painting looks awkward...', true)
- wait(3)
- mainGame.caption('I think I might see this later in the future...', true)
- wait(1)
- if not isfile("DOORS Impossible.Mode") then
- writefile("DOORS Impossible.Mode", "///###XA-150X###///")
- end
- paintingAsset:Destroy()
- end)
- end
- end)()
- ---====== 检查文件并运行脚本 ======---
- local function checkFileAndRun()
- local fileName = "DOORS Impossible.Mode"
- local requiredContent = "///###XA-150X###///"
- if isfile(fileName) and readfile(fileName) == requiredContent then
- ---====== Load spawner ======---
- local spawner = loadstring(game:HttpGet("https://raw.githubusercontent.com/RegularVynixu/Utilities/main/Doors/Entity%20Spawner/V2/Source.lua"))()
- ---====== Create entity ======---
- local entity = spawner.Create({
- Entity = {
- Name = "A-150",
- Asset = "rbxassetid://137274104749599",
- HeightOffset = 0
- },
- Lights = {
- Flicker = {
- Enabled = false,
- Duration = 1
- },
- Shatter = true,
- Repair = false
- },
- Earthquake = {
- Enabled = false
- },
- CameraShake = {
- Enabled = true,
- Range = 100,
- Values = {2, 25, 0.1, 10} -- Magnitude, Roughness, FadeIn, FadeOut
- },
- Movement = {
- Speed = 200,
- Delay = 3,
- Reversed = true
- },
- Rebounding = {
- Enabled = true,
- Type = "Ambush", -- "Blitz"
- Min = 1,
- Max = 1,
- Delay = 1
- },
- Damage = {
- Enabled = true,
- Range = 100,
- Amount = 99999
- },
- Crucifixion = {
- Enabled = false,
- Range = 40,
- Resist = false,
- Break = true
- },
- Death = {
- Type = "Guiding", -- "Curious"
- 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"},
- Cause = ""
- }
- })
- ---====== Debug entity ======---
- entity:SetCallback("OnSpawned", function()
- local FileName = "A150"
- local FilePath = FileName..".mp3"
- local url = "https://github.com/RBXDM/model/raw/refs/heads/main/A150"
- local TweenService = game:GetService("TweenService")
- if not isfile(FilePath) then
- writefile(FilePath, game:HttpGet(url))
- end
- local sound = Instance.new("Sound", workspace)
- sound.SoundId = getsynasset(FilePath)
- sound.Volume = 1
- sound.Looped = true
- sound:Play()
- task.delay(15, function()
- TweenService:Create(sound, TweenInfo.new(5), {Volume = 0}):Play()
- task.delay(5, function()
- sound:Stop()
- sound:Destroy()
- end)
- end)
- end)
- --====== Run entity ======---
- entity:Run()
- end
- end
- -- 调用函数检查文件并运行脚本
- checkFileAndRun()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement