Sound work in studio , but not in actual game

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!

I want to play sound in actual game

  1. What is the issue? Include screenshots / videos if possible!

The sound played by script is not playing in actual game, only in studio

  1. What solutions have you tried so far? Did you look for solutions on the Developer Hub?

I tried to play it in server script and put sound into PlayerGui. Nothing helped

local plr = game.Players.LocalPlayer
local vibratesound = game:GetService("SoundService").PhoneVibrate
local ChooseGui = game.Players.LocalPlayer:WaitForChild("PlayerGui"):WaitForChild("CallsGui"):WaitForChild("KittyChoice")
local MainGui = plr:WaitForChild("PlayerGui"):WaitForChild("MainScreen"):WaitForChild("BGFrame")

script.Parent.MouseButton1Click:Connect(function()
	vibratesound:Play()
	MainGui.Visible = false
	ChooseGui.Visible = true
end)
1 Like

is the sound in a pending moderation and it will only load inside studo if so.

How to check if it is in moderation?

If it is in a moderation it may not play on the web site or in game.

I checked it , and it is not in moderation :frowning:

1 Like

show us the console (if there are errors related to that)

I’m not 100% sure, try to put the sound in startergui and play it

I tried the script and it worked perfectly for me.

local plr = game.Players.LocalPlayer
local vibratesound = game:GetService("SoundService").Sound

script.Parent.MouseButton1Click:Connect(function()
	vibratesound:Play()
	print("MainGui Visible to false")
	print("ChooseGui Visible to true")
end)

(The same script without ‘choose’ and ‘main’ GUI…)

It could be Possible that…

  1. the sound id is Moderated. (More to Audio Assets here)
  2. the sound volume is set to 0.
  3. You forgot to turn on the sound in Studio or on your PC.

Already tried, there arent any errors

I think i understood what is the issue. Its because this sounds were upload from my account in studio, and this game is from group. So i have to give permission to use it

I’m pretty sure sounds have to be parented to the Workspace (they play everywhere in the game) or a Part (local sound, only plays around the Part, distance depends on the sound’s MaxRollOffDistance Property).
Everything is local when you play test in Studio. In game the Server hosts the game so there’s a difference between local and global game dynamics.