Problem with local sound

  1. What do you want to achieve? A teleport system that plays a sound after proximity trigger and plays 1 sound when pressed and another 4.5 seconds after

  2. What is the issue? Its playing to everyone and not locally

  3. What solutions have you tried so far? I looked through devforum and found nothing, also tried putting it in local script but that does not play anything

Its basically a vent system, when i trigger it, it plays a vent walking noise, when it teleports it plays a vent exit noise

script.Parent.Triggered:Connect(function(plr)
	wait(5)
	plr.Character:SetPrimaryPartCFrame(workspace.PartTp.CFrame)
end)

script.Parent.Triggered:Connect(function(plr)
	script.Parent.Sound1:Play()
	wait(4.5)
	script.Parent.Sound2:Play()
end)
1 Like

you play the sounds from a local script. use a RemoteEvent in order to do this.

3 Likes

PlayLocalSound() plays a sound in the client regardless of where its parented to, works only on the client.

local SoundService = game:GetService("SoundService")
SoundService:PlayLocalSound(sound) -- plays a sound in the client
3 Likes

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