Remote events not firing in roblox

Hello everyone, I have a couple remote events for sound and my roact. However, in studio they do fire but in roblox they don’t I am using nevermore for it’s packages and it seems to move ServerScriptService folders and scripts into replicated storage. Could this be a problem with nevermore or something else.

Remote Event Code:

RemoteEvents.OnSoundPlayRequest.OnClientEvent:Connect(function(SoundId, Volume, Parent, Looped)
	local sound = Instance.new("Sound")
	sound.SoundId = SoundId
	sound.Volume = Volume
	sound.Parent = Parent
	sound.Looped = Looped

	if sound.Loaded then
		if sound.Looped then
			if sound.Parent then
				sound:Play()
				return
			else
				SoundService:PlayLocalSound(sound)
				return
			end
		else
			sound.Ended:Connect(function()
				sound:Destroy()
			end)
			if sound.Parent then
				sound:Play()
				return
			else
				SoundService:PlayLocalSound(sound)
				return
			end
		end
	end
end)
1 Like

I still have this problem and have not found a solution if anyone is able to help :pray:

I’m not the sharpest but the reason was is the RemoteEvents were in ServerScriptService :melting_face:

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.