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

Sound still playing after tool unequipped?

Sound still plays after tool is unequipped, even though I told it not to.

local player = game:GetService("Players").LocalPlayer
local char = player.Character or player.CharacterAdded:Wait()
local h = char:WaitForChild("Humanoid")
local anim = h:LoadAnimation(script.Parent:WaitForChild("Idle"))
local song1 = script.Parent.BeoDatMayTroi

local tool = script.Parent

tool.Equipped:Connect(function()
	anim:Play()
	song1:Stop()
end)



tool.Activated:Connect(function()
	song1:Play()
end)

tool.Unequipped:Connect(function()
	song1:Stop()
	anim:Stop()
	
end)

2 comments

0

Can you show a picture of the sounds and the scripts?

0

well, the sound does play when the tool is activated, but not when it is unequipped. The scripts are there, and the sound is just in the tool.

1 answer

Agh!!! Studio was being weird, the sound does stop. No idea why it didn't work before :P.

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