Universal Script 📌
2.4k Views
1.8k Executions

boombox script

Universal Script 📌
fatihosman
fatihosman10K executions
8 months ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

- Place this inside a Script in ServerScriptService local ReplicatedStorage = game:GetService("ReplicatedStorage") local PlayAudioEvent = Instance.new("RemoteEvent", ReplicatedStorage) PlayAudioEvent.Name = "PlayBoomboxAudio" PlayAudioEvent.OnServerEvent:Connect(function(player, soundId) local character = player.Character if character and character:FindFirstChild("HumanoidRootPart") then -- Find or create the sound object local sound = character.HumanoidRootPart:FindFirstChild("BoomboxSound") or Instance.new("Sound") sound.Name = "BoomboxSound" sound.Parent = character.HumanoidRootPart -- Update and Play sound.SoundId = "rbxassetid://" .. soundId sound.RollOffMaxDistance = 50 -- So you don't annoy the whole map sound:Play() end end)

View Raw
- Place this inside a Script in ServerScriptService
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local PlayAudioEvent = Instance.new("RemoteEvent", ReplicatedStorage)
PlayAudioEvent.Name = "PlayBoomboxAudio"

PlayAudioEvent.OnServerEvent:Connect(function(player, soundId)
    local character = player.Character
    if character and character:FindFirstChild("HumanoidRootPart") then
        -- Find or create the sound object
        local sound = character.HumanoidRootPart:FindFirstChild("BoomboxSound") or Instance.new("Sound")
        sound.Name = "BoomboxSound"
        sound.Parent = character.HumanoidRootPart
        
        -- Update and Play
        sound.SoundId = "rbxassetid://" .. soundId
        sound.RollOffMaxDistance = 50 -- So you don't annoy the whole map
        sound:Play()
    end
end)


Comments

0
Log in to join the conversation. Login
No comments yet. Be the first!

More universal scripts

See all
Universal Script 📌
6.1k
17.8k
Bumped 2 hours ago
Key System
Universal Script 📌
531.5k
336.7k
Bumped 4 hours ago
Script hub
2.5k
2.2k
Bumped 5 hours ago
Key System
Universal Script 📌
466
37
Approved 5 hours ago
Script hub
2.8M
661.6k
Bumped 6 hours ago
Key System

Script hub

#2 today

Verified script badgeFlow Hub | 35 Games | Updated