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

Trying to make an unequip sound for my lightsaber, won't work?

Asked by 4 years ago
01-- Equip
02 
03 
04local BlueSaber = script.Parent
05local Sound = game.SoundService.lightsaber_powerdown
06 
07BlueSaber.Equipped:Connect(function()
08    BlueSaber.Handle.lightsaber_powerup:Play()
09end)
10 
11-- Unequip
12 
13 
14BlueSaber.Unequipped:Connect(function()
15    Sound:Play()
16 
17end)

That is the code, the equip sound works perfectly fine but the unequip sound work. It is put in SoundService because when you unequip a tool and you put it in handle, it won't play.

Any help?

1 answer

Log in to vote
1
Answered by 4 years ago
Edited 4 years ago

First, try keeping your Sound in workspace [If you want to play on Server]. Else, try keeping it in StarterGui [If you want to play on Client]. And, change the location in the script likewise.

Lemme know if it helps!

0
Will try thanks, it is on the server so I will try Workspace. EH2019SIT 78 — 4y
0
Thank you! EH2019SIT 78 — 4y
Ad

Answer this question