I am trying to give a specific player a sound to play with RemoteEvents, but I don't really understand how to import the sound from the server script to the local script. This is what I have so far:
--LocalScript
local RepStorage = game.ReplicatedStorage:WaitForChild("RemoteEvent")
RepStorage.OnClientEvent:Connect(function(args)
game.Workspace.ChaseTheme:Play()
end)
--ServerScript
local ReplicatedStorage = game.ReplicatedStorage:WaitForChild("RemoteEvent")
ReplicatedStorage:FireClient()
--Loop Players (LocalScript)
for _, r in pairs(game.Teams.Pearl:GetPlayers()) do
local RepStorage = game.ReplicatedStorage:WaitForChild("RemoteEvent")
RepStorage.OnClientEvent:Connect(function()
game.Workspace.ChaseTheme:Play()
end)
end

4 comments
What do you mean loop of players
I edited my script. You can take a look there.
Then you would do FireClient(r). But, if you're doing it for every player, just use FireAllClients().
Ok. Thank you!