Play SFX on Server Not Working

I have very simple script that should work, but does not work. The sounds on the handle play, but they can’t be heard.

Client code:

			script.Parent.SFXPlayEvent:FireServer(script.Parent.Handle.Shot)

remoteevent is in tool
image

Script in remoteevent:

script.Parent.OnServerEvent:Connect(function(hit,sfx)
	sfx:Play()
end)

Handle:
image

SFX Property, when the event fires, the sfx does play, can’t be heard.
image

Might be because your trying to pass the sound object from the client to the server

instead just fire to the server then on the server find the character of the player that fired then find the tools handle and the sound you want to play that way the server is referenced to it
then play the sound and see if that works

an easy way once you have the character of the player is something like this

local Shot = Player.Character:FindFirstChild(‘Shot’,true) – uses recursive

The sounds are in the guns handle
image

It turns out the roll off min distance was 0, setting it back to 10 fixed it

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