5Flipz
(Hunt)
February 12, 2023, 9:43pm
1
Hello developers, so recently I came across a little bug. When I hover over my UI to play a sound, it plays globally instead of locally. Is there a fix for this? Should I place the sounds somewhere different?
StatsButton.MouseEnter:Connect(function()
StatsButton:TweenPosition(UDim2.new(0.357, 0,0.480, 0), "In", "Quad", .15, true)
UiHover:Play()
end)
qurxts
(qurxts)
February 12, 2023, 9:44pm
2
You can execute the code under a LocalScript so it plays only on the client.
1 Like
5Flipz
(Hunt)
February 12, 2023, 9:47pm
3
It is a local script, that’s the problem and why im confused
qurxts
(qurxts)
February 12, 2023, 9:48pm
4
Try putting the sounds in replicated storage and cloning them then playing them on the client.
Dede_4242
(Dede_4242)
February 12, 2023, 9:48pm
5
Where is the LocalScript?
5Flipz
(Hunt)
February 12, 2023, 9:49pm
6
StarterGUI in a Screen gui
(Characters)
Dede_4242
(Dede_4242)
February 12, 2023, 9:51pm
7
Try defining the LocalPlayer, maybe it’s gonna work? Try defining everything for the LocalPLayer
5Flipz
(Hunt)
February 12, 2023, 9:54pm
8
Everything is though… I might just have to do a complicated way just to play a stupid sound lol
Dede_4242
(Dede_4242)
February 12, 2023, 9:55pm
9
Wait, try putting the sound in the GUI, maybe because it in Workspace it plays to the whole server?
You need to enable SoundService.RespectFilteringEnabled.
system
(system)
Closed
February 27, 2023, 1:16am
11
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.