Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How to play sound only to specific player? (part 2)

Hello again, I have gotten some answers from the first one here's what i learned: Needs to be LocalScript Sound needs to be in the playergui Sound needs id (Already have that.) And Sound:Play()

Here's the script:

playergui = game.Players.LocalPlayer:WaitForChild("PlayerGui") playergui:SetTopbarTransparency(0) Bleep = Instance.new("Sound") Bleep.Name = "Bleep" Bleep.Parent = playergui Bleep.SoundId = 386343492 local StarterGui = game:GetService("StarterGui") StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.All, false) script.Parent.MouseButton1Click:Connect(function() Bleep:Play() script.Parent.Parent:TweenPosition(UDim2.new(0,0,1,0),"InOut","Quad",1) wait(1) StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.All, true) Bleep:Destroy() end)

The error: 17:22:54.612 - Failed to load sound 386343492: Unable to download sound data

3 comments

0

Replace 386343492 with "rbxassetid://386343492". (Include the quotations)

0

Thank you!!! You fixed it!

0

lol. the little mistakes are always the most annoying...

1 answer

The question has been answered by Denny9876 in the comments.

This discussion is preserved as it was. New answers, comments, and votes are closed.