
5.6k Views
1.2k Executions
Does it work?
No reports yetNo reports yet. Tried it? Be the first to say.
Also noticed:
Description
This is aimed at completing the backroom on the client side, and the target [entity] NPC also operates completely on the client side.
-- AK.GUI - 迷路バックルームズ専用機能 (7300スタッド版 + 完全生成 + エンティティ)
local Players = game:GetService("Players")
local UserInputService = game:GetService("UserInputService")
local SoundService = game:GetService("SoundService")
local Workspace = game:GetService("Workspace")
local Lighting = game:GetService("Lighting")
local RunService = game:GetService("RunService")
local CollectionService = game:GetService("CollectionService")
local player = Players.LocalPlayer
local playerGui = player:WaitForChild("PlayerGui")
-- 音声アセットID
local START_SOUND_ID = "1837769261"
local BUTTON_SOUND_ID = "115916891254154"
local BACKROOMS_SOUND_ID = "131147973"
local ENTITY_SOUND_ID = "138013032"
local ATTACK_SOUND_ID = "159698324"
-- 音声再生関数
local function playSound(soundId, volume)
volume = volume or 0.5
local sound = Instance.new("Sound")
sound.SoundId = "rbxassetid://" .. soundId
sound.Volume = volume
sound.Parent = SoundService
sound:Play()
sound.Ended:Connect(function()
sound:Destroy()
end)
end
-- スクリプト読み込み時の音声再生
playSound(START_SOUND_ID)
-- GUI作成
local screenGui = Instance.new("ScreenGui")
screenGui.Name = "AK_GUI"
screenGui.ResetOnSpawn = false







what game?
@kxrkoo ユニバーサルスクリプトです
[deleted]
@whocareslittlebro オープンソースを望んでいます