--Local Script
local Information = script.Parent.Text
-- Services
local Players = game:GetService'Players'
local Workspace = game:GetService'Workspace'
local Replicated = game:GetService'ReplicatedStorage'
-- Variables
local Mouse = Players.LocalPlayer:GetMouse()
-- Trigger
Mouse.KeyDown:connect(function(key)
	if key == 'm' then
		script.Parent:CaptureFocus()
	end
end)
script.Parent.FocusLost:connect(function()
	Replicated.SoundEvent:FireServer(Information)
end)
-- ServerScript
-- Services
local RepStorage = game:GetService'ReplicatedStorage'
local Workspace = game:GetService'Workspace'

RepStorage.SoundEvent.OnServerEvent:connect(function(Client, Information)
	Workspace.Effect.DJstand.DJsound.SoundId = 'http://www.roblox.com/asset/?id='..Information
	
end)
-- Sound Playing script
script.Parent.Changed:connect(function()
	if script.Parent.SoundId ~= ' ' or script.Parent.SoundId ~= 'http://www.roblox.com/asset/?id=' then
		script.Parent:Play()
		wait(script.Parent.TimeLength)
		script.Parent:Stop()
		script.Parent.SoundId = ' '
	end
end)~~~~~~~~~~~~~~~~~

--Spammed Output...
16:58:22.145 - Sound failed to load Workspace.Effect.DJstand.DJsound :   because FMOD 31: An invalid parameter was passed to this function. during createSound
16:58:22.146 - FMOD 31: An invalid parameter was passed to this function. during createSound
16:58:22.146 - Sound failed to load Workspace.Effect.DJstand.DJsound :   because FMOD 31: An invalid parameter was passed to this function. during createSound

4 comments

0

Can you show us the line you used in firing the event?

0

As in, to fire the event? Because it's there.

0

What are the parameters you've created for the server listener, and how many of them?

0

Line 31 TimeLength.Value