Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 5 years ago

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

0
Replace 386343492 with "rbxassetid://386343492". (Include the quotations) User#20279 0 — 5y
0
Thank you!!! You fixed it! SupremeStarfish 21 — 5y
0
lol. the little mistakes are always the most annoying... VVickedDev 54 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago

The question has been answered by Denny9876 in the comments.

Ad

Answer this question