#sound not playing for one person (not playing at all)

28 messages · Page 1 of 1 (latest)

cold moat
#

Any errors?

#

If you want to play a sound ONLY for you, then you should use a local script

azure falcon
#

i did

#

and no errors

daring dragon
#

um could it be because you have a localscript in serverscriptservice ???

azure falcon
#

where is it supposed to be at?

narrow gulch
#

😨

daring dragon
#

only server scripts run in server sided environments

#

localscripts only work on the client

narrow gulch
#

put localscripts under player

#

like in startergui or startercharacterscripts

azure falcon
#

ok

dire olive
#

what the heck..

cold moat
woeful pine
#

holyyy

#

dude tried to use a client on a server

azure falcon
#

Even if I move the local script to startplayerscripts sound still dosent play

azure falcon
#

client

hearty crater
#

If you want it to be triggered when someone activates a proximity prompt, you can do like

local prox = ... --> the proximity prompt
local sound = ... --> 

local function OnTrigger()
  print(`sound playing for {game.Players.LocalPlayer}`)
  sound:Play()
end 

prox.Triggered:Connect(OnTrigger)
azure falcon
#

When the proximity prompt is triggered

azure falcon
#

i know how to make a sound play when its triggered just not how to make it client and not server

hearty crater
azure falcon
#

Yes

#

I replaced it to where my proximity prompt is located

hearty crater
#

And the sound as well ?