local Information = script.Parent.Text
local Players = game:GetService'Players'
local Workspace = game:GetService'Workspace'
local Replicated = game:GetService'ReplicatedStorage'
local Mouse = Players.LocalPlayer:GetMouse()
Mouse.KeyDown:connect(function(key)
if key == 'm' then
script.Parent:CaptureFocus()
end
end)
script.Parent.FocusLost:connect(function()
Replicated.SoundEvent:FireServer(Information)
end)
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)
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)~~~~~~~~~~~~~~~~~
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
Can you show us the line you used in firing the event?
As in, to fire the event? Because it's there.
What are the parameters you've created for the server listener, and how many of them?
Line 31 TimeLength.Value