ScriptBlox is undergoing maintenance, so downtime is possible. Sorry for the inconvenience!
Universal Script πŸ“Œ
1.2k Views

boombox script

Universal Script πŸ“ŒUploaded by
3 months ago
Please login to perform these actions:

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
Edited By: fatihosman Download


Comments
0
No comments. Please Login to add a comment.