server
game.ReplicatedStorage.Remote.Gameplay.SoundPlay.OnServerEvent:connect(function(plr,sound)
sound(plr.Character:WaitForChild("Torso"),script.Sounds:FindFirstChild(sound)) -- why no work?????
end)
client
game.ReplicatedStorage.Remote.Gameplay.SoundPlay:FireServer("GunS")
error
03:17:39.086 - ServerScriptService.Heart:2: attempt to call local 'sound' (a string value) 03:17:39.087 - Stack Begin 03:17:39.088 - Script 'ServerScriptService.Heart', Line 2 03:17:39.088 - Stack End
why is it not finding "GunS" and instead just complaining about a string not being a string.
